-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.scss
181 lines (146 loc) · 3.49 KB
/
index.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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
// Reset all of the CSS Styles
@import "./CSS_Reset";
@import url('https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i');
@import "./variables";
/*
========================================
Temp Classes and Mocking Classes
========================================
*/
.tcol {
background-color: $light-color;
width: 100%;
height: 7rem;
border-radius: 0.5em;
display: flex;
justify-content: center;
align-items: center;
&.sq {
&:before {
content:" ";
float: left;
display: block;
height: auto;
padding-top:100%;
}
}
}
/*
========================================
*/
/* Color Mixins and Classes */
@mixin fontColorLightness($bg) {
@if lightness($bg) > 50% {
color: #000;
} @else {
color: #fff;
}
}
@mixin bgHover($bg) {
background-color: darken($bg,5%);
}
// TODO: Fix this to be dynamic off a color list.
.bg {
&-primary {
$currentBG: $primary-color;
background-color: $currentBG;
@include fontColorLightness($currentBG);
&.hov {
&:hover{
@include bgHover($currentBG);
}
}
}
&-secondary {
$currentBG: $secondary-color;
background-color: $currentBG;
@include fontColorLightness($currentBG);
&.hoverable {
@include bgHover($currentBG);
}
}
&-light {
$currentBG: $light-color;
background-color: $currentBG;
@include fontColorLightness($currentBG);
&.hoverable {
@include bgHover($currentBG);
}
}
&-dark {
$currentBG: $dark-color;
background-color: $currentBG;
@include fontColorLightness($currentBG);
&.hoverable {
@include bgHover($currentBG);
}
}
&-good {
$currentBG: $good-color;
background-color: $currentBG;
@include fontColorLightness($currentBG);
&.hoverable {
@include bgHover($currentBG);
}
}
&-bad {
$currentBG: $bad-color;
background-color: $currentBG;
@include fontColorLightness($currentBG);
&.hoverable {
@include bgHover($currentBG);
}
}
// background-color: $currentBG;
}
/* Sections */
section.section {
margin-top: 4rem;
margin-bottom: 4rem;
&.large {
margin-top:6rem;
margin-bottom:6rem;
}
}
/* Buttons */
.btn {
padding: 0.75rem 1rem 0.75rem 1rem;
font-size: 1rem;
border-radius: 0.25rem;
border: none;
box-shadow: 0 0 5px rgba(0,0,0,0.15);
&.lg {
padding: 1rem 2rem 1rem 2rem;
font-size: 2rem;
}
&.md {
padding: 1rem 1.25rem 1rem 1.25rem;
font-size: 1.15rem;
}
&.sm {
padding: 0.5rem 0.75rem 0.5rem 0.75rem;
}
}
/* Articles */
/* Navigation */
/* Cards */
/* FLEX HELPERS */
@import "./typeography";
@import "./container";
@import "./columns";
/*
----------------------------------
TO DO LIST:
----------------------------------
Create background mixins to add to everything- create bg-color tags
Sections
Re-order variables
Helpers with margins, padding, and type
Create variables for column gridsize, dynamically create column tags for width and offset?
*/
/*
----------------------------------
KNOWN BUGS
----------------------------------
FIXED: Extra padding/margin on the first and last elements of a row-col
*/