-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
138 lines (115 loc) · 2.18 KB
/
styles.css
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
:root {
--color-brand-primary: #a1603b;
--color-brand-contrast: #fff;
--color-medium-gray: #898989;
--color-light-gray: #ccc;
--color-background: #E5E5E5;
--font-body: 'Segoe UI', Arial, Helvetica, sans-serif;
}
header {
background-color: var(--color-brand-primary);
}
html,
body {
margin: 0;
padding: 0;
font-family: var(--font-body);
background-color: var(--color-background);
}
nav ul {
margin: 0;
padding: 0;
}
nav > ul > li {
display: inline-block;
list-style: none;
margin: 0 1.5em 0 1.5em;
vertical-align: middle;
}
nav > ul > li:first-child {
margin: 0.5em;
padding: 0;
}
nav ul li a,
nav ul li a:active,
nav ul li a:hover,
nav ul li a:visited {
color: var(--color-brand-contrast);
text-decoration: none;
text-transform: uppercase;
font-weight: 600;
font-size: 1.25em;
}
h1 {
color: var(--color-brand-primary);
}
article{
padding: 2em;
}
#calculator {
box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
border: solid 1px var(--color-medium-gray);
border-radius: 1em;
padding: 1.5em;
width: 90%;
max-width: 325px;
background-color: var(--color-brand-contrast);
margin-top: 2em;
}
#calculator h2 {
margin: .5em 0 0.5em 0;
}
#calculator input {
padding: 5px;
border-radius: 3px;
border: solid 1px var(--color-medium-gray);
width: 150px;
}
footer {
margin: 3em 0;
padding: 1em;
background-color: var(--color-light-gray);
}
footer address {
font-style: normal;
}
footer address h2,
footer address p {
margin: 0;
}
footer address h2 {
font-size: 1.25em;
}
.logo-container {
display: none;
}
@media (min-width: 960px) {
main {
display: flex;
flex-direction: row-reverse;
}
article, aside {
display: block;
flex-basis: 0;
flex-shrink: 1;
padding: 0.75rem;
}
article {
flex: 4;
padding-right: 6em;
}
aside {
flex: 1;
}
footer {
padding-left: 20%;
}
.logo-container {
display: block;
text-align: center;
padding-top: 2em;
}
.logo-container img {
max-width: 120px;
}
}