php-gallery/css/scss/_body.scss

745 lines
12 KiB
SCSS
Raw Normal View History

2022-08-11 18:28:52 +00:00
/*
|-------------------------------------------------------------
| INDEX
|-------------------------------------------------------------
*/
.info-text {
2022-08-12 16:54:35 +00:00
@include defaultFont();
2022-08-12 11:28:19 +00:00
2022-08-12 16:54:35 +00:00
margin: 1rem 0 1rem 0.5rem;
padding: 0;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
text-align: center;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
h1 {
font-family: $font-header;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
margin-top: 0;
margin-bottom: 1rem;
}
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
p {
font-family: $font-body;
margin-top: 0;
margin-bottom: 1rem;
}
2022-08-11 18:28:52 +00:00
}
2022-09-08 13:29:45 +00:00
.gallery-order {
@include defaultFont();
margin-bottom: 1rem;
display: flex;
flex-direction: row;
& > * {
margin-right: 0.5rem;
}
& > *:last-child {
margin-right: 0;
}
}
2022-08-11 18:28:52 +00:00
.gallery-root {
2022-08-12 16:54:35 +00:00
margin-bottom: 1rem;
padding: 0.25rem;
background-color: $bg;
color: $fg;
display: flex;
flex-direction: row;
flex-wrap: wrap;
2022-08-11 18:28:52 +00:00
2022-09-13 15:03:09 +00:00
border: 0.2rem solid $page-accent;
2022-08-12 16:54:35 +00:00
border-radius: $rad;
box-shadow: $shadow;
2022-08-11 18:28:52 +00:00
}
.gallery-item {
2022-08-12 16:54:35 +00:00
margin: 0.25rem;
padding: 0;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
height: auto;
2022-09-21 13:02:38 +00:00
max-width: calc(20% - 0.5rem);
min-width: calc(20% - 0.5rem);
2022-08-12 16:54:35 +00:00
background-color: $bg;
border-radius: calc($rad - 0.5rem);
position: relative;
2022-08-14 16:43:54 +00:00
overflow: hidden;
2022-08-12 16:54:35 +00:00
flex: 1 0 150px;
transition: transform 0.15s cubic-bezier(.19, 1, .22, 1);
&:hover {
transform: scale(1.1) rotate(5deg);
box-shadow: $shadow;
z-index: 9;
}
&:after {
content: "";
display: block;
padding-bottom: 100%;
}
2022-08-11 18:28:52 +00:00
}
2022-09-21 13:02:38 +00:00
@media (max-width: 800px) {
.gallery-item {
max-width: calc(25% - 0.5rem);
min-width: calc(25% - 0.5rem);
}
}
@media (max-width: 550px) {
.gallery-item {
max-width: calc(33.33% - 0.5rem);
min-width: calc(33.33% - 0.5rem);
}
}
2022-08-11 18:28:52 +00:00
.gallery-image {
2022-08-12 16:54:35 +00:00
margin: 0;
padding: 0;
width: 100%;
height: 100%;
top: 0;
bottom: 0;
left: 0;
right: 0;
position: absolute;
object-fit: cover;
object-position: center;
border-radius: calc($rad - 0.5rem);
2022-08-11 18:28:52 +00:00
}
2022-08-14 16:43:54 +00:00
.nsfw-blur {
2022-08-15 10:56:05 +00:00
filter: blur(8px);
2022-08-14 16:43:54 +00:00
}
2022-08-15 10:56:05 +00:00
2022-08-14 21:27:10 +00:00
.nsfw-warning {
width: 100%;
height: 100%;
top: 0;
bottom: 0;
left: 0;
right: 0;
2022-08-15 10:56:05 +00:00
2022-08-14 21:27:10 +00:00
position: absolute;
z-index: 5;
2022-08-15 10:56:05 +00:00
display: flex;
flex-direction: column;
2022-08-14 21:27:10 +00:00
justify-content: center;
align-items: center;
text-decoration: none;
font-family: $font-body;
2022-08-15 10:56:05 +00:00
background-color: $bg-alt;
2022-08-14 21:27:10 +00:00
span {
color: $red;
text-align: center;
2022-08-15 10:56:05 +00:00
&::after {
content: ' Content';
}
2022-08-14 21:27:10 +00:00
}
2022-08-15 10:56:05 +00:00
2022-08-14 21:27:10 +00:00
img {
margin: 0.25rem;
2022-08-15 10:56:05 +00:00
width: 2.5rem;
height: 2.5rem;
2022-08-14 21:27:10 +00:00
}
}
@media (max-width: 500px) {
.nsfw-warning {
2022-08-15 10:56:05 +00:00
span::after {
content: none;
2022-08-14 21:27:10 +00:00
}
}
}
2022-08-15 10:56:05 +00:00
2022-08-11 18:28:52 +00:00
/*
|-------------------------------------------------------------
| IMAGE
|-------------------------------------------------------------
*/
2022-09-21 16:28:57 +00:00
.fullscreen-image {
2022-09-22 12:43:22 +00:00
width: 101vw; height: 101vh;
2022-09-21 16:28:57 +00:00
position: fixed;
top: 50%;
left: 50%;
transform: translateX(-050%) translateY(-50%);
background-color: $bg-alt;
backdrop-filter: blur(15px);
z-index: 999;
2022-09-22 12:43:22 +00:00
transition: opacity 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
2022-09-21 16:28:57 +00:00
2022-09-22 12:43:22 +00:00
display: none; // Automatically hidden, revealed on fullscreen
opacity: 0; // expose
2022-09-21 16:28:57 +00:00
img {
max-width: 95%; max-height: 95%;
position: absolute;
top: 50%;
left: 50%;
2022-09-22 12:43:22 +00:00
transform: translateX(-50%) translateY(-50%);
2022-09-21 16:28:57 +00:00
border-radius: $rad;
2022-09-21 20:29:03 +00:00
z-index: +1;
2022-09-21 16:28:57 +00:00
}
button {
2022-09-22 19:39:15 +00:00
padding: 0.25rem;
2022-09-22 15:51:22 +00:00
width: 2rem; height: 2rem;
2022-09-21 16:28:57 +00:00
position: absolute;
2022-09-21 20:29:03 +00:00
top: 1.25rem;
right: 1.25rem;
2022-09-21 16:28:57 +00:00
display: block;
box-sizing: border-box;
border: none;
2022-09-21 20:29:03 +00:00
border-radius: $rad;
2022-09-21 16:28:57 +00:00
transition: outline 0.1s cubic-bezier(.19, 1, .22, 1);
background-color: $black;
2022-09-21 20:29:03 +00:00
z-index: +2;
2022-09-21 16:28:57 +00:00
img {
width: 1.5rem;
display: block;
}
&:hover {
outline: $white 0.2rem solid;
color: $fg;
cursor: pointer;
2022-09-21 16:28:57 +00:00
}
}
}
2022-08-11 18:28:52 +00:00
.image-container {
2022-08-12 16:54:35 +00:00
margin: 1rem 0 2rem 0;
padding: 0;
width: 100%;
2022-09-08 21:22:32 +00:00
max-height: 50vh;
2022-08-12 16:54:35 +00:00
height: auto;
min-height: 30vh;
2022-08-12 16:54:35 +00:00
display: flex;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
background-color: $bg-alt;
backdrop-filter: blur(8px);
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
border-radius: $rad;
transition: max-height 0.15s cubic-bezier(.19, 1, .22, 1);
2022-08-11 18:28:52 +00:00
}
@media (max-width: 600px) {
2022-08-12 16:54:35 +00:00
.image-container {
max-height: 42vh;
}
2022-08-11 18:28:52 +00:00
}
2022-08-12 11:28:19 +00:00
2022-08-11 18:28:52 +00:00
.image {
margin: auto;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
max-width: 100%;
width: auto;
max-height: inherit;
height: auto;
border-radius: $rad;
2022-09-09 15:37:34 +00:00
transition: opacity 0.5s;
}
.preview-button {
2022-09-22 19:39:15 +00:00
padding: 0.25rem;
2022-09-22 15:51:22 +00:00
width: 2rem; height: 2rem;
2022-09-16 16:39:13 +00:00
2022-09-09 15:37:34 +00:00
position: absolute;
bottom: 0.5rem;
right: 0.5rem;
display: block;
box-sizing: border-box;
border: none;
2022-09-22 15:51:22 +00:00
border-radius: $rad;
2022-09-09 15:37:34 +00:00
transition: outline 0.1s cubic-bezier(.19, 1, .22, 1);
2022-09-22 19:39:15 +00:00
background-color: $bg-alt;
2022-09-09 15:37:34 +00:00
2022-09-22 15:51:22 +00:00
z-index: +2;
2022-09-10 08:37:01 +00:00
2022-09-16 16:39:13 +00:00
img {
width: 1.5rem;
display: block;
}
2022-09-09 15:37:34 +00:00
&:hover {
outline: $white 0.2rem solid;
color: $fg;
cursor: pointer;
2022-09-09 15:37:34 +00:00
}
2022-08-12 16:54:35 +00:00
}
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
// DESCRIPTION
.image-description {
2022-09-13 15:03:09 +00:00
@include defaultDecoration($page-accent);
2022-08-12 16:54:35 +00:00
@include defaultFont();
}
// DETAILS
.image-detail {
2022-09-13 15:03:09 +00:00
@include defaultDecoration($page-accent);
2022-08-12 16:54:35 +00:00
@include defaultFont();
2022-09-08 19:41:47 +00:00
&>div {
width: 100%;
display: flex;
flex-direction: row;
&>div {
width: 50%;
* {
margin-top: 0;
margin-bottom: 0.5rem;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}
}
}
@media (max-width: 669px) {
.image-detail {
&>div {
flex-direction: column;
&>div {
width: auto;
}
}
}
2022-08-12 16:54:35 +00:00
}
// TAGS
.tags-root {
2022-09-13 15:03:09 +00:00
@include defaultDecoration($page-accent);
2022-08-12 16:54:35 +00:00
@include defaultFont();
}
.tags {
@include flexLeft(auto);
2022-08-13 09:46:12 +00:00
margin-bottom: 0;
2022-08-12 16:54:35 +00:00
}
.tag {
2022-08-13 09:46:12 +00:00
margin: 0 0.5rem 0.5rem 0;
2022-08-12 16:54:35 +00:00
padding: 0.5rem;
display: block;
background-color: $page-accent;
2022-09-22 19:39:15 +00:00
border-radius: calc($rad - 0.7rem);
2022-08-12 16:54:35 +00:00
font-family: $font-body;
2022-08-15 10:56:05 +00:00
2022-08-14 16:43:54 +00:00
&::before {
content: '# ';
}
2022-08-12 16:54:35 +00:00
}
// DANGER ZONE
.danger-zone {
@include defaultDecoration($red);
@include defaultFont();
2022-08-12 11:28:19 +00:00
}
/*
|-------------------------------------------------------------
2022-09-22 12:43:22 +00:00
| profile
2022-08-12 11:28:19 +00:00
|-------------------------------------------------------------
*/
2022-09-22 12:43:22 +00:00
.profile-root {
2022-09-13 15:03:09 +00:00
@include defaultDecoration($page-accent);
2022-08-12 16:54:35 +00:00
@include defaultFont();
2022-09-22 12:43:22 +00:00
margin: 3rem auto 1rem auto;
min-height: 7rem;
position: relative;
text-align: center;
img {
width: 9rem;
height: 9rem;
object-fit: cover;
position: absolute;
left: 6rem;
top: -3rem;
transform: translateX(-50%);
border-radius: $rad;
border: $page-accent 0.2rem solid;
background-color: $bg;
}
h2, & > p {
margin: 0 0 0.5rem 0;
padding-left: 11rem;
}
}
.profile-info {
margin-top: 0;
margin-bottom: 0.5rem;
padding-left: 11rem;
display: flex; flex-direction: column;
text-align: center;
& > * {
margin-top: 0;
margin-bottom: 0.5rem;
}
}
@media (max-width: 669px) {
.profile-root {
img {
position: absolute;
left: 50%;
top: -3rem;
transform: translateX(-50%);
}
h2 {
margin: 7rem 0 0.5rem 0;
padding: 0;
}
& > p {
padding: 0;
}
}
.profile-info {
padding: 0;
& > * {
padding: 0;
}
}
2022-08-12 11:28:19 +00:00
}
/*
|-------------------------------------------------------------
2022-08-12 16:54:35 +00:00
| UPLOAD
2022-08-12 11:28:19 +00:00
|-------------------------------------------------------------
*/
2022-08-12 16:54:35 +00:00
.upload-root {
2022-09-13 15:03:09 +00:00
@include defaultDecoration($page-accent);
2022-08-12 16:54:35 +00:00
@include defaultFont();
2022-08-12 11:28:19 +00:00
}
/*
|-------------------------------------------------------------
2022-08-12 16:54:35 +00:00
| ACCOUNT
2022-08-12 11:28:19 +00:00
|-------------------------------------------------------------
*/
2022-09-22 15:51:22 +00:00
.profile-settings {
@include defaultDecoration($page-accent);
@include defaultFont();
}
.pfp-upload {
display: flex;
flex-direction: row;
& > img {
2022-09-22 19:39:15 +00:00
margin-left: 0.5rem;
2022-09-22 15:51:22 +00:00
2022-09-22 19:39:15 +00:00
width: 7.8rem;
height: 7.8rem;
2022-09-22 15:51:22 +00:00
object-fit: cover;
2022-09-22 19:39:15 +00:00
border-radius: calc($rad - 0.7rem);
2022-09-22 15:51:22 +00:00
background-color: $black;
}
2022-09-22 19:39:15 +00:00
form > * {
margin: 0 0 0.5rem 0;
}
form > *:last-child {
margin: 0 0 0 0;
}
}
@media (max-width: 621px) {
.pfp-upload {
display: flex;
flex-direction: column-reverse;
& > img {
margin: 0 auto 1rem;
}
}
2022-09-22 15:51:22 +00:00
}
2022-08-12 16:54:35 +00:00
.account-root {
2022-09-13 15:03:09 +00:00
@include defaultDecoration($page-accent);
2022-08-12 16:54:35 +00:00
@include defaultFont();
}
2022-09-08 13:29:45 +00:00
.admin-root {
2022-09-13 15:03:09 +00:00
@include defaultDecoration($page-accent);
2022-09-08 13:29:45 +00:00
@include defaultFont();
}
2022-09-14 14:08:50 +00:00
.tabs {
display: flex; flex-direction: row;
& > button {
margin-right: 0.5rem;
width: 33.33%;
}
& > button:last-child {
margin-right: 0;
}
}
.active-tab {
background-color: $page-accent !important;
}
2022-09-14 14:08:50 +00:00
.logs {
width: 100%;
height: 21rem;
2022-09-14 14:08:50 +00:00
padding: 0;
overflow-y: scroll;
display: none; flex-direction: column;
2022-09-14 14:08:50 +00:00
background-color: $bg;
2022-09-22 19:39:15 +00:00
border-radius: calc($rad - 0.7rem);
2022-09-14 14:08:50 +00:00
}
.log {
min-width: 769px;
padding: 0.5rem;
display: flex; flex-direction: row;
justify-content: space-between;
2022-09-16 16:39:13 +00:00
&:nth-child(even) {
2022-09-21 14:23:17 +00:00
background-color: #E8E3E311;
2022-09-14 14:08:50 +00:00
}
& > * {
margin: 0 0.5rem 0 0;
padding: 0;
word-wrap: break-word;
&:nth-child(1) {
width: 5%;
}
&:nth-child(2) {
2022-09-15 17:35:06 +00:00
width: 17%;
2022-09-14 14:08:50 +00:00
}
&:nth-child(3) {
2022-09-15 17:35:06 +00:00
width: 38%;
2022-09-14 14:08:50 +00:00
}
&:nth-child(4) {
2022-09-15 17:35:06 +00:00
width: 40%;
2022-09-16 16:39:13 +00:00
margin: 0;
2022-09-14 14:08:50 +00:00
}
}
}
2022-09-16 16:39:13 +00:00
.log:first-of-type {
background-color: $bg;
position: sticky;
top: 0;
}
2022-09-14 14:08:50 +00:00
2022-09-15 15:40:12 +00:00
.bans {
width: 100%;
height: 21rem;
2022-09-15 15:40:12 +00:00
padding: 0;
overflow-y: scroll;
display: none; flex-direction: column;
2022-09-15 15:40:12 +00:00
background-color: $bg;
2022-09-22 19:39:15 +00:00
border-radius: calc($rad - 0.7rem);
2022-09-15 15:40:12 +00:00
}
.ban {
min-width: 769px;
padding: 0.5rem;
display: flex; flex-direction: row;
justify-content: space-between;
2022-09-16 16:39:13 +00:00
&:nth-child(even) {
2022-09-21 14:23:17 +00:00
background-color: #E8E3E311;
2022-09-15 15:40:12 +00:00
}
& > * {
margin: 0 0.5rem 0 0;
padding: 0;
word-wrap: break-word;
&:nth-child(1) {
width: 5%;
}
&:nth-child(2) {
2022-09-15 17:35:06 +00:00
width: 17%;
2022-09-15 15:40:12 +00:00
}
&:nth-child(3) {
2022-09-16 16:39:13 +00:00
width: 34%;
2022-09-15 15:40:12 +00:00
}
&:nth-child(4) {
width: 10%;
}
&:nth-child(5) {
2022-09-16 16:39:13 +00:00
width: 34%;
margin: 0;
2022-09-15 15:40:12 +00:00
}
}
}
.perm {
border-left: $red 0.2rem solid;
2022-09-16 16:39:13 +00:00
}
.ban:first-of-type {
background-color: $bg;
position: sticky;
top: 0;
}
.user-settings {
width: 100%;
height: 21rem;
2022-09-16 16:39:13 +00:00
padding: 0;
overflow-y: scroll;
display: none; flex-direction: column;
2022-09-16 16:39:13 +00:00
background-color: $bg;
2022-09-22 19:39:15 +00:00
border-radius: calc($rad - 0.7rem);
2022-09-16 16:39:13 +00:00
}
.user {
min-width: 769px;
padding: 0.5rem;
display: flex; flex-direction: row;
justify-content: space-between;
&:nth-child(even) {
2022-09-21 14:23:17 +00:00
background-color: #E8E3E311;
2022-09-16 16:39:13 +00:00
}
& > * {
margin: 0 0.5rem 0 0;
padding: 0;
word-wrap: break-word;
&:nth-child(1) {
width: 5%;
}
&:nth-child(2) {
width: 15%;
}
&:nth-child(3) {
width: 35%;
}
&:nth-child(4) {
width: 15%;
}
&:nth-child(5) {
width: 15%;
}
&:nth-child(6) {
width: 15%;
margin: 0;
}
}
}
.is-admin {
border-left: $page-accent 0.2rem solid;
2022-09-16 16:39:13 +00:00
}
.user:first-of-type {
background-color: $bg;
position: sticky;
top: 0;
2022-09-15 15:40:12 +00:00
}
2022-08-12 16:54:35 +00:00
.signup-root {
2022-09-13 15:03:09 +00:00
@include defaultDecoration($page-accent);
2022-08-12 16:54:35 +00:00
@include defaultFont();
// By default its hidden, in place is login
display: none;
2022-08-12 11:28:19 +00:00
}
2022-08-12 16:54:35 +00:00
.login-root {
2022-09-13 15:03:09 +00:00
@include defaultDecoration($page-accent);
2022-08-12 16:54:35 +00:00
@include defaultFont();
2022-08-12 11:28:19 +00:00
}
2022-08-12 16:54:35 +00:00
/*
|-------------------------------------------------------------
| PASSWORD RESET
|-------------------------------------------------------------
*/
.password-reset-root {
@include defaultDecoration($red);
@include defaultFont();
}