UnderCover/app/static/styles.css

484 lines
7.0 KiB
CSS
Raw Normal View History

2021-07-24 01:08:18 -04:00
html {
height: 100%;
}
body {
background-color: #f0f0f0;
line-height: 180%;
font-size: 110%;
margin-left: auto;
margin-right: auto;
display: flex;
flex-direction: column;
font-family: 'Barlow', sans-serif;
}
.transition, .transition * {
transition-duration: 0.5s;
transition-property: color, border-color, background-color;
}
.theme-toggler {
cursor: pointer;
}
body.dark-mode {
color: #e7e7e7;
background: linear-gradient(to bottom right, #2e2e62, #1a1226);
background-repeat: no-repeat;
background-attachment: fixed;
}
h1, h2 {
font-family: 'BarlowMedium', sans-serif;
text-align: center;
color: #111;
}
body.dark-mode h1 {
color: #e7e7e7;
}
body.dark-mode h2 {
color: #e7e7e7;
}
::placeholder {
color: #999;
}
span.logo {
margin: 0;
padding: 0.2em;
}
h1 span.logo.left {
color: black;
background-color: white;
transition-property: color, background-color;
transition-duration: 300ms;
transition-timing-function: ease-in;
}
h1 span.logo.right {
color: white;
background-color: black;
transition-property: color, background-color;
transition-duration: 300ms;
transition-timing-function: ease-in;
}
h1:hover span.logo.left {
color: white;
background-color: black;
}
h1:hover span.logo.right {
color: black;
background-color: white;
}
2022-09-30 00:37:52 -04:00
strong {
font-family: 'BarlowMedium', sans-serif;
}
h1 {
user-select: none;
}
h2 {
font-size: 100%;
margin-top: 0;
margin-bottom: 1em;
}
.field {
display: flex;
flex-direction: column;
}
label {
2022-09-30 00:37:52 -04:00
font-family: 'Barlow', /*'Source Sans Pro', TODO: Host or link this */ sans-serif;
/* font-weight: bold; Re-enable with above font */
font-size: 100%;
2022-09-30 00:37:52 -04:00
font-weight: 500;
color: #505050;
padding: 0.15em 0.5em;
transition-property: color, background-color;
transition-duration: 135ms;
transition-timing-function: ease-out;
}
body.dark-mode label {
color: #eee;
}
label:hover {
color: white;
background-color: #222;
}
input, textarea {
2022-09-30 00:37:52 -04:00
font-family: 'Barlow', sans-serif;
}
body.dark-mode input[type="text"] {
color: #eee;
background-color: #000;
border: none;
padding: 8px;
}
body.dark-mode textarea {
color: #eee;
background-color: #000;
border: none;
padding: 12px;
}
select {
border-radius: 0;
border-style: solid;
border-width: 1px;
padding: 10px;
2023-10-29 21:58:32 -04:00
font-size: 0.9em;
}
select, body.dark-mode select:hover {
background-color: white;
border-color: #8f8f9d;
color: black;
}
body.dark-mode select, select:hover {
background-color: black;
border-color: black;
color: #eee;
}
2022-09-23 15:25:51 -04:00
.letter-form {
2021-07-24 01:08:18 -04:00
display: flex;
flex-grow: 1;
flex-direction: column;
}
div.user {
line-height: 125%;
2022-10-02 09:45:40 -04:00
margin-bottom: 1em;
}
2022-09-23 15:25:51 -04:00
div.user form {
display: flex;
flex-direction: row;
2022-09-23 15:25:51 -04:00
font-size: 70%;
justify-content: end;
2022-09-23 15:25:51 -04:00
}
2022-09-24 08:47:33 -04:00
div.user form div {
display: flex;
flex-direction: row;
}
div.user form input, label {
border-radius: 0;
}
div.user form input {
2022-09-24 08:47:33 -04:00
font-size: 120%;
}
.btn {
cursor: pointer;
2022-09-24 08:47:33 -04:00
font-weight: bold;
border-radius: 0;
border-style: none;
}
input.btn {
padding: 0.8em 2em;
}
.color-fade {
2022-09-24 08:47:33 -04:00
transition-property: color, background-color;
transition-duration: 135ms;
transition-timing-function: ease-out;
2022-09-24 08:47:33 -04:00
}
.primary {
2022-09-24 08:47:33 -04:00
color: white;
background-color: black;
}
.primary:hover {
color: black;
background-color: white;
}
.secondary, body.dark-mode .secondary:hover {
color: black;
background-color: white;
border: 1px solid #8f8f9d;
}
.secondary a {
color: inherit;
}
.secondary:hover, body.dark-mode .secondary {
color: white;
background-color: black;
border: 1px solid black;
}
2022-09-23 15:25:51 -04:00
.logged-in {
display: flex;
flex-direction: row;
2022-09-24 08:47:33 -04:00
justify-content: end;
align-items: center;
2022-09-30 00:50:19 -04:00
font-size: 90%;
2022-09-23 15:25:51 -04:00
}
.user.logged-in {
margin-bottom: 1em;
}
.user.logged-out {
font-size: 110%;
}
2022-09-23 15:25:51 -04:00
2021-07-24 01:08:18 -04:00
dl {
display: flex;
flex-grow: 1;
flex-direction: column;
}
dd {
display: flex;
}
textarea {
flex-grow: 1;
2021-07-28 22:04:24 -04:00
padding: 0.5em;
2021-07-24 01:08:18 -04:00
}
.bigtext {
flex-grow: 1;
min-height: 35vh;
font-size: 90%;
2021-07-24 01:08:18 -04:00
}
.errors {
color: #a40f0f;
}
2021-07-24 01:08:18 -04:00
#body {
flex-grow: 1;
}
2022-09-23 09:22:27 -04:00
.wipe {
2022-10-02 09:49:24 -04:00
margin-left: auto;
2022-09-23 09:22:27 -04:00
padding: 10px 25px;
2022-10-02 09:49:24 -04:00
font-family: 'BarlowMedium', "Roboto", sans-serif;
2022-09-23 09:22:27 -04:00
background: black;
outline: none !important;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
display: inline-block;
text-decoration: none;
}
.up-wipe {
border: 2px solid rgb(255, 255, 255);
z-index: 1;
color: white;
}
.up-wipe:after {
position: absolute;
content: "";
width: 100%;
height: 0;
top: 0;
left: 0;
z-index: -1;
background: rgb(255, 255, 255);
transition: all 0.3s ease;
}
.up-wipe:hover {
color: rgb(0, 0, 0);
}
.up-wipe:hover:after {
top: auto;
bottom: 0;
height: 100%;
}
2022-09-24 08:47:33 -04:00
.modal {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
scroll-behavior: unset;
background-color: white;/*rgba(0, 0, 0, 0.4);*/
transition-property: opacity;
transition-duration: 300ms;
transition-timing-function: ease-out;
}
body.dark-mode div.modal-content {
background-color: #111;
}
.modal-background {
background: none;
}
2022-10-02 10:02:55 -04:00
.modal-content {
overflow: scroll;
}
.modal-content input {
margin-bottom: 2em;
}
2022-10-02 02:54:59 -04:00
.modal-content h2 {
font-size: 200%;
margin-bottom: 2em;
}
.top-right {
position: absolute;
top: 0;
right: 0;
}
.text-button {
background: none;
border: none;
2022-10-02 09:45:40 -04:00
font-size: 3rem;
font-weight: bold;
color: #444;
margin: 0.25em;
2022-10-02 09:45:40 -04:00
line-height: 100%;
}
.text-button:hover {
color: #000;
}
body.dark-mode .text-button:hover {
color: #fff;
}
2022-09-24 08:47:33 -04:00
/* Small screens */
@media only screen and (max-width: 720px) {
2022-09-24 08:47:33 -04:00
body {
width: 85vw;
}
h1 {
font-size: 300%;
}
h2 {
line-height: 100%;
}
input {
2022-09-30 00:37:52 -04:00
font-size: 115%;
2022-10-02 09:45:40 -04:00
flex-grow: 1;
2022-09-30 00:37:52 -04:00
padding: 0.3em;
2022-09-24 08:47:33 -04:00
}
.letter-form {
width: 100%;
}
dd {
margin-left: 0;
flex-grow: 1;
}
dd select {
flex-grow: 1;
}
.field {
2022-09-29 21:45:30 -04:00
margin-bottom: 1em;
2022-09-24 08:47:33 -04:00
}
textarea {
width: 80vw;
font-size: 120%;
}
.bigtext {
min-height: 40vh;
}
}
/* Big screens */
@media only screen and (min-width: 721px) {
2022-09-24 08:47:33 -04:00
body {
min-height: 98%;
width: calc(max(40vw, 600px));
2022-09-24 08:47:33 -04:00
}
h1 {
font-size: 300%;
}
input, textarea {
margin-bottom: 0.5em;
font-size: 105%;
padding: 4px;
2022-09-24 08:47:33 -04:00
}
dd {
margin-left: 0.5em;
}
dt {
margin-top: 0.5em;
}
dl {
margin-top: 0;
}
#closingText {
width: 50%;
}
div.user form input {
height: min-content;
}
.user {
2022-09-30 00:50:19 -04:00
position: absolute;
top: 0.5em;
right: 1em;
}
.modal-background {
background-color: rgba(0, 0, 0, 0.3)
}
.modal-content {
width: 40%;
height: 75%;
position: relative;
border-radius: 3px;
}
2022-09-24 08:47:33 -04:00
}
.transparent {
pointer-events: none;
opacity: 0;
}
2022-10-02 09:45:40 -04:00
#create-account-form {
display: flex;
flex-direction: column;
}
#create-account-form div {
display: flex;
flex-direction: column;
}
.hidden {
display: none;
2022-10-02 09:57:17 -04:00
}
.scroll-lock {
overflow: hidden;
}