api-client/assets/css/styles.scss

937 lines
14 KiB
SCSS
Raw Normal View History

2019-11-30 00:24:47 +00:00
.page-enter-active,
.page-leave-active,
2019-11-28 15:11:52 +00:00
.layout-enter-active,
.layout-leave-active {
2019-12-10 16:28:08 +00:00
transition: opacity 0.2s;
2019-11-28 02:15:35 +00:00
}
2019-11-30 00:24:47 +00:00
.page-enter,
.page-leave-active,
2019-11-28 15:11:52 +00:00
.layout-enter,
.layout-leave-active {
2019-11-28 02:15:35 +00:00
opacity: 0;
}
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;
border-radius: 4px;
2019-12-09 03:35:03 +00:00
background-color: var(--bg-light-color);
}
::-webkit-scrollbar-thumb {
background-color: var(--fg-light-color);
border-radius: 8px;
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;
}
// Make theme transition smoother.
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;
}
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;
}
}
.wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}
2019-12-10 16:28:08 +00:00
.wrapper .page {
min-height: calc(100vh - 153px);
}
.header,
.content,
.columns,
.footer {
display: flex;
flex: 1;
}
.slide-in {
position: relative;
animation: slideIn 0.2s forwards ease-in-out;
}
@keyframes slideIn {
0% {
opacity: 0;
left: -16px;
}
100% {
opacity: 1;
left: 0px;
}
}
.logo {
font-size: 22px;
&:hover {
color: var(--ac-color);
}
}
.nav-first,
.sticky-inner {
display: flex;
order: 1;
flex-flow: column;
position: sticky;
top: 0;
align-self: flex-start;
}
.nav-first {
z-index: 1;
height: 100vh;
padding: 0 8px;
2019-12-17 19:13:15 +00:00
background-color: var(--bg-light-color);
}
.main {
2019-12-10 16:28:08 +00:00
display: flex;
flex-flow: column;
flex: 1;
order: 2;
position: relative;
padding: 0 16px;
2019-12-10 16:28:08 +00:00
height: 100%;
}
.nav-second {
display: flex;
width: 10%;
order: 3;
2019-11-21 01:25:37 +00:00
// comment below this to display
display: none;
}
nav.primary-nav {
display: flex;
flex-flow: column nowrap;
svg {
fill: var(--fg-light-color);
}
a {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
2019-12-02 11:42:30 +00:00
padding: 14px;
border-radius: 50%;
2019-12-09 03:35:03 +00:00
background-color: var(--bg-light-color);
color: var(--fg-light-color);
2019-11-29 01:48:49 +00:00
fill: var(--fg-light-color);
margin: 8px 0;
transition: all 0.2s ease-in-out;
&:hover {
color: var(--fg-color);
2019-11-29 01:48:49 +00:00
fill: var(--fg-color);
svg {
fill: var(--fg-color);
}
}
&.nuxt-link-exact-active {
background-color: var(--ac-color);
color: var(--act-color);
2019-11-29 01:48:49 +00:00
fill: var(--act-color);
border-radius: 16px;
svg {
fill: var(--act-color);
}
}
}
}
nav.secondary-nav {
display: flex;
2019-12-09 03:35:03 +00:00
border-top: 1px dashed var(--brd-color);
ul {
display: flex;
flex-flow: column nowrap;
li {
display: flex;
a {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
2019-12-02 11:42:30 +00:00
padding: 14px;
border-radius: 50%;
background-color: var(--bg-dark-color);
color: var(--fg-light-color);
margin: 8px 0;
&:hover {
color: var(--fg-color);
}
&.current {
color: var(--ac-color);
fill: var(--ac-color);
}
}
}
}
}
.footer {
flex-direction: column;
}
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
}
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;
.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;
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
}
}
2019-08-27 11:52:24 +00:00
h3.title {
margin: 4px;
}
.info {
margin-left: 4px;
color: var(--fg-light-color);
}
2019-08-21 13:18:20 +00:00
button {
2019-09-02 02:28:03 +00:00
display: inline-flex;
align-items: center;
justify-content: center;
2019-08-21 13:18:20 +00:00
margin: 4px;
2019-11-21 01:25:37 +00:00
padding: 6px 16px;
border-radius: 20px;
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
transition: all 0.2s ease-in-out;
}
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;
transition: all 0.2s ease-in-out;
}
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;
}
2019-08-21 13:18:20 +00:00
fieldset {
margin: 16px 0;
2019-12-09 03:35:03 +00:00
border-radius: 16px;
transition: all 0.2s ease-in-out;
2019-12-09 03:35:03 +00:00
background-color: var(--bg-dark-color);
2019-08-21 13:18:20 +00:00
}
legend {
display: inline-block;
align-items: center;
justify-content: center;
2019-08-22 10:15:27 +00:00
color: var(--fg-color);
2019-10-09 10:12:15 +00:00
font-weight: 700;
cursor: pointer;
* {
vertical-align: middle;
}
i {
margin-left: 8px;
}
2019-08-21 13:18:20 +00:00
}
fieldset.blue legend {
2019-08-21 13:18:20 +00:00
color: #57b5f9;
}
fieldset.gray legend {
color: #bcc2cd;
2019-08-22 10:15:27 +00:00
}
fieldset.green legend {
2019-09-04 02:48:24 +00:00
color: #50fa7b;
2019-08-21 13:52:11 +00:00
}
fieldset.cyan legend {
2019-09-04 02:48:24 +00:00
color: #8be9fd;
2019-08-21 13:18:20 +00:00
}
fieldset.purple legend {
2019-09-04 02:48:24 +00:00
color: #bd93f9;
2019-08-21 13:18:20 +00:00
}
2019-08-27 04:07:41 +00:00
fieldset.orange legend {
2019-09-04 02:48:24 +00:00
color: #ffb86c;
}
fieldset.pink legend {
color: #ff79c6;
}
fieldset.red legend {
color: #ff5555;
2019-08-27 04:07:41 +00:00
}
2019-09-09 05:57:00 +00:00
fieldset.yellow legend {
color: #f1fa8c;
}
2019-12-17 19:13:15 +00:00
input[type="file"],
input[type="radio"],
.tab,
.hide-on-large-screen,
#installPWA,
.hidden {
display: none;
}
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);
transition: all 0.2s ease-in-out;
2019-09-04 10:22:16 +00:00
}
}
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;
&: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;
background-color: var(--bg-dark-color);
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);
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;
flex-direction: column;
flex-grow: 1;
2019-12-22 03:50:38 +00:00
justify-content: center;
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;
flex-wrap: wrap;
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 {
display: inline-flex;
}
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 {
2019-12-04 16:13:16 +00:00
// #hidden-message {
// display: none;
// }
&.show {
display: flex;
position: fixed;
2019-11-02 05:32:21 +00:00
top: 12px;
right: 12px;
z-index: 2;
2019-12-04 16:13:16 +00:00
// #hidden-message {
// display: block;
// margin-left: 4px;
// }
}
}
section {
display: flex;
flex-wrap: wrap;
}
.tab {
width: 100%;
order: 1;
}
2019-11-29 05:55:13 +00:00
input[type="radio"] + label {
padding: 8px 16px;
border-bottom: 2px solid transparent;
cursor: pointer;
transition: all 0.2s ease-in-out;
2019-11-07 17:41:41 +00:00
&:hover,
&:active,
&:focus {
2019-09-17 08:13:12 +00:00
border-color: var(--brd-color);
}
}
2019-11-29 05:55:13 +00:00
input[type="radio"]:checked + label {
2019-09-17 09:55:32 +00:00
border-color: var(--fg-color);
2019-11-19 14:59:18 +00:00
color: var(--fg-color);
}
2019-11-29 05:55:13 +00:00
input[type="radio"]:checked + label + .tab {
display: block;
}
.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;
}
.nav-first {
position: fixed;
top: auto;
bottom: 0;
height: auto;
padding: 0;
2019-11-14 17:48:44 +00:00
width: 100%;
background-color: var(--bg-color);
transition: all 0.2s ease-in-out;
2019-12-17 19:13:15 +00:00
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.45);
2019-11-14 17:48:44 +00:00
}
nav.primary-nav {
flex-flow: row nowrap;
overflow: auto;
justify-content: space-around;
2019-12-09 03:35:03 +00:00
a {
background-color: transparent;
margin: 8px;
2019-12-09 03:35:03 +00:00
&.nuxt-link-exact-active {
background-color: transparent;
color: var(--ac-color);
fill: var(--ac-color);
svg {
fill: var(--ac-color);
}
}
}
2019-11-14 17:48:44 +00:00
}
2019-12-09 03:35:03 +00:00
2019-11-14 17:48:44 +00:00
nav.secondary-nav {
display: none;
}
.main {
padding: 0 8px 68px;
2019-11-14 17:48:44 +00:00
}
ul,
ol {
flex-direction: column;
}
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
}