-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathstyle.sass
More file actions
417 lines (309 loc) · 6.67 KB
/
style.sass
File metadata and controls
417 lines (309 loc) · 6.67 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
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
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
{{ $fontAwesomeVersion := site.Params.assets.fontAwesomeVersion }}
{{ $fontAwesomeUrl := printf "https://use.fontawesome.com/releases/v%s/css/all.css" $fontAwesomeVersion }}
@charset "utf-8"
@import url("https://fonts.googleapis.com/icon?family=Titillium+Web:300,400,600,700|Inconsolata:300,400,600,700")
@import url("{{ $fontAwesomeUrl }}")
// Misc
$twitter-blue: #1da1f3
// TiKV variables
$tikv-red: #ed1a3b
$tikv-blue: #353558
$light-blue: #3D3FEA
$footer-hover-blue: #00AEEF
@import "bulma/sass/utilities/initial-variables"
@import "bulma/sass/utilities/functions"
@import "bulma/sass/utilities/derived-variables"
$colors: mergeColorMaps(("twitter-blue": ($twitter-blue, $white)), $colors)
@import "bulma/bulma"
@import "bulma/sass/grid/columns"
// Bulma variable overrides
$red: $tikv-red
$blue: $tikv-blue
$primary: $red
$secondary: #0D0F2C
$link: $red
$danger: $orange
$btn-blue-color: $light-blue
$family-sans-serif: "Titillium Web", BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif
$family-monospace: "Inconsolata", monosapce
$notification-padding: 1rem 1rem
$navbar-dropdown-radius: none
$navbar-dropdown-boxed-shadow: none
$navbar-dropdown-arrow: $primary !important
$base-width: 112px
// customize font-size
$P1: 16px
$H0: 32px
$H3: 20px
$H4: 18px
$LH: 1.75
// customize color
$M2: #F7F8F9
$B3: #172D72
=logo($times)
margin: 0 auto
width: $times * $base-width
.is-home-logo
+logo(1.8)
+tablet
margin-bottom: 1.5rem
+touch
margin-bottom: 2rem
+mobile
+logo(1.5)
.is-cncf-logo
+logo(3)
margin: 3rem auto
.is-footer-image
+logo(1)
margin: 1rem auto 1rem 0
+mobile
margin: 1rem auto
=branded-button($bgColor)
border: none
background-color: $bgColor
color: white
&:hover
background-color: darken($bgColor, 5%)
@mixin is-customized-card()
height: 100%
box-shadow: none
border-radius: 10px
.card-header
padding: 2rem
font-size: $H3
box-shadow: none
.card-header-title
padding: 0
.card-header-icon
padding: 0
.card-content
padding: 0 2rem 2rem
a:hover
color: $light-blue
text-decoration: underline
a
color: $light-blue
.docs-content
padding-bottom: 8rem
.section-title
margin-bottom: 3rem !important
font-size: $H0
.homepage-hero
background: url('/img/homepage/hero-bg.svg') no-repeat
background-size: cover
background-position: center
+mobile
padding: 4rem 1.5rem !important
.title
width: max-content
padding: 1rem 1rem 1rem 0
font-size: 36px
color: #ffffff
line-height: 1.7
background: linear-gradient(90deg, rgba(43, 88, 186, 0), rgba(17, 68, 163, 0.8) 50%)
+mobile
margin-top: 1rem
padding: 1rem 0rem
font-weight: bold
width: auto
.button
margin-top: 2rem
font-size: $H3
font-weight: bold
color: #113F9C
border-radius: 10px
.homepage-intro
.desc
font-size: $P1
line-height: 1.75
.columns
align-items: start
.scenario
margin-top: 2.5rem
.scenario,
.desc
a
color: $light-blue
&:hover
text-decoration: underline
.homepage-why-tikv
background-color: $M2
.card
@include is-customized-card
.homepage-tikv-users
.columns.is-variable
--columnGap: 4rem
+mobile
--columnGap: 3rem
.column
flex: none
width: 20%
padding: 5rem
+touch
width: 50%
a, a:hover
color: $light-blue
.button
margin: 4rem
color: #ffffff
border: none
background-color: $btn-blue-color
.homepage-get-started
background-color: $M2
.card
@include is-customized-card
.card-header
padding: 1rem 2rem
background-color: $light-blue
border-radius: 10px 10px 0 0
.card-header-title
color: #ffffff
.card-content
padding-top: 1.5rem
line-height: 2
a
color: #2C2C2C
&:hover
color: $light-blue
text-decoration: underline
.hero.is-primary
background-color: $B3
.toc
padding: 1rem 0 3rem 2rem
li
font-size: 1.1rem
a
color: #000
&.is-active
color: $light-blue
font-weight: 700
&:hover
color: $light-blue
ul
list-style: none !important
ul
margin-left: .5rem
li > a
margin-left: 1.4rem
.section-toc
padding: 1rem 0 3rem 0
border-right: 1px solid $grey-light
margin-right: 1rem
li
line-height: 125%
font-size: 1.5rem
padding-right: 1.5rem
& + li
margin-top: 1rem
&.is-active
border-right: 2px solid $grey-light
a
color: $tikv-blue
font-weight: 700
.menu-label
font-weight: 700
.menu-list li ul
margin: 0
.content
&.is-blog-content
margin-bottom: 8rem
figure
margin: 0 auto
+tablet
width: 70%
+mobile
width: 100%
figcaption
margin-top: .5rem
font-style: normal
ol, ul
li .highlight
margin-bottom: 1rem
.footer
hr
margin: 1rem 0
height: 1px
background-color: $footer-hover-blue
.align-item-centered
align-items: flex-end
+mobile
text-align: center
li
padding: 6px 0
&.is-dark
background-color: $secondary
a
color: $white
font-size: 1.1rem
&:hover
color: $footer-hover-blue
// Ensures sticky footer glued to the bottom of the page
.page
display: flex
flex-direction: column
min-height: 100vh
.main
flex: 1
.is-navbar-version
margin-left: 1rem
background-color: $light-blue
color: white
border: 1px solid $light-blue
padding: .25rem .5rem
border-radius: 5px
& + .navbar-dropdown
display: block
position: absolute
top: 100%
background: white
.has-dropdown
.navbar-dropdown
display: none
&.is-active
display: block !important
.is-hoverable
.navbar-link::after
display: none
+mobile
display: block
.navbar-link
color: #2C2C2C
font-weight: bold
&:hover
color: $light-blue
.navbar-dropdown
border-top: none
.section
padding: 4rem 1.5rem 6rem
&.is-black
background-color: $black
.is-home-page
.notification
margin: 4rem 0
p
font-weight: bold
font-size: 1.5rem !important
a.is-link
color: #2E2FFF !important
text-decoration: none !important
&:hover
text-decoration: underline !important
.buttons
margin-top: 2.5rem
.highlight
overflow-x: scroll
.iframe-figure
width: 100% !important
.iframe-container
overflow: hidden
/* 16:9 aspect ratio */
padding-top: 56.25%
position: relative
.iframe-container iframe
border: 0
height: 100%
left: 0
position: absolute
top: 0
width: 100%