-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
Copy pathpage.styl
241 lines (232 loc) Β· 4.88 KB
/
page.styl
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
@import "_common"
@import "_api"
@import "_animations"
@import "_header"
@import "_demo"
@import "_sponsor"
@import "_migration"
@import "_sidebar"
@import "_offline-menu"
@import "_team"
@import "_style-guide"
@import "_modal"
#header
box-shadow: 0 0 1px rgba(0,0,0,.25)
transition: background-color .3s ease-in-out
.content
position: relative
padding: 2.2em 0
max-width: 600px
margin: 0 auto
padding-left: 50px
&.api
> a:first-of-type > h2
margin-top: 0
padding-top: 0
ul
padding-left: 1.25em
line-height: 1.4em
ul, p:not(.tip)
padding-bottom: 0
margin: 1.2em 0
a.button
font-size: .9em
color: #fff
margin: .2em 0
width: 180px
text-align: center
padding: 12px 24px
display: inline-block
vertical-align: middle
img
max-width: 100%
span.light
color: $light
span.info
font-size: .85em
display: inline-block
vertical-align: middle
width: 280px
margin-left: 20px
h1
margin: 0 0 1em
h2, h3
pointer-events: none
a, button
pointer-events: auto
color: $dark
&:before
content: ""
display: block
margin-top: -1 * $heading-link-padding-top
height: $heading-link-padding-top
visibility: hidden
h2
margin: $h2-margin-top 0 .8em
padding-bottom: .7em
border-bottom: 1px solid $border
h3
margin: $h3-margin-top 0 1.2em
position: relative
&:after
content: "#"
color: $green
position: absolute
left: -0.7em
bottom: -2px
font-size: 1.2em
font-weight: bold
figure
margin: 1.2em 0
p, ul, ol
line-height: 1.6em
// HACK: Create area underneath paragraphs
// and lists that will be on top of heading
// anchors, for easier text highlighting.
margin: 1.2em 0 -1.2em
padding-bottom: 1.2em
position: relative
z-index: 1
ul, ol
padding-left: 1.5em
// FIX: Some link click targets are covered without this
position: inherit
a
color: $green
font-weight: 600
blockquote
margin: 2em 0
padding-left: 20px
border-left: 4px solid $green
p
font-weight: 600
margin-left: 0
margin-bottom: 0
padding-bottom: 0
iframe
margin: 1em 0
> table
border-spacing: 0
border-collapse: collapse
margin: 1.2em auto
padding: 0
display: block
overflow-x: auto
td, th
line-height: 1.5em
padding: .4em .8em
border: none
border: 1px solid #ddd
th
font-weight: bold
text-align: left
th, tr:nth-child(2n)
background-color: #f8f8f8
code
background-color: #efefef
p
&.tip, &.success
padding: 12px 24px 12px 30px
margin: 2em 0
border-left-width: 4px
border-left-style: solid
background-color: $codebg
position: relative
border-bottom-right-radius: $radius
border-top-right-radius: $radius
&:before
position: absolute
top: 14px
left: -12px
color: #fff
width: 20px
height: 20px
border-radius: 100%
text-align: center
line-height: 20px
font-weight: bold
font-family: $logo-font
font-size: 14px
code
background-color: #efefef
em
color: $medium
&.tip
border-left-color: $red
&:before
content: "!"
background-color: $red
&.success
border-left-color: $green
&:before
content: "\f00c"
font-family: FontAwesome
background-color: $green
.guide-links
margin-top: 2em
height: 1em
.footer
color: $light
margin-top: 2em
padding-top: 2em
border-top: 1px solid #e5e5e5
font-size: .9em
#main.fix-sidebar
position: static
.sidebar
position: fixed
@media screen and (min-width: 1590px)
#header
background-color: rgba(255,255,255,.4)
@media screen and (max-width: 1300px)
.content.with-sidebar
margin-left: 290px
#ad
z-index: 1
position: relative
padding: 0
bottom: 0
right: 0
float: right
padding: 0 0 20px 30px
@media screen and (max-width: 900px)
body
-webkit-text-size-adjust: none
font-size: 14px
#header
display: none
#logo
display: none
.nav-link
padding-bottom: 1px
&:hover, &.current
border-bottom: 2px solid $green
#mobile-bar
display: block
#main
padding: 2em 1.4em 0
.highlight pre
padding: 1.2em 1em
.content
padding-left: 0
&.with-sidebar
margin: auto
h2, h3
&:before
content: ""
display: block
margin-top: -1 * $mobile-heading-link-padding-top
height: $mobile-heading-link-padding-top
visibility: hidden
.footer
margin-left: 0
text-align: center
@media screen and (max-width: 560px)
#downloads
text-align: center
margin-bottom: 25px
.info
margin-top: 5px
margin-left: 0
iframe
margin: 0 !important