-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstyle.css
More file actions
108 lines (92 loc) · 1.32 KB
/
style.css
File metadata and controls
108 lines (92 loc) · 1.32 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
:root {
--light: #ffffff;
--sky: #7f9cf5;
--purple: #97266d;
--dark: #81899b;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
height: 100vh;
overflow-x: hidden;
}
header {
text-align: center;
font-size: 30px;
padding: 50px 0;
}
.theme-switches {
display: flex;
justify-content: center;
}
.switch {
border: 2px solid black;
border-radius: 50px;
height: 30px;
width: 30px;
margin: 10px;
cursor: pointer;
}
.switch:hover {
transform: scale(1.2);
transition: 0.3s ease-in-out;
}
#switch-1 {
background-color: var(--light);
}
#switch-2 {
background-color: var(--sky);
}
#switch-3 {
background-color: var(--purple);
}
#switch-4 {
background-color: var(--dark);
}
.container {
max-width: 80%;
margin: 0 auto;
}
.box {
display: flex;
justify-content: space-around;
margin-top: 100px;
}
.box img {
max-height: 300px;
width: auto;
border-radius: 20px;
margin: 20px;
}
.text {
width: 50%;
}
.text h3 {
font-size: 35px;
padding: 30px 0;
font-weight: 600;
}
.text p {
font-size: 20px;
font-weight: 400;
}
/* Media Query */
@media (max-width: 768px) {
header h1 {
font-size: 25px;
}
.box {
display: flex;
flex-wrap: wrap;
}
.box img {
max-width: 80vw;
}
.text {
width: 80%;
}
}