forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypography.styl
More file actions
189 lines (164 loc) · 3.1 KB
/
typography.styl
File metadata and controls
189 lines (164 loc) · 3.1 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
body
min-width 200px
font-family $typography-font-family
-ms-text-size-adjust 100%
-webkit-text-size-adjust 100%
-webkit-font-smoothing antialiased
-moz-osx-font-smoothing grayscale
font-smoothing antialiased
background $body-background
color $body-color
a
color $link-color
text-decoration none
cursor pointer
outline 0
transition color .25s
&:hover
color $link-color-active
&:active, &:hover
outline-width 0
h1, h2, h3, h4, h5, h6
font-weight 400
line-height 110%
-webkit-font-smoothing antialised
h1
font-size 4.2rem
letter-spacing -.04em
margin 2.1rem 0 1.68rem
font-weight 300
h2
font-size 3.56rem
letter-spacing -.02em
margin 1.78rem 0 1.424rem
h3
font-size 2.92rem
margin 1.46rem 0 1.168rem
h4
font-size 2.28rem
margin 1.14rem 0 .912rem
h5
font-size 1.64rem
margin .82rem 0 .656rem
-moz-osx-font-smoothing grayscale
h6
font-size 1rem
letter-spacing .02em
margin .5rem 0 .4rem
font-weight 500
p
font-size 1rem
letter-spacing 0
margin 0 0 1rem
line-height 24px
padding 0
-webkit-font-smoothing antialiased
&.caption
font-weight 300
&:not(:first-child)
margin-top 2rem
.token
color opposite-non-color($primary)
background alpha($primary, .7)
border-radius $generic-border-radius
padding 3px 5px
font-size 90%
.uppercase
text-transform uppercase
.lowercase
text-transform lowercase
.capitalize
text-transform capitalize
+prefix-classes('text-')
.center
text-align center
.left
text-align left
.right
text-align right
.justify
text-align justify
hyphens auto
.italic
font-style italic
.bold
font-weight bold
.light-paragraph
font-weight 300
.thin-paragraph
font-weight 100
small
font-size 80%
big
font-size 170%
sub
bottom -.25em
sup
top -.5em
.strong
font-weight bold
.emphasize
font-style italic
blockquote
padding 10px 20px
margin 0 0 20px
font-size 17.5px
border-left 5px solid $primary
&.text-right
padding-right 15px
padding-left 0
border-right 5px solid $primary
border-left 0
text-align right
small
display block
line-height 1.4
color $faded
&:before
content '\2014 \00A0'
.quote
padding 10px 20px
margin 0 0 20px
border-left 5px solid $primary
&.text-right
padding-right 15px
padding-left 0
border-right 5px solid $primary
border-left 0
text-align right
dt
font-weight bold
dd
margin-left 0
dt, dd
line-height 1.4
dl
margin-top 0
margin-bottom 20px
&.horizontal
dt
float left
width 25%
clear left
text-align right
overflow hidden
text-overflow ellipsis
white-space nowrap
dd
margin-left 30%
::-webkit-selection,
::-moz-selection,
::selection
background $primary
color alpha(opposite-non-color($primary), .87)
textarea::-webkit-selection,
input::-webkit-selection,
textarea::-moz-selection,
input::-moz-selection,
textarea::selection,
input::selection
background alpha($primary, .4)
color alpha(opposite-non-color($primary), .87)
*:-webkit-full-screen // @stylint ignore
width 100%
height 100%