UnderCover/undercover/static/styles.css

349 lines
5.1 KiB
CSS
Raw Normal View History

2022-09-30 00:37:52 -04:00
@font-face {
font-family: 'Barlow';
src: url('/static/fonts/Barlow-Regular.ttf');
}
@font-face {
font-family: 'BarlowMedium';
src: url('/static/fonts/Barlow-Medium.ttf');
}
2021-07-24 01:08:18 -04:00
html {
height: 100%;
}
::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;
}
2021-07-24 01:08:18 -04:00
body {
2022-09-22 11:43:46 -04:00
background-color: #f0f0f0;
2022-09-30 00:37:52 -04:00
line-height: 180%;
font-size: 110%;
2021-07-24 01:08:18 -04:00
margin-left: auto;
margin-right: auto;
display: flex;
flex-direction: column;
2022-09-30 00:37:52 -04:00
font-family: 'Barlow', sans-serif;
}
strong {
font-family: 'BarlowMedium', sans-serif;
}
h1, h2 {
2022-09-30 00:37:52 -04:00
font-family: 'BarlowMedium', sans-serif;
text-align: center;
}
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;
}
label:hover {
color: white;
background-color: #222;
}
input, textarea {
2022-09-30 00:37:52 -04:00
font-family: 'Barlow', sans-serif;
}
select {
background-color: white;
border-radius: 0;
border-style: solid;
border-width: 1px;
border-color: #ccc;
}
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-09-24 08:47:33 -04:00
margin-bottom: 2em;
}
2022-09-23 15:25:51 -04:00
div.user form {
display: flex;
2022-09-24 08:47:33 -04:00
flex-direction: column;
2022-09-23 15:25:51 -04:00
font-size: 70%;
}
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%;
border-style: solid;
border-width: 1px;
border-color: #ddd;
2022-09-24 08:47:33 -04:00
padding: 0.3em;
}
.white-black-button {
font-weight: bold;
border-radius: 0;
border-style: none;
color: black;
background-color: white;
transition-property: color, background-color;
transition-duration: 135ms;
transition-timing-function: ease-out;
2022-09-24 08:47:33 -04:00
}
.white-black-button:hover {
color: white;
background-color: black;
}
.black-white-button {
font-weight: bold;
border-radius: 0;
border-style: none;
color: white;
background-color: black;
transition-property: color, background-color;
transition-duration: 135ms;
transition-timing-function: ease-out;
}
.black-white-button:hover {
color: black;
background-color: white;
}
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;
}
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;
}
2022-09-23 09:22:27 -04:00
.wipe {
2021-07-28 22:04:24 -04:00
margin-left: auto;
padding: 0.5em 1em 0.5em 1em;
}
2021-07-24 01:08:18 -04:00
#body {
flex-grow: 1;
}
2022-09-23 09:22:27 -04:00
.wipe {
padding: 10px 25px;
2022-09-30 00:37:52 -04:00
font-family: 'Barlow', "Roboto", sans-serif;
2022-09-23 09:22:27 -04:00
font-weight: 500;
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
/* Small screens */
@media only screen and (max-width: 1080px) {
body {
width: 85vw;
}
h1 {
font-size: 300%;
}
h2 {
line-height: 100%;
}
input {
2022-09-30 00:37:52 -04:00
font-size: 115%;
2022-09-24 08:47:33 -04:00
width: 100%;
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;
}
.login-button {
padding: 0.75em;
}
}
/* Big screens */
@media only screen and (min-width: 1081px) {
body {
min-height: 98%;
width: 40vw;
}
h1 {
font-size: 300%;
}
input, textarea {
margin-bottom: 0.5em;
font-size: 105%;
}
dd {
margin-left: 0.5em;
}
dt {
margin-top: 0.5em;
}
dl {
margin-top: 0;
}
#closingText {
width: 50%;
}
div.user form {
flex-direction: row;
}
div.user form input {
font-size: 110%;
padding: 0.5em;
height: min-content;
}
.login-button {
padding: 0;
}
2022-09-30 00:50:19 -04:00
.logged-in {
position: absolute;
top: 0.5em;
right: 1em;
}
2022-09-24 08:47:33 -04:00
}