An electron-based WIP aesthetic file explorer ^^
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FileKade/styles/modal.css

137 lines
3.3 KiB

.modal {
position: fixed;
width: max-content;
height: max-content;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 7px 7px;
border: 1px solid #af2188a4;
background-color: #171717da;
padding: 6px 8px;
3 years ago
z-index: 3;
max-width: 60%;
}
.modal h1, .modal h2, .modal h3, .modal h4 {
color: #af2188;
font-family: 'Nunito', sans-serif;
margin: 10px;
}
.modal p, .modal b {
color: white;
font-family: 'Montserrat', sans-serif;
margin: 8px 10px;
}
.modal input, .modal button {
background-color: #1e27423f;
color: white;
border: #5d60ca solid 1px;
border-radius: 3px;
width: auto;
margin: 10px 4px 10px 8px;
font-size: .82em;
padding: 5px 7px;
font-family: "Monsterrat", sans-serif;
transition: background-color .65s ease-in-out, border-color .65s ease-in-out, color .65s ease-in-out;
cursor: pointer;
text-align: left;
}
.modal input:hover {
border-color: #a172a6;
}
.modal input:focus, .modal input:active {
background-color: #171717d8;
color: white;
outline: none;
}
3 years ago
.modal .button-container, input, .modal .button-container, button {display: inline-block;}
#modal-block {
position: absolute;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
background-color: #1717176d;
z-index: 2;
}
/* robbed this shit from some website somewhere. i'm not this cool.
* https://codepen.io/maneeshc/pen/pPxKQm
* that's the codepen i robbed it from */
.exit-wrapper {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.exit-button {
display: block;
width: 40px;
height: 40px;
position: relative;
overflow: hidden;
}
.exit-button > div {
position: relative;
}
.exit-button-block {
width: 40px;
height: 20px;
position: relative;
overflow: hidden;
}
.exit-button-block:before, .exit-button-block:after {
content: "";
position: absolute;
bottom: 0;
left: calc(55% - 4px);
display: block;
width: 4px;
height: 25px;
transform-origin: bottom center;
background: white;
transition: all ease-out 280ms;
}
.exit-button-block:last-of-type {
transform: rotate(180deg);
}
.exit-button .exit-in .exit-button-block:before {
transition-delay: 280ms;
transform: translateX(20px) translateY(-20px) rotate(45deg);
}
.exit-button .exit-in .exit-button-block:after {
transition-delay: 280ms;
transform: translateX(-22px) translateY(-22px) rotate(-45deg);
}
.exit-button .exit-out {
position: absolute;
top: 0;
left: 0;
}
.exit-button .exit-out .exit-button-block:before {
transform: translateX(-5px) translateY(5px) rotate(45deg);
}
.exit-button .exit-out .exit-button-block:after {
transform: translateX(5px) translateY(5px) rotate(-45deg);
}
.exit-button:hover .exit-in .exit-button-block:before {
transform: translateX(-5px) translateY(5px) rotate(45deg);
}
.exit-button:hover .exit-in .exit-button-block:after {
transform: translateX(5px) translateY(5px) rotate(-45deg);
}
.exit-button:hover .exit-out .exit-button-block:before {
transform: translateX(-20px) translateY(20px) rotate(45deg);
}
.exit-button:hover .exit-out .exit-button-block:after {
transform: translateX(20px) translateY(20px) rotate(-45deg);
3 years ago
}