1
+ @import " variables.less" ;
2
+
1
3
html {
2
- font-family : ' Roboto' , ' Helvetica Neue' , Helvetica , Arial , sans-serif ;
3
- font-weight : 300 ;
4
- color : #202020 ;
5
- font-size : 18px ;
6
- line-height : 28px ;
4
+ .body-font ();
7
5
}
8
6
9
7
body {
22
20
}
23
21
24
22
h1 , h2 , h3 , h4 , h5 , h6 {
25
- font-family : ' Rubik' , ' Helvetica Neue' , Helvetica , Arial , sans-serif ;
26
- font-weight : 300 ;
23
+ .headline-font ();
27
24
margin : 10px 0 ;
28
25
color : inherit ;
29
26
text-rendering : optimizelegibility ;
100
97
}
101
98
102
99
a {
103
- /* https://www.pantone.com/color-finder/Rhodamine-Red-C */
104
- color : #E10098 ;
100
+ color : @rhodamine-color ;
105
101
text-decoration : none ;
106
102
}
107
103
@@ -256,18 +252,18 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li
256
252
257
253
.nav-main .nav-site a .active {
258
254
color : #0f0f0f ;
259
- border-bottom : 3px solid #E10098 ;
255
+ border-bottom : 3px solid @rhodamine-color ;
260
256
background : #333 ;
261
257
}
262
258
263
259
.nav-main .nav-home {
264
- color : #E10098 ;
260
+ color : @rhodamine-color ;
265
261
font-size : 24px ;
266
262
line-height : 50px ;
267
263
}
268
264
269
265
.nav-home a {
270
- color : #E10098 ;
266
+ color : @rhodamine-color ;
271
267
}
272
268
273
269
.nav-home img {
@@ -343,7 +339,7 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li
343
339
}
344
340
345
341
.hero strong {
346
- color : #E10098 ;
342
+ color : @rhodamine-color ;
347
343
font-weight : 300 ;
348
344
}
349
345
@@ -358,7 +354,7 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li
358
354
359
355
.buttons-unit .button {
360
356
font-size : 24px ;
361
- background : #E10098 ;
357
+ background : @rhodamine-color ;
362
358
color : #fafafa ;
363
359
}
364
360
@@ -367,7 +363,7 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li
367
363
}
368
364
369
365
.nav-docs {
370
- color : #2d2d2d ;
366
+ color : @text-color ;
371
367
font-size : 13px ;
372
368
float : left ;
373
369
width : 170px ;
@@ -398,11 +394,11 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li
398
394
399
395
.nav-docs a :hover {
400
396
text-decoration : none ;
401
- color : #E10098 ;
397
+ color : @rhodamine-color ;
402
398
}
403
399
404
400
.nav-docs a .active {
405
- color : #E10098 ;
401
+ color : @rhodamine-color ;
406
402
}
407
403
408
404
.nav-docs .nav-docs-section {
@@ -456,7 +452,7 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li
456
452
}
457
453
458
454
.marketing-col h3 {
459
- color : #2d2d2d ;
455
+ color : @text-color ;
460
456
font-size : 24px ;
461
457
font-weight : 300 ;
462
458
text-transform : uppercase ;
@@ -471,7 +467,7 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li
471
467
}
472
468
473
469
#examples h3 , .home-presentation h3 {
474
- color : #2d2d2d ;
470
+ color : @text-color ;
475
471
font-size : 24px ;
476
472
font-weight : 300 ;
477
473
margin-bottom : 5px ;
@@ -769,12 +765,9 @@ figure {
769
765
small code ,
770
766
li code ,
771
767
p code {
772
- background-color : #f6f5f5 ;
773
- color : #333 ;
774
- font-family : ' Roboto Mono' , Menlo, Monaco, monospace ;
775
- font-weight : 400 ;
776
- font-size : 13px ;
777
- line-height : 20px ;
768
+ .code-font (15px );
769
+ background-color : #f8f8f8 ;
770
+ border-radius : 2px ;
778
771
padding : 4px 4px 2px ;
779
772
margin : 0 -1px ;
780
773
}
@@ -809,7 +802,7 @@ p code {
809
802
}
810
803
811
804
.playground-tab-active {
812
- color : #222 ;
805
+ color : @text-color ;
813
806
}
814
807
815
808
.playgroundCode {
@@ -1019,7 +1012,7 @@ p + .apiIndex {
1019
1012
text-decoration : none ;
1020
1013
}
1021
1014
.apiIndex li a :hover ::before {
1022
- color : #E10098 ;
1015
+ color : @rhodamine-color ;
1023
1016
content : ' #' ;
1024
1017
font-size : 16px ;
1025
1018
left : -2em ;
@@ -1107,11 +1100,8 @@ p + .apiIndex {
1107
1100
code [class*= " language-" ],
1108
1101
pre [class*= " language-" ],
1109
1102
.apiIndex pre {
1110
- color : #333 ;
1103
+ .code-font () ;
1111
1104
text-shadow : 0 1px white ;
1112
- font-family : ' Roboto Mono' , Menlo, Monaco, monospace ;
1113
- font-size : 13px ;
1114
- line-height : 20px ;
1115
1105
direction : ltr ;
1116
1106
text-align : left ;
1117
1107
white-space : pre ;
@@ -1245,7 +1235,7 @@ pre[class*="language-"] {
1245
1235
code [class*= " language-" ],
1246
1236
pre [class*= " language-" ],
1247
1237
.apiIndex pre {
1248
- font-family : ' Roboto Mono ' , Menlo, Monaco, monospace ;
1238
+ .code-font () ;
1249
1239
white-space : pre-wrap ;
1250
1240
}
1251
1241
@@ -1291,9 +1281,8 @@ pre[class*="language-"],
1291
1281
1292
1282
.CodeMirror {
1293
1283
/* Set height, width, borders, and global font properties here */
1294
- font-family : ' Roboto Mono' , Menlo, Monaco, monospace ;
1295
1284
height : 300px ;
1296
- color : black ;
1285
+ .code-font () ;
1297
1286
}
1298
1287
1299
1288
/* PADDING */
@@ -1685,9 +1674,7 @@ span.CodeMirror-selectedtext { background: none; }
1685
1674
background-color : infobackground ;
1686
1675
border : 1px solid black ;
1687
1676
border-radius : 4px 4px 4px 4px ;
1688
- color : infotext ;
1689
- font-family : monospace ;
1690
- font-size : 10pt ;
1677
+ .code-font ();
1691
1678
overflow : hidden ;
1692
1679
padding : 2px 5px ;
1693
1680
position : fixed ;
@@ -1760,9 +1747,7 @@ span.CodeMirror-selectedtext { background: none; }
1760
1747
-webkit-box-shadow : 0 1px 3px rgba (0 , 0 , 0 , 0.45 );
1761
1748
-moz-box-shadow : 0 1px 3px rgba (0 , 0 , 0 , 0.45 );
1762
1749
box-shadow : 0 1px 3px rgba (0 , 0 , 0 , 0.45 );
1763
- font-family : ' Roboto Mono' , Menlo, Monaco, monospace ;
1764
- font-size : 13px ;
1765
- line-height : 20px ;
1750
+ .code-font ();
1766
1751
list-style : none ;
1767
1752
margin : 0 ;
1768
1753
margin-left : -6px ;
@@ -1829,12 +1814,9 @@ li.CodeMirror-hint-active {
1829
1814
1830
1815
.CodeMirror-hint-information .content {
1831
1816
-webkit-box-orient : vertical ;
1832
- color : #333 ;
1833
1817
display : -webkit-box ;
1834
- font-family : helvetica , arial , sans-serif ;
1835
- font-size : 13px ;
1818
+ .body-font (@size : 15px );
1836
1819
-webkit-line-clamp : 3 ;
1837
- line-height : 16px ;
1838
1820
max-height : 48px ;
1839
1821
overflow : hidden ;
1840
1822
text-overflow : -o-ellipsis-lastline ;
@@ -1866,9 +1848,7 @@ div.CodeMirror-lint-tooltip {
1866
1848
-webkit-box-shadow : 0 1px 3px rgba (0 , 0 , 0 , 0.45 );
1867
1849
-moz-box-shadow : 0 1px 3px rgba (0 , 0 , 0 , 0.45 );
1868
1850
box-shadow : 0 1px 3px rgba (0 , 0 , 0 , 0.45 );
1869
- font-family : helvetica , arial , sans-serif ;
1870
- font-size : 13px ;
1871
- line-height : 16px ;
1851
+ .body-font (@size : 15px );
1872
1852
padding : 6px 10px ;
1873
1853
opacity : 0 ;
1874
1854
transition : opacity 0.15s ;
@@ -1980,27 +1960,21 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {
1980
1960
/* CM override */
1981
1961
1982
1962
.CodeMirror {
1983
- font-size : 13px ;
1984
- line-height : 17px ;
1985
- font-family : ' Roboto Mono' , Menlo, Monaco, monospace ;
1963
+ .code-font ();
1986
1964
}
1987
1965
1988
1966
.miniGraphiQL {
1989
1967
margin : 28px 0 ;
1990
1968
color : #333 ;
1991
1969
/* background: #faf9f9;*/
1992
- /* border-left: 4px solid #E10098 ;*/
1970
+ /* border-left: 4px solid @rhodamine-color ;*/
1993
1971
width : 100% ;
1994
1972
display : -webkit-flex ;
1995
1973
display : flex ;
1996
1974
-webkit-flex-direction : row ;
1997
1975
flex-direction : row ;
1998
- font-family : helvetica , arial , sans-serif ;
1999
- font-size : 13px ;
2000
1976
position : relative ;
2001
1977
2002
- font-size : 13px ;
2003
- line-height : 17px ;
2004
1978
padding : 3px ; /* 7px 14px;*/
2005
1979
background : white ;
2006
1980
box-shadow : inset 0 0 0 1px #EEE , inset 4px 0 0 #EEE ;
@@ -2070,11 +2044,9 @@ input#algolia-doc-search {
2070
2044
padding-left : 35px ;
2071
2045
margin-top : 9px ;
2072
2046
height : 30px ;
2073
- font-size : 16px ;
2074
- line-height : 20px ;
2047
+ .body-font (@color : white );
2075
2048
background-color : #555 ;
2076
2049
border-radius : 4px ;
2077
- color : white ;
2078
2050
outline : none ;
2079
2051
border : none ;
2080
2052
width : 170px ;
@@ -2089,13 +2061,13 @@ input#algolia-doc-search {
2089
2061
background-color : #B51780 ;
2090
2062
}
2091
2063
.algolia-docsearch-suggestion--highlight {
2092
- color : #E10098 ;
2064
+ color : @rhodamine-color ;
2093
2065
}
2094
2066
.algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--highlight {
2095
- background-color : #E10098 ;
2067
+ background-color : @rhodamine-color ;
2096
2068
}
2097
2069
.aa-cursor .algolia-docsearch-suggestion--content {
2098
- color : #E10098 ;
2070
+ color : @rhodamine-color ;
2099
2071
}
2100
2072
.aa-cursor .algolia-docsearch-suggestion {
2101
2073
background : #FEF6FB ;
@@ -2106,5 +2078,5 @@ input#algolia-doc-search {
2106
2078
.algolia-docsearch-suggestion--subcategory-column {
2107
2079
border-right-color : #FEF6FB ;
2108
2080
background-color : #FEF6FB ;
2109
- color : #E10098 ;
2081
+ color : @rhodamine-color ;
2110
2082
}
0 commit comments