api-client/assets/css/styles.scss

468 lines
6.5 KiB
SCSS
Raw Normal View History

2019-08-24 18:35:39 +00:00
$responsiveWidth: 720px;
2019-08-23 10:42:33 +00:00
::selection {
background-color: var(--ac-color);
color: var(--act-color);
2019-08-23 10:42:33 +00:00
}
::-webkit-scrollbar {
width: 8px;
2019-09-12 12:12:25 +00:00
height: 8px;
2019-08-23 10:42:33 +00:00
}
::-webkit-scrollbar-thumb {
2019-09-17 09:55:32 +00:00
background-color: rgba(0, 0, 0, 0.3);
border-radius: 8px;
2019-09-04 06:49:17 +00:00
}
::-webkit-scrollbar-thumb:hover {
2019-09-17 09:55:32 +00:00
background-color: rgba(0, 0, 0, 0.5);
2019-08-23 10:42:33 +00:00
}
2019-09-09 05:57:00 +00:00
::placeholder {
color: var(--fg-light-color);
opacity: 0.3;
2019-09-09 05:57:00 +00:00
}
2019-08-21 13:18:20 +00:00
* {
box-sizing: border-box;
outline: 0;
border: 0;
}
a {
display: inline-flex;
color: inherit;
text-decoration: none;
font-weight: 600;
2019-08-21 13:18:20 +00:00
}
body {
background-color: var(--bg-color);
color: var(--fg-color);
font-weight: 400;
font-size: 16px;
font-family: "Poppins", "Roboto", "Noto", sans-serif;
2019-08-21 13:18:20 +00:00
line-height: 1.5;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
user-select: none;
}
h1,
h2,
h3 {
margin: 0;
font-weight: 600;
2019-08-21 13:18:20 +00:00
}
2019-08-27 11:52:24 +00:00
h3.title {
margin: 4px;
}
2019-08-21 13:18:20 +00:00
header,
footer {
2019-09-02 04:48:01 +00:00
& > div {
display: flex;
padding: 16px;
width: 100%;
align-items: center;
justify-content: space-between;
}
2019-08-21 13:18:20 +00:00
}
2019-08-24 14:51:03 +00:00
nav {
a:not(:last-of-type) {
margin-right: 15px;
}
}
2019-08-24 03:06:57 +00:00
body.sticky-footer footer {
position: fixed;
2019-08-27 11:52:24 +00:00
right: 0;
2019-08-24 03:06:57 +00:00
bottom: 0;
left: 0;
2019-08-21 13:18:20 +00:00
}
2019-08-24 03:06:57 +00:00
.logo {
color: var(--ac-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-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);
font-weight: 600;
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;
2019-09-17 09:55:32 +00:00
box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.02);
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 {
2019-08-22 10:15:27 +00:00
color: var(--fg-color);
font-weight: 600;
cursor: pointer;
2019-08-21 13:18:20 +00:00
}
2019-08-24 19:40:47 +00:00
fieldset textarea,
fieldset pre code {
2019-08-21 13:18:20 +00:00
resize: vertical;
}
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;
font-family: 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-09-04 10:22:16 +00:00
&:not([readonly]):hover {
background-color: var(--bg-dark-color);
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-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 {
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;
justify-content: space-between;
2019-08-27 04:48:41 +00:00
align-items: center;
2019-08-26 06:19:23 +00:00
}
2019-08-21 13:18:20 +00:00
2019-09-02 02:28:03 +00:00
.show-on-small-screen {
display: flex;
}
2019-08-24 18:35:39 +00:00
@media (max-width: $responsiveWidth) {
2019-09-02 04:48:01 +00:00
header div {
display: flex;
2019-08-28 04:32:40 +00:00
text-align: center;
2019-09-02 04:48:01 +00:00
flex-direction: column;
2019-08-28 04:32:40 +00:00
nav {
display: inline-flex;
margin-top: 20px;
}
}
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;
}
2019-09-02 02:28:03 +00:00
.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;
font-family: monospace, 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;
top: 16px;
right: 16px;
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;
}