api-client/assets/css/styles.scss

776 lines
12 KiB
SCSS
Raw Normal View History

2019-11-17 06:28:40 +00:00
$responsiveWidth: 768px;
2019-08-24 18:35:39 +00:00
::selection {
background-color: var(--ac-color);
color: var(--act-color);
}
::-webkit-scrollbar {
width: 4px;
height: 4px;
2020-03-08 16:22:04 +00:00
border-radius: 4px;
background-color: var(--bg-dark-color);
}
::-webkit-scrollbar-thumb {
2020-03-08 16:22:04 +00:00
border-radius: 4px;
background-color: var(--fg-light-color);
2019-11-09 09:01:07 +00:00
&:hover {
background-color: var(--fg-color);
}
}
::placeholder {
color: var(--fg-light-color);
opacity: 0.3;
}
* {
box-sizing: border-box;
outline: 0;
border: 0;
}
2019-12-10 16:28:08 +00:00
html,
body {
background-color: var(--bg-color);
color: var(--fg-color);
font-weight: 500;
2019-11-21 01:25:37 +00:00
font-size: 14px;
font-family: "Poppins", "Roboto", "Noto", sans-serif;
line-height: 1.5;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
user-select: none;
padding: 0;
margin: 0;
2019-12-10 16:28:08 +00:00
scroll-behavior: smooth;
transition: all 0.2s ease-in-out;
}
body.afterLoad {
2019-12-10 16:28:08 +00:00
transition: background-color 0.2s ease-in-out;
}
body.sticky-footer footer {
opacity: 0.25;
}
a {
display: inline-flex;
color: inherit;
text-decoration: none;
transition: all 0.2s ease-in-out;
&.link {
color: var(--ac-color);
}
}
header,
footer {
2019-11-29 05:55:13 +00:00
& > div {
display: flex;
padding: 16px 8px;
width: 100%;
align-items: center;
justify-content: space-between;
}
}
2020-03-21 02:12:28 +00:00
.page-enter-active,
.page-leave-active,
.layout-enter-active,
.layout-leave-active {
transition: opacity 0.2s;
}
.page-enter,
.page-leave-active,
.layout-enter,
.layout-leave-active {
opacity: 0;
}
.wrapper {
min-height: 100vh;
display: flex;
2020-02-07 03:36:52 +00:00
flex-flow: column nowrap;
}
2019-12-10 16:28:08 +00:00
.wrapper .page {
min-height: calc(100vh - 153px);
}
.header,
.content,
.columns,
.footer {
display: flex;
flex: 1;
}
.nav-first,
.sticky-inner {
display: flex;
order: 1;
flex-flow: column;
position: sticky;
top: 0;
align-self: flex-start;
}
.main {
2019-12-10 16:28:08 +00:00
display: flex;
flex-flow: column;
flex: 1;
order: 2;
position: relative;
padding: 0 16px;
}
2019-08-21 13:18:20 +00:00
h1,
h2,
h3,
h4 {
display: flex;
align-items: center;
2019-08-21 13:18:20 +00:00
margin: 0;
2019-10-09 10:12:15 +00:00
font-weight: 700;
2019-08-21 13:18:20 +00:00
}
2020-06-19 17:37:40 +00:00
h3.title {
margin: 4px;
2020-01-27 17:58:07 +00:00
}
p {
transition: all 0.2s ease-in-out;
}
2020-06-19 17:37:40 +00:00
hr {
border-bottom: 1px dashed var(--brd-color);
margin: 16px 0;
}
2019-10-18 20:29:24 +00:00
.tooltip {
2019-12-17 19:13:15 +00:00
$bgcolor: var(--tt-color);
2019-11-12 04:18:57 +00:00
$fgcolor: var(--fg-color);
2019-10-18 20:29:24 +00:00
display: block !important;
z-index: 10000;
transition: all 0.2s ease-in-out;
2019-10-18 20:29:24 +00:00
.tooltip-inner {
2019-12-17 19:13:15 +00:00
background: $bgcolor;
color: $fgcolor;
2019-11-01 11:43:55 +00:00
border-radius: 8px;
padding: 8px 16px;
2019-12-02 08:19:52 +00:00
font-size: 12px;
2019-11-21 01:25:37 +00:00
font-weight: 500;
2019-12-02 08:19:52 +00:00
box-shadow: 0 4px 24px rgba(black, 0.1);
2019-10-18 20:29:24 +00:00
}
.tooltip-arrow {
width: 0;
height: 0;
border-style: solid;
position: absolute;
margin: 5px;
2019-12-17 19:13:15 +00:00
border-color: $bgcolor;
2019-10-18 20:29:24 +00:00
z-index: 1;
}
&[x-placement^="top"] {
margin-bottom: 5px;
.tooltip-arrow {
border-width: 5px 5px 0 5px;
border-left-color: transparent !important;
border-right-color: transparent !important;
border-bottom-color: transparent !important;
bottom: -5px;
left: calc(50% - 5px);
margin-top: 0;
margin-bottom: 0;
}
}
&[x-placement^="bottom"] {
margin-top: 5px;
.tooltip-arrow {
border-width: 0 5px 5px 5px;
border-left-color: transparent !important;
border-right-color: transparent !important;
border-top-color: transparent !important;
top: -5px;
left: calc(50% - 5px);
margin-top: 0;
margin-bottom: 0;
}
}
&[x-placement^="right"] {
margin-left: 5px;
.tooltip-arrow {
border-width: 5px 5px 5px 0;
border-left-color: transparent !important;
border-top-color: transparent !important;
border-bottom-color: transparent !important;
left: -5px;
top: calc(50% - 5px);
margin-left: 0;
margin-right: 0;
}
}
&[x-placement^="left"] {
margin-right: 5px;
.tooltip-arrow {
border-width: 5px 0 5px 5px;
border-top-color: transparent !important;
border-right-color: transparent !important;
border-bottom-color: transparent !important;
right: -5px;
top: calc(50% - 5px);
margin-left: 0;
margin-right: 0;
}
}
&.popover {
2019-11-13 01:27:09 +00:00
.wrapper {
min-height: auto;
}
2019-10-18 20:29:24 +00:00
.popover-inner {
2019-11-12 04:18:57 +00:00
background: $bgcolor;
color: $fgcolor;
padding: 4px;
border-radius: 8px;
2019-11-02 05:32:21 +00:00
box-shadow: 0 5px 30px rgba(black, 0.1);
2019-12-01 00:50:37 +00:00
max-height: 256px;
overflow: auto;
div {
display: flex;
align-items: stretch;
flex-direction: column;
}
2020-06-19 07:55:41 +00:00
button {
justify-content: start;
}
2019-10-18 20:29:24 +00:00
}
.popover-arrow {
2019-11-12 04:18:57 +00:00
border-color: $bgcolor;
2019-10-18 20:29:24 +00:00
}
}
2019-11-02 05:32:21 +00:00
&[aria-hidden="true"] {
2019-10-18 20:29:24 +00:00
visibility: hidden;
opacity: 0;
2019-11-02 05:32:21 +00:00
transition: opacity 0.15s, visibility 0.15s;
2019-10-18 20:29:24 +00:00
}
2019-11-02 05:32:21 +00:00
&[aria-hidden="false"] {
2019-10-18 20:29:24 +00:00
visibility: visible;
opacity: 1;
2019-11-02 05:32:21 +00:00
transition: opacity 0.15s;
2019-10-18 20:29:24 +00:00
}
}
2020-03-25 00:59:39 +00:00
.info:not(.toasted) {
margin-left: 4px;
color: var(--fg-light-color);
2020-06-30 02:09:28 +00:00
.material-icons {
vertical-align: middle;
margin-right: 8px;
}
}
.bg-color {
background-color: transparent;
}
2019-08-21 13:18:20 +00:00
button {
2019-09-02 02:28:03 +00:00
display: inline-flex;
align-items: center;
2020-06-19 07:55:41 +00:00
justify-content: center;
2019-08-21 13:18:20 +00:00
margin: 4px;
2019-11-21 01:25:37 +00:00
padding: 6px 16px;
2020-06-19 06:56:04 +00:00
border-radius: 8px;
2019-08-21 13:18:20 +00:00
background-color: var(--ac-color);
color: var(--act-color);
2019-08-21 13:18:20 +00:00
font-size: 16px;
2019-09-13 16:52:11 +00:00
font-family: "Poppins", "Roboto", "Noto", sans-serif;
2019-11-21 01:25:37 +00:00
font-weight: 700;
transition: all 0.2s ease-in-out;
2019-09-12 09:01:17 +00:00
fill: var(--act-color);
cursor: pointer;
2019-09-12 09:01:17 +00:00
span {
display: inline-flex;
margin-left: 8px;
}
2019-08-29 22:58:10 +00:00
2019-11-07 17:41:41 +00:00
&:not([disabled]):hover,
&:not([disabled]):active,
&:not([disabled]):focus {
color: var(--act-color);
fill: var(--act-color);
2019-11-09 15:13:48 +00:00
box-shadow: inset 0 0 0 2px var(--fg-color);
2019-11-07 17:41:41 +00:00
}
2019-09-02 02:28:03 +00:00
&.icon {
2019-11-12 04:18:57 +00:00
background-color: transparent;
color: var(--fg-light-color);
fill: var(--fg-light-color);
2019-11-12 04:18:57 +00:00
border-radius: 8px;
2019-11-07 17:41:41 +00:00
&:not([disabled]):hover,
&:not([disabled]):active,
&:not([disabled]):focus {
color: var(--fg-color);
fill: var(--fg-color);
2019-11-07 17:41:41 +00:00
box-shadow: none;
}
2019-09-02 02:28:03 +00:00
}
2019-12-17 19:13:15 +00:00
&.primary {
color: var(--ac-color);
&:not([disabled]):hover,
&:not([disabled]):active,
&:not([disabled]):focus {
background-color: var(--ac-color);
color: var(--act-color);
}
}
2019-08-21 13:18:20 +00:00
}
2019-12-07 19:38:49 +00:00
@keyframes beat {
30% {
transform: scale(1.1);
}
50% {
transform: scale(0.9);
}
100% {
transform: scale(1);
}
}
.material-icons:active {
animation: beat 0.5s forwards 1;
}
2020-03-21 02:12:28 +00:00
fieldset:target,
section:target {
animation: highlight 2s ease;
2019-08-27 04:07:41 +00:00
}
2020-03-21 02:12:28 +00:00
@keyframes highlight {
50% {
box-shadow: 0 0 0 2px var(--ac-color);
}
2019-09-09 05:57:00 +00:00
}
2019-12-17 19:13:15 +00:00
input[type="file"],
input[type="radio"],
.hide-on-large-screen,
#installPWA,
.hidden {
display: none;
}
.method,
2019-11-14 10:58:17 +00:00
kbd,
2019-08-21 13:18:20 +00:00
select,
input,
2019-08-24 14:51:03 +00:00
textarea,
pre,
code {
display: inline-flex;
margin: 4px;
2019-09-09 05:57:00 +00:00
padding: 8px;
2019-09-17 08:13:12 +00:00
border-radius: 8px;
background-color: var(--bg-dark-color);
2019-08-21 13:18:20 +00:00
color: var(--fg-color);
font-size: 16px;
2019-11-21 01:25:37 +00:00
font-family: "Roboto Mono", monospace;
font-weight: 400;
line-height: 1;
2019-09-04 10:22:16 +00:00
transition: all 0.2s ease-in-out;
2019-09-17 08:13:12 +00:00
user-select: text;
width: calc(100% - 8px);
2019-10-06 02:16:48 +00:00
resize: vertical;
text-overflow: ellipsis;
2019-09-04 10:22:16 +00:00
2019-11-09 19:28:05 +00:00
&:not([readonly]):not(.ace_editor):hover,
&:not([readonly]):not(.ace_editor):active,
&:not([readonly]):not(.ace_editor):focus {
box-shadow: inset 0 0 0 2px var(--fg-light-color);
2019-09-04 10:22:16 +00:00
}
}
.method {
cursor: pointer;
&:hover,
&:active,
&:focus {
box-shadow: inset 0 0 0 2px var(--fg-light-color);
}
}
pre {
display: grid;
}
2019-11-09 19:28:05 +00:00
pre.ace_editor {
2019-11-21 01:25:37 +00:00
font-family: "Roboto Mono", monospace;
font-weight: 400;
2019-11-09 19:28:05 +00:00
z-index: 0;
}
kbd,
code,
pre {
width: auto;
}
2019-12-14 23:59:03 +00:00
.select-wrapper {
position: relative;
input {
text-transform: uppercase;
2020-03-26 16:51:41 +00:00
min-width: 128px;
}
.trigger {
width: 100%;
}
2019-12-14 23:59:03 +00:00
&:after {
display: inline-block;
position: absolute;
pointer-events: none;
content: "\e313";
font-family: "Material Icons";
top: 14px;
right: 14px;
}
}
select {
2019-11-21 01:25:37 +00:00
height: 37px;
cursor: pointer;
2019-12-14 23:59:03 +00:00
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
&::-ms-expand {
display: none;
}
2019-09-09 05:57:00 +00:00
}
option {
background-color: var(--bg-color);
}
input[type="checkbox"] {
2019-08-28 05:17:31 +00:00
display: none;
2019-08-27 04:48:41 +00:00
&,
2019-11-29 05:55:13 +00:00
& + label {
vertical-align: middle;
2019-08-28 05:17:31 +00:00
cursor: pointer;
&:before {
content: "\2714";
2019-09-17 08:13:12 +00:00
border: 1px solid var(--fg-color);
border-radius: 8px;
2019-08-28 05:17:31 +00:00
display: inline-flex;
height: 16px;
width: 16px;
align-items: center;
justify-content: center;
margin: 8px 8px 8px 0;
color: transparent;
transition: all 0.2s ease-in-out;
2019-08-28 05:17:31 +00:00
}
}
2019-11-29 05:55:13 +00:00
&:checked + label:before {
2019-08-28 05:17:31 +00:00
background-color: var(--ac-color);
border-color: var(--ac-color);
color: var(--act-color);
}
}
2019-11-07 18:31:35 +00:00
.error:not(input),
.disabled:not(input),
2019-09-02 11:38:59 +00:00
[disabled] {
background-color: var(--err-color);
color: var(--fg-light-color);
fill: var(--fg-light-color);
2019-11-07 18:31:35 +00:00
cursor: not-allowed;
2019-09-02 02:28:03 +00:00
&.icon {
2019-11-07 18:31:35 +00:00
color: var(--err-color);
fill: var(--err-color);
2019-09-02 02:28:03 +00:00
}
2019-08-22 14:41:08 +00:00
}
2019-08-21 13:18:20 +00:00
label {
padding: 4px;
color: var(--fg-light-color);
transition: all 0.2s ease-in-out;
2019-08-21 13:18:20 +00:00
}
ul,
ol {
display: flex;
2019-09-13 16:52:11 +00:00
margin: 4px 0 4px;
2019-08-21 13:18:20 +00:00
padding: 0;
list-style-type: none;
ul,
ol {
margin: 0;
}
2019-08-21 13:18:20 +00:00
}
ul li,
ol li {
display: inline-flex;
2020-02-07 03:36:52 +00:00
flex-flow: column nowrap;
2020-03-26 16:51:41 +00:00
flex: 1;
2019-12-22 03:50:38 +00:00
justify-content: center;
2020-03-26 16:51:41 +00:00
&.shrink {
flex-grow: 0;
}
2019-08-21 13:18:20 +00:00
}
2019-08-27 04:48:41 +00:00
.flex-wrap {
2019-08-26 06:19:23 +00:00
display: flex;
2019-08-27 04:48:41 +00:00
align-items: center;
justify-content: space-between;
2019-12-02 12:35:10 +00:00
flex-grow: 1;
2019-12-02 15:20:20 +00:00
flex-direction: row;
* {
display: inline-flex;
2020-02-07 03:36:52 +00:00
flex-flow: row wrap;
2019-12-02 15:20:20 +00:00
align-items: center;
justify-content: center;
}
2019-08-26 06:19:23 +00:00
}
2019-08-21 13:18:20 +00:00
.show-on-small-screen {
display: flex;
}
.show-on-large-screen {
2020-03-26 16:51:41 +00:00
display: flex;
flex: 1;
}
2019-08-24 19:40:47 +00:00
.info-response {
2019-09-17 08:13:12 +00:00
color: #ffeb3b;
2019-08-24 19:40:47 +00:00
}
.success-response {
2019-09-17 08:13:12 +00:00
color: #4bb543;
2019-08-24 19:40:47 +00:00
}
.redir-response {
2019-09-17 08:13:12 +00:00
color: #ff5722;
2019-08-24 19:40:47 +00:00
}
.cl-error-response {
2019-09-17 08:13:12 +00:00
color: #a63232;
2019-08-24 19:40:47 +00:00
}
.sv-error-response {
2019-09-17 08:13:12 +00:00
color: #b71c1c;
2019-08-25 08:37:21 +00:00
}
.missing-data-response {
2019-09-02 11:38:59 +00:00
background-color: var(--err-color);
}
2019-08-28 04:32:40 +00:00
.align-left {
text-align: left;
}
.align-center {
2019-09-02 04:48:01 +00:00
text-align: center;
}
2019-08-28 04:32:40 +00:00
.align-right {
text-align: right;
}
2019-11-09 15:40:00 +00:00
.mono {
2019-11-21 01:25:37 +00:00
font-family: "Roboto Mono", monospace;
font-weight: 400;
2019-11-09 15:40:00 +00:00
}
#response-details-wrapper {
position: relative;
overflow: hidden;
2019-09-17 08:13:12 +00:00
border-radius: 8px;
2019-08-28 04:32:40 +00:00
textarea {
margin: 0;
2019-09-03 04:54:08 +00:00
width: 100%;
2019-11-21 01:25:37 +00:00
line-height: 1;
}
.covers-response {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: white;
height: 100%;
width: 100%;
}
2019-08-28 04:32:40 +00:00
}
2019-09-16 12:57:07 +00:00
#send {
&.show {
display: flex;
position: fixed;
2020-03-22 05:35:26 +00:00
bottom: 86px;
left: 50%;
z-index: 10001;
transform: translateX(-50%);
box-shadow: 0 4px 24px rgba(black, 0.2);
2020-03-26 16:51:41 +00:00
transition: all 0.2s ease-in-out;
}
}
section {
display: flex;
flex-wrap: wrap;
2020-06-19 06:56:04 +00:00
border-radius: 8px;
}
.toasted-container .toasted {
2019-12-15 16:16:55 +00:00
justify-content: flex-start !important;
}
.toasted.info {
background-color: var(--ac-color) !important;
color: var(--act-color) !important;
font-weight: 700 !important;
}
.toasted.bubble .action {
color: inherit !important;
}
2019-11-14 17:48:44 +00:00
2019-12-15 16:16:55 +00:00
.toasted .action {
margin-left: auto !important;
}
.page-columns {
display: flex;
flex: 1;
flex-flow: column;
}
.inner-left {
display: flex;
2019-11-17 09:34:06 +00:00
order: 1;
}
.inner-right {
display: flex;
2019-11-21 01:25:37 +00:00
width: 30%;
2019-11-17 09:34:06 +00:00
order: 2;
2019-12-02 08:19:52 +00:00
margin-left: 16px;
}
2019-11-14 17:48:44 +00:00
@media (max-width: $responsiveWidth) {
2020-01-22 13:59:11 +00:00
.content,
2019-11-14 17:48:44 +00:00
.columns {
flex-flow: column;
}
.main {
padding: 0 8px 68px;
2019-11-14 17:48:44 +00:00
}
ul,
ol {
2020-02-07 03:36:52 +00:00
flex-flow: column nowrap;
2019-11-14 17:48:44 +00:00
}
ul li,
ol li {
display: flex;
}
.hide-on-small-screen {
display: none;
}
.hide-on-large-screen,
.show-on-small-screen {
display: inline-flex;
}
.sticky-inner {
position: relative;
width: 100%;
}
.inner-left {
2019-11-17 06:28:40 +00:00
order: 0;
2019-12-02 08:19:52 +00:00
}
.inner-right {
margin-left: 0;
}
.toasted-container {
margin-bottom: 68px;
}
2019-11-14 17:48:44 +00:00
}
2020-05-28 02:05:19 +00:00
.toasted-ad {
background-color: #fefefe;
color: #121212;
padding: 16px !important;
font-weight: 700;
font-size: 16px;
border-radius: 8px;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
.action {
text-transform: none !important;
background-color: #121212;
color: #fefefe;
padding: 12px 16px !important;
font-weight: 500 !important;
font-size: 16px !important;
border-radius: 8px;
margin: 0 !important;
margin-left: 8px !important;
}
}
.virtual-list {
overflow: auto;
}