-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.css
177 lines (164 loc) · 2.98 KB
/
app.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
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
body {
margin: 0 auto;
padding: 0 1rem;
max-width: 60rem;
word-wrap: break-word;
overflow-wrap: break-word;
font-family: sans-serif;
font-size: 1.2rem;
line-height: 1.5rem;
}
.code-block pre {
margin: 0;
font: inherit;
}
/* TODO: reverse italics within italics */
blockquote,
.prose {
font-style: italic;
color: #555;
padding: 0.5rem 10px;
}
.prose {
/*background: rgba(0, 150, 136, 0.15);*/
/*border: 1px solid rgba(0, 0, 0, 0.1);*/
/*border-radius: 5px;*/
}
blockquote {
position: relative;
quotes: "\201C" "\201D" "\2018" "\2019";
margin: 0 -1rem;
padding-left: 2rem;
}
blockquote::before {
position: absolute;
left: 0;
top: 2rem;
color: #ccc;
content: "\201C";
font-size: 4rem;
line-height: 0.4rem;
margin-right: 1rem;
vertical-align: -0.4rem;
}
@media (min-width: 70rem) {
blockquote {
margin-left: -2rem;
}
}
a[href],
.hashtag {
color: #2196F3;
}
p > code,
li > code,
samp {
border: solid 1px hsla(204, 10%, 80%, 1);
border-radius: .25em;
margin: 0 -.03125em;
padding: .0625em .25em 0; /* breathing room for inline code that has a different background or an outline */
}
hr {
border: 0;
border-top: 1px solid rgba(0, 0, 0, 0.2);
}
.block {
margin: 0.5rem 0;
position: relative;
}
.code-block {
min-height: 1rem;
}
.code-block > code {
display: block;
white-space: pre-wrap;
tab-size: 4;
background: black;
color: white;
margin: 0;
min-height: 1rem;
padding: 0.5rem 1rem;
margin: 0 -1rem;
}
.block > hr {
margin: 0 -1rem;
}
/* timestamp */
.block::before {
content: attr(data-timestamp);
font-family: sans-serif;
font-size: 0.6rem;
color: rgba(127, 127, 127, 0.8);
width: 4rem;
pointer-events: none;
}
@media (min-width: 70rem) {
.block::before {
position: absolute;
right: 100%;
margin-right: 0.5rem;
}
.code-block > code {
margin-left: -5rem;
padding-left: 5rem;
}
}
.block-controls-dropdown-container {
pointer-events: none;
}
.block-controls-dropdown-container > * {
pointer-events: all;
}
.block-controls-dropdown-button {
background: none;
border: 1px solid transparent;
border-radius: 50%;
outline: none;
}
/* TODO: use MDL styled menus and buttons */
.block-controls-dropdown-button:hover,
.menuitem:hover {
background: rgba(127, 127, 127, 0.1);
}
.block-controls-dropdown-button:active,
.menuitem:active {
background: rgba(127, 127, 127, 0.3);
}
.over-dark-block .block-controls-dropdown-button {
color: white;
}
.block-controls-dropdown-menu {
background: white;
border: 1px solid rgba(0, 0, 0, 0.5);
border-radius: 0.2rem;
}
.block-controls-dropdown-menu hr {
margin: 0.2rem 0;
}
.menuitem {
padding: 0.2rem;
cursor: default;
padding-left: 1.4rem;
position: relative;
}
.menuitem.RichEditor-activeButton:before {
content: "✓";
position: absolute;
left: 0.2rem;
}
/*
.block {
outline: 1px solid red;
border: 1px solid lime;
}
*/
.from-future {
background: #FFCEE6;
border: solid 1px hsla(0, 36%, 29%, 0.47);
border-radius: .25em;
margin: 0 -.03125em;
padding: .0625em .25em 0;
}
.from-future > p {
margin: 0.5em 0;
}