-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
216 lines (180 loc) · 3.69 KB
/
main.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
#product-overview {
background: linear-gradient(to top, rgba(80, 68, 18, 0.6) 10%, transparent), url("images/freedom.jpg") center/cover no-repeat border-box, bisque;
/* KLUGE: do NOT use 100vw here, scrollbars will appear (only on Windows) */
width: 100%;
height: 33vh;
/* to allow #product-overview h1 to position itself relative to us */
position: relative;
}
/* slogan text
this is a combinator: h1 is a child of an element with id=product-overview
*/
#product-overview h1 {
color: white;
font-family: Georgia, sans-serif;
position: absolute;
bottom: 5%;
left: 5%;
font-size: 1.6rem;
}
.section-title {
color: rgb(250, 175, 83);
text-align: center;
}
.plan {
background-color: bisque;
text-align: center;
padding: 1rem;
margin: 0.5rem 0;
width: 100%;
}
.plan--highlighted {
background-color: rgb(243, 176, 95);
color: white;
}
.plan__annotation {
background-color: white;
color: rgb(243, 176, 95);
padding: 0.5rem;
box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.5);
border-radius: 0.5rem;
}
.plan__items {
margin: 0;
padding: 0;
list-style: none;
}
.plan__item {
margin: 0.5rem 0;
}
.plan__title {
color: rgb(255, 142, 4);
}
.plan__price {
color: grey
}
.plan--highlighted .plan__title {
color: white;
}
.plan--highlighted .plan__price {
color: rgb(175, 98, 3);
}
#key-features {
background-color: rgb(241, 60, 90);
color: white;
margin-top: 80px;
}
#key-features .section-title {
color: white;
margin: 2rem;
padding: 1rem;
}
.key-feature__items {
margin: 0;
padding: 0 0 1rem 0;
list-style: none;
text-align: center;
}
.key-feature__item-desc {
text-align: center;
font-weight: bold;
font-size: 1.3rem;
color: white;
}
.key-feature__image {
background-color: rgb(233, 165, 177);
width: 128px;
height: 128px;
border: 2px solid black;
border-radius: 50%;
margin: 0 auto;
padding: 1.5rem;
}
/***** MODAL ******/
.modal {
position: fixed;
display: none;
z-index: 200;
top: 20%;
left: 30%;
width: 40%;
background: white;
padding: 1rem;
border: 1px solid #ccc;
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}
.modal__title {
text-align: center;
margin: 0 0 1rem 0;
}
.modal__actions {
text-align: center;
}
.modal__action {
border: 1px solid #0e4f1f;
background: #0e4f1f;
text-decoration: none;
color: white;
font: inherit;
padding: 0.5rem 1rem;
cursor: pointer;
}
.modal__action:hover,
.modal__action:active {
background: #2ddf5c;
border-color: #2ddf5c;
}
.modal__action--negative {
background: red;
border-color: red;
}
.modal__action--negative:hover,
.modal__action--negative:active {
background: #ff5454;
border-color: #ff5454;
}
/* We are adjusting all styles to look good on mobile
and then defining a breakpoint with corresponding
styles for larger screens which have a width >= x.
*/
/* medium screens */
@media (min-width: 40rem) and (min-height: 40rem) {
#product-overview {
height: 40vh;
background-position: 50% 25%;
}
#product-overview h1 {
font-size: 3rem;
}
}
@media (min-width: 40rem) {
.plan__articles {
display: flex;
justify-content: center;
align-items: center;
}
.plan {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 28rem;
width: 30%;
min-width: 13rem;
max-width: 25rem;
}
.plan--highlighted {
/* X Y blur spread color */
/* last arg is opacity */
box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.5);
height: 30rem;
z-index: 5;
}
.key-feature__items {
display: flex;
justify-content: center;
}
.key-feature__item {
width: 30%;
max-width: 25rem;
}
}