character-sheet/sheet.css
Arthur Lu f884e02c23 add modifiers and functionality
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-13 17:47:12 -07:00

91 lines
1.2 KiB
CSS

:root {
--page-color: antiquewhite;
--background-color: white;
--text-color: black;
--shadow-color: black;
}
* {
box-sizing: border-box;
}
p {
margin: 0px;
}
div.flex {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
gap: 10px;
}
div.grid {
display: grid;
align-items: center;
gap: 10px;
}
div.nowrap {
flex-wrap: nowrap;
}
@media (max-width: 600px) {
div.mobile {
display: block;
}
}
body {
min-height: 100vh;
background-color: var(--background-color);
padding: 20px;
}
main {
margin-left: auto;
margin-right: auto;
background-color: var(--page-color);
color: var(--text-color);
border-radius: 10px;
}
main > form > * {
border-bottom: 1px solid var(--text-color);
padding-top: 10px;
padding-bottom: 10px;
}
main > form > *:last-child {
border-bottom: none;
}
input, select {
border: none;
border-bottom: 1px dashed var(--text-color);
background-color: var(--page-color);
width: 100%;
}
input[type="number"] {
min-width: 4ch;
}
input[type="checkbox"] {
width: min-content;
}
label {
display: flex;
align-items: center;
gap: 10px;
}
h1 {
text-align: center;
}
.none {
display: none;
}