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

150 lines
2.6 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-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%);
max-width: 80vw;
2024-04-21 12:45:31 +00:00
display: flex;
flex-direction: column;
2024-05-30 16:08:51 +00:00
padding: 1em;
margin: 0 auto;
min-height: calc(100vh - var(--header-height));
2024-04-21 12:45:31 +00:00
}
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%);
position: relative;
padding: 0 50px;
margin-right: 2em;
height: var(--header-height);
}
/* Angled banner end */
header:before {
content: "";
width: 0;
height: 0;
border-top: calc(var(--header-height) / 2) solid transparent;
border-bottom: calc(var(--header-height) / 2) solid transparent;
border-right: calc(var(--header-height) / 2) solid var(--background-color);
position: absolute;
right:0;
}
header h1 {
2024-06-03 10:54:38 +00:00
padding: 1em 0;
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;
}
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);
}
.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);
scale: 1.4;
cursor: pointer;
box-shadow: 0 0 5px var(--shadow-color);
}