|
1 |
| -# flamescss :fire: :fire: :fire: |
2 |
| -A css-based web components made with Andela in-house project in mind. It's separated into components, just pick what you need and keep tweaking it till you get what you want or till you destroy it and probably have to re-write it yourself. :laughing: The flexibility that comes with `flames.css` is near perfect. You can pick what you need, either the `layout styles` or `the navbar styles` or `the buttons` and use it. You don't need to leave it as `flames.css`, you can rename it to `styles.css`, just modify it however you like, it's all about you. And one more thing, there is no file like `flames.css`, don't make it look like you are using a framework, it's not a framework, it's a UI store. :boy: :girl: . |
3 |
| - |
4 |
| - |
5 |
| -## Style Guide |
6 |
| -The current style guide. It's currently been worked on. |
7 |
| - |
8 |
| - |
9 |
| -### Hero |
10 |
| - |
11 |
| - |
12 |
| -## what you really need |
13 |
| - |
14 |
| -``` |
15 |
| -html { |
16 |
| - box-sizing: border-box; |
17 |
| - background-color: #fff; |
18 |
| - font-size: 16px; |
19 |
| - min-width: 300px; |
20 |
| - overflow-x: hidden; |
21 |
| - overflow-y: scroll; |
22 |
| - text-rendering: optimizeLegibility; |
23 |
| - text-size-adjust: 100%; |
24 |
| -} |
25 |
| -``` |
26 |
| - |
27 |
| -`*, *::before, *::after { |
28 |
| - box-sizing: inherit; } |
29 |
| - ` |
30 |
| - |
31 |
| -## Typography |
32 |
| ---- |
33 |
| -> style your anchor tag with sweet colors to override the default colors |
34 |
| -
|
35 |
| -``` |
36 |
| -a { |
37 |
| - color: #3273dc; |
38 |
| - cursor: pointer; |
39 |
| - text-decoration: none; |
40 |
| -} |
41 |
| -a:hover { |
42 |
| - color: #363636; |
43 |
| -} |
44 |
| -``` |
45 |
| - |
46 |
| -> override default paddings and margins for header tags like h1,h2,h3,h4,h5,h6 |
47 |
| -
|
48 |
| -``` |
49 |
| -h1, h2, h3, h4, h5, h6 { |
50 |
| - margin-top: 0; |
51 |
| - margin-bottom: 0.5rem; |
52 |
| -} |
53 |
| -``` |
54 |
| - |
55 |
| -> The paragraph tag, ordered list(ol), unordered list(ul) |
56 |
| -``` |
57 |
| -p, ol, ul, dl { |
58 |
| - margin-top: 0; |
59 |
| - margin-bottom: 1rem; |
60 |
| -} |
61 |
| -``` |
62 |
| - |
63 |
| -## Layout |
64 |
| -``` |
65 |
| - .container { |
66 |
| - width: 100%; |
67 |
| - padding: 0 0.9375rem; |
68 |
| - margin: 0 auto; |
69 |
| - position: relative; |
70 |
| - } |
71 |
| -
|
72 |
| - .container-fluid { |
73 |
| - padding: 0 0.9375rem; |
74 |
| - } |
75 |
| -
|
76 |
| - @media (min-width: 75rem) { |
77 |
| - .container { |
78 |
| - width: 71.25rem; |
79 |
| - } |
80 |
| - } |
81 |
| -
|
82 |
| - .columns { |
83 |
| - display: flex; |
84 |
| - flex-wrap: wrap; |
85 |
| - margin: 0 -0.9375rem; |
86 |
| - } |
87 |
| -
|
88 |
| - @media (min-width: 576px) { |
89 |
| - .container { |
90 |
| - max-width: 540px; |
91 |
| - } |
92 |
| - } |
93 |
| -
|
94 |
| - @media (min-width: 768px) { |
95 |
| - .container { |
96 |
| - max-width: 720px; |
97 |
| - } |
98 |
| - } |
99 |
| -
|
100 |
| - @media (min-width: 992px) { |
101 |
| - .container { |
102 |
| - max-width: 960px; |
103 |
| - } |
104 |
| - } |
105 |
| -
|
106 |
| - @media (min-width: 1200px) { |
107 |
| - .container { |
108 |
| - max-width: 1140px; |
109 |
| - } |
110 |
| - } |
111 |
| -
|
112 |
| - .col-1,.col-2, .col-3, .col-4, .col-5, .col-6, .col-7, |
113 |
| - .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-auto |
114 |
| - { |
115 |
| - position: relative; |
116 |
| - width: 100%; |
117 |
| - padding: 0 15px; |
118 |
| - } |
119 |
| -
|
120 |
| - @media (min-width: 768px) { |
121 |
| - .col { |
122 |
| - flex-basis: 0; |
123 |
| - flex-grow: 1; |
124 |
| - max-width: 100%; |
125 |
| - } |
126 |
| -
|
127 |
| - .col-auto { |
128 |
| - flex: 0 0 auto; |
129 |
| - width: auto; |
130 |
| - max-width: 100%; |
131 |
| - } |
132 |
| -
|
133 |
| - .col-1 { |
134 |
| - flex: 0 0 8.333333%; |
135 |
| - max-width: 8.333333%; |
136 |
| - } |
137 |
| -
|
138 |
| - .col-2 { |
139 |
| - flex: 0 0 16.666667%; |
140 |
| - max-width: 16.666667%; |
141 |
| - } |
142 |
| -
|
143 |
| - .col-3 { |
144 |
| - flex: 0 0 25%; |
145 |
| - max-width: 25%; |
146 |
| - } |
147 |
| -
|
148 |
| - .col-4 { |
149 |
| - flex: 0 0 33.333333%; |
150 |
| - max-width: 33.333333%; |
151 |
| - } |
152 |
| -
|
153 |
| - .col-5 { |
154 |
| - flex: 0 0 41.666667%; |
155 |
| - max-width: 41.666667%; |
156 |
| - } |
157 |
| -
|
158 |
| - .col-6 { |
159 |
| - flex: 0 0 50%; |
160 |
| - max-width: 50%; |
161 |
| - } |
162 |
| -
|
163 |
| - .col-7 { |
164 |
| - flex: 0 0 58.333333%; |
165 |
| - max-width: 58.333333%; |
166 |
| - } |
167 |
| -
|
168 |
| - .col-8 { |
169 |
| - flex: 0 0 66.666667%; |
170 |
| - max-width: 66.666667%; |
171 |
| - } |
172 |
| -
|
173 |
| - .col-9 { |
174 |
| - flex: 0 0 75%; |
175 |
| - max-width: 75%; |
176 |
| - } |
177 |
| -
|
178 |
| - .col-10 { |
179 |
| - flex: 0 0 83.333333%; |
180 |
| - max-width: 83.333333%; |
181 |
| - } |
182 |
| -
|
183 |
| - .col-11 { |
184 |
| - flex: 0 0 91.666667%; |
185 |
| - max-width: 91.666667%; |
186 |
| - } |
187 |
| -
|
188 |
| - .col-12 { |
189 |
| - flex: 0 0 100%; |
190 |
| - max-width: 100%; |
191 |
| - } |
192 |
| -
|
193 |
| - } |
194 |
| -``` |
195 |
| - |
196 |
| -## Buttons |
197 |
| - |
198 |
| -``` |
199 |
| -.button { |
200 |
| - display: inline-block; |
201 |
| - font-weight: 400; |
202 |
| - text-align: center; |
203 |
| - white-space: nowrap; |
204 |
| - vertical-align: middle; |
205 |
| - user-select: none; |
206 |
| - border: 1px solid transparent; |
207 |
| - padding: 0.625rem 1.25rem; |
208 |
| - font-size: 1rem; |
209 |
| - line-height: 1.5; |
210 |
| - border-radius: .25rem; |
211 |
| - cursor: pointer; |
212 |
| -} |
213 |
| -
|
214 |
| -.button:focus { |
215 |
| - outline: none; |
216 |
| -} |
217 |
| -
|
218 |
| -.button-dark { |
219 |
| - color: $light-grey; |
220 |
| - background-color: $color-black; |
221 |
| -} |
222 |
| -.button-dark:hover { |
223 |
| - background-color: $mid-black; |
224 |
| -} |
225 |
| -
|
226 |
| -.button-rectangle { |
227 |
| - border-radius: 0; |
228 |
| -} |
229 |
| -
|
230 |
| -.button-rounded { |
231 |
| - border-radius: 30px; |
232 |
| -} |
233 |
| -``` |
234 |
| - |
235 |
| -## Forms |
236 |
| - |
237 |
| -``` |
238 |
| -.input-field { |
239 |
| - display: block; |
240 |
| - max-width: 100%; |
241 |
| - width: 100%; |
242 |
| - padding: 0.625rem .75rem; |
243 |
| - font-size: 1rem; |
244 |
| - line-height: 1.6; |
245 |
| - color: $mid-black; |
246 |
| - background-color: #fff; |
247 |
| - background-clip: padding-box; |
248 |
| - border-radius: 3px; |
249 |
| - border: 1px solid rgba(0, 0, 0, 0.08); |
250 |
| -} |
251 |
| -
|
252 |
| -.input-field:focus { |
253 |
| - outline: none; |
254 |
| - border-color: rgba(42, 131, 214, 0.27); |
255 |
| - transition: border-color .15s ease-in-out; |
256 |
| -} |
257 |
| -
|
258 |
| -.input-field:disabled, |
259 |
| -.input-field:read-only { |
260 |
| - background-color: rgba(237, 237, 237, 0.2); |
261 |
| -} |
262 |
| -.input-field::-moz-placeholder, |
263 |
| -.textarea::-moz-placeholder { |
264 |
| - color: rgba(54, 54, 54, 0.3); |
265 |
| -} |
266 |
| -
|
267 |
| -.input-field::-webkit-input-placeholder { |
268 |
| - color: #c4c4c4; |
269 |
| -} |
270 |
| -
|
271 |
| -.label { |
272 |
| - color: #363636; |
273 |
| - display: block; |
274 |
| - font-size: 1rem; |
275 |
| - font-weight: 700; |
276 |
| -} |
277 |
| -
|
278 |
| -.label:not(:last-child) { |
279 |
| - margin-bottom: 0.5em; |
280 |
| -} |
281 |
| -
|
282 |
| -.input-control { |
283 |
| - margin-bottom: 10px; |
284 |
| -} |
285 |
| -
|
286 |
| -.form-horizontal { |
287 |
| - width: 100%; |
288 |
| - display: flex; |
289 |
| - justify-content: flex-start; |
290 |
| -} |
291 |
| -
|
292 |
| -.form-vertical { |
293 |
| - position: relative; |
294 |
| -} |
295 |
| -
|
296 |
| -.textarea { |
297 |
| - resize: none; |
298 |
| -} |
299 |
| -``` |
300 |
| - |
301 |
| -## Creator |
302 |
| -**Sullivan Wisdom** |
303 |
| - |
304 |
| -## Inspiration(s) |
305 |
| -- [Bulma.css](bulma.io) |
306 |
| -- [Bootstrap.css](https://getbootstrap.com/) |
307 |
| -- [Skeleton.css](http://getskeleton.com/) |
308 |
| -- [Spectre.css](https://picturepan2.github.io/spectre/index.html) |
| 1 | +#python |
0 commit comments