Dragon-Knight/public/css/dk.css

220 lines
3.0 KiB
CSS

:root {
--font-size: 12px;
}
* {
box-sizing: border-box;
}
html {
font-size: var(--font-size);
font-family: sans-serif;
}
body {
background-image: url('/img/backgrounds/classic.jpg');
scrollbar-gutter: stable both-edges;
&.skin-1 {
background-image: url('/img/backgrounds/snowstorm.jpg');
}
}
div#game-container {
max-width: 1280px;
margin: 0 auto;
padding: 1rem;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: solid 2px black;
padding-bottom: 0.5rem;
}
main {
width: 100%;
display: flex;
margin-bottom: 0.5rem;
}
main > section {
padding: 0.75rem;
}
main > section > section {
margin-bottom: 2rem;
}
main section#left {
width: 180px;
flex-shrink: 0;
border-right: solid 2px black;
}
main section#middle {
flex-grow: 1;
}
main section#right {
width: 180px;
flex-shrink: 0;
border-left: solid 2px black;
}
footer {
display: flex;
justify-content: space-around;
border: solid 1px black;
background-color: #eeeeee;
font-size: 0.8rem;
padding: 0.5rem;
}
table {
border-style: none;
padding: 0px;
font-size: var(--font-size);
}
td {
border-style: none;
padding: 3px;
vertical-align: top;
}
a {
color: #663300;
text-decoration: none;
font-weight: bold;
cursor: pointer;
}
a:hover {
color: #330000;
}
.small {
font-size: 0.8rem;
}
.highlight {
color: red;
}
.light {
color: #999999;
}
.title {
border: solid 1px black;
background-color: #eeeeee;
font-weight: bold;
padding: 5px;
font-size: 1.2rem;
font-family: serif;
margin-bottom: 0.5rem;
}
.copyright {
border: solid 1px black;
background-color: #eeeeee;
font: 10px verdana;
}
.move-compass {
width: 128px;
height: 128px;
display: flex;
flex-direction: column;
background-image: url('/img/compass.webp');
margin: 0.5rem auto;
}
.move-compass div.mid {
display: flex;
}
.move-compass button {
background-color: transparent;
border: none;
color: transparent; /* Hide the text */
background-size: cover; /* Ensure the background image fills the button */
cursor: pointer;
}
.move-compass button:hover {
background-color: rgba(225, 16, 16, 0.5);
}
.move-compass button.north {
width: 128px;
height: 40px;
}
.move-compass button.west {
width: 63px;
height: 50px;
}
.move-compass button.east {
width: 63px;
height: 50px;
}
.move-compass button.south {
width: 128px;
height: 38px;
}
div.town-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
div.town-content div.options, div.town-content div.news {
grid-column: span 2;
}
div.stat-table div.stat-row {
display: flex;
justify-content: space-around;
gap: 0.5rem;
}
div.stat-bar {
position: relative;
}
div.stat-bar > div {
width: 100%;
position: absolute;
bottom: 0;
}
#babblebox > .messages {
max-height: 200px;
overflow-y: auto;
}
#babblebox > .messages .message {
padding: 0.25rem;
background-color: #eee;
&:nth-child(even) {
background-color: white;
}
}
#babblebox > form {
margin-top: 0 !important;
& > input[type="text"] {
width: 100%;
margin-bottom: 0.5rem;
}
}