1
1
// FIXME: Use modules
2
2
@import " vars" , " utils" , " navbar" , " themes" , " fa" ;
3
3
4
+ /* See FiraSans-LICENSE.txt for the Fira Sans license. */
5
+ @font-face {
6
+ font-family : ' Fira Sans' ;
7
+ font-style : normal ;
8
+ font-weight : 400 ;
9
+ src : local (' Fira Sans' ), url (" FiraSans-Regular.woff" ) format (' woff' );
10
+ }
11
+ @font-face {
12
+ font-family : ' Fira Sans' ;
13
+ font-style : normal ;
14
+ font-weight : 500 ;
15
+ src : local (' Fira Sans Medium' ), url (" FiraSans-Medium.woff" ) format (' woff' );
16
+ }
17
+
18
+ /* See SourceSerifPro-LICENSE.txt for the Source Serif Pro license. */
19
+ @font-face {
20
+ font-family : ' Source Serif Pro' ;
21
+ font-style : normal ;
22
+ font-weight : 400 ;
23
+ src : local (' Source Serif Pro' ), url (" SourceSerifPro-Regular.ttf.woff" ) format (' woff' );
24
+ }
25
+ @font-face {
26
+ font-family : ' Source Serif Pro' ;
27
+ font-style : italic ;
28
+ font-weight : 400 ;
29
+ src : local (' Source Serif Pro Italic' ), url (" SourceSerifPro-It.ttf.woff" ) format (' woff' );
30
+ }
31
+ @font-face {
32
+ font-family : ' Source Serif Pro' ;
33
+ font-style : normal ;
34
+ font-weight : 700 ;
35
+ src : local (' Source Serif Pro Bold' ), url (" SourceSerifPro-Bold.ttf.woff" ) format (' woff' );
36
+ }
37
+
38
+ /* See SourceCodePro-LICENSE.txt for the Source Code Pro license. */
39
+ @font-face {
40
+ font-family : ' Source Code Pro' ;
41
+ font-style : normal ;
42
+ font-weight : 400 ;
43
+ /* Avoid using locally installed font because bad versions are in circulation:
44
+ * see https://github.com/rust-lang/rust/issues/24355 */
45
+ src : url (" SourceCodePro-Regular.woff" ) format (' woff' );
46
+ }
47
+ @font-face {
48
+ font-family : ' Source Code Pro' ;
49
+ font-style : normal ;
50
+ font-weight : 600 ;
51
+ src : url (" SourceCodePro-Semibold.woff" ) format (' woff' );
52
+ }
53
+
4
54
html ,
5
55
input ,
6
56
select ,
@@ -25,12 +75,62 @@ body {
25
75
padding : 0 ;
26
76
margin : 0 ;
27
77
78
+ * {
79
+ -webkit-box-sizing : border-box ;
80
+ -moz-box-sizing : border-box ;
81
+ box-sizing : border-box ;
82
+ }
83
+
84
+ h1 {
85
+ font-size : 1.5em ;
86
+ }
87
+ h3 {
88
+ font-size : 1.3em ;
89
+ }
90
+ h1 , h2 , h3 , h4 {
91
+ font-family : " Fira Sans" ,sans-serif ;
92
+ font-weight : 500 ;
93
+ margin : 20px 0 15px 0 ;
94
+ padding-bottom : 6px ;
95
+ }
96
+ h2 , h3 , h4 {
97
+ border-bottom : 1px solid ;
98
+ }
99
+ pre {
100
+ background-color : #F5F5F5 ;
101
+ padding : 14px ;
102
+ }
103
+ code , kbd , pre , samp {
104
+ font-family : " Source Code Pro" ,monospace ;
105
+ }
106
+ a {
107
+ text-decoration : none ;
108
+ background : transparent ;
109
+ }
110
+ p {
111
+ margin : 0 0 .6em 0 ;
112
+ }
113
+ ol , ul {
114
+ padding-left : 25px ;
115
+ }
116
+
28
117
input , #search {
29
118
background-color : var (--color-background-input );
30
119
color : var (--input-color );
120
+ line-height : normal ;
31
121
}
32
122
33
123
#search {
124
+ -moz-box-sizing : border-box !important ;
125
+ box-sizing : border-box !important ;
126
+ outline : none ;
127
+ border : none ;
128
+ border-radius : 1px ;
129
+ margin-top : 5px ;
130
+ padding : 10px 16px ;
131
+ font-size : 17px ;
132
+ width : 100% ;
133
+
34
134
box-shadow : 0 0 0 1px var (--color-border ), 0 0 0 1px var (--color-border );
35
135
transition : box-shadow 150ms ease-in-out ;
36
136
}
@@ -89,7 +189,8 @@ div.landing {
89
189
90
190
h1 .brand {
91
191
font-size : 3em ;
92
- margin-bottom : 10px ;
192
+ margin : 20px 0 10px 0 ;
193
+ padding-bottom : 6px ;
93
194
color : var (--color-brand );
94
195
}
95
196
0 commit comments