tabletop-companion/app/assets/stylesheets/layout.css

184 lines
3.0 KiB
CSS

@import "https://www.nerdfonts.com/assets/css/webfont.css";
* {
box-sizing: border-box;
}
body {
font-size: 1.1em;
background-color: var(--background-color);
min-width: 30em;
padding: 0;
margin: 0;
}
main {
background: linear-gradient(180deg, rgba(227,220,190,1) 0%, rgba(255,248,238,1) 100%);
display: flex;
flex-direction: column;
padding: 1em 1em 4em 1em;
min-height: calc(100vh - var(--header-height) - var(--footer-height));
}
@media(min-width: 800px) {
main, footer, header {
margin: 0 auto;
max-width: 80vw;
}
}
aside.flash {
background-color: var(--notice-bg-color);
color: var(--notice-text-color);
padding: 1em;
border-radius: var(--border-radius);
}
aside.alert {
background-color: var(--invalid-alert);
}
section.inset {
width: 70%;
max-width: 60em;
background-color: var(--inset-bg-color);
border-radius: var(--border-radius);
padding: 1em;
margin: 0 auto;
}
h1, h2 {
text-align: center;
}
header {
background: linear-gradient(180deg, rgba(34,45,113,1) 0%, rgba(22,90,157,1) 100%);
height: var(--header-height);
}
header h1 {
margin: 0;
padding: 1em;
img {
width: 100%;
max-width: 600px;
min-width: 400px;
}
}
header h1 a:link, header h1 a:visited {
color: var(--header-text-color);
text-decoration: none;
}
header nav {
ul {
display: flex;
justify-content: center;
margin: 0;
padding: 0;
}
li {
list-style-type: none;
padding: 0 .5em;
}
a:link, a:visited {
background-color: var(--button-bg-color);
color: var(--button-text-color);
border-radius: var(--border-radius);
text-decoration: none;
padding: .5em;
}
a:hover {
background-color: var(--button-hover-bg-color);
color: var(--button-hover-text-color);
}
}
hr {
width: 100%;
}
#modal:empty {
display: none;
}
#modal {
position: fixed;
background-color: rgba(0,0,0,0.8);
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 5000;
}
#modal > div {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80vw;
max-width: 800px;
min-width: 200px;
max-height: 800px;
min-height: 400px;
padding: 1em;
word-break: break-word;
border-radius: var(--border-radius);
background-color: var(--inset-bg-color);
}
.feature-box-icons {
display: flex;
gap: 1em;
flex-direction: row-reverse;
}
.feature-box h2 {
text-align: center;
}
.feature-box trix-editor {
grid-column: 1/3;
}
.nf {
color: var(--text-color);
}
.roll-button {
border-radius: var(--border-radius);
margin: .5em;
cursor: pointer;
box-shadow: 0 0 5px var(--shadow-color);
}
.roll-command-display {
min-width: fit-content;
font-size: .8em;
}
.roll-command-display:before {
content: "(";
}
.roll-command-display:after {
content: ")";
}
footer {
background-color: #111;
text-align: center;
padding: 1em;
margin: 0 auto;
font-size: .8em;
height: var(--footer-height);
a:link, a:visited {
color: var(--header-text-color);
text-decoration: none;
}
img {
display: block;
margin: 0 auto;
}
}