Skip to content

Commit 8a53d16

Browse files
Enhance styles with CSS variables and layout adjustments
Fixed the overlapping footer
1 parent e0bb355 commit 8a53d16

1 file changed

Lines changed: 26 additions & 17 deletions

File tree

Wireframe/style.css

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
:root {
2+
--paper: oklch(100% 0 0);
3+
--ink: oklch(20% 0 0);
4+
--font: 100%/1.5 system-ui;
5+
--space: clamp(10px, 1vw + 10px, 40px);
6+
--line: 1px solid;
7+
--container: 1280px;
8+
--base: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 39%, rgba(0, 212, 255, 1) 100%);
9+
--cards: radial-gradient(circle, rgba(227, 233, 241, 1) 0%, rgba(227, 233, 241, 1) 12%, rgba(227, 233, 241, 1) 5%, rgba(226, 233, 240, 1) 36%, rgba(202, 219, 238, 1) 53%, rgba(191, 212, 237, 1) 60%, rgba(200, 217, 238, 1) 75%, rgba(215, 226, 239, 1) 100%, rgba(148, 187, 233, 1) 100%, rgba(242, 242, 242, 1) 100%);
10+
--text-sm: clamp(0.8rem, 0.17vw + 0.76rem, 0.89rem);
11+
--text-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem);
12+
--text-p: clamp(0.91rem, 0.61vw + 1.1rem, 1rem);
13+
--text-h2: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
14+
--text-h3: clamp(1rem, 8vw + 1rem, 2rem);
15+
--title: clamp(1rem, 6vw + 1rem, 3rem);
16+
--footer-h3: #f18930;
17+
}
18+
119
* {
220
margin: 0;
321
padding: 0;
@@ -15,7 +33,6 @@ body {
1533
color: #080000;
1634
font-family: 'Arial', sans-serif;
1735
line-height: 1.5;
18-
font-size: 1em;
1936
display: flex;
2037
flex-direction: column;
2138
}
@@ -42,7 +59,6 @@ body {
4259
border: 2px dashed #1a082c;
4360
border-radius: 10px;
4461
margin-bottom: 20px;
45-
4662
}
4763

4864
.hero {
@@ -56,14 +72,13 @@ body {
5672
padding-top: 45px;
5773
padding-left: 15px;
5874
padding-right: 15px;
59-
padding-bottom: 15px;
75+
padding-bottom: 80px;
6076
border: 2px solid #000;
6177
border-radius: 10px;
6278
margin-bottom: 20px;
6379
text-align: justify;
6480
margin-right: 20px;
6581
margin-left: 20px;
66-
6782
}
6883

6984
.main-article p,
@@ -110,8 +125,7 @@ body {
110125
margin-right: 20px;
111126
margin-left: 20px;
112127
text-align: justify;
113-
114-
128+
padding-bottom: 125px;
115129
}
116130

117131
.small-article {
@@ -145,30 +159,25 @@ footer {
145159
color: #1a082c;
146160
text-align: center;
147161
text-shadow: 2px 2px 4px rgba(225, 226, 237, 0.982);
148-
padding: 10px 15px;
149-
line-height: 1.3;
150-
font-size: 1em;
162+
line-height: 1.2;
151163
margin-top: auto;
152-
164+
width: 100%;
165+
clear: both;
153166
}
154167

155168
footer p {
169+
font-size: 16px;
156170
font-weight: bold;
157171
}
158172

159173
.footer-note {
160-
font-size: 22px;
174+
font-size: 16px;
161175
color: #1a082c;
162176
margin-bottom: 5px;
163177
text-shadow: 2px 2px 4px rgba(210, 213, 244, 0.982);
164-
padding-top: 10px;
165-
padding-bottom: 10px;
166-
padding-left: 15px;
167-
padding-right: 15px;
178+
padding-top: 5px;
168179
border-bottom: none;
169180
border-radius: 10px;
170-
171-
172181
}
173182

174183
.footer-note a:hover {

0 commit comments

Comments
 (0)