BrainMinder/assets/static/css/main.css

392 lines
5.9 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;
--bg-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-08-22 10:13:16 +02:00
}
2024-10-20 20:25:59 +02:00
/* End reset */
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-10-25 18:08:01 +02:00
.row:after {
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-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-10-20 20:25:59 +02:00
input[type='checkbox'],
input[type='radio'] {
width: 18px;
height: 18px;
position: relative;
accent-color: var(--bg-primary-color);
}
2024-10-20 20:25:59 +02:00
.label-checkbox {
top: 4px;
position: relative;
margin-left: 4px;
}
2024-10-20 20:25:59 +02:00
#main-sidebar {
width: 300px;
z-index: 5;
}
2024-10-20 20:25:59 +02:00
#app-title {
height: 50px;
background-color: var(--bg-primary-color);
color: #ffffff;
font-size: 1.4rem;
padding-left: 8px;
width: 300px;
display: flex;
align-items: center;
position: fixed;
}
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-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-10-20 20:25:59 +02:00
#search-bar {
float: right;
}
2024-10-20 20:25:59 +02:00
#search-text {
float: left;
width: auto;
padding: 4px;
}
2024-10-20 20:25:59 +02:00
#search-bar button {
margin-top: 2px;
}
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-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;
color: var(--bg-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-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-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 {
background-color: var(--bg-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 {
background-color:var(--bg-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;
}