hyaenidae/server/scss/layout.scss

510 lines
11 KiB
SCSS
Raw Normal View History

.error {
color: #c92a60;
font-style: italic;
}
.toolkit-card.nav {
margin-bottom: 0;
}
.mobile-bar {
2021-01-08 04:44:43 +00:00
display: none;
}
2021-01-08 04:44:43 +00:00
.nav-body {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.4);
overflow: hidden;
2021-01-08 04:44:43 +00:00
&.nav-open {
display: block;
2021-01-08 04:44:43 +00:00
}
&.nav-closed {
display: none;
2021-01-08 04:44:43 +00:00
}
.nav-background {
min-height: 100%;
height: 100%;
width: 100%;
2021-01-08 04:44:43 +00:00
}
}
.nav-links {
position: absolute;
bottom: 0;
left: 0;
right: 0;
max-height: 100%;
overflow-y: auto;
2021-01-08 05:09:26 +00:00
}
2021-01-08 04:44:43 +00:00
.home-content {
padding: 32px 0;
}
.profile-box {
display: flex;
flex: 1;
.profile-box--content {
flex: 1;
}
.profile-box--body {
padding-top: 8px;
}
.profile-box--all-meta {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
width: 100%;
}
.profile-box--replying-to {
font-style: italic;
}
.profile-box--meta {
display: flex;
align-items: center;
flex-wrap: wrap;
margin-right: 4px;
}
.profile-box--meta--display .toolkit-link {
text-decoration: none;
font-size: 16px;
}
.profile-box--icon {
position: relative;
height: 64px;
width: 64px;
border-radius: 32px;
border: 3px solid #444;
background-color: #555;
overflow: hidden;
margin-right: 16px;
img {
width: 100%;
}
}
.profile-box--meta--display {
margin-right: 4px;
}
.profile-box--meta--handle {
margin-right: 4px;
}
2020-12-16 02:40:41 +00:00
}
2021-01-06 08:21:37 +00:00
.profile-view {
2021-01-06 16:45:43 +00:00
background-color: #444;
2021-01-06 08:21:37 +00:00
color: #f5f5f5;
overflow: hidden;
2021-01-08 04:44:43 +00:00
&.card-top {
border-radius: 3px 3px 0 0;
}
&.standalone {
border-radius: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
margin-bottom: 32px;
}
2021-01-06 08:21:37 +00:00
img {
width: 100%;
}
2021-01-06 16:45:43 +00:00
.profile-view--banner {
height: 233px;
2021-01-06 08:21:37 +00:00
width: 100%;
}
2021-01-06 16:45:43 +00:00
.profile-view--banner--placeholder {
height: 100%;
min-height: 100%;
background-color: #555;
2021-01-06 08:21:37 +00:00
}
.profile-view--content {
padding-bottom: 16px;
}
.profile-view--content--top {
margin-top: -86px;
display: flex;
justify-content: flex-start;
2021-01-06 16:45:43 +00:00
align-items: flex-start;
2021-01-06 08:21:37 +00:00
flex-wrap: wrap;
padding: 0 16px;
}
.profile-view--icon {
position: relative;
height: 128px;
width: 128px;
border-radius: 64px;
2021-01-06 16:45:43 +00:00
border: 3px solid #444;
background-color: #555;
2021-01-06 08:21:37 +00:00
overflow: hidden;
2021-01-06 16:45:43 +00:00
margin-right: 16px;
2021-01-06 08:21:37 +00:00
}
.profile-view--meta {
2021-01-06 16:45:43 +00:00
padding-top: 20px;
text-shadow: 1px 1px 1px #222;
2021-01-06 08:21:37 +00:00
2021-01-06 16:45:43 +00:00
span {
display: block;
2021-01-06 08:21:37 +00:00
}
}
.profile-view--meta--display {
2021-01-06 16:45:43 +00:00
font-weight: 600;
2021-01-06 08:21:37 +00:00
font-size: 20px;
}
.profile-view--meta--handle {
2021-01-06 16:45:43 +00:00
font-weight: 500;
2021-01-06 08:21:37 +00:00
}
.profile-view--description {
padding: 16px;
}
}
.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;
}
.comment {
padding: 16px 0;
&:first-child {
padding-top: 0;
}
&:last-child {
padding-bottom: 0;
}
& + .comment {
border-top: 1px solid #555;
}
.comment-body {
display: flex;
}
.comment-text {
flex: 1;
}
.comment-children {
padding-top: 16px;
.comment:first-child {
border-top: 1px solid #555;
padding-top: 16px;
}
}
}
.comment-box > .comment,
.comment-box > .comment-children > .comment {
> .comment-children,
> .comment-children > .comment > .comment-children,
> .comment-children > .comment > .comment-children > .comment > .comment-children,
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children,
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children,
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children,
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children,
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children,
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children,
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children {
border-left: 4px solid #555;
padding-left: 16px;
}
}
.submission-tiles {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
.submission-icon {
position: relative;
border-radius: 0px;
}
.toolkit-link {
display: block;
height: 100%;
width: 100%;
font-style: none;
font-weight: 500;
&:hover,
&:focus,
a:active {
color: #e5e5e5;
}
}
.submission-icon--unpublished,
.submission-icon--overlay {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
justify-content: space-around;
align-items: center;
text-align: center;
opacity: 0;
transition: opacity 0.2s ease-in-out;
&:hover {
opacity: 1;
}
}
.submission-icon--overlay {
background-color: rgba(0, 0, 0, 0.4);
text-shadow: 1px 1px 1px #000;
}
.submission-icon--unpublished {
background-color: #c92a6066;
text-shadow: 1px 1px 1px #000;
}
.submission-icon--meta p {
margin: 0;
margin-top: 16px;
}
}
.image-box {
max-width: 100%;
background-color: #f5f5f5;
overflow: hidden;
img {
display: block;
width: 100%;
}
}
2021-01-06 08:21:37 +00:00
@media (max-width: 700px) {
.desktop-bar {
2021-01-08 04:44:43 +00:00
display: none;
}
.mobile-bar {
2021-01-08 04:44:43 +00:00
display: flex;
}
.columns {
flex-direction: column;
.columns--column + .columns--column {
margin-left: 0;
padding-top: 16px;
}
}
2021-01-06 08:21:37 +00:00
.profile-view {
&.standalone {
border-radius: 0;
}
2021-01-06 16:45:43 +00:00
.profile-view--banner {
height: 33vw;
2021-01-06 08:21:37 +00:00
}
}
}
@media (max-width: 680px) {
.comment-box > .comment,
.comment-box > .comment-children > .comment {
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children {
border-left: 0;
padding-left: 0;
}
}
}
@media (max-width: 660px) {
.comment-box > .comment,
.comment-box > .comment-children > .comment {
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children {
border-left: 0;
padding-left: 0;
}
}
}
@media (max-width: 640px) {
.comment-box > .comment,
.comment-box > .comment-children > .comment {
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children {
border-left: 0;
padding-left: 0;
}
}
}
@media (max-width: 620px) {
.comment-box > .comment,
.comment-box > .comment-children > .comment {
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children {
border-left: 0;
padding-left: 0;
}
}
}
@media (max-width: 600px) {
.comment-box > .comment,
.comment-box > .comment-children > .comment {
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children > .comment > .comment-children {
border-left: 0;
padding-left: 0;
}
}
}
@media (max-width: 580px) {
.comment-box > .comment,
.comment-box > .comment-children > .comment {
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children > .comment > .comment-children {
border-left: 0;
padding-left: 0;
}
}
}
@media (max-width: 560px) {
.comment-box > .comment,
.comment-box > .comment-children > .comment {
> .comment-children > .comment > .comment-children > .comment > .comment-children > .comment >
.comment-children {
border-left: 0;
padding-left: 0;
}
}
}
@media (max-width: 540px) {
.comment-box > .comment,
.comment-box > .comment-children > .comment {
> .comment-children > .comment > .comment-children > .comment > .comment-children {
border-left: 0;
padding-left: 0;
}
}
}
@media (max-width: 520px) {
.comment-box > .comment,
.comment-box > .comment-children > .comment {
> .comment-children > .comment > .comment-children, {
border-left: 0;
padding-left: 0;
}
}
}
@media (max-width: 500px) {
.comment-box > .comment,
.comment-box > .comment-children > .comment {
> .comment-children {
border-left: 0;
padding-left: 0;
}
}
}
2021-01-06 16:45:43 +00:00
@media (max-width: 350px) {
2021-01-06 08:21:37 +00:00
.profile-view {
.profile-view--content--top {
2021-01-06 16:45:43 +00:00
margin-top: -56px;
display: block;
2021-01-06 08:21:37 +00:00
}
.profile-view--icon {
2021-01-06 16:45:43 +00:00
width: 96px;
height: 96px;
2021-01-06 08:21:37 +00:00
}
.profile-view--meta {
padding-bottom: 0;
}
}
}