Skip to content

Commit d85ec74

Browse files
author
jessicarush
committed
Style: improved format
1 parent 8846cbd commit d85ec74

File tree

1 file changed

+43
-26
lines changed

1 file changed

+43
-26
lines changed

css_template.css

Lines changed: 43 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
11
@charset "UTF-8";
22

3-
/* VARIABLES -------------------------------------------------------------- */
3+
/**
4+
* css_template.css
5+
*
6+
* Decscription and notes...
7+
*
8+
* Sections
9+
* - Varibales
10+
* - Typography
11+
* - Links
12+
* - Buttons
13+
* - Lists
14+
* - Tables
15+
* - Images
16+
* - Layout
17+
* - Forms
18+
* - Components
19+
* - Cosmetic
20+
* - Utility
21+
* - State
22+
* - Animation
23+
* - Hacks
24+
*
25+
**/
26+
27+
28+
/* -- Variables ----------------------------------------------------------- */
429

530
:root {
631
--heading-font: 'Open Sans', sans-serif;
@@ -14,9 +39,7 @@
1439
--emphasis-color-dark: rgb(100,100,120);
1540
}
1641

17-
18-
19-
/* DEFAULTS --------------------------------------------------------------- */
42+
/* -- Typography ---------------------------------------------------------- */
2043

2144
html {
2245
color: var(--body-color);
@@ -46,10 +69,6 @@ ul {
4669
padding: 0;
4770
}
4871

49-
50-
51-
/* TYPOGRAPHY ------------------------------------------------------------- */
52-
5372
.small-allcaps {
5473
color: var(--heading-color);
5574
font-size: .85rem;
@@ -59,9 +78,7 @@ ul {
5978
margin: 0;
6079
}
6180

62-
63-
64-
/* LINKS & BUTTONS -------------------------------------------------------- */
81+
/* -- Links --------------------------------------------------------------- */
6582

6683
.primary-link:link,
6784
.primary-link:visited {
@@ -75,6 +92,8 @@ ul {
7592
text-decoration: underline;
7693
}
7794

95+
/* -- Buttons ------------------------------------------------------------- */
96+
7897
.btn {
7998
background: none;
8099
border-radius: 2px;
@@ -127,18 +146,15 @@ ul {
127146
background: var(--emphasis-color-dark);
128147
}
129148

149+
/* -- Lists --------------------------------------------------------------- */
130150

151+
/* -- Tables -------------------------------------------------------------- */
131152

132-
/* LAYOUT ----------------------------------------------------------------- */
153+
/* -- Images -------------------------------------------------------------- */
133154

134-
.flex {
135-
display: flex;
136-
flex-wrap: wrap;
137-
}
155+
/* -- Layout -------------------------------------------------------------- */
138156

139-
140-
141-
/* COMPONENTS ------------------------------------------------------------ */
157+
/* -- Forms --------------------------------------------------------------- */
142158

143159
.subscribe-form {
144160
width: 100%;
@@ -177,25 +193,22 @@ ul {
177193
background: var(--emphasis-color-dark);
178194
}
179195

196+
/* -- Components ---------------------------------------------------------- */
180197

181-
182-
/* COSMETIC --------------------------------------------------------------- */
198+
/* -- Cosmetic ------------------------------------------------------------ */
183199

184200
.gradient-bg {
185201
background: var(--emphasis-color);
186202
background: linear-gradient(to bottom right, var(--emphasis-color-dark), var(--emphasis-color));
187203
}
188204

189-
190-
191-
/* UTILITY ---------------------------------------------------------------- */
205+
/* -- Utility ------------------------------------------------------------- */
192206

193207
.u-nomargin {
194208
margin: 0;
195209
}
196210

197-
198-
/* STATE ------------------------------------------------------------------ */
211+
/* -- State --------------------------------------------------------------- */
199212

200213
.is-hidden {
201214
display: none;
@@ -215,6 +228,8 @@ ul {
215228
border: 0;
216229
}
217230

231+
/* -- Animations --------------------------------------------------------------- */
232+
218233
@keyframes slide_from_bottom {
219234
0% {
220235
transform: translateY(300%);
@@ -229,3 +244,5 @@ ul {
229244
.animate {
230245
animation: slide_from_bottom 1s;
231246
}
247+
248+
/* -- Hacks --------------------------------------------------------------- */

0 commit comments

Comments
 (0)