forked from nextcloud/notes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.css
More file actions
263 lines (228 loc) · 5.38 KB
/
notes.css
File metadata and controls
263 lines (228 loc) · 5.38 KB
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
/**
* Copyright (c) 2013, Jan-Christoph Borchardt http://jancborchardt.net
* This file is licensed under the Affero General Public License version 3 or later.
* See the COPYING file.
*/
#app-navigation {
padding-bottom: 0; /* no settings bar, so no padding needed */
}
#app-navigation #note-add #new-note-button {
margin: 14px auto;
width: calc(100% - 20px) !important;
text-align: left;
padding-left: 34px;
background-position: 10px center;
}
#app-navigation .active a {
padding-right: 70px;
}
.app-content-list-button {
display: block;
margin: 10px auto;
padding: 10px;
}
#app-navigation li .nav-entry {
display: block;
width: 100%;
line-height: 44px;
min-height: 44px;
padding: 0 12px;
overflow: hidden;
box-sizing: border-box;
white-space: nowrap;
text-overflow: ellipsis;
color: #000;
opacity: .57;
}
#app-navigation li:hover .nav-entry,
#app-navigation li:focus .nav-entry {
opacity: 1;
}
#app-navigation #note-add:hover span,
#app-navigation #note-add:focus span {
display: inline;
}
#app-navigation .utils button {
margin: 0;
background-position: center;
background-repeat: no-repeat;
background-color: transparent;
border: 0;
box-shadow: none;
display: none;
height: 32px;
width: 32px;
}
/* override snap.js animation causing loading icon to fly into app-content */
#app-content.loading {
transition: none !important;
-webkit-transition: none !important;
}
/* only display the delete button when the feed is active */
#app-navigation .utils .delete-button {
display: none;
}
#app-navigation .active > .utils .icon-delete,
#app-navigation .active > .utils .icon-star {
display: inline-block;
opacity: .3;
}
#app-navigation .utils .icon-starred {
display: inline-block;
opacity: 1 !important;
}
.note-search span {
background-position: 0 center;
background-origin: content-box;
}
.note-search input {
width: 100%;
padding-left: 20px;
background-color: transparent;
border: none;
border-radius: 0;
}
.note-search input:active,
.note-search input:focus,
.note-search input:hover {
border-bottom: 1px solid grey;
}
.tooltip {
text-shadow: none;
text-transform: none;
}
#app-content-container {
height: 100%;
}
/* special styling to make editor subtle and fit the window */
.CodeMirror {
position: relative;
min-height: 100%;
max-width: 47em;
margin: 0 0 -50px;
padding: 30px 0 90px;
border: none;
font-size: 16px;
line-height: 1.5em;
}
.CodeMirror-scroll {
overflow-x: auto !important;
}
/* enable clickthrough for links */
.CodeMirror-cursor {
pointer-events: none;
}
#app-content .note-meta {
position: relative;
padding: 0 45px 30px 45px;
margin: -10px 0 0;
opacity: .4;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
z-index: 5;
}
#app-content .note-meta-right {
float: right;
}
#app-content .saving {
background: url('../img/loading.gif') no-repeat right 15px top 15px / 24px !important;
/* Overrides the snap.js animation making the loading icon to fly in app-content. */
transition: none !important;
-webkit-transition: none !important;
}
.btn-fullscreen {
padding: 15px;
}
/* markdown styling */
.CodeMirror .CodeMirror-code .cm-header {
/* break from core in using semibold, otherwise not emphasized in texts */
font-weight: 600;
}
.CodeMirror .CodeMirror-code .cm-header-1 {
font-size: 28px;
margin: 50px 0 20px;
line-height: 120%;
}
.CodeMirror .CodeMirror-code .cm-header-2 {
font-size: 20px;
margin-top: 12px;
line-height: 150%;
}
.CodeMirror .CodeMirror-code .cm-header-3,
.CodeMirror .CodeMirror-code .cm-header-4,
.CodeMirror .CodeMirror-code .cm-header-5,
.CodeMirror .CodeMirror-code .cm-header-6 {
font-size: 16px;
margin: 0;
font-weight: 300;
}
.CodeMirror .CodeMirror-code .cm-header-3 {
font-weight: 600;
}
.CodeMirror .CodeMirror-code .cm-hr {
position: relative;
display: inline-block;
width: 100%;
}
.CodeMirror .CodeMirror-code .cm-hr:before {
position: absolute;
content: "";
top: 50%;
width: 100%;
z-index: -1;
border-top: 5px solid rgba(120, 120, 120, 0.2);
}
/* hanging punctuation */
.CodeMirror .CodeMirror-code .CodeMirror-line {
padding-left: 45px;
}
.CodeMirror .CodeMirror-code .cm-formatting-header:not(:only-child),
.CodeMirror .CodeMirror-code .cm-formatting-list,
.CodeMirror .CodeMirror-code .cm-formatting-quote {
position: absolute;
display: inline-block;
width: 90px;
margin-top: 0;
margin-left: -90px;
text-align: right;
white-space: pre;
color: rgba(120, 120, 120, 0.5);
}
/* distraction free styles */
:-webkit-full-screen {
width: 100%;
background-color: white;
}
:-moz-full-screen {
width: 100%;
background-color: white;
}
:-ms-fullscreen {
width: 100%;
background-color: white;
}
:fullscreen {
width: 100%;
background-color: white;
}
:-webkit-full-screen #app-content-container {
margin: 0 auto;
}
:-moz-full-screen #app-content-container {
margin: 0 auto;
}
:-ms-fullscreen #app-content-container {
margin: 0 auto;
}
:fullscreen #app-content-container {
margin: 0 auto;
}
/* larger screen sizes */
@media only screen and (min-width: 769px) {
/* use slightly more space on the left so all # signs of h3–h6 show */
.CodeMirror .CodeMirror-code .CodeMirror-line,
#app-content .note-meta {
padding-left: 90px;
}
}