api-client/assets/scss/styles.scss

452 lines
7.4 KiB
SCSS
Raw Normal View History

2020-09-22 17:06:37 +00:00
*,
*::before,
*::after {
2021-06-26 10:41:19 +00:00
@apply backface-hidden;
2020-09-22 17:06:37 +00:00
}
:root {
@apply antialiased;
2020-10-21 06:50:32 +00:00
font-variant-ligatures: common-ligatures;
2020-09-22 17:06:37 +00:00
}
2021-07-03 13:14:58 +00:00
::-webkit-scrollbar-track {
@apply bg-transparent;
2020-09-22 17:06:37 +00:00
}
2021-07-03 13:14:58 +00:00
::-webkit-scrollbar-thumb {
2021-07-20 10:29:30 +00:00
@apply bg-divider bg-clip-content;
2021-07-03 13:14:58 +00:00
@apply rounded-full;
2021-07-20 10:29:30 +00:00
@apply border-solid border-4 border-transparent;
@apply hover:(bg-dividerDark bg-clip-content);
2020-09-22 17:06:37 +00:00
}
2021-07-03 13:14:58 +00:00
::-webkit-scrollbar {
@apply w-4;
@apply h-4;
}
2020-09-22 17:06:37 +00:00
2021-07-07 23:28:42 +00:00
.hide-scrollbar::-webkit-scrollbar {
@apply hidden;
}
2021-07-03 13:14:58 +00:00
::selection {
@apply bg-accent;
2021-08-03 04:54:32 +00:00
@apply text-accentContrast;
2020-09-22 17:06:37 +00:00
}
input::placeholder {
@apply text-secondaryDark;
@apply opacity-25;
}
input {
@apply text-secondaryDark;
@apply font-medium;
}
2020-09-22 17:06:37 +00:00
html {
scroll-behavior: smooth;
}
body {
2021-06-12 16:46:17 +00:00
@apply bg-primary;
2021-08-03 16:05:01 +00:00
@apply text-secondary;
2020-09-22 17:06:37 +00:00
@apply font-medium;
@apply select-none;
2021-06-13 15:01:42 +00:00
@apply overflow-x-hidden;
2020-10-21 06:50:32 +00:00
2021-08-04 05:50:23 +00:00
font-size: var(--body-font-size);
line-height: var(--body-line-height);
2021-07-30 08:22:43 +00:00
overflow: overlay;
2020-09-22 17:06:37 +00:00
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
}
2021-07-05 16:52:15 +00:00
.fade-enter-active,
.fade-leave-active,
2020-09-22 17:06:37 +00:00
.page-enter-active,
.page-leave-active,
.layout-enter-active,
.layout-leave-active {
2021-07-03 13:14:58 +00:00
@apply transition-opacity;
2020-09-22 17:06:37 +00:00
}
2021-07-05 16:52:15 +00:00
.fade-enter,
2021-07-20 10:29:30 +00:00
.fade-leave-to,
.page-enter,
2021-07-05 16:52:15 +00:00
.page-leave-to,
2020-09-22 17:06:37 +00:00
.layout-enter,
2021-07-05 16:52:15 +00:00
.layout-leave-to {
2020-09-22 17:06:37 +00:00
@apply opacity-0;
}
2021-07-03 13:14:58 +00:00
.material-icons {
2021-08-05 14:13:46 +00:00
font-size: 133.4% !important;
2021-07-03 13:14:58 +00:00
}
.svg-icons {
2021-08-10 08:16:42 +00:00
height: var(--body-line-height);
width: var(--body-line-height);
2021-07-03 13:14:58 +00:00
}
2020-09-22 17:06:37 +00:00
a {
@apply inline-flex;
@apply text-current;
@apply no-underline;
@apply outline-none;
2021-07-20 10:29:30 +00:00
@apply transition;
2020-09-22 17:06:37 +00:00
font-size: var(--body-font-size);
line-height: var(--body-line-height);
2020-09-22 17:06:37 +00:00
&.link {
2021-07-03 13:14:58 +00:00
@apply items-center;
2021-08-06 16:10:26 +00:00
@apply px-1 py-0.5;
@apply -mx-1 -my-0.5;
2021-06-12 16:46:17 +00:00
@apply text-accent;
2021-08-06 16:10:26 +00:00
@apply rounded;
2021-07-20 10:29:30 +00:00
@apply hover:text-accentDark;
2021-08-06 16:10:26 +00:00
@apply focus-visible:(ring ring-accent);
2020-09-22 17:06:37 +00:00
}
}
2021-07-02 05:01:29 +00:00
.tippy-popper {
.tooltip-theme {
2021-07-17 17:40:28 +00:00
@apply bg-tooltip;
2021-08-05 15:59:05 +00:00
@apply text-primary;
2021-07-02 05:01:29 +00:00
@apply font-semibold;
2021-07-20 10:29:30 +00:00
@apply py-1 px-2;
2021-07-02 05:01:29 +00:00
@apply shadow;
2021-07-17 17:40:28 +00:00
2021-08-09 12:25:30 +00:00
font-size: 88%;
2021-08-05 15:59:05 +00:00
line-height: var(--body-line-height);
2021-07-17 17:40:28 +00:00
kbd {
@apply font-sans;
2021-08-11 04:57:36 +00:00
@apply bg-gray-500;
@apply bg-opacity-45;
@apply text-primaryLight;
2021-08-09 12:25:30 +00:00
@apply rounded-sm;
2021-07-17 17:40:28 +00:00
@apply px-1;
@apply ml-1;
}
2021-07-02 05:01:29 +00:00
}
.popover-theme {
2021-08-03 11:20:28 +00:00
@apply bg-popover;
2021-07-02 05:01:29 +00:00
@apply text-secondary;
@apply p-2;
2021-07-03 13:14:58 +00:00
@apply shadow-lg;
2021-07-17 17:40:28 +00:00
@apply focus:outline-none;
2021-08-05 15:59:05 +00:00
font-size: var(--body-font-size);
line-height: var(--body-line-height);
2021-07-02 05:01:29 +00:00
2021-08-06 16:10:26 +00:00
.tippy-roundarrow svg {
@apply fill-popover;
}
2021-07-02 05:01:29 +00:00
}
}
[interactive] > div {
@apply flex;
@apply flex-1;
2021-08-14 18:16:03 +00:00
@apply h-full;
}
2021-07-02 16:30:08 +00:00
.tippy-content > div {
2021-07-20 10:29:30 +00:00
@apply flex flex-col;
2021-08-14 10:44:08 +00:00
@apply max-h-46;
2021-07-02 16:30:08 +00:00
@apply items-stretch;
2021-07-20 10:29:30 +00:00
@apply overflow-y-auto;
2021-07-30 08:22:43 +00:00
&::-webkit-scrollbar {
@apply hidden;
}
2020-09-22 17:06:37 +00:00
}
hr {
2021-07-20 10:29:30 +00:00
@apply border-b border-dividerLight;
@apply my-2;
}
2021-07-03 13:14:58 +00:00
.heading {
@apply font-bold;
2021-07-20 10:29:30 +00:00
@apply text-secondaryDark text-lg;
2021-07-03 13:14:58 +00:00
}
2021-07-09 17:19:45 +00:00
.input,
2021-08-03 16:05:01 +00:00
.select,
.textarea {
2021-07-20 10:29:30 +00:00
@apply flex flex-1;
2021-07-09 17:19:45 +00:00
@apply w-full;
2021-07-20 10:29:30 +00:00
@apply px-4 py-2;
2021-07-10 13:15:39 +00:00
@apply bg-primary;
@apply truncate;
@apply rounded;
@apply text-secondaryDark;
2021-07-20 10:29:30 +00:00
@apply border border-divider;
2021-07-10 13:15:39 +00:00
@apply transition;
2021-07-20 10:29:30 +00:00
@apply focus:(outline-none border-accent);
2021-07-26 07:10:02 +00:00
@apply disabled:cursor-not-allowed;
}
2021-08-03 16:05:01 +00:00
input,
select,
textarea,
button {
2021-08-04 05:50:23 +00:00
font-size: var(--body-font-size);
line-height: var(--body-line-height);
2021-08-03 16:05:01 +00:00
}
2021-07-09 17:19:45 +00:00
.input[type="file"],
.input[type="radio"],
2020-09-22 17:06:37 +00:00
#installPWA {
@apply hidden;
}
2021-08-07 09:21:13 +00:00
.floating-input ~ label {
@apply font-medium;
2021-08-07 09:21:13 +00:00
@apply py-0.5;
@apply px-2;
@apply m-2;
@apply rounded;
@apply transition;
@apply absolute;
2021-08-08 06:31:36 +00:00
@apply origin-top-left;
2021-08-07 09:21:13 +00:00
}
.floating-input:focus-within ~ label,
.floating-input:not(:placeholder-shown) ~ label {
@apply bg-primary;
@apply transform;
2021-08-08 06:31:36 +00:00
@apply origin-top-left;
2021-08-07 09:21:13 +00:00
@apply scale-75;
2021-08-08 06:31:36 +00:00
@apply -translate-y-5;
@apply translate-x-1;
2021-08-07 09:21:13 +00:00
}
.floating-input:focus-within ~ label {
@apply text-accent;
}
2020-09-22 17:06:37 +00:00
pre.ace_editor {
@apply font-mono;
@apply resize-none;
2021-07-20 10:29:30 +00:00
@apply z-0;
2020-09-22 17:06:37 +00:00
}
.select {
2020-09-22 17:06:37 +00:00
@apply appearance-none;
2020-10-21 06:50:32 +00:00
2020-09-22 17:06:37 +00:00
&::-ms-expand {
@apply hidden;
}
}
2021-07-08 18:12:15 +00:00
.select-wrapper {
2021-08-11 08:46:43 +00:00
@apply flex flex-1;
2021-07-08 18:12:15 +00:00
@apply relative;
2021-07-26 07:10:02 +00:00
@apply cursor-pointer;
2021-07-08 18:12:15 +00:00
&::after {
@apply absolute;
@apply flex;
@apply inset-y-0;
@apply items-center;
@apply justify-center;
2021-07-08 18:12:15 +00:00
@apply pointer-events-none;
@apply font-icon;
@apply text-secondaryLight;
@apply right-3;
content: "\e313";
}
}
2021-07-26 07:10:02 +00:00
.search-wrapper {
2021-08-11 08:46:43 +00:00
@apply flex flex-1;
2021-07-26 07:10:02 +00:00
@apply relative;
&::after {
@apply absolute;
2021-08-11 08:46:43 +00:00
@apply flex;
@apply inset-y-0;
@apply items-center;
@apply justify-center;
2021-07-26 07:10:02 +00:00
@apply pointer-events-none;
@apply font-icon;
@apply text-secondaryLight;
@apply left-3;
content: "\e8b6";
}
}
2020-09-22 17:06:37 +00:00
input[type="checkbox"] {
@apply hidden;
&,
& + label {
@apply align-middle;
@apply cursor-pointer;
2020-10-21 06:50:32 +00:00
&::before {
2021-08-04 05:50:23 +00:00
@apply border-2 border-divider;
@apply rounded;
2020-09-22 17:06:37 +00:00
@apply inline-flex;
@apply items-center;
@apply justify-center;
@apply text-transparent;
2021-08-04 05:50:23 +00:00
@apply h-4;
@apply w-4;
@apply font-icon;
2020-10-21 06:50:32 +00:00
2021-08-04 05:50:23 +00:00
content: "\e876";
2020-09-22 17:06:37 +00:00
margin: 8px 8px 8px 0;
}
}
2020-10-21 06:50:32 +00:00
&:checked + label::before {
2021-06-12 16:46:17 +00:00
@apply bg-accent;
@apply border-accent;
@apply text-primary;
2020-09-22 17:06:37 +00:00
}
}
.info-response {
2021-08-01 17:33:54 +00:00
@apply text-pink-500;
2020-09-22 17:06:37 +00:00
}
.success-response {
2021-08-01 17:33:54 +00:00
@apply text-green-500;
2020-09-22 17:06:37 +00:00
}
.redir-response {
2021-08-01 17:33:54 +00:00
@apply text-yellow-500;
2020-09-22 17:06:37 +00:00
}
.cl-error-response {
2021-08-01 17:33:54 +00:00
@apply text-red-500;
2020-09-22 17:06:37 +00:00
}
.sv-error-response {
2020-09-24 17:22:17 +00:00
@apply text-red-600;
2020-09-22 17:06:37 +00:00
}
.missing-data-response {
2021-06-12 16:46:17 +00:00
@apply text-secondaryLight;
2020-09-22 17:06:37 +00:00
}
2021-07-05 12:56:00 +00:00
.toasted-container {
.toasted {
&.toasted-primary {
@apply bg-tooltip;
2021-08-05 15:59:05 +00:00
@apply text-primary;
2021-07-27 19:38:11 +00:00
@apply justify-start;
2021-07-30 08:22:43 +00:00
@apply shadow;
@apply font-medium;
2021-08-05 15:59:05 +00:00
font-size: var(--body-font-size);
line-height: var(--body-line-height);
.action {
@apply bg-gray-500;
@apply px-4;
@apply bg-opacity-10;
2021-07-27 19:38:11 +00:00
@apply ml-auto;
@apply sm:ml-8;
@apply transition;
@apply text-current;
@apply normal-case;
@apply hover:(bg-opacity-20 no-underline);
@apply font-medium;
font-size: var(--body-font-size);
line-height: var(--body-line-height);
}
2021-07-05 12:56:00 +00:00
}
2020-09-22 17:06:37 +00:00
&.info {
@apply !bg-accent;
2021-07-24 16:46:48 +00:00
}
&.error {
2021-07-30 08:22:43 +00:00
@apply !bg-red-200;
2021-07-27 19:38:11 +00:00
@apply !text-red-800;
2021-07-24 16:46:48 +00:00
}
&.success {
2021-07-30 08:22:43 +00:00
@apply !bg-green-200;
2021-07-27 19:38:11 +00:00
@apply !text-green-800;
2021-07-05 12:56:00 +00:00
}
}
2020-09-22 17:06:37 +00:00
}
2021-07-06 17:31:18 +00:00
.splitpanes__splitter {
@apply relative;
@apply bg-primaryLight;
}
.splitpanes--vertical > .splitpanes__splitter {
@apply w-1;
}
.splitpanes--horizontal > .splitpanes__splitter {
@apply h-1;
}
.splitpanes__splitter::before {
@apply absolute;
@apply inset-0;
@apply bg-dividerLight;
@apply opacity-0;
@apply z-30;
2021-07-06 17:31:18 +00:00
@apply transition;
content: "";
}
.splitpanes__splitter::after {
@apply absolute;
@apply inset-0;
@apply z-30;
2021-07-06 17:31:18 +00:00
@apply transition;
@apply flex;
@apply items-center;
@apply justify-center;
@apply text-dividerDark;
@apply font-icon;
}
.splitpanes--vertical > .splitpanes__splitter::after {
content: "\e5d4";
}
.splitpanes--horizontal > .splitpanes__splitter::after {
content: "\e5d3";
}
.splitpanes__splitter:hover::before {
@apply opacity-100;
}
.splitpanes--vertical > .splitpanes__splitter::before {
left: -2px;
right: -2px;
height: 100%;
}
.splitpanes--horizontal > .splitpanes__splitter::before {
top: -2px;
bottom: -2px;
width: 100%;
}
2021-07-20 10:29:30 +00:00
@media (max-width: 767px) {
main {
margin-bottom: env(safe-area-inset-bottom);
}
}