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

site.css « css « assets - github.com/leonardofaria/bento.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ccc09062ab0042d68208b53daaf8bb0fba18f842 (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
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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
html {
  scroll-behavior: smooth;
}

.backdrop-filter-blur {
  backdrop-filter: blur(5px);
}

.bg-white-90 {
  background: rgba(255, 255, 255, 0.9);
}

.bg-gradient {
  background-image: linear-gradient(to top, rgba(217, 219, 224, 0.7) 0, rgb(249, 250, 251) 500px);
}

.bg-twitter {
  background-color: #4fafed;
}

.header {
  position: relative;
  min-height: 400px;
  height: 50vh;
}

.header:before, .header:after {
  box-sizing: border-box;
  content: " ";
  position: absolute;
  bottom: 0;
  display: block;
  width: 50%;
  height: 20px;
  border: 20px solid transparent;
  border-bottom-color: #f9fafb;
}

.header:before {
  left: 0;
  border-right: 30px solid transparent;
  border-left: 0;
}

.header:after {
  right: 0;
  border-left: 30px solid transparent;
  border-right: 0;
}

/* .article styles */
.article {
  @apply px-5;
  @apply pb-5;
  @apply text-gray-600;
}

.article__header {
  @apply text-right;
  @apply pb-6;
}

.artitle__title {
  @apply leading-tight;
  @apply mb-4;
}

.article__content > p:first-of-type {
  @apply text-2xl;
}

.article__content > p > img,
.article__content > video,
.article__content > .wide {
  @apply max-w-4xl;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.article a {
  @apply underline;
  @apply text-gray-700;
  @apply transition;
  @apply duration-300;
  @apply ease-in-out;
}

.article a:hover,
.article a:focus {
  @apply text-blue-600;
}

.artitle__title a {
  @apply no-underline;
}

.article h1 {
  @apply text-5xl;
  @apply font-semibold;
  @apply tracking-tighter;
  @apply text-gray-700;
}

.article h2 {
  @apply text-4xl;
  @apply font-semibold;
  @apply text-gray-700;
}

.article h3 {
  @apply text-3xl;
  @apply text-gray-700;
}

.article h4 {
  @apply text-2xl;
  @apply text-gray-700;
}

.article h5 {
  @apply text-xl;
  @apply text-gray-700;
}

.article h6 {
  @apply text-base;
  @apply font-semibold;
  @apply uppercase;
  @apply text-gray-700;
}

.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6,
.article p,
.article ul,
.article ol,
.article dl {
  @apply my-6;
  text-rendering: geometricPrecision;
}

/* Set the scroll-margin for internal anchor links, since we have a fixed top bar */
.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
  scroll-margin-top: 8rem;
}

.article p,
.article ul,
.article ol,
.article dl,
.article td {
  @apply font-serif;
  @apply text-xl;
}


.article ol,
.article ul {
  @apply ml-1;
  @apply list-inside;
  list-style-type: initial;
}

.article blockquote {
  @apply pl-5;
  @apply border-l-4;
  @apply border-gray-600;
}

/* TODO: port to Tailwind CSS */

.article blockquote p {
  margin: 0.8em 0;
  font-style: italic;
}

.article blockquote small {
  display: inline-block;
  margin: 0.8em 0 0.8em 1.5em;
  font-size: 0.9em;
  color: #CCC;
}

.article blockquote small:before {
  content: "\2014 \00A0";
}

.article blockquote cite {
  font-weight: 700;
}

.article blockquote cite a {
  font-weight: normal;
}

.article code, tt {
  padding: 1px 3px;
  @apply font-mono;
  @apply text-lg;

  white-space: pre-wrap;
  border: #E3EDF3 1px solid;
  background: #F7FAFB;
  border-radius: 2px;
}

.article .full-width, 
.article .highlight {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw; 
}

.article .highlight {
  @apply bg-white;
}

.article pre {
  @apply max-w-3xl;
  @apply m-auto;
  @apply my-2;
  @apply px-5;
  @apply py-4;
  @apply font-mono;
  @apply text-lg;
  white-space: pre;
  overflow: auto;
  @apply bg-white;
  @apply rounded;
}

.article pre code,
.article pre tt {
  font-size: inherit;
  white-space: pre-wrap;
  @apply bg-transparent;
  @apply border-0;
  @apply p-0;
}

.article kbd {
  display: inline-block;
  margin-bottom: 0.4em;
  padding: 1px 8px;
  border: #CCC 1px solid;
  color: #666;
  text-shadow: #FFF 0 1px 0;
  font-size: 0.9em;
  font-weight: 700;
  background: #F4F4F4;
  border-radius: 4px;
  box-shadow:
      0 1px 0 rgba(0, 0, 0, 0.2),
      0 1px 0 0 #fff inset;
}

.article table {
  @apply my-6;
  @apply w-full;
  @apply max-w-full;
  @apply bg-transparent;
}

.article table th,
.article table td {
  @apply p-2;
  @apply align-top;
  border-top: #EFEFEF 1px solid;
}

.article table th {
  @apply text-black;
}

.article table caption + thead tr:first-child th,
.article table caption + thead tr:first-child td,
.article table colgroup + thead tr:first-child th,
.article table colgroup + thead tr:first-child td,
.article table thead:first-child tr:first-child th,
.article table thead:first-child tr:first-child td {
  @apply border-t-0;
}

.article table tbody > tr:nth-child(odd) > td,
.article table tbody > tr:nth-child(odd) > th {
  @apply bg-gray-100;
}

.article table.plain tbody > tr:nth-child(odd) > td,
.article table.plain tbody > tr:nth-child(odd) > th {
  @apply bg-transparent;
}

.article iframe,
.article .fluid-width-video-wrapper {
  @apply block;
  @apply my-6;
}

.intro p {
  @apply text-2xl;
}

.author {
  @apply my-5;
  @apply pt-10;
  @apply pb-5;
  @apply border-t;
  @apply border-gray-400;
  @apply flex;
  @apply items-center;
}

.author .author__avatar {
  @apply border;
  @apply border-gray-400;
  @apply p-1;
  @apply w-10;
  @apply h-10;
  @apply rounded-full;
  @apply mr-3;
}

.author .author__bio {
  @apply flex-grow;
}

.author .author__share {
  @apply text-white;
  @apply text-xs;
  @apply font-bold;
  @apply rounded-md;
  @apply no-underline;
  @apply flex;
  @apply items-center;
  @apply px-3;
  @apply py-2;
}

.author .author__share:hover {
  @apply text-white;
}

.comments,
.pagination {
  @apply my-5;
  @apply py-5;
}