forked from ConciseCSS/concise.css
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_helper.scss
More file actions
117 lines (81 loc) · 2.28 KB
/
_helper.scss
File metadata and controls
117 lines (81 loc) · 2.28 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
@if $use-helper == true {
//------------------------------------//
// $HELPER
//------------------------------------//
// Add/remove floats
.float-left { float: left !important; }
.float-right { float: right !important; }
.float-none { float: none !important; }
// Position elements
.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
.no-margin { margin: 0 !important; }
.icon-alone { display: inline-block; }
// Displaying content
.inline { display: block; }
@include breakpoint(extra-small) { .inline { display: inline; } }
.show {
display: block;
visibility: visible;
}
.hide {
display: none;
visibility: hidden;
}
.screen-reader {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
// Full-width elements
.full { width: 100%; }
img.full {
max-width: 100%;
height: auto;
display: block;
width: auto;
}
// Text alignment
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
// Font weights
.weight-light { font-weight: 300 !important; }
.weight-normal { font-weight: 400 !important; }
.weight-semibold { font-weight: 600 !important; }
// All-caps text
.text-uppercase { text-transform: uppercase; }
// Stylized ampersand
.amp { font: italic 110% Baskerville, "Goudy Old Style", "Palatino", "Book Antiqua", serif !important; }
// Hide text
.text-hide {
border: 0;
background-color: transparent;
color: transparent;
font: 0 / 0 a;
text-shadow: none;
}
// Caret icon
.caret {
border-top: 5px solid;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
display: inline-block;
margin: 0 0 3px 4px;
vertical-align: middle;
width: 0;
}
// Border radius
.border-radius { border-radius: $border-radius; }
// Pill style
.pill { border-radius: 25px; }
}