1 | @import './colors/colors.scss';
|
2 | @import './colors/color-styles.scss';
|
3 |
|
4 | @import './layout/border.scss';
|
5 | @import './layout/float.scss';
|
6 | @import './layout/layout.scss';
|
7 | @import './layout/margin.scss';
|
8 | @import './layout/overflow.scss';
|
9 | @import './layout/padding.scss';
|
10 | @import './layout/position.scss';
|
11 | @import './layout/size.scss';
|
12 |
|
13 | @import './layering/opacity.scss';
|
14 | @import './layering/visibility.scss';
|
15 | @import './layering/z-index.scss';
|
16 |
|
17 | @import './cursor.scss';
|
18 | @import './mixins.scss';
|
19 | @import './text.scss';
|
20 |
|
21 | /**
|
22 | * ****************************************** REFERENCE ******************************************
|
23 | *
|
24 | * TODO Update util-styles reference (mad-utils) - in README
|
25 | *
|
26 | * ************** GENERAL RULES/PATTERNS ***************
|
27 | * Any number preceded by n (.classname-n#) indicates a negative value. e.g.:
|
28 | * .mt-n24 { margin-top: -24px }
|
29 | * vs.
|
30 | * .mt-24 { margin-top: 24px }
|
31 | *
|
32 | * Any number followed by p (classname-#p) indicates percentage e.g.:
|
33 | * .br-10p { border-radius: 10% }
|
34 | *
|
35 | * Any style with suffix -nl (classname-#-nl) indicates exclusion of last item in the set e.g.:
|
36 | * .bw-4-nl:not(:last-child) { border-width: 4px }
|
37 | * - applies a 4px wide border to all items in a set but the last
|
38 | *
|
39 | * ****************************************************
|
40 | * ********************** LAYOUT **********************
|
41 | *
|
42 | * ****** MARGIN ******
|
43 | * m: margin - all
|
44 | * mt: margin-top
|
45 | * mb: margin-bottom
|
46 | * mr: margin-right
|
47 | * ml: margin-left
|
48 | *
|
49 | * dmt-$1--smt-$2
|
50 | * $1: margin-top above 460 height
|
51 | * $2: margin-top below 460 height
|
52 | * dmb-$1--smb-$2
|
53 | * $1: margin-bottom above 460 height
|
54 | * $2: margin-bottom below 460 height
|
55 | *
|
56 | * ****** PADDING ******
|
57 | * p: padding - all
|
58 | * pt: padding-top
|
59 | * pb: padding-bottom
|
60 | * pr: padding-right
|
61 | * pl: padding-left
|
62 | *
|
63 | * p-inherit: padding-inherit
|
64 | *
|
65 | * ****** BORDER ******
|
66 | * bw: border-width
|
67 | * bbw: border-bottom-width
|
68 | * btw: border-top-width
|
69 | * blw: border-left-width
|
70 | * brw: border-right-width
|
71 | *
|
72 | * bs: border-style
|
73 | * bbs: border-bottom-style
|
74 | * bts: border-top-style
|
75 | * bls: border-left-style
|
76 | * brs: border-right-style
|
77 | *
|
78 | * br: border-radius
|
79 | * br-#p: border-radius by percentage
|
80 | *
|
81 | * bc: border-color
|
82 | * bbc: border-bottom-color
|
83 | * btc: border-top-color
|
84 | * blc: border-left-color
|
85 | * brc: border-right-color
|
86 | *
|
87 | * ## Misc ##
|
88 | * b-hidden: Hidden border
|
89 | * box-shadow-none: Eliminate box shadow
|
90 | * bl-5: Solid left border w/ width 5
|
91 | *
|
92 | * ****** SIZE ******
|
93 | * w: width
|
94 | * h: height
|
95 | * mw: max-width
|
96 | * mh: max-height
|
97 | * minw: min-width
|
98 | * minh: min-height
|
99 | *
|
100 | * note: sizes that end in p (as in w-100p) use a percentage rather than pixels
|
101 | *
|
102 | * ****** POSITION ******
|
103 | * pos: position || Available: pos-relative, pos-absolute, pos-static, pos-fixed
|
104 | *
|
105 | * numeric relative positions (examples):
|
106 | * zero positive negative
|
107 | * ---- -------- --------
|
108 | * top-0 top-1 top-n1
|
109 | * bottom-0 bottom-1 bottom-n1
|
110 | * right-0 right-1 right-n1
|
111 | * left-0 left-1 left-n1
|
112 | *
|
113 | * *********** FLEX **********
|
114 | * Flexbox container:
|
115 | * - flex
|
116 | * Inline flexbox container:
|
117 | * - inline-flex
|
118 | * Flexbox container, in row direction:
|
119 | * - flex row
|
120 | * Flexbox container, in col direction:
|
121 | * - flex col
|
122 | * Flexbox container, justified content:
|
123 | * - flex start - flex center - flex end
|
124 | * - flex space-around - flex space-between
|
125 | * Flexbox align-items:
|
126 | * - flex ai-start - flex ai-center - flex ai-end
|
127 | * - flex align-items-start - flex align-items-start - (etc...)
|
128 | * Flexbox align-self:
|
129 | * - align-self-start - align-self-center - align-self-end
|
130 | * - align-self-stretch
|
131 | *
|
132 | * ********** VERTICAL ALIGN **********
|
133 | * - va-middle - va-bottom - va-top
|
134 | *
|
135 | * *****************************************************
|
136 | * ********************* TEXT **************************
|
137 | * fs: font-size
|
138 | * fw: font-weight
|
139 | * ff: font-family
|
140 | * ts: text-shadow
|
141 | *
|
142 | * ls: letter-spacing
|
143 | * lh: line-height
|
144 | * ta: text-align
|
145 | * ti: text-indent
|
146 | * ws: whitespace
|
147 | * whitespace: whitespace
|
148 | *
|
149 | * Misc text:
|
150 | * uppercase, lowercase, capitalize
|
151 | * bold, no-bold, fw-300, fw-400, fw-400
|
152 | * underline, no-underline
|
153 | *
|
154 | * *****************************************************
|
155 | * ********************** COLORS ***********************
|
156 | * bg: background colour
|
157 | * bgfill: background colour - clobber all other background definitions
|
158 | *
|
159 | * Colour styles - examples (each has the following 5 categories, 3 examples given):
|
160 | * - white, light-gray, black
|
161 | * - bg-white, bg-light-gray, bg-black
|
162 | * - bg-white-hover, bg-light-gray-hover, bg-black-hover
|
163 | * - bg-white-active, bg-light-gray-active, bg-black-active
|
164 | * - border-white, border-light-active, border-black
|
165 | *
|
166 | * Colour list
|
167 | * - transparent
|
168 | *
|
169 | * - white
|
170 | * - faintest-gray, fainter-gray, faint-gray, lightest-gray, lighter-gray,
|
171 | * lighterish-gray, lightened-gray, light-gray, nearer-light-gray,
|
172 | * near-light-gray, mid-light-gray, dim-gray, upper-light-gray, light-mid-gray,
|
173 | * gray, mid-dark-gray, dark-gray, darker-gray, ultra-dark-gray
|
174 | * - black
|
175 | *
|
176 | * - dark-pink, red, mid-red, mid-dark-red, dark-red
|
177 | * - orange, slight-dark-orange
|
178 | * - yellow
|
179 | *
|
180 | * - forest-green, pale-green, bright-green, mid-green, mid-dark-green, dark-green
|
181 | * - cyan, dark-cyan
|
182 | *
|
183 | * - faintest-blue, fainter-blue, faint-blue,
|
184 | * palest-blue, paler-blue, pale-blue,
|
185 | * lighter-sky-blue, light-sky-blue, sky-blue, dark-sky-blue,
|
186 | * blue,
|
187 | * palest-dark-blue, paler-dark-blue, pale-dark-blue,
|
188 | * mid-dark-blue, mid-near-dark-blue, dark-blue
|
189 | *
|
190 | * - light-purple, mid-purple, dark-purple
|
191 | *
|
192 | * Colour variables are in ./scss/colors/colors.scss
|
193 | * Colour styles based on the colour vars are in ./scss/colors/color-styles.scss
|
194 | * All are exported in the util-styles.scss file.
|
195 | *
|
196 | *
|
197 | *******************************************************
|
198 | ************************ CURSOR ***********************
|
199 | * All are set to show up in hover and active states.
|
200 | * cur-none
|
201 | * cur-default
|
202 | * cur-pointer, pointer
|
203 | * cur-move
|
204 | * cur-col-resize
|
205 | * cur-row-resize
|
206 | * cur-help
|
207 | *
|
208 | *******************************************************
|
209 | ************************ OPACITY **********************
|
210 | * opa: opacity
|
211 | * Can have values from 0 (0.0) to 100 (1.0). e.g.:
|
212 | * - opa-0 - opa-1 - opa-2 - opa-3 - opa-4
|
213 | * - opa-5 - opa-6 - opa-10 - opa-15 - opa-20
|
214 | * - opa-25 - opa-30 - opa-35 - opa-45 - opa-46
|
215 | * - opa-47 - opa-50 - opa-55 - opa-70 - opa-75
|
216 | * - opa-80 - opa-90 - opa-91 - opa-95 - opa-99
|
217 | * - opa-100
|
218 | *
|
219 | * ****** MISC ******
|
220 | * float, f: float. float-right, float-left
|
221 | * states: state collection. Complimentary hover & active
|
222 | * va: vertical-align. va-middle, va-bottom, va-top
|
223 | * vis: visibility. e.g. vis-hidden. Also .hidden, .visible, .collapse
|
224 | * z, zi: z-index. e.g. z-n100, zi-1000, z-0, zi-1, z-5
|
225 | * ovx, ovy: overflow. e.g. ovx-auto, ovy-hidden, ovx-visible, ovy-overlay, ovx-scroll
|
226 | *
|
227 | * overflow-word-break: Break a word to wrap.
|
228 | */
|
229 |
|
230 | :global {
|
231 | /******************************************* HOVERS *******************************************/
|
232 | .states-lightergray-bg:hover {background-color: $lighterGray}
|
233 | .states-lightergray-bg:active {background-color: $lightGray}
|
234 |
|
235 | .states-standard:hover {
|
236 | cursor: pointer;
|
237 | background-color: $lighterGray;
|
238 | text-decoration: none;
|
239 | }
|
240 | .states-standard:active {
|
241 | cursor: pointer;
|
242 | background-color: $lightGray;
|
243 | text-decoration: none;
|
244 | }
|
245 |
|
246 | .states-faintblue-bg:hover {background-color: $fainterBlue}
|
247 | .states-faintblue-bg:active {background-color: $palestBlue}
|
248 |
|
249 | .haf-no-underline:focus,
|
250 | .haf-no-underline:active,
|
251 | .haf-no-underline:hover {
|
252 | text-decoration: none
|
253 | }
|
254 |
|
255 | .haf-gray-tiny:hover {
|
256 | color: gray;
|
257 | text-shadow: 0.1px 0.1px 0.1px $lightestGray;
|
258 | }
|
259 |
|
260 | /************************************** BACKGROUND-IMAGE **************************************/
|
261 | * * *.bg-img-none, {background-image: none}
|
262 | }
|