chore: fixes
This commit is contained in:
parent
6afbb03b3e
commit
bcd3f67e4e
1 changed files with 48 additions and 16 deletions
|
|
@ -817,6 +817,9 @@ a:hover {
|
|||
}
|
||||
|
||||
|
||||
/* =========================
|
||||
* BASE (1920 DESIGN)
|
||||
= *======================== */
|
||||
.left_banner,
|
||||
.right_banner {
|
||||
position: fixed;
|
||||
|
|
@ -836,35 +839,64 @@ a:hover {
|
|||
/* images */
|
||||
.left_banner {
|
||||
background-image: url("https://www.veltron.net/images/dragon.png");
|
||||
top: 250px;
|
||||
left: 40px;
|
||||
}
|
||||
|
||||
.right_banner {
|
||||
background-image: url("https://www.veltron.net/images/digimon.png");
|
||||
top: 150px;
|
||||
right: 40px;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
* TRUE RESPONSIVE SCALE (KEY FIX)
|
||||
* SMALL LAPTOPS (1200–1600)
|
||||
= *======================== */
|
||||
:root {
|
||||
--s: calc(100vw / 1920);
|
||||
}
|
||||
@media (max-width: 1600px) {
|
||||
.left_banner,
|
||||
.right_banner {
|
||||
width: 260px;
|
||||
height: 425px;
|
||||
}
|
||||
|
||||
/* clamp so it doesn't get too small or too huge */
|
||||
.left_banner,
|
||||
.right_banner {
|
||||
transform: scale(clamp(0.55, var(--s), 2.2));
|
||||
transform-origin: top left;
|
||||
.left_banner {
|
||||
top: 180px;
|
||||
left: 10px;
|
||||
}
|
||||
|
||||
.right_banner {
|
||||
top: 120px;
|
||||
right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* =========================
|
||||
* POSITION ALSO SCALES
|
||||
* 4K ONLY (make slightly bigger, NOT scaled math)
|
||||
= *======================== */
|
||||
.left_banner {
|
||||
top: calc(250px * var(--s));
|
||||
left: calc(40px * var(--s));
|
||||
@media (min-width: 3000px) {
|
||||
.left_banner,
|
||||
.right_banner {
|
||||
width: 520px;
|
||||
height: 850px;
|
||||
}
|
||||
|
||||
.left_banner {
|
||||
top: 320px;
|
||||
left: 80px;
|
||||
}
|
||||
|
||||
.right_banner {
|
||||
top: 200px;
|
||||
right: 80px;
|
||||
}
|
||||
}
|
||||
|
||||
.right_banner {
|
||||
top: calc(150px * var(--s));
|
||||
right: calc(40px * var(--s));
|
||||
/* =========================
|
||||
* MOBILE
|
||||
= *======================== */
|
||||
@media (max-width: 768px) {
|
||||
.left_banner,
|
||||
.right_banner {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue