Files
mtg_commander_life_tracker/static/css/main.css

218 lines
4.2 KiB
CSS

:root {
--font-family-base: 'Open Sans', Arial, sans-serif;
/* Declare global variables */
/*
--c_purple: #5B29FF;
--c_purple_pastel: #D1D1FF;
--c_purple_lighter: #E8E1FF;
--c_purple_light: #C6BDFF;
--c_purple_dark: #4700B3;
*/
/* purple theme
- light https://coolors.co/palette/a172fd-a77afe-ac82fe-b691fe-c1a0fe-cbaffe-d6bffe-e0cefe-ebddfe-f5ecfe
- dark https://coolors.co/palette/310055-3c0663-4a0a77-5a108f-6818a5-8b2fc9-ab51e3-bd68ee-d283ff-dc97ff
*/
/*
--c_purple_darker: #310055;
--c_purple_dark: #4A0A77;
--c_purple: #6818A5;
--c_purple_light: #CBAFFE;
--c_purple_lighter: #F5ECFE;
--c_blue: #0044FF;
--c_blue_pastel: #B8E0FF;
--c_blue_light: #73E8FF;
--c_blue_dark: #003ADB;
*/
/* --c_red: * /
--c-red: #FF0000;
--c_red_pastel: #FAE0E2;
--c_red_lighter: #FAE0E2;
*/
}
html {
height: 100vh;
/* overflow-y: clip; */
}
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: var(--font-family-base);
font-family: Arial;
padding: 0;
margin: 0;
border: 0;
height: 100vh;
/* max-height: 100vh;
overflow-y: clip; */
}
* {
margin: 0;
color: var(--text-color);
}
script, link {
display: none !important;
}
/*
#pageBody {
/ * height: 69vh !important; * /
max-height: 79vh;
padding: 0 5vw;
margin: 0;
border: 0;
align-content: center;
justify-content: flex-start;
display: flex;
flex-direction: column;
align-items: flex-start;
overflow-y: auto;
overflow-x: hidden;
position: absolute;
width: 90vw;
color: var(--colour-text);
}
*/
.page-body > * {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
text-align: center;
width: 100%;
align-self: center;
font-size: 1rem;
color: var(--text-color);
}
#pageBody > * > * {
align-self: center;
padding-top: 0.5vh 0.5vw;
padding-bottom: 0.5vh 0.5vw;
}
#pageBody > .card {
height: fit-content;
margin: 0.5vh auto;
}
section {
margin: 0 auto;
}
/* Add a card effect for articles */
.card {
padding: 1vh 2.5vw;
margin: 1vh 1vw;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
text-align: center;
border-radius: 1.5vh;
position: relative;
height: fit-content;
max-width: 80vw;
}
.container {
flex: 1;
margin: 0;
align-items: flex-start;
justify-content: flex-start;
text-align: flex-start;
/* max-width: 100%; */
/* min-width: fit-content; */
}
.column {
display: flex;
flex-direction: column;
align-items: center;
margin: auto 0;
}
.row {
display: flex;
flex-direction: row;
width: 100%;
flex-wrap: wrap;
}
.container > .card:first-of-type {
margin-top: none;
}
/*
/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other *
@media screen and (max-width: 800px) {
.leftcolumn, .rightcolumn {
width: 100%;
/* padding: 0; *
}
}
/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other *
@media screen and (max-width: 400px) {
.topnav a {
float: none;
width: 100%;
}
}
*/
.container-input {
padding: 1vh 1vw;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
text-align: center;
}
.container-input > label {
width: 100%;
margin-bottom: 1vh;
margin-top: 0;
}
.container-input > input,
.container-input > textarea {
border: 2px solid var(--border-color);
border-radius: 0.5vh;
padding: 1vh 1vw;
}
.label-title {
width: 100%;
}
ul {
max-width: 90%;
padding: 5px 0 10px 0;
width: fit-content;
margin: auto;
}
li {
text-align: left;
font-size: 18px;
}
:not(input,textarea,select,button).dirty {
background-color: var(--border-color);
}
input.dirty, textarea.dirty, select.dirty {
border-color: var(--primary-color);
}
.is-collapsed {
display: none;
}