hyaenidae/scss/layout.scss

386 lines
6.3 KiB
SCSS

.error {
color: #c92a60;
font-style: italic;
}
picture {
width: 100%;
}
.toolkit-card.nav {
margin-bottom: 0;
}
.desktop-bar,
.mobile-bar {
position: fixed;
z-index: 1;
top: 0;
left: 0;
right: 0;
overflow-x: auto;
}
.mobile-bar {
display: none;
.toolkit-button {
min-width: auto;
}
}
.profile-nav {
display: flex;
align-items: center;
.mobile-bar-icon {
margin-right: 0;
}
.bar-icon {
margin-right: 0;
margin-left: 16px;
}
.toolkit-icon--link .toolkit-icon {
border-width: 1px;
}
.notification-bell {
.toolkit-link,
i {
display: block;
}
}
}
.nav-body {
position: fixed;
z-index: 2;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.4);
overflow: hidden;
&.nav-open {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
animation-duration: 0.3s;
animation-name: fadein;
}
&.nav-closing {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
animation-duration: 0.5s;
animation-name: fadeout;
}
&.nav-closed {
display: none;
}
.nav-background {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
min-height: 100%;
height: 100%;
width: 100%;
}
}
.nav-links {
position: relative;
max-height: 100%;
overflow-y: auto;
}
.nav-heading {
padding-bottom: 16px;
}
.home-content {
padding: 80px 0 32px;
}
.server,
.report,
.notification {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
.button-section {
padding: 0;
}
}
.tabs {
padding: 0 12px;
overflow-x: auto;
}
.empty-state {
margin: 32px 0;
}
.profile-search {
margin: 32px 0;
}
.profile-result {
position: relative;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
padding: 16px;
.profile-result--background {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
img {
width: 100%;
object-fit: cover;
-webkit-mask-image:-webkit-gradient(linear, right top, left top, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
}
}
.profile-result--left {
position: relative;
display: flex;
flex-wrap: wrap;
align-items: center;
}
.profile-result--display-name {
font-size: 18px;
}
.profile-result--buttons {
position: relative;
}
.toolkit-link {
text-decoration: none;
}
}
.profile-box {
display: flex;
flex: 1;
width: 100%;
.profile-box--content {
flex: 1;
}
.profile-box--body {
padding-top: 8px;
}
.profile-box--all-meta {
display: flex;
justify-content: space-between;
align-items: flex-start;
width: 100%;
}
.profile-box--replying-to {
font-style: italic;
}
.profile-box--meta {
display: flex;
align-items: center;
flex-wrap: wrap;
margin-right: 8px;
}
.profile-box--meta--display .toolkit-link {
text-decoration: none;
font-size: 16px;
}
.profile-box--meta--display {
margin-right: 4px;
}
.profile-box--meta--handle {
margin-right: 4px;
}
}
.text-section,
.button-section {
padding: 8px 0;
}
.columns {
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
.columns--column {
flex: 1;
width: 100%;
}
.columns--column + .columns--column {
margin-right: 16px;
}
}
.submission-buttons .toolkit-button-group {
justify-content: center;
}
.submission-box {
max-height: 90vh;
display: flex;
justify-content: center;
background-color: #000;
img {
object-fit: contain;
margin: auto;
width: 100%;
}
}
@keyframes fadein {
from {
background-color: rgba(0, 0, 0, 0);
opacity: 0;
margin-top: -400px;
}
to {
background-color: rgba(0, 0, 0, 0.4);
opacity: 1;
margin-top: 0;
}
}
@keyframes fadeout {
from {
background-color: rgba(0, 0, 0, 0.4);
opacity: 1;
margin-top: 0;
}
to {
background-color: rgba(0, 0, 0, 0);
opacity: 0;
margin-top: -400px;
}
}
@keyframes slideup {
from {
background-color: rgba(0, 0, 0, 0);
bottom: -100vh;
}
to {
background-color: rgba(0, 0, 0, 0.4);
bottom: 0vh;
}
}
@keyframes slidedown {
from {
background-color: rgba(0, 0, 0, 0.4);
bottom: 0vh;
}
to {
background-color: rgba(0, 0, 0, 0);
bottom: -100vh;
}
}
@media (max-width: 700px) {
.desktop-bar {
display: none;
}
.mobile-bar {
display: flex;
}
.nav-body {
&.nav-open {
display: block;
animation-duration: 0.3s;
animation-name: slideup;
}
&.nav-closing {
display: block;
animation-duration: 0.5s;
animation-name: slidedown;
}
}
.nav-links {
position: absolute;
bottom: 0;
left: 0;
right: 0;
}
.tabs {
padding: 0;
}
.server,
.report,
.notification {
display: block;
.button-section {
padding: 8px 0;
}
}
.profile-search {
padding: 0 8px;
}
.profile-result {
.profile-result--buttons {
padding-top: 16px;
width: 100%;
}
.profile-result--background {
display: none;
}
}
.columns {
flex-direction: column;
.columns--column + .columns--column {
margin-left: 0;
padding-top: 16px;
}
}
.standalone {
border-radius: 0;
}
}