-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroot.css
More file actions
210 lines (178 loc) · 4.98 KB
/
root.css
File metadata and controls
210 lines (178 loc) · 4.98 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
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
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");
:root {
/* === Color Definitions === */
/* Defining custom color variables for consistency throughout the styles */
--gold-crayola: hsl(38, 61%, 73%);
--quick-silver: hsla(0, 0%, 65%, 1);
--davys-grey: hsla(30, 3%, 34%, 1);
--smoky-black-1: hsla(40, 12%, 5%, 1);
--smoky-black-2: hsla(30, 8%, 5%, 1);
--smoky-black-3: hsla(0, 3%, 7%, 1);
--eerie-black-1: hsla(210, 4%, 9%, 1);
--eerie-black-2: hsla(210, 4%, 11%, 1);
--eerie-black-3: hsla(180, 2%, 8%, 1);
--eerie-black-4: hsla(0, 0%, 13%, 1);
--white: hsla(0, 0%, 100%, 1);
--white-alpha-20: hsla(0, 0%, 100%, 0.2);
--white-alpha-10: hsla(0, 0%, 100%, 0.1);
--black: hsla(0, 0%, 0%, 1);
--black-alpha-80: hsla(0, 0%, 0%, 0.8);
--black-alpha-15: hsla(0, 0%, 0%, 0.15);
/* === Gradient Definitions === */
--loading-text-gradient: linear-gradient(90deg,
transparent 0% 16.66%,
var(--smoky-black-3) 33.33% 50%,
transparent 66.66% 75%
);
--gradient-1: linear-gradient(to top,
hsla(0, 0%, 0%, 0.9),
hsla(0, 0%, 0%, 0.7),
transparent
);
}
/* ======================================================== General Reset =============================================================
Resetting styles to ensure uniform appearance across different browsers
f had la partie hadi b7ala kan7ydo default settings dyal l broswer bach l website dyalna yji kimma 7na bagbhin
*/
/* ======================================================== General Reset ============================================================= */
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
li { list-style: none; }
a, img, data, span, input, button, select, ion-icon, textarea {
display: block;
}
a {
color: inherit;
text-decoration: none;
}
img {
height: auto;
}
input, button, select, textarea {
background: none;
border: none;
font: inherit;
}
input, select, textarea {
width: 100%;
outline: none;
}
button { cursor: pointer; }
address {
font-style: normal;
}
/* ========================================= Basic HTML & Body Styles ========================================== */
html {
font-size: 10px; /* Base font size */
scroll-behavior: smooth; /* Smooth scrolling */
}
body {
font-family: var(--font-family); /* Consistent font */
color: var(--text-color);
background-color: var(--eerie-black-4); /* Background color */
line-height: 1.6;
overflow-x: hidden; /* Hides horizontal scrollbar */
}
/* === Scrollbar Customization === */
::-webkit-scrollbar {
width: 5px; /* Custom width for the scrollbar */
}
::-webkit-scrollbar-track {
background-color: transparent;
}
::-webkit-scrollbar-thumb {
background-color: var(--gold-crayola); /* Custom color for the scrollbar thumb */
}
/* === Button Styles === */
.btn {
position: relative;
color: var(--gold-crayola);
font-size: var(--fontSize-label-2);
font-weight: var(--weight-bold);
text-transform: uppercase;
letter-spacing: var(--letterSpacing-5);
max-width: max-content;
border: 2px solid var(--gold-crayola);
padding: 12px 45px;
overflow: hidden;
z-index: 1;
}
.btn::before {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
width: 200%;
height: 200%;
border-radius: var(--radius-circle);
background-color: var(--gold-crayola);
transition: var(--transition-2);
z-index: -1;
}
.btn .text { transition: var(--transition-1); }
.btn .text-2 {
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
min-width: max-content;
color: var(--smoky-black-1);
}
.btn:is(:hover, :focus-visible)::before { bottom: -50%; }
.btn:is(:hover, :focus-visible) .text-1 { transform: translateY(-40px); }
.btn:is(:hover, :focus-visible) .text-2 {
top: 50%;
transform: translate(-50%, -50%);
}
.btn-secondary {
background-color: var(--gold-crayola);
color: var(--black);
}
.btn-secondary::before { background-color: var(--smoky-black-1); }
.btn-secondary .text-2 { color: var(--white); }
/* === Separator === */
/* had separator katkhlina ndiro squares mrb3in li toul w l3rd dyalhom 8px w 3ndhom wahd line k7l entourage */
.separator {
width: 8px;
height: 8px;
border: 1px solid var(--gold-crayola);
transform: rotate(45deg);
}
/* === Section Subtitle === */
.section-subtitle {
position: relative;
color: var(--gold-crayola);
font-weight: var(--weight-bold);
text-transform: uppercase;
letter-spacing: var(--letterSpacing-2);
margin-block-end: 12px;
text-align: center;
}
.section-subtitle::after {
content: url('../images/separator.svg');
display: block;
width: 100px;
margin-inline: auto;
margin-block-start: 5px;
}
/* === Grid List === */
.grid-list {
display: grid;
gap: 40px;
}
/* === Shape === */
.shape {
display: none;
position: absolute;
max-width: max-content;
z-index: -1;
}
/* === Keyframes === */
@keyframes move {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(30px); }
}