treehouse/static/css/page/tairu.css

211 lines
4.2 KiB
CSS
Raw Permalink Normal View History

2024-02-14 23:31:39 +01:00
.tileset-cardinal-directions-demo th-bc {
2024-07-22 20:34:42 +02:00
/* TODO djot: remove the first rule */
& .horizontal-tile-strip>p {
2024-02-14 23:31:39 +01:00
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
& .metal {
width: 48px;
height: 48px;
&>span {
font-size: 12px;
}
}
}
& .metal {
display: inline-block;
width: 56px;
height: 56px;
2024-06-13 21:50:09 +02:00
margin: var(--8px);
2024-02-20 22:36:47 +01:00
background-image: url('../../pic/01HPHVDRV0F0251MD0A2EG66C4-tilemap-heavy-metal-16+pixel+width160.png');
2024-02-14 23:31:39 +01:00
background-size: 400%;
2024-02-17 21:03:45 +01:00
image-rendering: pixelated;
2024-02-14 23:31:39 +01:00
position: relative;
}
& .east,
& .south,
& .west,
& .north {
--recursive-wght: 900;
--recursive-casl: 0.0;
--recursive-slnt: 0.0;
--recursive-mono: 1.0;
position: absolute;
color: #d3dce9;
2024-02-16 22:01:19 +01:00
text-shadow:
1px 0 0 #1a2039,
-1px 0 0 #1a2039,
0 1px 0 #1a2039,
0 -1px 0 #1a2039;
2024-02-14 23:31:39 +01:00
padding: 2px 4px;
}
& .east {
right: 0;
top: 50%;
transform: translateY(-50%);
}
& .south {
bottom: 0;
left: 50%;
transform: translateX(-50%);
}
& .west {
left: 0;
top: 50%;
transform: translateY(-50%);
}
& .north {
top: 0;
left: 50%;
transform: translateX(-50%);
}
& .off {
opacity: 0%;
}
& .x-0 {
background-position-x: 0%;
}
& .x-1 {
2024-02-16 22:01:19 +01:00
background-position-x: calc(100% / 3);
2024-02-14 23:31:39 +01:00
}
& .x-2 {
2024-02-16 22:01:19 +01:00
background-position-x: calc(200% / 3);
2024-02-14 23:31:39 +01:00
}
& .x-3 {
background-position-x: 100%;
}
& .y-0 {
background-position-y: 0%;
}
& .y-1 {
2024-02-16 22:01:19 +01:00
background-position-y: calc(100% / 3);
2024-02-14 23:31:39 +01:00
}
& .y-2 {
2024-02-16 22:01:19 +01:00
background-position-y: calc(200% / 3);
2024-02-14 23:31:39 +01:00
}
& .y-3 {
background-position-y: 100%;
}
}
2024-02-16 22:01:19 +01:00
.tileset-four-to-eight-demo th-bc {
& .directions-square {
--recursive-wght: 900;
--recursive-casl: 0.0;
--recursive-slnt: 0.0;
--recursive-mono: 1.0;
color: #d3dce9;
text-shadow:
1px 0 0 #1a2039,
-1px 0 0 #1a2039,
0 1px 0 #1a2039,
0 -1px 0 #1a2039;
2024-06-13 21:50:09 +02:00
margin-block: var(--8px);
2024-02-16 22:01:19 +01:00
margin-left: 16px;
padding-left: 0;
width: 72px;
height: 72px;
2024-02-20 22:36:47 +01:00
background-image: url('../../pic/01HPHVDRV0F0251MD0A2EG66C4-tilemap-heavy-metal-16+pixel+width160.png');
2024-02-16 22:01:19 +01:00
background-size: 400%;
background-position: 100% 100%;
2024-02-17 21:03:45 +01:00
image-rendering: pixelated;
2024-02-16 22:01:19 +01:00
position: relative;
2024-02-19 22:32:26 +01:00
&.bend {
2024-02-20 22:36:47 +01:00
background-image: url('../../pic/01HQ183RANGH4S7VZSG1ZGH0S5-the-tile+width72+pixel.png');
2024-02-19 22:32:26 +01:00
background-size: 100%;
background-position: 0 0;
background-repeat: no-repeat;
}
&.notabend {
2024-02-20 22:36:47 +01:00
background-image: url('../../pic/01HQ18E39K5F9Q5P41XAEVSEWK-the-also-tile.png');
2024-02-19 22:32:26 +01:00
background-size: 100%;
background-position: 0 0;
background-repeat: no-repeat;
}
2024-02-16 22:01:19 +01:00
li {
padding: 2px 4px;
position: absolute;
}
a {
text-decoration: none;
color: #d3dce9;
cursor: text;
}
& .east {
right: 0;
top: 50%;
transform: translateY(-50%);
}
& .south-east {
right: 0;
bottom: 0;
}
& .west {
left: 0;
top: 50%;
transform: translateY(-50%);
}
& .south-west {
left: 0;
bottom: 0;
}
& .north {
left: 50%;
top: 0;
transform: translateX(-50%);
}
& .north-west {
left: 0;
top: 0;
}
& .south {
left: 50%;
bottom: 0;
transform: translateX(-50%);
}
& .north-east {
right: 0;
top: 0;
}
&.e-s {
background-position: 0% 0%;
}
}
}