-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy path_text.scss
86 lines (68 loc) · 1.35 KB
/
_text.scss
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
.sd-text-justify {
text-align: justify !important;
}
.sd-text-left {
text-align: left !important;
}
.sd-text-right {
text-align: right !important;
}
.sd-text-center {
text-align: center !important;
}
.sd-font-weight-light {
font-weight: 300 !important;
}
.sd-font-weight-lighter {
font-weight: lighter !important;
}
.sd-font-weight-normal {
font-weight: 400 !important;
}
.sd-font-weight-bold {
font-weight: 700 !important;
}
.sd-font-weight-bolder {
font-weight: bolder !important;
}
.sd-font-italic {
font-style: italic !important;
}
.sd-text-decoration-none {
text-decoration: none !important;
}
.sd-text-lowercase {
text-transform: lowercase !important;
}
.sd-text-uppercase {
text-transform: uppercase !important;
}
.sd-text-capitalize {
text-transform: capitalize !important;
}
.sd-text-wrap {
white-space: normal !important;
}
.sd-text-nowrap {
white-space: nowrap !important;
}
// requires `display: inline-block` or `display: block`
.sd-text-truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
$font-sizes: (
1: calc(1.375rem + 1.5vw),
2: calc(1.325rem + 0.9vw),
3: calc(1.3rem + 0.6vw),
4: calc(1.275rem + 0.3vw),
5: 1.25rem,
6: 1rem
);
@each $id, $value in $font-sizes {
.sd-fs-#{$id}, .sd-fs-#{$id} > p {
font-size: $value !important;
line-height: unset !important;
}
}