mirror of
https://git.nolog.cz/NoLog.cz/headline.git
synced 2025-01-31 20:03:34 +01:00
229 lines
3.3 KiB
CSS
229 lines
3.3 KiB
CSS
/* Global */
|
|
|
|
:root {
|
|
--border-color: hsl(0 0% 80% / 60%);
|
|
--accent-color: hsl(225 90% 40%);
|
|
--color-muted: hsl(0 0% 50%);
|
|
--radius-s: 0.25em;
|
|
--radius-m: 0.5em;
|
|
--font-size-m: 1rem;
|
|
--font-size-s: 0.85rem;
|
|
--font-size-xs: 0.75rem;
|
|
--font-size-l: 1.25rem;
|
|
--box-shadow: 0 2px 0 hsl(0 0% 50% / 20%);
|
|
}
|
|
|
|
html {
|
|
box-sizing: border-box;
|
|
font-family: "Inter", 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;
|
|
}
|
|
|
|
.input {
|
|
border-radius: var(--radius-s);
|
|
border: 1px solid var(--border-color);
|
|
padding: 0.375rem 0.75rem;
|
|
font-size: var(--font-size-m);
|
|
transition: border-color 120ms, box-shadow 120ms;
|
|
}
|
|
|
|
.input:focus {
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 0 2px hsl(225 90% 40% / 50%);
|
|
outline: none;
|
|
}
|
|
|
|
.button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5em;
|
|
border-radius: var(--radius-s);
|
|
border: 1px solid var(--border-color);
|
|
padding: 0.375rem 0.75rem;
|
|
background: hsl(0 0% 95%);
|
|
font-size: var(--font-size-m);
|
|
transition: background-color 120ms;
|
|
color: hsl(0 0% 40%);
|
|
font-weight: 500;
|
|
font-size: 0.9em;
|
|
line-height: 1.5rem;
|
|
}
|
|
|
|
.button:not(:disabled) {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button:hover {
|
|
background: hsl(0 0% 90%);
|
|
}
|
|
|
|
table,
|
|
th,
|
|
tr,
|
|
td {
|
|
text-align: inherit;
|
|
}
|
|
|
|
.pagination {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
display: flex;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.page-link {
|
|
display: block;
|
|
padding: 0.5em 1em;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.page-item {
|
|
border: 1px solid var(--border-color);
|
|
box-shadow: var(--box-shadow);
|
|
}
|
|
|
|
.page-item:first-of-type {
|
|
border-radius: var(--radius-s) 0 0 var(--radius-s);
|
|
}
|
|
|
|
.page-item:last-of-type {
|
|
border-radius: 0 var(--radius-s) var(--radius-s) 0;
|
|
}
|
|
|
|
.page-item:not(:last-of-type) {
|
|
border-right-width: 0px;
|
|
}
|
|
|
|
.page-item.active .page-link {
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
border-color: transparent;
|
|
}
|
|
|
|
/* Index */
|
|
|
|
.filters {
|
|
margin-bottom: 2rem;
|
|
position: sticky;
|
|
top: 0;
|
|
background-color: white;
|
|
padding: 0.75rem 0;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
.inline-icon {
|
|
display: inline-block;
|
|
fill: currentColor;
|
|
width: 1.25em;
|
|
}
|
|
|
|
.changeset details[open] summary {
|
|
margin-bottom: 1rem;
|
|
}
|