Re-do a bunch of the styles for the Nethack page
This commit is contained in:
parent
9e11021ae3
commit
5606feeca1
6 changed files with 38 additions and 28 deletions
80
content/nethack/nethack.css
Normal file
80
content/nethack/nethack.css
Normal file
|
@ -0,0 +1,80 @@
|
|||
/* Eryn Wells <eryn@erynwells.me> */
|
||||
|
||||
:root {
|
||||
--logentry-background-color: var(--tag-background-color);
|
||||
--logentry-foreground-color: var(--tag-text-color);
|
||||
}
|
||||
|
||||
.logfile {
|
||||
margin-block-start: 0;
|
||||
margin-inline-start: 0;
|
||||
padding-inline-start: 0;
|
||||
}
|
||||
|
||||
.logfile > li {
|
||||
align-items: first baseline;
|
||||
color: var(--logentry-foreground-color);
|
||||
background-color: var(--logentry-background-color);
|
||||
border-radius: 6px;
|
||||
display: grid;
|
||||
grid-template-columns: 32px auto auto;
|
||||
row-gap: 1rem;
|
||||
margin-block-start: 2rem;
|
||||
margin-inline-start: 0;
|
||||
padding: 3rem;
|
||||
}
|
||||
|
||||
.logfile > li > .date {
|
||||
grid-column-start: 2;
|
||||
grid-row-start: 1;
|
||||
}
|
||||
|
||||
.logfile > li > h4.date {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.logfile > li > .character-descriptor {
|
||||
color: #aaa;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
grid-column-start: 3;
|
||||
grid-row-start: 1;
|
||||
text-align: right;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.logfile > li > p {
|
||||
grid-column-start: 2;
|
||||
grid-column-end: 4;
|
||||
grid-row-start: 2;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.logfile > li > table.stats {
|
||||
border: 0;
|
||||
grid-column-start: 2;
|
||||
grid-column-end: 4;
|
||||
grid-row-start: 3;
|
||||
margin-block-end: 0;
|
||||
width: 100%;
|
||||
-webkit-border-horizontal-spacing: 0;
|
||||
-webkit-border-vertical-spacing: 0;
|
||||
}
|
||||
|
||||
.logfile > li > table.stats > tbody > tr > td {
|
||||
border: 0;
|
||||
color: #aaa;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
padding: 0;
|
||||
text-transform: uppercase;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.logfile > li > table.stats > tbody > tr > td.score,
|
||||
.logfile > li > table.stats > tbody > tr > td.hp,
|
||||
.logfile > li > table.stats > tbody > tr > td.level {
|
||||
width: 16rem;
|
||||
text-align: right;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue