forked from pereorga/minimalist-web-notepad
-
Notifications
You must be signed in to change notification settings - Fork 4
/
styles.css
62 lines (59 loc) · 1.04 KB
/
styles.css
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
/*! Minimalist Web Notepad | https://github.com/pereorga/minimalist-web-notepad */
body {
margin: 0;
background: #ebeef1;
}
.nav {
margin: 10px 20px;
font-size: small;
}
.nav a {
display: inline;
margin-right: 10px;
color: grey;
}
.container {
position: absolute;
top: 40px;
right: 20px;
bottom: 20px;
left: 20px;
}
#content {
font-size: 100%;
margin: 0;
padding: 20px;
overflow-y: auto;
resize: none;
width: 100%;
height: 100%;
min-height: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
border: 1px #ddd solid;
outline: none;
}
#printable {
display: none;
}
@media (prefers-color-scheme: dark) {
body {
background: #383934;
}
#content {
background: #282923;
color: #f8f8f2;
border: 0;
}
}
@media print {
.container {
display: none;
}
#printable {
display: block;
white-space: pre-wrap;
word-break: break-word;
}
}