-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
90 lines (81 loc) · 1.81 KB
/
main.css
File metadata and controls
90 lines (81 loc) · 1.81 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
/*
0 - 600px: Phone
600 - 900px: Tablet portrait
900 - 1200px: Tablet landscape
[1200 - 1800] is where our normal styles apply
1800px + : Big desktop
$breakpoint arguement choices:
- phone
- tab-port
- tab-land
- big-desktop
ORDER: Base + typography > general layout + grid > page layout > components
1em = 16px
*/
@-webkit-keyframes fadeOut {
0% {
opacity: 1; }
100% {
opacity: 0; } }
@keyframes fadeOut {
0% {
opacity: 1; }
100% {
opacity: 0; } }
@-webkit-keyframes fadeIn {
0% {
opacity: 0; }
100% {
opacity: 1; } }
@keyframes fadeIn {
0% {
opacity: 0; }
100% {
opacity: 1; } }
*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: inherit; }
html {
/* 16 * 62.5 = 10 */
/* so 1rem = 10px if user doesn't change font-size */
font-size: 62.5% !important; }
body {
box-sizing: border-box; }
a:link,
a:visited {
text-decoration: none;
color: #fff;
cursor: pointer; }
button:link, button:visited {
border: none;
cursor: pointer;
text-decoration: none;
background-color: transparent; }
.my-row {
max-width: 114rem;
margin: 0 auto; }
.my-row:not(:last-child) {
margin-bottom: 8rem; }
.my-row [class^='my-col-'] {
float: left; }
.my-row [class^='my-col-']:not(:last-child) {
margin-right: 6rem; }
.my-row .my-col-1-of-2 {
width: calc((100% - 6rem) / 2); }
.my-row .my-col-1-of-3 {
width: calc((100% - 2 * 6rem) / 3); }
.my-row .my-col-2-of-3 {
width: calc(2 * ((100% - 2 * 6rem) / 3) + 6rem); }
.my-row .my-col-1-of-4 {
width: calc((100% - 3 * 6rem) / 4); }
.my-row .my-col-2-of-4 {
width: calc(2 * ((100% - 3 * 6rem) / 4) + 6rem); }
.my-row .my-col-3-of-4 {
width: calc(3 * ((100% - 3 * 6rem) / 4) + 2*6rem); }
.my-row::after {
content: '';
display: table;
clear: both; }