BrainMinder/assets/static/css/main.css
2024-11-10 20:52:32 +01:00

556 lines
8.2 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;
}
.row:after {
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;
}
fieldset {
border-radius: 8px;
}
.switch {
float: left;
}
.switch input {
width: auto;
}
input[type='checkbox'],
input[type='radio'] {
width: 18px;
height: 18px;
position: relative;
accent-color: var(--primary-color);
}
.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.w3-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
}
#page-main {
transition: margin-left .4s;
width: 100%;
}
#form-login {
width: 600px;
}
#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;
}
.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: 4px;
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;
}
.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;
}
.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
}
}
/* Medium */
@media (max-width: 768px) {
}
@media (max-width:993px) and (min-width:768px) {
.hide-medium {
display: none !important
}
}
@media (min-width:993px) {
.hide-large {
display: none !important
}
#main-sidebar {
display: block !important;
}
.w3-row > .w3-half:first {
padding-right: 4px;
}
.w3-row > .w3-half:nth-child(2) {
padding-left: 4px;
}
#page-main {
padding-left: 300px;
}
#page-top-bar {
padding-right: 300px;
}
}