-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
212 lines (196 loc) · 10.4 KB
/
Copy pathstyles.css
File metadata and controls
212 lines (196 loc) · 10.4 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
211
212
* {
margin: 0px;
padding: 0px;
font-family: Century;
}
.header {
height: 80px;
background-size: cover;
background-position: center;
min-height: 100vh;
}
body {
font-family: 'Segoe UI', sans-serif;
margin: 0;
padding: 2rem;
background: #d6c6ad;
}
.laptop-section {
list-style-type: circle;
margin-bottom: 3rem;
background: rgb(245, 121, 121);
padding: 1rem;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.card-header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
}
.card-header img {
width: 120px;
height: auto;
border-radius: 8px;
}
.card-text h2 {
margin: 0;
font-size: 1.5rem;
color: #003366;
}
.card-text p {
margin: 0.5rem 0 0;
color: #555;
}
ul {
float: right;
list-style-type: decimal;
margin-top: 30px;
min-height: 400px;
margin-right: 60px font-size: 17px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'Poppins', sans-serif;
spacing: 1cm;
}
ul {
display: inline-block;
}
ul a {
text-decoration: none;
color: #0e0303;
padding: 5px 20px;
border: 1px solid #111010;
transition: 0.5s ease;
font-size: 11px;
font-weight: bold;
}
ul a:hover {
ul a:hover {
color: #ffcc00;
/* Changes text color on hover */
background-color: #333;
/* Adds a background color */
padding: 5px 10px;
/* Optional: adds spacing */
border-radius: 1px;
/* Optional: softens corners */
transition: all 0.3s ease;
/* Smooth animation */
cursor: pointer;
/* Changes cursor to pointer on hover */
}
background-color: #9eec0d;
color: #000;
}
ul .actve a {
ul a:active {
color: #ff6600;
/* Changes text color when the link is active */
background-color: #222;
/* Optional: adds background on click */
font-weight: bold;
/* Optional: emphasizes active state */
}
background-color: hwb(22 4% 9%);
color: #e90a0a;
}
.logo img {
float: left;
width: 150px;
height: auto;
}
.main {
max-width: 1200px;
margin: auto;
padding: 0 20px;
}
.
/* Media Queries */
@media (width>768px) {
nav {
position: static;
padding-block: 2rem 0;
padding-inline: 1rem;
max-width: var(--max-width);
margin-inline: auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 2rem;
}
title {
position: absolute;
top: 47%;
left: 50%;
transform: translate(-50%, -50%);
}
.title h1 {
color: #dd0e0e;
font-size: 70px;
}
.title h2 {
color: #0e0303;
font-size: 40px;
margin-top: 20px;
width: 1000px;
background-attachment: fixed;
background-color: #f9f9f9;
background-image: url(".jpeg");
background-size: cover;
}
.title p {
background-color: #f9f9f9;
font-size: 50px;
line-height-step: 50px;
margin-top: 10px;
width: 1000px;
}
.button {
position: absolute;
top: 54%;
left: 50%;
transform: translate(-50%, -50%);
}
.btn {
border: 1px solid #111010;
padding: 5px 20px;
color: #160202;
transition: 0.5s ease;
font-size: 18px;
text-decoration: none;
}
.btn:hover {
background-color: #fff;
color: #000;
}
.sub menu {
display: none;
top: 60%;
position: relative;
}
.sub-menu ul {
position: absolute
}
.main ul li:hover .sub-menu {
display: block;
position: absolute;
background-color: rgb(0, 45, 117);
margin-top: 12px;
margin-left: -8px;
}
.main ul li:hover .sub-menu ul {
display: block;
margin: 6px;
}
.main ul li:hover sub-menu ul li {
width: 95px;
padding: 75px;
border-bottom: 1px solid #1d0303;
background: transparent;
transition: 0.4 ease;
text-align: left;
border -radius: 0px;
}