432 lines
9.2 KiB
CSS
432 lines
9.2 KiB
CSS
@import 'tailwindcss/base';
|
|
@import 'tailwindcss/components';
|
|
@import 'tailwindcss/utilities';
|
|
|
|
|
|
[data-theme='light'] {
|
|
--text-color: #000000;
|
|
--bg-color: #f4f4f4;
|
|
--hover-bg-color: #e4e4f0;
|
|
--separator-line-color: #e0e0e0;
|
|
--low-emphasis-text-color: #6b6b6b;
|
|
--primary-color: #1F96F3;
|
|
--dull-primary-color: #51aaf0;
|
|
--elevated-bg-color: #ffffff;
|
|
--bg-accent-color: #f4f4f4;
|
|
--danger-color: #ff2d2f;
|
|
--hyperlink-color: #3b82f6;
|
|
}
|
|
|
|
[data-theme='dark'] {
|
|
--text-color: #f4f4f4;
|
|
--bg-color: #0c0c0c;
|
|
--hover-bg-color: #1a1c1c;
|
|
--separator-line-color: #1a2029;
|
|
--low-emphasis-text-color: #999999;
|
|
--primary-color: #1F96F3;
|
|
--dull-primary-color: #1569ab;
|
|
--elevated-bg-color: #101011;
|
|
--bg-accent-color: #202020;
|
|
--danger-color: #ff1d1f;
|
|
--hyperlink-color: #3b82f6;
|
|
}
|
|
|
|
body {
|
|
background: var(--bg-color);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
h1 {
|
|
color: var(--text-color);
|
|
@apply text-4xl
|
|
}
|
|
|
|
.bg-color {
|
|
background-color: var(--bg-color);
|
|
}
|
|
|
|
.hover-bg-color:hover {
|
|
background-color: var(--hover-bg-color);
|
|
}
|
|
|
|
.low-emphasis-text {
|
|
color: var(--low-emphasis-text-color);
|
|
}
|
|
|
|
.low-emphasis-text-button {
|
|
color: var(--low-emphasis-text-color);
|
|
}
|
|
|
|
.low-emphasis-text-button:hover {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.primary-underline {
|
|
border-bottom: 2px solid var(--primary-color);
|
|
}
|
|
|
|
.top-border {
|
|
border-top: 1px solid var(--separator-line-color);
|
|
}
|
|
|
|
.bottom-border {
|
|
border-bottom: 1px solid var(--separator-line-color);
|
|
}
|
|
|
|
.left-border {
|
|
border-left: 1px solid var(--separator-line-color);
|
|
}
|
|
|
|
.right-border {
|
|
border-right: 1px solid var(--separator-line-color);
|
|
}
|
|
|
|
.icon-16 {
|
|
font-size: 16px !important;
|
|
font-variation-settings:
|
|
'FILL' 0,
|
|
'wght' 400,
|
|
'GRAD' 0,
|
|
'opsz' 20
|
|
}
|
|
|
|
.icon-20 {
|
|
font-size: 20px !important;
|
|
font-variation-settings:
|
|
'FILL' 0,
|
|
'wght' 400,
|
|
'GRAD' 0,
|
|
'opsz' 20
|
|
}
|
|
|
|
input[type='search'], input[type='text'], input[type='password'], input[type='email'], input[type='tel'], input[type='number'], textarea, select {
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
border: 1px solid var(--separator-line-color);
|
|
caret-color: var(--text-color);
|
|
}
|
|
|
|
input[type='search']:focus, input[type='text']:focus, input[type='password']:focus, input[type='email']:focus, input[type='tel']:focus, input[type='number']:focus, textarea:focus, select:focus {
|
|
outline: 0 solid var(--text-color);
|
|
border: 1px solid var(--primary-color);
|
|
box-shadow: 0 0 0 0 var(--primary-color);
|
|
caret-color: var(--text-color);
|
|
}
|
|
|
|
input[type='search']:-webkit-autofill, input[type='text']:-webkit-autofill, input[type='password']:-webkit-autofill, input[type='email']:-webkit-autofill, input[type='tel']:-webkit-autofill, input[type='number']:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
|
|
-webkit-text-fill-color: var(--text-color) !important;
|
|
background-clip: text !important;
|
|
caret-color: var(--text-color);
|
|
}
|
|
|
|
.input-field {
|
|
border: 1px solid var(--separator-line-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.arrange-vertically > * {
|
|
display: block;
|
|
}
|
|
|
|
.search-bar {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.search-bar input[type='search'] {
|
|
flex-grow: 1;
|
|
border: 1px solid var(--separator-line-color);
|
|
border-top-left-radius: 4px;
|
|
border-bottom-left-radius: 4px;
|
|
outline: none;
|
|
height: 36px;
|
|
}
|
|
|
|
.search-bar button {
|
|
height: 36px;
|
|
background: none;
|
|
border-top: 1px solid var(--separator-line-color);
|
|
border-right: 1px solid var(--separator-line-color);
|
|
border-bottom: 1px solid var(--separator-line-color);
|
|
border-top-right-radius: 4px;
|
|
border-bottom-right-radius: 4px;
|
|
cursor: pointer;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 6px
|
|
}
|
|
|
|
.search-bar button:hover {
|
|
background-color: var(--hover-bg-color);
|
|
|
|
}
|
|
|
|
.base-container {
|
|
width: 100%;
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.base-container-small {
|
|
width: 100%;
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.signin-container {
|
|
width: 100%;
|
|
max-width: 420px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.content {
|
|
width: 100%;
|
|
|
|
@apply px-6;
|
|
}
|
|
|
|
|
|
.search-cancel::-webkit-search-cancel-button {
|
|
-webkit-appearance: none;
|
|
background-color: var(--text-color);
|
|
-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>");
|
|
background-size: 20px 20px;
|
|
height: 20px;
|
|
width: 20px;
|
|
}
|
|
|
|
table, .table {
|
|
/*border-collapse: separate;*/
|
|
width: 100%;
|
|
/*text-align: start;*/
|
|
}
|
|
|
|
tr {
|
|
border-top: 1px solid var(--separator-line-color);
|
|
text-align: left;
|
|
}
|
|
|
|
th.left, td.left {
|
|
padding-left: 0.5rem;
|
|
}
|
|
|
|
.separator-borders {
|
|
border: 1px solid var(--separator-line-color);
|
|
}
|
|
|
|
.elevated {
|
|
background-color: var(--elevated-bg-color);
|
|
@apply shadow-lg
|
|
}
|
|
|
|
.elevated-bg {
|
|
background-color: var(--elevated-bg-color);
|
|
}
|
|
|
|
.primary-bg-color {
|
|
background-color: var(--primary-color);
|
|
}
|
|
|
|
.accent-bg-color {
|
|
background-color: var(--bg-accent-color);
|
|
}
|
|
|
|
.dull-primary-bg-color {
|
|
background-color: var(--dull-primary-color);
|
|
}
|
|
|
|
.dull-primary-text-color {
|
|
color: var(--dull-primary-color);
|
|
}
|
|
|
|
.dull-primary-border-color {
|
|
border-color: var(--dull-primary-color);
|
|
}
|
|
|
|
.primary-text-color {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.accordion {
|
|
cursor: pointer;
|
|
width: 100%;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
.accordion:hover, .active {
|
|
background-color: var(--hover-bg-color);
|
|
}
|
|
|
|
input[type='checkbox'] {
|
|
background-color: var(--bg-color);
|
|
border: 1px solid var(--separator-line-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
input[type='checkbox']:focus {
|
|
box-shadow: none;
|
|
outline: none;
|
|
}
|
|
|
|
.danger-bg-color {
|
|
background-color: var(--danger-color);
|
|
}
|
|
|
|
.danger-color {
|
|
color: var(--danger-color);
|
|
}
|
|
|
|
.danger-border-color {
|
|
border-color: var(--danger-color);
|
|
}
|
|
|
|
/* The Modal (background) */
|
|
.modal {
|
|
display: none; /* Hidden by default */
|
|
position: fixed; /* Stay in place */
|
|
z-index: 1; /* Sit on top */
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%; /* Full width */
|
|
height: 100%; /* Full height */
|
|
overflow: auto; /* Enable scroll if needed */
|
|
background-color: rgb(0,0,0); /* Fallback color */
|
|
background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
|
|
}
|
|
|
|
.modal-always-display {
|
|
position: fixed; /* Stay in place */
|
|
z-index: 1; /* Sit on top */
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%; /* Full width */
|
|
height: 100%; /* Full height */
|
|
overflow: auto; /* Enable scroll if needed */
|
|
background-color: rgb(0,0,0); /* Fallback color */
|
|
background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
|
|
}
|
|
|
|
/* Modal Content/Box */
|
|
.modal-content {
|
|
background-color: var(--bg-color);
|
|
margin: 10% auto; /* 10% from the top and centered */
|
|
padding: 16px;
|
|
border: 1px solid var(--separator-line-color);
|
|
max-width: 420px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
h2 {
|
|
color: var(--text-color);
|
|
@apply text-2xl
|
|
}
|
|
|
|
/* Tooltip text */
|
|
.tooltip-text {
|
|
visibility: hidden;
|
|
background-color: var(--bg-accent-color);
|
|
color: var(--text-color);
|
|
text-align: center;
|
|
padding: 4px;
|
|
border-radius: 6px;
|
|
|
|
/* Position the tooltip text - see examples below! */
|
|
position: absolute;
|
|
z-index: 1;
|
|
width: 120px;
|
|
bottom: 120%;
|
|
left: 50%;
|
|
margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */
|
|
|
|
opacity: 0;
|
|
transition: opacity 0s linear 0.5s;
|
|
}
|
|
|
|
.tooltip-text::after {
|
|
content: " ";
|
|
position: absolute;
|
|
top: 100%; /* At the bottom of the tooltip */
|
|
left: 50%;
|
|
margin-left: -5px;
|
|
border-width: 5px;
|
|
border-style: solid;
|
|
border-color: var(--bg-accent-color) transparent transparent transparent;
|
|
}
|
|
|
|
/* Show the tooltip text when you mouse over the tooltip container */
|
|
.tooltip:hover .tooltip-text {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
|
|
.tooltip .tooltip-text:hover {
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
}
|
|
|
|
.hover-hyperlink:hover {
|
|
color: var(--hyperlink-color);
|
|
text-decoration: underline var(--hyperlink-color);
|
|
}
|
|
|
|
.hyperlink-color {
|
|
color: var(--hyperlink-color);
|
|
}
|
|
|
|
.hyperlink-underline {
|
|
text-decoration: underline var(--hyperlink-color);
|
|
}
|
|
|
|
.max-char-length {
|
|
max-width: 200ch;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 5; /* Adjust the number of lines as needed */
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-color);
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 12px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--bg-accent-color);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--separator-line-color);
|
|
}
|
|
|
|
.scrollbar-on-elevated::-webkit-scrollbar-track {
|
|
background: var(--elevated-bg-color);
|
|
}
|
|
|
|
.-webkit-scrollbar-thumb::-webkit-scrollbar-track {
|
|
background: var(--elevated-bg-color);
|
|
}
|
|
|
|
.details-height {
|
|
max-height: calc(100vh - 314px);
|
|
}
|
|
|
|
.top-with-navbar {
|
|
top: 72px;
|
|
}
|
|
|
|
.footer {
|
|
position: relative;
|
|
bottom: 0;
|
|
/*width: 100%;*/
|
|
/*position: absolute;*/
|
|
/*bottom: 0;*/
|
|
/*width: 100%;*/
|
|
}
|
|
|