headline/view/static/main.css
Ondřej Nývlt ac690f2fb2 WIP
2023-08-16 21:09:18 +02:00

159 lines
2 KiB
CSS

:root {
--border-color: hsl(0 0% 80%);
--accent-color: blue;
--color-muted: hsl(0 0% 50%);
--radius-m: 0.5em;
--font-size-m: 1rem;
--font-size-s: 0.85rem;
--font-size-xs: 0.75rem;
--font-size-l: 1.25rem;
}
html {
box-sizing: border-box;
font-family: system-ui;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
* {
margin: 0;
}
body {
line-height: 1.5;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
input,
button,
textarea,
select {
font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
body {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: stretch;
}
.footer {
margin-top: auto;
padding: 1.5rem 0;
margin-top: 1.5rem;
border-top: 1px solid var(--border-color);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
ins {
background-color: green;
}
table,
th,
tr,
td {
text-align: inherit;
}
.pagination {
list-style-type: none;
padding: 0;
display: flex;
& .page-link {
display: block;
padding: 0.5em 1em;
}
& .page-item.active {
background-color: var(--accent-color);
}
}
.changeset {
padding: 1rem 1.5rem;
border: 1px solid var(--border-color);
border-radius: var(--radius-m);
margin-bottom: 1rem;
box-shadow: 0 2px 0 hsl(0 0% 50% / 20%);
}
.changeset-actions {
display: flex;
gap: 1rem;
margin-bottom: 0.75rem;
}
.changeset-feed-name,
.changeset-time,
.changeset-action {
font-weight: 500;
font-size: var(--font-size-s);
}
.changeset-feed-name,
.changeset-time {
/* color: var(--color-muted); */
}
.changeset-action {
display: inline-flex;
align-items: center;
gap: 0.5em;
font-weight: 500;
color: var(--color-muted);
text-decoration: none;
transition: color 200ms;
}
.changeset-action:first-of-type {
margin-left: 0.5em;
}
.changeset-action:hover {
color: var(--accent-color);
}
.changeset-title {
font-size: var(--font-size-l);
}
.changeset svg {
display: inline-block;
fill: currentColor;
width: 1.25em;
}
.changeset details[open] summary {
margin-bottom: 1rem;
}