api-client/assets/scss/styles.scss

406 lines
6.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;
@apply text-primary;
2020-09-22 17:06:37 +00:00
}
html {
scroll-behavior: smooth;
}
body {
2021-06-12 16:46:17 +00:00
@apply bg-primary;
@apply text-secondary text-xs;
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-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-07-31 15:34:03 +00:00
font-size: 1rem !important;
2021-07-03 13:14:58 +00:00
}
.svg-icons {
@apply inline-flex;
@apply flex-shrink-0;
@apply h-4;
@apply w-4;
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
&.link {
2021-07-03 13:14:58 +00:00
@apply items-center;
2021-07-20 10:29:30 +00:00
@apply px-2 py-1;
@apply -mx-2 -my-1;
2021-06-12 16:46:17 +00:00
@apply text-accent;
2021-07-20 10:29:30 +00:00
@apply hover:text-accentDark;
2021-08-01 17:33:54 +00:00
@apply focus-visible:(ring ring-inset 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-07-24 10:58:32 +00:00
@apply text-primary text-xs;
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
kbd {
@apply first:ml-2;
@apply last:-mr-1;
@apply font-sans;
@apply bg-secondaryDark;
@apply text-primaryDark;
@apply rounded;
@apply px-1;
@apply ml-1;
}
2021-07-02 05:01:29 +00:00
}
.popover-theme {
2021-07-03 13:14:58 +00:00
@apply bg-primary;
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-07-02 05:01:29 +00:00
}
&[x-placement^="top"] .tippy-tooltip .tippy-arrow {
2021-07-20 10:29:30 +00:00
@apply border-t-primary;
2021-07-02 05:01:29 +00:00
}
&[x-placement^="bottom"] .tippy-tooltip .tippy-arrow {
2021-07-20 10:29:30 +00:00
@apply border-b-primary;
2021-07-02 05:01:29 +00:00
}
&[x-placement^="left"] .tippy-tooltip .tippy-arrow {
2021-07-20 10:29:30 +00:00
@apply border-l-primary;
2021-07-02 05:01:29 +00:00
}
&[x-placement^="right"] .tippy-tooltip .tippy-arrow {
2021-07-20 10:29:30 +00:00
@apply border-r-primary;
2021-07-02 05:01:29 +00:00
}
}
2021-07-02 16:30:08 +00:00
.tippy-content > div {
2021-07-20 10:29:30 +00:00
@apply flex flex-col;
@apply max-h-48;
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;
}
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
}
.textarea,
2021-07-09 17:19:45 +00:00
.input,
.select {
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;
2021-07-26 03:38:06 +00:00
@apply text-xs;
@apply font-semibold;
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-07-09 17:19:45 +00:00
.input[type="file"],
.input[type="radio"],
2020-09-22 17:06:37 +00:00
#installPWA {
@apply hidden;
}
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 {
@apply relative;
@apply w-full;
2021-07-26 07:10:02 +00:00
@apply cursor-pointer;
2021-07-08 18:12:15 +00:00
&::after {
@apply absolute;
2021-07-20 10:29:30 +00:00
@apply inline-block;
2021-07-08 18:12:15 +00:00
@apply pointer-events-none;
@apply font-icon;
@apply text-secondaryLight;
@apply top-2.5;
2021-07-08 18:12:15 +00:00
@apply right-3;
content: "\e313";
}
}
2021-07-26 07:10:02 +00:00
.search-wrapper {
@apply relative;
@apply w-full;
&::after {
@apply absolute;
@apply inline-block;
@apply pointer-events-none;
@apply font-icon;
@apply text-secondaryLight;
@apply top-2;
@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-07-20 10:29:30 +00:00
@apply border border-secondary;
@apply rounded;
2020-09-22 17:06:37 +00:00
@apply inline-flex;
@apply items-center;
@apply justify-center;
@apply text-transparent;
2020-10-21 06:50:32 +00:00
content: "\2714";
2020-09-22 17:06:37 +00:00
height: 16px;
width: 16px;
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
}
#response-details-wrapper {
@apply relative;
textarea {
@apply m-0;
@apply w-full;
}
.covers-response {
@apply absolute;
@apply inset-0;
@apply bg-white;
@apply h-full;
@apply w-full;
}
}
2021-07-05 12:56:00 +00:00
.toasted-container {
.toasted {
&.toasted-primary {
@apply bg-tooltip;
2021-07-24 10:58:32 +00:00
@apply text-primary text-xs;
2021-07-27 19:38:11 +00:00
@apply justify-start;
2021-07-30 08:22:43 +00:00
@apply shadow;
@apply font-semibold;
.action {
2021-07-27 19:38:11 +00:00
@apply ml-auto;
@apply transition;
@apply text-current;
2021-07-20 10:29:30 +00:00
@apply hover:(opacity-75 no-underline);
}
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);
}
}