onboard/static/styles/main.css
2021-07-21 20:58:18 -06:00

303 lines
4.2 KiB
CSS

:root {
--white: #fdfdff;
--black: #393d3f;
--grey: #a7b4bb;
--blue: #2288a2;
}
html {
font-size: 137.5%; /*22px*/
}
@media (max-width: 600px) {
html {
font-size: 112.5%; /* 18px */
}
}
body {
background: white;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
line-height: 1.75;
color: #000000;
}
p {
margin-bottom: 1rem;
}
h1, h2, h3, h4, h5 {
margin: 3rem 0 1.38rem;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 700;
line-height: 1.3;
}
h1 {
margin-top: 0;
font-size: 1.802rem;
}
h2 {
font-size: 1.602rem;
}
h1 + h2 {
margin-top: 0;
}
h3 {
font-size: 1.424rem;
}
h4 {
font-size: 1.266rem;
}
h5 {
font-size: 1.125rem;
}
small {
font-size: 0.889rem;
}
a {
color: var(--blue);
white-space: nowrap;
}
blockquote {
margin-left: 0;
padding-left: 2rem;
border-left: 2px solid var(--blue);
}
header {
padding: 1rem;
}
article {
max-width: 64rem;
margin: 0 auto 2rem;
padding: 1rem;
border: 0.2rem solid var(--grey);
}
@media all and (max-width: 64rem) {
article {
border-right: none;
border-left: none;
}
}
.navbar__desktop {
display: flex;
justify-content: space-between;
align-items: baseline;
font-weight: 700;
}
.navbar__mobile {
display: none;
}
.navbar__menu {
}
.navbar__menu_title {
font-weight: 900;
padding: 0.2rem 1rem;
border: none;
background-color: var(--blue);
color: white;
cursor: pointer;
text-decoration: none;
}
.navbar__menu_items {
position: absolute;
z-index: 3;
background-color: var(--white);
padding: 1rem;
margin: 0;
border: 1px solid #bdc3c7;
box-shadow: 3px 3px 3px #bdc3c7;
right: 0;
}
@media (max-width: 900px) {
.navbar__desktop {
display: none;
}
.navbar__mobile {
display: block;
}
}
.navbar div a:not(:last-child) {
margin-right: 1rem;
}
#todo__list {
list-style-type: none;
padding-left: 0;
}
.hidden_action {
margin-left: 1rem;
display: none;
}
.todo__item {
display: flex;
align-items: center;
align-content: flex-start;
}
.todo__item:hover .hidden_action {
display: inline-block;
}
.todo__checkbox {
margin-right: 0.5rem;
}
.todo_form {
display: flex;
}
.todo__details {
display: flex;
align-items: center;
flex-direction: row;
}
.--hidden {
display: none;
}
.--archived {
text-align: center;
background-color: #ccc;
}
.action-button {
padding: 0.25rem 1rem;
background-color: var(--blue);
font-weight: 900;
line-height: 1.75;
border: none;
color: white;
cursor: pointer;
text-decoration: none;
}
/* FORMS */
input[type=text]:not([name=description]),
input[type=number],
input[type=password],
input[type=search],
textarea, select {
border: 0.2rem solid var(--grey);
padding: 0.3rem;
font-family: inherit;
outline: none;
width: 100%;
max-width: 100%;
box-sizing: border-box;
}
input[name=description] {
border: 0.2rem solid var(--grey);
padding: 0.3rem;
font-family: inherit;
outline: none;
box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
border-color: var(--blue);
}
input[type=radio], input[type=checkbox] {
cursor: pointer;
width: 1.5rem;
height: 1.5rem;
vertical-align: middle;
}
textarea {
resize: none;
}
label {
display: block;
}
input[type=checkbox], label {
cursor: pointer;
}
input[type=checkbox] {
height: 1rem;
width: 1rem;
}
li label {
display: inline-block;
}
/*MENU*/
hgroup {
position: relative;
}
.menu__title {
font-weight: 900;
padding: 0.2rem 1rem;
border: none;
background-color: var(--blue);
color: white;
cursor: pointer;
text-decoration: none;
}
.menu__items {
background-color: var(--white);
padding: 1rem;
margin: 0;
border: 1px solid #bdc3c7;
}
@media (min-width: 900px) {
.menu {
position: absolute;
top: 0;
right: 0;
}
.menu__items {
width: 12rem;
position: absolute;
z-index: 3;
box-shadow: 3px 3px 3px #bdc3c7;
right: 0;
text-align: left;
}
}