style: refactor layout and replace fixed spacing with font-relative units
This commit is contained in:
+17
-16
@@ -1,10 +1,11 @@
|
||||
@import "variables";
|
||||
|
||||
.footer {
|
||||
padding: 40px 0;
|
||||
padding: calc(var(--font-theme-size) * 1.25) 0;
|
||||
flex-grow: 0;
|
||||
opacity: 0.65;
|
||||
position: relative;
|
||||
margin-top: auto;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
@@ -13,10 +14,10 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
max-width: 1200px;
|
||||
padding: calc(var(--font-theme-size) * 1.25);
|
||||
max-width: calc(var(--font-theme-size) * 75);
|
||||
margin: 0 auto;
|
||||
gap: 12px;
|
||||
gap: calc(var(--font-theme-size) * 0.75);
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
@@ -28,7 +29,7 @@
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 0.9rem;
|
||||
font-size: calc(var(--font-theme-size) * 0.9);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@@ -42,9 +43,9 @@
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
gap: calc(var(--font-theme-size) * 0.625);
|
||||
flex-wrap: wrap;
|
||||
font-size: 0.9rem;
|
||||
font-size: calc(var(--font-theme-size) * 0.9);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@@ -58,42 +59,42 @@
|
||||
margin: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
gap: calc(var(--font-theme-size) * 0.625);
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.footer-inner {
|
||||
padding: 15px 10px;
|
||||
gap: 10px;
|
||||
padding: calc(var(--font-theme-size) * 0.9375) calc(var(--font-theme-size) * 0.625);
|
||||
gap: calc(var(--font-theme-size) * 0.625);
|
||||
}
|
||||
|
||||
.footer-copyright-engine {
|
||||
font-size: 13px;
|
||||
font-size: calc(var(--font-theme-size) * 0.8125);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.footer-copyright-site {
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
gap: calc(var(--font-theme-size) * 0.5);
|
||||
font-size: calc(var(--font-theme-size) * 0.8125);
|
||||
}
|
||||
|
||||
.footer-icp p {
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
gap: calc(var(--font-theme-size) * 0.3125);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.footer-inner {
|
||||
padding: 12px 8px;
|
||||
padding: calc(var(--font-theme-size) * 0.75) calc(var(--font-theme-size) * 0.5);
|
||||
}
|
||||
|
||||
.footer-copyright-engine,
|
||||
.footer-copyright-site {
|
||||
font-size: 12px;
|
||||
font-size: calc(var(--font-theme-size) * 0.75);
|
||||
}
|
||||
|
||||
.footer-copyright-engine span,
|
||||
|
||||
Reference in New Issue
Block a user