donation-site/styles/main.css

191 lines
3.6 KiB
CSS
Raw Normal View History

2024-05-31 13:12:53 -04:00
@import "normalize.css";
@import "fonts.css";
@import "theme.css";
2024-06-01 10:45:20 -04:00
@import "vars.css";
* {
box-sizing: border-box;
}
html, body {
height: 100%;
}
2024-05-31 13:12:53 -04:00
body {
2024-06-01 10:45:20 -04:00
display: flex;
flex-direction: column;
2024-05-31 13:12:53 -04:00
font-family: var(--font-sans);
background-color: var(--color-bg);
color: var(--color-fg);
2024-06-01 10:45:20 -04:00
> main {
flex-grow: 1;
}
2024-05-31 13:12:53 -04:00
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-sans-alt);
color: var(--color-headings);
}
a {
color: var(--color-links);
}
p {
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
}
pre {
margin-top: 1rem;
margin-bottom: 1rem;
border-radius: 5px;
display: block;
overflow: auto;
page-break-inside: avoid;
word-wrap: break-word;
font-family: var(--font-mono);
font-weight: 500;
background-color: var(--color-bg-01);
padding: 1rem;
}
.inline {
display: inline;
}
blockquote {
position: relative;
border-radius: 5px;
border: 1px solid var(--color-black);
border-left: 3rem solid var(--color-black);
padding: 1em;
margin: 1em 0;
&::before {
display: block;
position: absolute;
height: 1.5rem;
width: 1.5rem;
top: 50%;
margin-top: -0.75rem;
left: calc(-0.75rem - 1.5rem);
filter: var(--filter-bg);
content: "";
background-image: url("https://minio.fosterhangdaan.com/public/images/icons/tabler-icons/3.14.0/outline/quote.svg");
2024-05-31 13:12:53 -04:00
background-repeat: no-repeat !important;
background-size: contain !important;
}
&.info {
&::before {
background-image: url("https://minio.fosterhangdaan.com/public/images/icons/tabler-icons/3.14.0/outline/info-circle.svg");
2024-05-31 13:12:53 -04:00
}
color: var(--color-blue);
border-color: var(--color-blue);
}
&.success {
&::before {
background-image: url("https://minio.fosterhangdaan.com/public/images/icons/tabler-icons/3.14.0/outline/check.svg");
2024-05-31 13:12:53 -04:00
}
color: var(--color-success);
border-color: var(--color-success);
}
&.warning {
&::before {
background-image: url("https://minio.fosterhangdaan.com/public/images/icons/tabler-icons/3.14.0/outline/alert-triangle.svg");
2024-05-31 13:12:53 -04:00
}
color: var(--color-warn);
border-color: var(--color-warn);
}
&.danger {
&::before {
background-image: url("https://minio.fosterhangdaan.com/public/images/icons/tabler-icons/3.14.0/outline/circle-x.svg");
2024-05-31 13:12:53 -04:00
}
color: var(--color-error);
border-color: var(--color-error);
}
> p:first-child {
margin-top: 0;
}
> p:last-child {
margin-bottom: 0;
}
}
details {
> summary {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
list-style: none;
cursor: pointer;
font-weight: bold;
font-size: 1.4rem;
color: var(--color-green);
border-top: 1px solid var(--color-white);
&:hover {
background-color: var(--color-bg-01);
}
}
div.content {
padding: 1rem;
}
}
ul {
list-style: none;
padding-left: 0;
}
.home-container {
margin: 0 auto;
2024-06-01 10:45:20 -04:00
max-width: var(--max-page-width);
2024-05-31 13:12:53 -04:00
padding: 1rem;
> div.preamble {
margin: 2rem auto;
}
}
img.icon {
max-width: 1.5rem;
filter: var(--filter-green)
}
img.qrcode {
width: 16rem;
}
div.tag {
font-size: 0.8rem;
font-weight: normal;
font-family: var(--font-mono);
display: inline-block;
border-radius: 14px;
background-color: var(--color-yellow);
color: var(--color-bg);
padding: 0.3em 0.8em;
}
2024-06-01 10:45:20 -04:00
footer.body {
padding: 1rem;
display: flex;
justify-content: space-between;
margin: 0 auto;
max-width: var(--max-page-width);
border-top: 1px solid var(--color-fg);
width: 100%;
div.meta {
display: flex;
gap: 1rem;
}
}