-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
173 lines (140 loc) · 2.09 KB
/
style.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
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
/* 1. setting global style first */
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
margin: 0;
font-family: "Roboto", sans-serif;
font-size: 1.3rem;
}
/* 2. then setting general components */
img {
width: 100%;
}
h1 {
font-size: 3rem;
margin-top: 0;
}
h2 {
font-size: 2rem;
}
.logo {
margin-right: 1em;
}
.btn {
display: inline-block;
text-decoration: none;
text-transform: uppercase;
color: #23424a;
font-weight: 900;
background-color: #38cfd9;
padding: 0.75em 2em;
border-radius: 100px;
}
.btn:hover,
.btn:focus {
opacity: 0.75;
}
.container {
width: 80%;
max-width: 1100px;
margin: 0 auto;
}
.row {
/* display: flex => flex container */
display: flex;
justify-content: space-between;
/* can't use yet */
/* gap: 100px; */
}
.col {
/* these are now flex items */
width: 100%;
}
.col + .col {
margin-left: 30px;
}
header {
background: #136c72;
padding: 1em 0;
}
.nav {
width: 100%;
display: flex;
justify-content: space-between;
}
.nav__list {
padding: 0;
margin: 0;
list-style: none;
display: flex;
}
.nav__list--primary {
margin: 0 auto;
}
.nav__item + .nav__item {
margin-left: 1em;
}
.nav__link {
color: #fff;
text-decoration: none;
text-transform: uppercase;
}
.nav__link--button {
background: #fff;
color: #136c72;
padding: 0.25em 1em;
border-radius: 10em;
}
.nav__link:hover {
opacity: 0.75;
}
.hero {
padding: 100px 0;
background-color: #23424a;
color: #fff;
}
.hero__text {
width: 62%;
}
.hero__img {
width: 32%;
align-self: flex-start;
}
.hero p {
margin-bottom: 3em;
}
.content {
margin-top: 50px;
margin-bottom: 50px;
}
.content__text {
width: 62%;
}
.content__text h2 {
color: #136c72;
}
.content__sidebar {
width: 32%;
background-color: #136c72;
color: #fff;
text-align: center;
padding: 2em;
}
/* RWD design for desktop first. Here is styles for mobile */
@media (max-width: 850px) {
.row {
display: block;
}
.hero__text,
.hero__img,
.content__text,
.content__sidebar {
width: 100%;
}
.hero__img {
margin-top: 2em;
}
}