BrainMinder/assets/static/css/main.css
2024-11-21 18:14:12 +01:00

973 lines
14 KiB
CSS

/* Global variables. */
:root,
::backdrop {
--quickbox-topbar-height: 50px;
--quickbox-footer-height: 64px;
--quickbox-send-width: 66px;
/* Set sans-serif & mono fonts */
--sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
"Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
"Helvetica Neue", sans-serif;
--mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
--standard-border-radius: 5px;
/* Default (light) theme */
--bg: #fff;
--primary-color: #2b5797;
}
/* Dark theme */
/*
@media (prefers-color-scheme: dark) {
:root,
::backdrop {
color-scheme: dark;
--bg: #212121;
--accent-bg: #2b2b2b;
--text: #dcdcdc;
--text-light: #ababab;
--accent: #ffb300;
--accent-hover: #ffe099;
--accent-text: var(--bg);
--code: #f06292;
--preformatted: #ccc;
--disabled: #111;
}
*/
/* Add a bit of transparency so light media isn't so glaring in dark mode */
/*
img,
video {
opacity: 0.8;
}
}
*/
/* Reset */
*, *::before, *::after {
box-sizing: border-box;
}
h1,h2,h3,h4,h5,h6, form {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: var(--primary-color);
}
/* End reset */
body {
color: #000 !important;
background-color: #f1f1f1 !important;
}
html {
font-family: var(--sans-font), sans-serif;
scroll-behavior: smooth;
overflow-x: hidden;
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit
}
body {
margin: 0;
min-height: 100vh;
}
.modal {
z-index: 100;
padding-top: 100px;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.4);
display: block;
}
.modal-content {
margin: auto;
background-color: #fff;
position: relative;
padding: 0;
outline: 0;
width: 600px;
color: rgb(84, 84, 84);
}
.modal-content h5 {
font-weight: 600 !important;
}
.display-topleft {
position: absolute;
left: 0;
top: 0
}
.display-topright {
position: absolute;
right: 0;
top: 0
}
.display-bottomleft {
position: absolute;
left: 0;
bottom: 0
}
.display-bottomright {
position: absolute;
right: 0;
bottom: 0
}
.display-middle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%)
}
.display-left {
position: absolute;
top: 50%;
left: 0%;
transform: translate(0%, -50%);
-ms-transform: translate(-0%, -50%)
}
.display-right {
position: absolute;
top: 50%;
right: 0%;
transform: translate(0%, -50%);
-ms-transform: translate(0%, -50%)
}
.display-topmiddle {
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%, 0%);
-ms-transform: translate(-50%, 0%)
}
.display-bottommiddle {
position: absolute;
left: 50%;
bottom: 0;
transform: translate(-50%, 0%);
-ms-transform: translate(-50%, 0%)
}
.display-container:hover .display-hover {
display: block
}
.display-container:hover span.display-hover {
display: inline-block
}
.display-hover {
display: none
}
.display-position {
position: absolute
}
ul {
list-style-type: none;
padding: 0;
margin: 0
}
ul li {
padding: 8px 16px;
border-bottom: 1px solid #ddd
}
ul li:last-child {
border-bottom: none
}
.row:after, .row:before {
content:"";
display:table;
clear:both
}
input, select, textarea{
display: block;
border: 1px solid #ccc !important;
width: 100%;
font: inherit;
padding: 8px;
border-radius: 4px;
}
textarea {
overflow: auto;
}
button, .button {
border: none;
display: inline-block;
vertical-align: middle;
overflow: hidden;
text-decoration: none;
color: inherit;
background-color: inherit;
text-align: center;
cursor: pointer;
white-space: nowrap;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
font-size: 0.9rem;
border-radius: 8px;
}
button:hover, .button:hover {
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
button {
padding: 8px 16px;
}
.button {
padding: 10px 18px;
}
button.main, .button.main {
background-color: var(--primary-color);
color: #ffffff;
}
button.secondary, .button.secondary {
background-color: #4d4d4d;
color: #ffffff;
}
button.delete, .button.delete {
background-color: #aa2222;
color: #ffffff;
}
fieldset {
border-radius: 8px;
}
.switch {
float: left;
}
.switch input {
width: auto;
}
input {
padding: 2px;
display: block;
border: none;
border-bottom: 1px solid #ccc;
width: 100%
}
input[type='checkbox'],
input[type='radio'] {
width: 18px;
height: 18px;
position: relative;
accent-color: var(--primary-color);
}
input[type='text']{
height: 37px;
padding: 3px;
}
.label-checkbox {
top: 4px;
position: relative;
margin-left: 4px;
}
.table-all {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
display: table;
border: 1px solid #ccc
}
.bordered tr,
.table-all tr {
border-bottom: 1px solid #ddd
}
.striped tbody tr:nth-child(even) {
background-color: #f1f1f1
}
.table-all tr:nth-child(odd) {
background-color: #fff
}
.table-all tr:nth-child(even) {
background-color: #f1f1f1
}
.hoverable tbody tr:hover,
.ul.hoverable li:hover {
background-color: #ccc
}
.centered tr th,
.centered tr td {
text-align: center
}
.table-all td,
.table-all th {
padding: 8px 8px;
display: table-cell;
text-align: left;
vertical-align: top
}
.table-all th:first-child,
.table-all td:first-child {
padding-left: 16px
}
.card {
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)
}
.hover-shadow:hover {
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19)
}
#page-main {
transition: margin-left .4s;
width: 100%;
}
#form-login-container {
position: relative;
}
#form-login {
width: 600px;
background-color: var(--primary-color);
color: #ffffff;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
border-radius: 4px;
padding: 12px 24px !important;
}
#form-login input {
border: 1px solid #ccc !important
}
#main-sidebar {
width: 300px;
z-index: 5;
height: 100%;
background-color: #fff;
position: fixed !important;
overflow: auto;
color: #000 !important;
animation: animateleft 0.4s;
display: none;
}
#app-title {
height: 50px;
background-color: var(--primary-color);
color: #ffffff;
font-size: 1.4rem;
padding-left: 8px;
width: 300px;
display: flex;
align-items: center;
position: fixed;
}
#app-title a {
color: #ffffff;
}
#app-title img {
height: 32px;
float: left;
padding-right: 10px;
}
#app-title a span {
vertical-align: top;
}
#main-sidebar-content {
margin-top: 50px;
}
#main-sidebar-content h5 {
font-size: 1rem;
margin-top: 10px;
margin-bottom: 10px;
}
#page-top-bar {
display: flex;
align-items: center;
z-index: 1;
height: 50px;
background-color: var(--primary-color);
position: fixed;
width: inherit;
}
#page-title-container {
margin-left: 8px;
padding: 0;
width: 100%;
}
#page-title-container h5 {
white-space: nowrap;
overflow: hidden;
}
#page-title {
float: left;
padding: 4px 4px;
font-size: 1.4rem;
}
#page-title h5 {
color: #ffffff;
}
#search-bar {
float: right;
}
#search-bar button {
color: #ffffff;
margin-top: 2px;
}
#search-text {
float: left;
width: auto;
padding: 4px;
}
.sidebar-block {
padding: 0.01em 4px;
}
.sidebar-menu a {
width: 100%;
display: block;
padding: 8px 16px;
text-align: left;
border: none;
white-space: normal;
float: none;
outline: 0;
font-size: 1rem;
}
#types_menu, #settings_menu {
margin-left: 2px !important;
}
.item-card {
position: relative;
background-color: #ffffff;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
border-radius: 8px;
padding: 10px;
margin: 10px;
}
.menu-item-title:hover, #settings_menu a:hover{
border-radius: 8px;
background-color: var(--primary-color);
color: #ffffff;
}
.accordion {
cursor: pointer;
}
#page-content {
padding-top: 60px;
padding-left: 4px;
padding-right: 4px;
}
#page-container {
padding: 0.01em 4px;
}
#dashboard h5 {
font-size: 1rem;
color: var(--primary-color);
}
.tab-bar {
color: #000 !important;
background-color: #f1f1f1 !important;
width: 100%;
overflow: hidden;
}
.tab-button {
margin-right: 6px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
background-color: #ccc;
cursor: pointer;
padding: 6px 16px;
float: left;
width: auto;
display: block;
border-right: 1px solid #ccc !important;
border-left: 1px solid #ccc !important;
border-top: 1px solid #ccc !important;
font-weight: bold;
}
.tab-button.active,
.tab-button:hover {
background-color: #f1f1f1 !important;
}
.menu-item-title {
overflow: hidden;
}
.menu-item-title a {
text-align:left;
width: 100%;
}
.menu-item-action {
float: right;
width: 50px;
}
.menu-item-title a {
font-size: 1rem;
}
.bar {
width: 100%;
overflow: hidden
}
.center .bar {
display: inline-block;
width: auto
}
.bar .bar-item {
padding: 6px 16px;
float: left;
width: auto;
border: none;
display: block;
outline: 0
}
.bar .button {
white-space: normal
}
.bar-block .bar-item {
width: 100%;
display: block;
padding: 8px 16px;
text-align: left;
border: none;
white-space: normal;
float: none;
outline: 0
}
.bar-block.center .bar-item {
text-align: center
}
.col,
.half,
.third,
.twothird,
.threequarter,
.quarter {
float: left;
width: 100%
}
.col.s1 {
width: 8.33333%
}
.col.s2 {
width: 16.66666%
}
.col.s3 {
width: 24.99999%
}
.col.s4 {
width: 33.33333%
}
.col.s5 {
width: 41.66666%
}
.col.s6 {
width: 49.99999%
}
.col.s7 {
width: 58.33333%
}
.col.s8 {
width: 66.66666%
}
.col.s9 {
width: 74.99999%
}
.col.s10 {
width: 83.33333%
}
.col.s11 {
width: 91.66666%
}
.col.s12 {
width: 99.99999%
}
.ss-main {
padding: 3px;
}
.ss-value {
padding: 4px;
}
.ss-main .ss-values .ss-value .ss-value-text {
font-size: 15px;
}
.ss-main .ss-values .ss-value {
background-color: var(--primary-color);
}
.ss-content .ss-list .ss-option:hover,
.ss-content .ss-list .ss-option.ss-highlighted,
.ss-content .ss-list .ss-option:not(.ss-disabled).ss-selected {
background-color:var(--primary-color);
}
#quickbox {
position: fixed;
display: none;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ddd;
z-index: 5;
}
#quickbox-top-bar {
height: var(--quickbox-topbar-height);
}
#quickbox-footer {
height: var(--quickbox-footer-height);
position:fixed; bottom:0;
}
#quickbox-content {
height: calc(100vh - var(--quickbox-footer-height));
overflow: auto;
display: flex;
flex-direction: column-reverse;
}
#quickbox-content .w3-button {
padding: 6px 10px;
}
#quickbox-content .buttons {
width: 32px;
}
#quickbox-content .buttons :first-child {
margin-bottom: 4px;
}
#quickbox-title-container {
width: 100%;
padding: 0;
margin-left: 8px;
}
#quickbox-footer {
padding: 2px;
}
#quickbox-footer .button {
width: 50px;
margin-left: 4px;
}
#quickbox-send {
cursor: pointer;
padding: 14px 16px;
}
#quickbox-footer .textarea {
padding-right: 4px;
}
.quickbox-row {
margin-top: 4px;
margin-bottom: 4px;
}
#quickbox-content .w3-row {
background-color: #fff;
}
#quickbox-content div:nth-child(2n+1) {
background-color: #fafafa;
}
.hide,.hidden {
display: none !important
}
.block,
.show {
display: block !important
}
/* Small */
@media (max-width: 568px) {
.hide-small {
display: none !important
}
}
/* Min medium */
@media (min-width:601px) {
.home-card-summary {
height: 250px;
overflow: auto;
}
#quickbox {
width: 400px;
position: fixed;
top: 50px;
left: calc(100vw - 420px);
height: calc(100vh - 50px);
background-color: #fff !important;
border-left: 2px solid #fff;
border-top: 2px solid #fff;
}
#quickbox-top-bar {
position: relative;
}
#quickbox-footer {
position: relative;
}
#quickbox-content {
height: calc(100vh - var(--quickbox-footer-height) - var(--quickbox-footer-height) - 42px);
}
}
/* Medium */
@media (max-width: 768px) {
.col.m1 {
width: 8.33333%
}
.col.m2 {
width: 16.66666%
}
.col.m3,
.w3-quarter {
width: 24.99999%
}
.col.m4,
.w3-third {
width: 33.33333%
}
.col.m5 {
width: 41.66666%
}
.col.m6,
.w3-half {
width: 49.99999%
}
.col.m7 {
width: 58.33333%
}
.col.m8,
.w3-twothird {
width: 66.66666%
}
.col.m9,
.w3-threequarter {
width: 74.99999%
}
.col.m10 {
width: 83.33333%
}
.col.m11 {
width: 91.66666%
}
.col.m12 {
width: 99.99999%
}
}
@media (min-width:60px) {
.col.half {
width: 49.99999%;
}
}
@media (max-width:993px) and (min-width:768px) {
.hide-medium {
display: none !important
}
}
@media (min-width:993px) {
.col.l1 {
width: 8.33333%
}
.col.l2 {
width: 16.66666%
}
.col.l3 {
width: 24.99999%
}
.col.l4 {
width: 33.33333%
}
.col.l5 {
width: 41.66666%
}
.col.l6 {
width: 49.99999%
}
.col.l7 {
width: 58.33333%
}
.col.l8 {
width: 66.66666%
}
.col.l9 {
width: 74.99999%
}
.col.l10 {
width: 83.33333%
}
.col.l11 {
width: 91.66666%
}
.col.l12 {
width: 99.99999%
}
.hide-large {
display: none !important
}
#main-sidebar {
display: block !important;
}
.row > .w3-half:first {
padding-right: 4px;
}
.row > .w3-half:nth-child(2) {
padding-left: 4px;
}
#page-main {
padding-left: 300px;
}
#page-top-bar {
padding-right: 300px;
}
}