Welcome to mirror list, hosted at ThFree Co, Russian Federation.

style.scss « css - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8dc4bbaa89c2ff9c61d2d0f81165e6bf9d7e7bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// Fix share link footer for now by just not showing it
#body-public #content {
    height: 100%;
}
#body-public footer {
    display: none;
}


@media only screen and (max-width: 1024px) { // $breakpoint-mobile
    .modal-header .modal-title {
        display: none;
    }

    .menubar { // all the !important is unfortunately needed
        width: calc(100% - 250px) !important;
        margin-left: 0 !important;
        margin-right: 250px !important;
    }
}


#files-public-content {
    width: 100% !important;
    height: 100%;

    .menubar { // all the !important is unfortunately needed
        width: calc(100% - 150px) !important;
        margin-left: 0 !important;
        margin-right: 150px !important;
    }

    #editor-session-list {
        right: 0;
    }
}

// Overwrite Viewer component styles
.modal-header {
    &.invisible {
        visibility: visible !important;
        opacity: 1 !important;
    }

    .modal-title {
        position: absolute;
        left: 0;
        padding: 0 16px !important;
        max-width: 200px !important;
        font-weight: bold;
        color: var(--color-main-text) !important;
    }

    .icons-menu .header-actions {
        filter: invert(100%);
        opacity: .4;

        &:hover,
        &:focus {
            opacity: 1;
        }
    }

    .icons-menu .icon-close::before {
        color: var(--color-main-text);
        opacity: .6;

        &:hover,
        &:focus {
            opacity: 1;
        }
    }
}

.modal-container #editor-container {
  position: absolute;
}

.ProseMirror-hideselection *::selection { background: transparent; }
.ProseMirror-hideselection *::-moz-selection { background: transparent; }
.ProseMirror-hideselection { caret-color: transparent; }

.ProseMirror-selectednode {
  outline: 2px solid #8cf;
}

/* Make sure li selections wrap around markers */
li.ProseMirror-selectednode {
  outline: none;
}

li.ProseMirror-selectednode:after {
  content: "";
  position: absolute;
  left: -32px;
  right: -2px; top: -2px; bottom: -2px;
  border: 2px solid #8cf;
  pointer-events: none;
}

.has-conflicts,
#editor-wrapper.icon-loading {
  .ProseMirror-menubar {
    display: none;
  }
}

.ProseMirror-gapcursor {
  display: none;
  pointer-events: none;
  position: absolute;
}

.ProseMirror-gapcursor:after {
  content: "";
  display: block;
  position: absolute;
  top: -2px;
  width: 20px;
  border-top: 1px solid var(--color-main-text);
  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
}

@keyframes ProseMirror-cursor-blink {
  to {
    visibility: hidden;
  }
}

#editor, .editor {
  background: var(--color-main-background);
  color: var(--color-main-text);
  background-clip: padding-box;
  border-radius: var(--border-radius);
  padding: 0;
  position: relative;
  overflow-y: scroll;
  overflow-x: hidden;
  width: 100%;
}

div[contenteditable=true],
div[contenteditable=false] {
  border: none !important;
  width: 100%;
  background-color: transparent;
  color: var(--color-main-text);
  opacity: 1;
}