Files
soundcloak/static/assets/global.css

178 lines
2.6 KiB
CSS

@font-face {
font-family: "fixed";
src: url("/_/static/fixed.ttf");
}
:root {
--accent: orangered;
--primary: #00010a;
--secondary: #0f111a;
--0: #3b4252;
--text: white;
}
body {
font-family: system-ui;
background-color: var(--primary);
color: var(--text);
padding: 1.5rem;
max-width: 55rem;
margin-inline: auto;
line-height: 1.15;
}
#sc {
color: var(--accent);
}
.duopanel-container {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
@media (width > 800px) {
.duopanel-container {
grid-template-columns: min-content 1fr;
gap: 3rem;
}
}
input,
select {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "fixed", monospace, system-ui;
font-weight: normal !important;
}
a {
color: inherit;
text-decoration: none;
}
input {
background-color: var(--secondary);
color: var(--text);
padding: 0.75rem 0.75rem;
border: none;
}
input:focus {
box-shadow: 0 0 0 0.125rem var(--accent);
outline: none;
}
.btn {
background-color: var(--secondary);
color: var(--text);
cursor: pointer;
padding: 0.75rem 1.25rem;
display: block;
text-align: center;
font-weight: medium;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.btn.important {
background-color: var(--accent);
}
.btn:hover,
.btn:focus,
.btn.active {
opacity: 0.6;
outline: none;
}
.listing {
display: flex;
border-color: var(--0);
column-gap: 1rem;
margin-bottom: 1rem;
}
.listing.user > img {
border-radius: 50%;
}
.listing:hover {
opacity: 0.75;
}
.listing > img {
width: 3rem;
object-fit: cover;
height: 3rem;
}
.listing > .meta {
flex-grow: 0;
display: flex;
flex-direction: column;
overflow: hidden;
justify-content: center;
gap: 0.25rem;
}
.listing > .meta > h3 {
margin: 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.listing > .meta > span {
color: var(--accent);
}
.listing > .meta > p {
margin: 0;
}
.tag {
border-radius: 9999rem;
padding: 0.5rem 1rem;
background-color: var(--accent);
width: fit-content;
}
select {
background: var(--secondary);
color: var(--text);
padding: 0.75rem 0.5rem;
border: none;
}
.btns {
gap: 0.5rem;
display: flex;
flex-wrap: wrap;
}
.link {
color: var(--accent);
text-decoration: underline dashed;
}
.link:hover {
text-decoration: underline;
}
.listing > .comment > h3 {
margin: 0;
}