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

178 lines
2.9 KiB
CSS
Raw Normal View History

2024-06-18 07:43:39 +00:00
@import "https://www.nerdfonts.com/assets/css/webfont.css";
2024-04-21 12:45:31 +00:00
* {
box-sizing: border-box;
}
body {
font-size: 1.1em;
2024-05-30 16:08:51 +00:00
background-color: var(--background-color);
min-width: 30em;
2024-06-27 14:40:51 +00:00
padding: 0;
margin: 0;
2024-04-21 12:45:31 +00:00
}
main {
2024-05-30 16:08:51 +00:00
background: linear-gradient(180deg, rgba(227,220,190,1) 0%, rgba(255,248,238,1) 100%);
2024-04-21 12:45:31 +00:00
display: flex;
flex-direction: column;
2024-06-27 08:43:26 +00:00
padding: 1em 1em 4em 1em;
2024-05-30 16:08:51 +00:00
min-height: calc(100vh - var(--header-height));
2024-04-21 12:45:31 +00:00
}
2024-06-27 14:40:51 +00:00
@media(min-width: 800px) {
main, footer, header {
margin: 0 auto;
max-width: 80vw;
}
}
2024-05-26 08:51:17 +00:00
aside.flash {
background-color: var(--notice-bg-color);
color: var(--notice-text-color);
padding: 1em;
border-radius: var(--border-radius);
}
2024-05-29 07:46:31 +00:00
aside.alert {
background-color: var(--invalid-alert);
}
2024-04-21 12:45:31 +00:00
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;
}
2024-05-26 08:51:17 +00:00
2024-05-30 16:08:51 +00:00
header {
background: linear-gradient(180deg, rgba(34,45,113,1) 0%, rgba(22,90,157,1) 100%);
height: var(--header-height);
}
header h1 {
2024-06-27 14:40:51 +00:00
margin: 0;
padding: 1em;
2024-05-30 16:08:51 +00:00
}
header h1 a:link, header h1 a:visited {
color: var(--header-text-color);
text-decoration: none;
}
2024-05-26 08:51:17 +00:00
header nav {
ul {
display: flex;
justify-content: center;
2024-06-27 14:40:51 +00:00
margin: 0;
padding: 0;
2024-05-26 08:51:17 +00:00
}
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);
}
}
2024-05-30 14:30:25 +00:00
hr {
width: 100%;
}
2024-06-21 08:09:19 +00:00
#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;
}
2024-06-21 09:57:03 +00:00
#modal > div {
2024-06-21 08:09:19 +00:00
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);
}
2024-06-27 13:03:56 +00:00
.feature-box-icons {
display: flex;
gap: 1em;
flex-direction: row-reverse;
}
2024-06-21 08:09:19 +00:00
.feature-box h2 {
text-align: center;
}
2024-06-21 09:57:03 +00:00
.feature-box trix-editor {
grid-column: 1/3;
}
2024-06-21 08:09:19 +00:00
.nf {
color: var(--text-color);
}
.roll-button {
border-radius: var(--border-radius);
2024-06-27 08:33:46 +00:00
margin: .5em;
2024-06-21 08:09:19 +00:00
cursor: pointer;
box-shadow: 0 0 5px var(--shadow-color);
}
2024-06-27 08:33:46 +00:00
.roll-command-display {
min-width: fit-content;
font-size: .8em;
}
.roll-command-display:before {
content: "(";
}
.roll-command-display:after {
content: ")";
}
2024-06-27 08:43:26 +00:00
footer {
background-color: #111;
text-align: center;
padding: 1em;
margin: 0 auto;
font-size: .8em;
a:link, a:visited {
color: var(--header-text-color);
text-decoration: none;
}
img {
display: block;
margin: 0 auto;
}
}