-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
156 lines (131 loc) · 2.92 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
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700&family=Lexend+Deca&display=swap');
:root{
/*Colors*/
--firstBoxColor: hsl(31, 77%, 52%);
--secondBoxColor: hsl(184, 100%, 22%);
--thirdBoxColor: hsl(179, 100%, 13%);
--paragraphsColor: hsl(0, 0%, 100%, 0.75);
--lightColor: hsl(0, 0%, 95%);
/*Dark Mode*/
--darkColor: hsl(45, 8%, 10%);
--darkCardColor: hsl(250, 5%, 25%);
/*Fonts*/
--lexendDecaFont: 'Lexend Deca', sans-serif;
--bigShouldersDisplay: 'Big Shoulders Display', cursive;
}
body{
background-color: var(--lightColor);
min-height: 50vh;
display: flex;
flex-direction: column;
align-items: center;
font-size: 15px;
font-family: 'Lexend Deca', sans-serif;
font-weight: 400;
transition: all 0.4s ease;
}
.container{
max-width: 960px;
margin: 0 auto;
}
.grid-container{
display: grid;
grid-template-columns: 1fr 1fr 1fr;
overflow: hidden;
margin: 2rem;
border-radius: 12px;
}
.icon-container{
display: flex;
justify-content: flex-end;
align-items: center;
height: 50px;
}
.icon{
cursor: pointer;
font-size: 25px;
transition: all 0.6s ease;
}
/*------Main Box Styles------*/
.box{
padding: 40px;
}
.box h2{
font-family: 'Big Shoulders Display', cursive;
text-transform: uppercase;
color: var(--lightColor);
}
.box p{
color: var(--paragraphsColor);
line-height: 1.6;
}
.box a{
background-color: var(--lightColor);
padding: 10px 20px;
text-decoration: none;
border-radius: 20px;
display: inline-block;
margin-top: 50px;
transition: all 300ms ease;
}
.box a:hover{
border: 1px solid var(--lightColor);
color: var(--lightColor);
background-color: transparent;
transition: all 300ms ease;
}
/*------BOX1 styles------*/
.box1{
background-color: var(--firstBoxColor);
}
.box1 a{
color: var(--firstBoxColor);
}
/*------BOX2 styles------*/
.box2{
background-color: var(--secondBoxColor);
}
.box2 a{
color: var(--secondBoxColor);
}
/*------BOX3 styles------*/
.box3{
background-color: var(--thirdBoxColor);
}
.box3 a{
color: var(--thirdBoxColor);
}
/*------Dark Mode------*/
.dark-mode{
background-color: var(--darkColor);
transition: all 0.4s ease;
}
.card-dark-mode{
background-color: var(--darkCardColor);
transition: all 0.6s ease;
}
.box1 .btn-dark-mode{
color: var(--lightColor);
background-color: var(--firstBoxColor
);
}
.box2 .btn-dark-mode{
color: var(--lightColor);
background-color: var(--secondBoxColor);
}
.box3 .btn-dark-mode{
color: var(--lightColor);
background-color: var(--thirdBoxColor);
}
.icon-darkmode{
color: var(--lightColor);
}
/*------Media Query------*/
@media only screen and (max-width: 768px){
.grid-container{
grid-template-columns: 1fr;
}
.box {
border-bottom: 1px solid var(--darkColor);
}
}