kittemail/kittemail-prefork/resources/static/css/styles.css

230 lines
4.0 KiB
CSS

@font-face {
font-family: 'Figtree';
src: url("/kt-static/fonts/Figtree.woff2") format("woff2");
font-style: normal;
}
html {
background: linear-gradient(to top left, rgb(217, 236, 255), rgb(228, 249, 255), rgb(221, 255, 238), rgb(249,255,253)) no-repeat center center fixed;
background-size: cover;
}
:root {
--foreground: #fafafa;
--text-color: #000;
--background: #fff;
--border-color: #dadada;
--theme-color: #1c71d8;
--hover-theme-color: #4990e7;
}
/* dark mode */
@media (prefers-color-scheme: dark) {
:root {
--foreground: #2d2f31;
--text-color: #fff;
--background: #1E1E1E;
--border-color: #393b3d;
}
html {
background: linear-gradient(to top left, rgb(0 17 35), rgb(7 36 45), rgb(28 45 36), rgb(49 49 49)) no-repeat center center fixed;
}
}
@media only screen and (max-width: 600px) {
body {
background-color: var(--foreground);
}
.inOutDiv {
position: absolute;
top: 0;
left: 0;
right: 0;
border-radius: 0;
min-width: calc(100% - 20px);
min-height: 100%;
transform: none;
padding: 5px 10px;
overflow-y: auto;
overflow-x: auto;
margin: 0;
border: 0;
}
}
p, li, h1, h2, h3, h4, h5, h6, span, label {
color: var(--text-color);
white-space: break-spaces;
}
p#statusBox {
overflow-wrap: break-word;
}
body {
margin: 0;
font-family: "Figtree", sans-serif;
}
.button {
background-color: var(--theme-color);
color: white;
padding: 0.75em 1.25em;
border: none;
border-radius: 25em;
transition: all 0.3s ease 0s;
text-decoration: none;
}
.button:hover {
text-decoration: none;
background-color: var(--hover-theme-color);
transition: all 0.3s ease 0s;
}
.hover {
border-radius: 25px;
margin: 10%;
background-color: var(--foreground);
padding: 35px 35px 50px;
}
h2 {
display: block;
margin-top: 10px;
font-weight: 600;
font-size: 22px;
}
input {
width: calc(100% - 35px);
height: 35px;
}
select {
width: calc(100% - 13px);
height: 39px;
}
input, select {
margin-left: 10px;
margin-right: 10px;
padding-left: 10px;
padding-right: 10px;
background-color: var(--background);
color: var(--text-color);
border: solid;
border-color: var(--border-color);
border-width: 1px;
border-radius: 5px;
min-width: 20px;
}
.loginCodeDisplay {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: none;
flex-direction: column;
justify-content: center;
background-color: var(--background);
}
.loginCodeDisplay p, .loginCodeDisplay h1 {
margin: 0;
}
.loginCodeDisplay span {
margin-top: 20px;
}
.loginCodeDisplay .buttonContainer {
margin-top: 30px;
}
/* swipe animation */
.swipe {
pointer-events: none;
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
animation: swipe 0.2s forwards;
background-color: var(--background);
display: none;
}
.swipe-animate {
display: initial;
}
/* swipe-out animation */
.swipe-out {
pointer-events: none;
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: var(--background);
}
.swipe-out-animate {
animation: swipe-out 0.2s forwards;
}
@keyframes swipe {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(0);
}
}
@keyframes swipe-out {
0% {
transform: translateX(0);
}
100% {
transform: translateX(100%);
}
}
@keyframes swipe-reduced {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes swipe-out-reduced {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.swipe {
animation: swipe-reduced 0.5s forwards;
}
.swipe-out {
animation: swipe-out-reduced 0.5s forwards;
}
}