-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.scss
106 lines (95 loc) · 1.94 KB
/
styles.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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap");
$Red: hsl(0, 78%, 62%);
$Cyan: hsl(180, 62%, 55%);
$Orange: hsl(34, 97%, 64%);
$Blue: hsl(212, 86%, 64%);
$VeryDarkBlue: hsl(234, 12%, 34%);
$GrayishBlue: hsl(229, 6%, 66%);
$VeryLightGray: hsl(0, 0%, 98%);
*,
::after,
::before {
box-sizing: border-box;
}
body {
font-family: "Poppins", sans-serif;
font-size: 15px;
background-color: $VeryLightGray;
min-height: 100vh;
padding-top: 85px;
@media (max-width: 768px) {
padding: 30px;
}
}
main {
max-width: 1440px;
margin-left: auto;
margin-right: auto;
text-align: center;
h1 {
text-align: center;
font-size: 2.5em;
font-weight: 200;
color: $VeryDarkBlue;
span {
display: block;
font-weight: bold;
}
}
p {
max-width: calc(1440px / 2);
margin-left: auto;
margin-right: auto;
color: $GrayishBlue;
}
section {
article:nth-child(1) {
transform: translateY(50%);
}
article:nth-child(2) {
border-top-color: $Red;
}
article:nth-child(3) {
transform: translateY(50%);
border-top-color: $Blue;
}
article:nth-child(4) {
border-top-color: $Orange;
}
@media (max-width: 768px) {
article:nth-child(1) {
transform: translateY(0%);
}
article:nth-child(3) {
transform: translateY(0%);
}
}
}
article {
width: 25%;
height: 250px;
display: inline-block;
background: white;
position: relative;
text-align: left;
padding: 30px;
border-top: 5px solid $Cyan;
box-shadow: 0px 10px 20px rgba($GrayishBlue, 0.4);
color: $GrayishBlue;
margin: 15px;
@media (max-width: 768px) {
width: 100%;
margin: 0px;
margin-bottom: 30px;
}
h2 {
color: $VeryDarkBlue;
padding-right: 30px;
}
img {
position: absolute;
bottom: 15px;
right: 20px;
}
}
}