BrainMinder/assets/static/css/main.css

973 lines
14 KiB
CSS
Raw Normal View History

/* Global variables. */
:root,
::backdrop {
2024-10-20 20:25:59 +02:00
--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;
2024-11-10 20:52:32 +01:00
--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;
}
}
*/
2024-10-20 20:25:59 +02:00
/* Reset */
*, *::before, *::after {
2024-08-22 10:13:16 +02:00
box-sizing: border-box;
}
2024-10-20 20:25:59 +02:00
h1,h2,h3,h4,h5,h6, form {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
2024-11-10 20:52:32 +01:00
color: var(--primary-color);
2024-08-22 10:13:16 +02:00
}
2024-10-20 20:25:59 +02:00
/* End reset */
2024-11-10 20:52:32 +01:00
body {
color: #000 !important;
background-color: #f1f1f1 !important;
}
2024-08-22 10:13:16 +02:00
html {
font-family: var(--sans-font), sans-serif;
scroll-behavior: smooth;
2024-10-20 20:25:59 +02:00
overflow-x: hidden;
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit
2024-08-22 10:13:16 +02:00
}
body {
margin: 0;
min-height: 100vh;
}
2024-11-21 18:14:12 +01:00
.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;
}
2024-11-17 20:12:20 +01:00
.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
}
2024-11-21 18:14:12 +01:00
.row:after, .row:before {
2024-10-25 18:08:01 +02:00
content:"";
display:table;
clear:both
}
2024-10-20 20:25:59 +02:00
input, select, textarea{
display: block;
border: 1px solid #ccc !important;
width: 100%;
font: inherit;
padding: 8px;
border-radius: 4px;
}
2024-10-20 20:25:59 +02:00
textarea {
overflow: auto;
}
2024-10-20 20:25:59 +02:00
button, .button {
border: none;
display: inline-block;
vertical-align: middle;
overflow: hidden;
text-decoration: none;
color: inherit;
background-color: inherit;
text-align: center;
2024-10-20 20:25:59 +02:00
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;
}
2024-10-20 20:25:59 +02:00
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);
}
2024-10-20 20:25:59 +02:00
button {
padding: 8px 16px;
}
2024-10-20 20:25:59 +02:00
.button {
padding: 10px 18px;
}
2024-11-21 18:14:12 +01:00
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;
}
2024-10-20 20:25:59 +02:00
fieldset {
border-radius: 8px;
}
2024-10-20 20:25:59 +02:00
.switch {
float: left;
}
2024-10-20 20:25:59 +02:00
.switch input {
width: auto;
}
2024-11-17 20:12:20 +01:00
input {
padding: 2px;
display: block;
border: none;
border-bottom: 1px solid #ccc;
width: 100%
}
2024-10-20 20:25:59 +02:00
input[type='checkbox'],
input[type='radio'] {
width: 18px;
height: 18px;
position: relative;
2024-11-10 20:52:32 +01:00
accent-color: var(--primary-color);
}
2024-11-21 18:14:12 +01:00
input[type='text']{
height: 37px;
padding: 3px;
}
2024-10-20 20:25:59 +02:00
.label-checkbox {
top: 4px;
position: relative;
margin-left: 4px;
}
2024-11-10 20:52:32 +01:00
.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,
2024-11-17 20:12:20 +01:00
.ul.hoverable li:hover {
2024-11-10 20:52:32 +01:00
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
}
2024-11-17 20:12:20 +01:00
.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)
}
2024-11-10 20:52:32 +01:00
#page-main {
transition: margin-left .4s;
width: 100%;
}
2024-11-17 20:12:20 +01:00
#form-login-container {
position: relative;
}
2024-11-10 20:52:32 +01:00
#form-login {
width: 600px;
2024-11-17 20:12:20 +01:00
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
2024-11-10 20:52:32 +01:00
}
2024-10-20 20:25:59 +02:00
#main-sidebar {
width: 300px;
z-index: 5;
2024-11-10 20:52:32 +01:00
height: 100%;
background-color: #fff;
position: fixed !important;
overflow: auto;
color: #000 !important;
animation: animateleft 0.4s;
display: none;
}
2024-10-20 20:25:59 +02:00
#app-title {
height: 50px;
2024-11-10 20:52:32 +01:00
background-color: var(--primary-color);
2024-10-20 20:25:59 +02:00
color: #ffffff;
font-size: 1.4rem;
padding-left: 8px;
width: 300px;
display: flex;
align-items: center;
position: fixed;
}
2024-11-10 20:52:32 +01:00
#app-title a {
color: #ffffff;
}
#app-title img {
height: 32px;
float: left;
padding-right: 10px;
}
#app-title a span {
vertical-align: top;
}
2024-10-20 20:25:59 +02:00
#main-sidebar-content {
margin-top: 50px;
}
2024-10-20 20:25:59 +02:00
#main-sidebar-content h5 {
font-size: 1rem;
2024-10-20 20:25:59 +02:00
margin-top: 10px;
margin-bottom: 10px;
}
2024-10-20 20:25:59 +02:00
#page-top-bar {
display: flex;
2024-10-20 20:25:59 +02:00
align-items: center;
z-index: 1;
height: 50px;
2024-11-10 20:52:32 +01:00
background-color: var(--primary-color);
position: fixed;
width: inherit;
}
2024-10-20 20:25:59 +02:00
#page-title-container {
margin-left: 8px;
padding: 0;
width: 100%;
}
2024-10-20 20:25:59 +02:00
#page-title-container h5 {
white-space: nowrap;
overflow: hidden;
}
2024-10-20 20:25:59 +02:00
#page-title {
float: left;
2024-10-20 20:25:59 +02:00
padding: 4px 4px;
font-size: 1.4rem;
}
2024-11-10 20:52:32 +01:00
#page-title h5 {
color: #ffffff;
}
2024-10-20 20:25:59 +02:00
#search-bar {
float: right;
}
2024-11-10 20:52:32 +01:00
#search-bar button {
color: #ffffff;
margin-top: 2px;
}
2024-10-20 20:25:59 +02:00
#search-text {
float: left;
width: auto;
padding: 4px;
}
2024-10-20 20:25:59 +02:00
.sidebar-block {
padding: 0.01em 4px;
}
2024-10-20 20:25:59 +02:00
.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;
}
2024-11-10 20:52:32 +01:00
#types_menu, #settings_menu {
margin-left: 2px !important;
}
2024-11-21 18:14:12 +01:00
.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;
}
2024-11-10 20:52:32 +01:00
.menu-item-title:hover, #settings_menu a:hover{
border-radius: 8px;
background-color: var(--primary-color);
color: #ffffff;
}
.accordion {
cursor: pointer;
}
#page-content {
2024-11-21 18:14:12 +01:00
padding-top: 60px;
2024-11-10 20:52:32 +01:00
padding-left: 4px;
padding-right: 4px;
}
2024-10-20 20:25:59 +02:00
#page-container {
padding: 0.01em 4px;
}
2024-10-20 20:25:59 +02:00
#dashboard h5 {
font-size: 1rem;
2024-11-10 20:52:32 +01:00
color: var(--primary-color);
}
2024-10-20 20:25:59 +02:00
.tab-bar {
color: #000 !important;
background-color: #f1f1f1 !important;
width: 100%;
overflow: hidden;
}
2024-10-20 20:25:59 +02:00
.tab-button {
margin-right: 6px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
background-color: #ccc;
cursor: pointer;
2024-10-20 20:25:59 +02:00
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;
2024-11-21 18:14:12 +01:00
font-weight: bold;
}
2024-10-20 20:25:59 +02:00
.tab-button.active,
.tab-button:hover {
background-color: #f1f1f1 !important;
}
2024-10-20 20:25:59 +02:00
.menu-item-title {
overflow: hidden;
}
2024-10-20 20:25:59 +02:00
.menu-item-title a {
text-align:left;
width: 100%;
}
2024-10-20 20:25:59 +02:00
.menu-item-action {
float: right;
width: 50px;
}
2024-10-20 20:25:59 +02:00
.menu-item-title a {
font-size: 1rem;
}
2024-11-21 18:14:12 +01:00
.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%
}
2024-10-20 20:25:59 +02:00
.ss-main {
padding: 3px;
}
2024-10-20 20:25:59 +02:00
.ss-value {
padding: 4px;
}
2024-10-20 20:25:59 +02:00
.ss-main .ss-values .ss-value .ss-value-text {
font-size: 15px;
}
2024-10-20 20:25:59 +02:00
.ss-main .ss-values .ss-value {
2024-11-10 20:52:32 +01:00
background-color: var(--primary-color);
}
2024-10-20 20:25:59 +02:00
.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 {
2024-11-10 20:52:32 +01:00
background-color:var(--primary-color);
}
2024-10-20 20:25:59 +02:00
#quickbox {
position: fixed;
display: none;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ddd;
z-index: 5;
}
2024-10-20 20:25:59 +02:00
#quickbox-top-bar {
height: var(--quickbox-topbar-height);
}
2024-10-20 20:25:59 +02:00
#quickbox-footer {
height: var(--quickbox-footer-height);
position:fixed; bottom:0;
}
2024-10-20 20:25:59 +02:00
#quickbox-content {
height: calc(100vh - var(--quickbox-footer-height));
overflow: auto;
display: flex;
flex-direction: column-reverse;
}
2024-10-20 20:25:59 +02:00
#quickbox-content .w3-button {
padding: 6px 10px;
}
2024-10-20 20:25:59 +02:00
#quickbox-content .buttons {
width: 32px;
}
2024-10-20 20:25:59 +02:00
#quickbox-content .buttons :first-child {
margin-bottom: 4px;
}
2024-10-20 20:25:59 +02:00
#quickbox-title-container {
width: 100%;
padding: 0;
margin-left: 8px;
}
2024-10-20 20:25:59 +02:00
#quickbox-footer {
padding: 2px;
}
2024-10-20 20:25:59 +02:00
#quickbox-footer .button {
width: 50px;
margin-left: 4px;
}
2024-10-20 20:25:59 +02:00
#quickbox-send {
cursor: pointer;
padding: 14px 16px;
}
2024-10-20 20:25:59 +02:00
#quickbox-footer .textarea {
padding-right: 4px;
}
2024-10-20 20:25:59 +02:00
.quickbox-row {
margin-top: 4px;
margin-bottom: 4px;
}
2024-10-20 20:25:59 +02:00
#quickbox-content .w3-row {
background-color: #fff;
2024-08-22 10:13:16 +02:00
}
#quickbox-content div:nth-child(2n+1) {
background-color: #fafafa;
2024-11-10 20:52:32 +01:00
}
.hide,.hidden {
display: none !important
}
.block,
.show {
display: block !important
}
/* Small */
@media (max-width: 568px) {
.hide-small {
display: none !important
}
}
2024-11-21 18:14:12 +01:00
/* 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);
}
}
2024-11-10 20:52:32 +01:00
/* Medium */
@media (max-width: 768px) {
2024-11-21 18:14:12 +01:00
.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%
}
2024-11-10 20:52:32 +01:00
2024-11-21 18:14:12 +01:00
.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%;
}
2024-11-10 20:52:32 +01:00
}
@media (max-width:993px) and (min-width:768px) {
.hide-medium {
display: none !important
}
}
@media (min-width:993px) {
2024-11-21 18:14:12 +01:00
.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%
}
2024-11-10 20:52:32 +01:00
.hide-large {
display: none !important
}
#main-sidebar {
display: block !important;
}
2024-11-21 18:14:12 +01:00
.row > .w3-half:first {
2024-11-10 20:52:32 +01:00
padding-right: 4px;
}
2024-11-21 18:14:12 +01:00
.row > .w3-half:nth-child(2) {
2024-11-10 20:52:32 +01:00
padding-left: 4px;
}
#page-main {
padding-left: 300px;
}
#page-top-bar {
padding-right: 300px;
}
}