change units in CSS to properly scaled rem

yeah I should've done that from the start should have I
This commit is contained in:
りき萌 2024-12-10 23:21:36 +01:00
parent 6d3037791a
commit ae9273cdff
6 changed files with 138 additions and 144 deletions

View file

@ -1,6 +1,6 @@
h1.page-title {
--recursive-wght: 900;
font-size: 3.5rem;
font-size: 5.6rem;
}
@media (hover: none) {

View file

@ -1,6 +1,6 @@
.tileset-cardinal-directions-demo th-bc {
/* TODO djot: remove the first rule */
& .horizontal-tile-strip>p {
& .horizontal-tile-strip > p {
display: flex;
flex-direction: row;
justify-content: center;
@ -10,7 +10,7 @@
width: 48px;
height: 48px;
&>span {
& > span {
font-size: 12px;
}
}
@ -20,8 +20,8 @@
display: inline-block;
width: 56px;
height: 56px;
margin: var(--8px);
background-image: url('../../pic/01HPHVDRV0F0251MD0A2EG66C4-tilemap-heavy-metal-16+pixel+width160.png');
margin: 0.8rem;
background-image: url("../../pic/01HPHVDRV0F0251MD0A2EG66C4-tilemap-heavy-metal-16+pixel+width160.png");
background-size: 400%;
image-rendering: pixelated;
position: relative;
@ -32,9 +32,9 @@
& .west,
& .north {
--recursive-wght: 900;
--recursive-casl: 0.0;
--recursive-slnt: 0.0;
--recursive-mono: 1.0;
--recursive-casl: 0;
--recursive-slnt: 0;
--recursive-mono: 1;
position: absolute;
color: #d3dce9;
@ -110,9 +110,9 @@
.tileset-four-to-eight-demo th-bc {
& .directions-square {
--recursive-wght: 900;
--recursive-casl: 0.0;
--recursive-slnt: 0.0;
--recursive-mono: 1.0;
--recursive-casl: 0;
--recursive-slnt: 0;
--recursive-mono: 1;
color: #d3dce9;
text-shadow:
1px 0 0 #1a2039,
@ -120,14 +120,14 @@
0 1px 0 #1a2039,
0 -1px 0 #1a2039;
margin-block: var(--8px);
margin-block: 0.8rem;
margin-left: 16px;
padding-left: 0;
width: 72px;
height: 72px;
background-image: url('../../pic/01HPHVDRV0F0251MD0A2EG66C4-tilemap-heavy-metal-16+pixel+width160.png');
background-image: url("../../pic/01HPHVDRV0F0251MD0A2EG66C4-tilemap-heavy-metal-16+pixel+width160.png");
background-size: 400%;
background-position: 100% 100%;
image-rendering: pixelated;
@ -135,14 +135,14 @@
position: relative;
&.bend {
background-image: url('../../pic/01HQ183RANGH4S7VZSG1ZGH0S5-the-tile+width72+pixel.png');
background-image: url("../../pic/01HQ183RANGH4S7VZSG1ZGH0S5-the-tile+width72+pixel.png");
background-size: 100%;
background-position: 0 0;
background-repeat: no-repeat;
}
&.notabend {
background-image: url('../../pic/01HQ18E39K5F9Q5P41XAEVSEWK-the-also-tile.png');
background-image: url("../../pic/01HQ18E39K5F9Q5P41XAEVSEWK-the-also-tile.png");
background-size: 100%;
background-position: 0 0;
background-repeat: no-repeat;