353 lines
6.5 KiB
CSS
353 lines
6.5 KiB
CSS
:root {
|
|
--accent-color: #f17d10;
|
|
}
|
|
|
|
body {
|
|
padding: 0px;
|
|
margin: 0px;
|
|
overflow-x: hidden;
|
|
color: var(--text-color);
|
|
background-color: var(--background-color);
|
|
font-family: 'Balsamiq Sans', sans-serif;
|
|
font-weight: 300;
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
text-underline-offset: 3px;
|
|
font-size: 16px;
|
|
color-scheme: light dark;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-text-size-adjust: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
:root {
|
|
--text-color: #111;
|
|
--text-color-light: #444;
|
|
--background-color: #fefefd;
|
|
--background-color-dark: #fafafb;
|
|
--background-color-dark-2: #f8f8f9;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--text-color: #eee;
|
|
--text-color-light: #aaa;
|
|
--background-color: #111110;
|
|
--background-color-dark: #151514;
|
|
--background-color-dark-2: #171718;
|
|
}
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--accent-color);
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
#main {
|
|
display: flex;
|
|
text-align: center;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100%;
|
|
flex: 1 0 auto;
|
|
}
|
|
#main img {
|
|
display: block;
|
|
height: 18rem;
|
|
width: auto;
|
|
animation: 1s popup;
|
|
animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
transition: transform 0.15s, opacity 0.1s;
|
|
}
|
|
#main > img:active {
|
|
transform: scale(0.97);
|
|
opacity: 0.9;
|
|
}
|
|
#main > :not(img) {
|
|
animation: 0.8s fadein;
|
|
}
|
|
#main h1 {
|
|
font-size: 4rem;
|
|
margin-top: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
#main #status {
|
|
color: var(--text-color-light);
|
|
font-size: 0.85rem;
|
|
}
|
|
#status .status {
|
|
width: 0.5rem;
|
|
height: 0.5rem;
|
|
background-color: #00a55e;
|
|
display: inline-block;
|
|
border-radius: 1rem;
|
|
}
|
|
|
|
@keyframes fadein {
|
|
0% { opacity: 0; }
|
|
100% { opacity: 1; }
|
|
}
|
|
@keyframes popup {
|
|
0% { transform: scale(0) rotate(40deg) }
|
|
100% { transform: scale(1) rotate(0deg) }
|
|
}
|
|
|
|
#login {
|
|
display: flex;
|
|
flex-direction: row;
|
|
width: fit-content;
|
|
height: 2rem;
|
|
border: 1px solid var(--text-color-light);
|
|
border-radius: 2rem;
|
|
align-items: center;
|
|
padding: 0.25em 0.5em;
|
|
margin: 0.5rem;
|
|
gap: 0.5em;
|
|
cursor: pointer;
|
|
transition: 0.1s color, 0.1s background-color;
|
|
font-size: 1.2rem;
|
|
align-self: flex-end;
|
|
}
|
|
#login:hover {
|
|
border-color: var(--accent-color);
|
|
background-color: var(--accent-color);
|
|
}
|
|
#login .avatar {
|
|
display: block;
|
|
aspect-ratio: 1 / 1;
|
|
border-radius: 2rem;
|
|
width: auto;
|
|
height: 100%;
|
|
}
|
|
#login:not(:hover) .username.logged-out {
|
|
color: var(--text-color-light);
|
|
}
|
|
|
|
#content {
|
|
max-width: 1000px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
margin-bottom: 6rem;
|
|
}
|
|
|
|
.header {
|
|
height: 3rem;
|
|
display: flex;
|
|
align-items: stretch;
|
|
padding: 0rem 1rem;
|
|
flex-direction: row;
|
|
text-shadow: 2px 2px 2px #000000;
|
|
margin-bottom: 2rem;
|
|
}
|
|
.header .bg {
|
|
position: absolute;
|
|
left: 0%;
|
|
right: 0%;
|
|
height: 3rem;
|
|
background: linear-gradient(#444, #222);
|
|
z-index: -1;
|
|
border-bottom: 2px ridge #aaa;
|
|
}
|
|
.header .left {
|
|
font-size: 1.5rem;
|
|
flex: 1 1 0px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.header .left a {
|
|
text-decoration: none !important;
|
|
color: #fff;
|
|
}
|
|
|
|
.header .links {
|
|
flex: 0 0 auto;
|
|
text-align: right;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
.header .links img {
|
|
display: block;
|
|
width: auto;
|
|
height: 100%;
|
|
}
|
|
|
|
.items {
|
|
max-width: 500px;
|
|
padding: 1em;
|
|
height: 200px;
|
|
overflow: auto;
|
|
background: linear-gradient(var(--background-color-dark), var(--background-color-dark-2));
|
|
border-radius: 1em;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.item {
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 3rem;
|
|
gap: 0.5rem;
|
|
outline: 0px solid rgba(255, 255, 255, 0.0);
|
|
transition: outline 0.1s;
|
|
padding: 0.5rem;
|
|
border-radius: 2rem;
|
|
cursor: grab;
|
|
}
|
|
.item:hover {
|
|
outline: 1px solid var(--text-color-light);
|
|
}
|
|
.item.dragging {
|
|
outline: 2px dashed var(--text-color-light);
|
|
transition: none;
|
|
background-color: var(--background-color);
|
|
}
|
|
.item .icon {
|
|
flex: 0 0 auto;
|
|
font-size: 1rem;
|
|
line-height: 1;
|
|
background-color: rgba(199, 199, 199, 0.25);
|
|
border-radius: 4rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
aspect-ratio: 1 / 1;
|
|
user-select: none;
|
|
}
|
|
.item .right {
|
|
flex: 1 1 0px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
line-height: 1;
|
|
}
|
|
.item .right, .item .right > * {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.item .right .description {
|
|
font-size: 75%;
|
|
color: var(--text-color-light);
|
|
}
|
|
.item-list {
|
|
min-height: 2rem;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
.item-list.dropping::after {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
content: '+';
|
|
height: 1.5rem;
|
|
width: 1.5rem;
|
|
outline: 2px dashed var(--text-color-light);
|
|
border-radius: 2rem;
|
|
padding: 0.5rem;
|
|
margin: 0.25rem;
|
|
}
|
|
.itemstack {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 1.5rem;
|
|
line-height: 1;
|
|
padding: 0.5rem;
|
|
margin: 0.25rem;
|
|
outline: 1px solid var(--text-color-light);
|
|
background-color: var(--background-color-dark);
|
|
border-radius: 2rem;
|
|
gap: 0.5rem;
|
|
}
|
|
.itemstack.dragging {
|
|
outline: 2px dashed var(--text-color-light);
|
|
transition: none;
|
|
background-color: var(--background-color);
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--text-color-light);
|
|
font-size: 1rem;
|
|
font-weight: normal;
|
|
margin-left: 0.5rem;
|
|
}
|
|
.subtitle::before {
|
|
content: '·';
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
pre {
|
|
background: linear-gradient(var(--background-color-dark), var(--background-color-dark-2));
|
|
overflow: auto;
|
|
word-break: normal;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.note {
|
|
font-style: italic;
|
|
color: var(--text-color-light);
|
|
}
|
|
|
|
.user {
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 2rem;
|
|
padding: 0.5em;
|
|
align-items: center;
|
|
width: fit-content;
|
|
margin: 0 auto;
|
|
}
|
|
.user .avatar {
|
|
display: block;
|
|
aspect-ratio: 1 / 1;
|
|
border-radius: 2rem;
|
|
width: auto;
|
|
height: 100%;
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
.guilds {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.guild {
|
|
order: 0;
|
|
display: flex;
|
|
width: 600px;
|
|
max-width: 100%;
|
|
height: 3rem;
|
|
padding: 0.5rem;
|
|
gap: 0.5rem;
|
|
margin: 0.5rem;
|
|
background-color: var(--background-color-dark);
|
|
}
|
|
.guild.unavailable {
|
|
order: 1;
|
|
}
|
|
.guild.unavailable .icon {
|
|
filter: grayscale(100%);
|
|
}
|
|
.guild .icon {
|
|
flex: 0 0 auto;
|
|
display: block;
|
|
aspect-ratio: 1 / 1;
|
|
border-radius: 2rem;
|
|
width: auto;
|
|
height: 100%;
|
|
}
|
|
.guild .right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.guild .info {
|
|
color: var(--text-color-light);
|
|
} |