243 lines
4.2 KiB
CSS
243 lines
4.2 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Texturina:ital,wght@0,200;1,200&display=swap');
|
|
|
|
body {
|
|
font-family: 'Texturina', serif;
|
|
|
|
--PUP-BGCOLOR: #EFEFEF;
|
|
--PAGE-BGCOLOR: #EFEFEF;
|
|
--BTN-INACT-BGCOLOR: #28C1C0;
|
|
--BTN-HOV-BGCOLOR: #198786;
|
|
--BTN-ACT-BGCOLOR: #90dedd;
|
|
--INPUT-INACT-BORDERCOLOR: lightgray;
|
|
--INPUT-ACT-BORDERCOLOR: var(--BTN-HOV-BGCOLOR);
|
|
--INPUT-BGCOLOR: var(--PUP-BGCOLOR);
|
|
--LABEL-TCOLOR: #0d4c4b;
|
|
|
|
--TITLE-COLOR: white;
|
|
--AUTHOR-COLOR: lightgray;
|
|
--DESC-COLOR: white;
|
|
|
|
background-color: var(--PAGE-BGCOLOR);
|
|
}
|
|
|
|
input, textarea {
|
|
font-family: 'Texturina', serif;
|
|
font-size: 16px;
|
|
background-color: var(--INPUT-BGCOLOR);
|
|
}
|
|
|
|
label {
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
section.upload-popup {
|
|
display: block;
|
|
position: fixed;
|
|
width: 500px;
|
|
height: 500px;
|
|
left: calc(50vw - 250px);
|
|
top: calc(50vh - 250px);
|
|
background-color: var(--PUP-BGCOLOR);
|
|
overflow: hidden;
|
|
border-radius: 0.5em;
|
|
}
|
|
|
|
section.upload-popup-slider {
|
|
display: block;
|
|
position: absolute;
|
|
width: 1600px;
|
|
height: 500px;
|
|
background-color: var(--PUP-BGCOLOR);
|
|
left: 0px;
|
|
|
|
transition: 0.3s ease-in-out;
|
|
}
|
|
|
|
section.upload-popup-inner-container {
|
|
display: inline-block;
|
|
width: 460px;
|
|
height: 460px;
|
|
margin: 10px;
|
|
padding: 10px;
|
|
vertical-align: bottom;
|
|
background-color: var(--PUP-BGCOLOR);
|
|
}
|
|
|
|
section.btn,
|
|
section.upload-btn {
|
|
padding: 0.8em 1.2em;
|
|
background-color: var(--BTN-INACT-BGCOLOR);
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
color: white;
|
|
text-transform: uppercase;
|
|
font-weight: bold;
|
|
border-radius: 0.2em;
|
|
}
|
|
|
|
section.btn:hover,
|
|
section.upload-btn:hover {
|
|
background-color: var(--BTN-HOV-BGCOLOR);
|
|
}
|
|
|
|
section.btn:active,
|
|
section.upload-btn:active {
|
|
background-color: var(--BTN-ACT-BGCOLOR);
|
|
}
|
|
|
|
section.upload-btn {
|
|
padding: 1em 1em;
|
|
background-color: gray;
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
height: 2.4em;
|
|
width: 2.4em;
|
|
text-align: center;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
*[shown="false"] {
|
|
visibility: hidden;
|
|
display: none;
|
|
opacity: 0%;
|
|
transition: 0.3s ease;
|
|
}
|
|
|
|
*[shown="true"] {
|
|
opacity: 100%;
|
|
transition: 0.3s ease;
|
|
}
|
|
|
|
label {
|
|
color: var(--LABEL-TCOLOR);
|
|
}
|
|
|
|
input[type="text"],
|
|
textarea {
|
|
margin-left: 20px;
|
|
border: 0;
|
|
border-bottom: 2px solid var(--INPUT-INACT-BORDERCOLOR);
|
|
}
|
|
|
|
input[type="text"]:focus,
|
|
textarea:focus {
|
|
border-bottom-color: var(--INPUT-ACT-BORDERCOLOR);
|
|
}
|
|
|
|
section.upload-popup-closebtn {
|
|
font-size: 24px;
|
|
display: block;
|
|
float: right;
|
|
position: absolute;
|
|
z-index: 1000;
|
|
text-align: center;
|
|
right: 0.5em;
|
|
color: #c15353;
|
|
cursor: pointer;
|
|
}
|
|
|
|
section.display {
|
|
display: block;
|
|
position: absolute;
|
|
width: calc(100vw - 10px);
|
|
margin: 5px;
|
|
}
|
|
|
|
img.thumbnail {
|
|
margin: 0;
|
|
display: inline-block;
|
|
/*max-width: 600px;*/
|
|
border-radius: 2px;
|
|
opacity: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: 0.3s ease;
|
|
}
|
|
|
|
img.thumbnail:hover {
|
|
filter: brightness(130%);
|
|
}
|
|
|
|
section.thumbnail-container {
|
|
margin: 4px 4px;
|
|
display: inline-block;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
section.viewer {
|
|
position: fixed;
|
|
display: block;
|
|
z-index: 2000;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
background-color: rgba(0,0,0,0.9);
|
|
text-align: center;
|
|
|
|
opacity: 0;
|
|
|
|
transition: 0.3s ease;
|
|
}
|
|
|
|
section.viewer[shown="true"]
|
|
{
|
|
opacity: 100%;
|
|
}
|
|
|
|
img.viewer {
|
|
position: relative;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
z-index: 3000;
|
|
|
|
transition: 0.3s ease;
|
|
}
|
|
|
|
span.art-title,
|
|
span.art-author,
|
|
span.art-desc {
|
|
position: absolute;
|
|
}
|
|
|
|
span.art-title {
|
|
left: 1em;
|
|
color: var(--TITLE-COLOR);
|
|
font-weight: bold;
|
|
font-size: 32px;
|
|
}
|
|
|
|
span.art-author {
|
|
left: 2.5em;
|
|
top: 45px;
|
|
color: var(--AUTHOR-COLOR);
|
|
font-size: 20px;
|
|
}
|
|
|
|
span.art-desc {
|
|
left: 2.2em;
|
|
right: 1em;
|
|
top: 85px;
|
|
color: var(--DESC-COLOR);
|
|
font-size: 16px;
|
|
text-align: left;
|
|
}
|
|
|
|
section.art-captions {
|
|
display: block;
|
|
z-index: 4000;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 200px;
|
|
|
|
opacity: 0;
|
|
|
|
transition: 0.3s ease;
|
|
}
|
|
|
|
section[shown="true"] {
|
|
opacity: 100%;
|
|
} |