api-client/assets/css/styles.scss

768 lines
12 KiB
SCSS
Raw Normal View History

2019-08-24 18:35:39 +00:00
$responsiveWidth: 720px;
html {
scroll-behavior: smooth;
}
::selection {
background-color: var(--ac-sel-color);
color: var(--act-color);
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-thumb {
background-color: var(--fg-light-color);
border-radius: 8px;
border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
background-color: var(--fg-color);
}
::placeholder {
color: var(--fg-light-color);
opacity: 0.3;
}
* {
box-sizing: border-box;
outline: 0;
border: 0;
}
body {
background-color: var(--bg-color);
color: var(--fg-color);
font-weight: 500;
font-size: 16px;
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;
}
// Make theme transition smoother.
body.afterLoad {
&,
& * {
transition: background-color 0.2s ease-in-out, border 0.2s ease-in-out;
}
}
body.sticky-footer footer {
opacity: 0.25;
}
a {
display: inline-flex;
color: inherit;
text-decoration: none;
font-weight: 700;
}
header,
footer {
&>div {
display: flex;
padding: 16px;
width: 100%;
align-items: center;
justify-content: space-between;
}
}
.wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.wrapper .content {
min-height: 100vh;
}
.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;
color: var(--ac-color);
}
.tagline {
font-size: 18px;
}
.nav-first {
display: flex;
order: 1;
flex-flow: column;
position: sticky;
top: 0;
align-self: flex-start;
z-index: 1;
}
.main {
flex: 1;
order: 2;
position: relative;
padding: 0 16px;
}
.nav-second {
display: flex;
width: 10%;
order: 3;
// comment this to display
display: none;
}
nav.primary-nav {
display: flex;
flex-flow: column nowrap;
border-bottom: 1px solid var(--brd-color);
svg {
fill: var(--fg-light-color);
}
a {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
padding: 16px;
border-radius: 50%;
background-color: var(--brd-color);
color: var(--fg-light-color);
margin: 8px;
transition: all 0.2s ease-in-out;
&:hover {
color: var(--fg-color);
svg {
fill: var(--fg-color);
}
}
&.nuxt-link-exact-active {
background-color: var(--ac-color);
color: var(--act-color);
border-radius: 16px;
svg {
fill: var(--act-color);
}
}
}
}
nav.secondary-nav {
display: flex;
ul {
display: flex;
flex-flow: column nowrap;
li {
display: flex;
a {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
padding: 16px;
border-radius: 50%;
background-color: var(--bg-dark-color);
color: var(--fg-light-color);
margin: 8px;
&:hover {
color: var(--fg-color);
}
&.current {
color: var(--ac-color);
fill: var(--ac-color);
}
}
}
}
}
.footer {
flex-direction: column;
}
$responsiveWidth: 720px;
@media (max-width: $responsiveWidth) {
.columns {
flex-flow: column;
}
.nav-first {
width: 100%;
background-color: var(--bg-color);
}
nav.primary-nav {
flex-flow: row;
}
nav.secondary-nav {
display: none;
}
.main {
padding: 0 8px;
}
}
2019-08-21 13:18:20 +00:00
h1,
h2,
h3 {
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 {
display: block !important;
z-index: 10000;
.tooltip-inner {
2019-11-01 11:43:55 +00:00
background: black;
2019-10-18 20:29:24 +00:00
color: white;
2019-11-01 11:43:55 +00:00
border-radius: 8px;
padding: 8px 16px;
font-size: 14px;
2019-10-18 20:29:24 +00:00
}
.tooltip-arrow {
width: 0;
height: 0;
border-style: solid;
position: absolute;
margin: 5px;
2019-11-01 11:43:55 +00:00
border-color: black;
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 {
$color: #f9f9f9;
.popover-inner {
background: $color;
2019-11-01 11:43:55 +00:00
color: black;
2019-10-18 20:29:24 +00:00
padding: 24px;
border-radius: 5px;
2019-11-02 05:32:21 +00:00
box-shadow: 0 5px 30px rgba(black, 0.1);
2019-10-18 20:29:24 +00:00
}
.popover-arrow {
border-color: $color;
}
}
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;
}
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-09-17 09:55:32 +00:00
padding: 0 16px;
border-radius: 20px;
2019-08-21 13:18:20 +00:00
background-color: var(--ac-color);
color: var(--act-color);
2019-10-09 10:12:15 +00:00
font-weight: 700;
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;
transition: all 0.2s ease-in-out;
2019-09-12 09:01:17 +00:00
fill: var(--act-color);
height: 40px;
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-09-02 02:28:03 +00:00
&.icon {
background-color: var(--bg-color);
color: var(--fg-light-color);
fill: var(--fg-light-color);
&:not([disabled]):hover {
color: var(--fg-color);
fill: var(--fg-color);
}
2019-09-02 02:28:03 +00:00
}
&:not([disabled]):hover {
color: var(--act-color);
fill: var(--act-color);
2019-08-29 22:58:10 +00:00
}
2019-08-21 13:18:20 +00:00
}
fieldset {
margin: 16px 0;
2019-09-17 08:13:12 +00:00
border: 1px solid var(--brd-color);
border-radius: 8px;
background-color: var(--bg-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;
}
.hidden {
display: none;
}
2019-08-21 13:18:20 +00:00
select,
input,
option,
2019-08-24 14:51:03 +00:00
textarea,
pre {
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-10-09 10:12:15 +00:00
font-family: 'Roboto Mono', monospace;
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);
min-height: 40px;
2019-10-06 02:16:48 +00:00
resize: vertical;
text-overflow: ellipsis;
2019-09-04 10:22:16 +00:00
&:not([readonly]):active,
&:not([readonly]):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;
}
code {
height: 336px;
2019-09-17 09:55:32 +00:00
border-radius: 8px;
}
.hljs,
.hljs-subst {
background-color: var(--bg-dark-color) !important;
color: var(--fg-color) !important;
2019-10-09 10:12:15 +00:00
font-family: 'Roboto Mono', monospace;
}
2019-09-09 05:57:00 +00:00
select,
input,
option {
height: 40px;
2019-09-09 05:57:00 +00:00
}
input[type="checkbox"] {
2019-08-28 05:17:31 +00:00
display: none;
2019-08-27 04:48:41 +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
}
}
&: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-09-02 11:38:59 +00:00
.error,
2019-09-02 04:48:01 +00:00
.disabled,
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-09-02 11:38:59 +00:00
cursor: default;
2019-09-02 02:28:03 +00:00
&.icon {
color: var(--bg-color);
fill: var(--bg-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 li,
ol li {
display: inline-flex;
flex-direction: column;
flex-grow: 1;
}
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-08-26 06:19:23 +00:00
}
2019-08-21 13:18:20 +00:00
.show-on-small-screen {
display: flex;
}
2019-08-24 18:35:39 +00:00
@media (max-width: $responsiveWidth) {
2019-08-27 04:48:41 +00:00
2019-08-21 13:18:20 +00:00
ul,
ol {
flex-direction: column;
}
ul li,
ol li {
display: flex;
}
2019-08-28 04:32:40 +00:00
.hide-on-small-screen {
display: none;
}
.show-on-small-screen {
display: inline-flex;
}
}
2019-08-24 03:06:57 +00:00
#installPWA {
display: none;
}
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 11:45:11 +00:00
.virtual-list::-webkit-scrollbar {
width: 0;
}
2019-08-25 08:37:21 +00:00
fieldset#history {
.method-list-item {
position: relative;
span {
position: absolute;
2019-09-17 08:13:12 +00:00
top: 12px;
2019-09-13 16:52:11 +00:00
right: 12px;
2019-10-09 10:12:15 +00:00
font-family: 'Roboto Mono', monospace;
2019-08-25 08:37:21 +00:00
}
}
}
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;
}
#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%;
}
.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 {
#hidden-message {
display: none;
}
&.show {
display: flex;
position: fixed;
2019-11-02 05:32:21 +00:00
top: 12px;
right: 12px;
z-index: 1;
#hidden-message {
display: block;
margin-left: 4px;
}
}
}
section {
display: flex;
flex-wrap: wrap;
}
div.tab {
width: 100%;
order: 1;
}
input[type="radio"],
div.tab {
display: none;
}
input[type="radio"]+label {
padding: 8px 16px;
border-bottom: 2px solid transparent;
cursor: pointer;
transition: all 0.2s ease-in-out;
&:hover {
2019-09-17 08:13:12 +00:00
border-color: var(--brd-color);
}
}
input[type="radio"]:checked+label {
2019-09-17 09:55:32 +00:00
border-color: var(--fg-color);
}
input[type="radio"]:checked+label+div.tab {
display: block;
}
.toasted-container .toasted {
justify-content: start !important;
}
.toasted.info {
background-color: var(--ac-color) !important;
color: var(--act-color) !important;
}
.toasted.bubble .action {
color: inherit !important;
}