api-client/assets/css/styles.scss

387 lines
5.1 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;
}
::-webkit-scrollbar-thumb {
background-color: #4a4a4a;
}
2019-08-21 13:18:20 +00:00
* {
box-sizing: border-box;
outline: 0;
border: 0;
2019-08-24 19:40:47 +00:00
font-family: "Poppins", "Roboto", "Noto", sans-serif;
2019-08-21 13:18:20 +00:00
}
a {
display: inline-flex;
color: inherit;
text-decoration: none;
font-weight: 700;
}
body {
background-color: var(--bg-color);
color: var(--fg-color);
font-weight: 500;
line-height: 1.5;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
}
h1,
h2,
h3 {
margin: 0;
font-weight: 700;
}
2019-08-27 11:52:24 +00:00
h3.title {
margin: 4px;
}
2019-08-21 13:18:20 +00:00
header,
footer {
& > div {
2019-08-21 13:18:20 +00:00
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 {
margin: 4px;
padding: 8px 16px;
border-radius: 4px;
background-color: var(--ac-color);
color: var(--act-color);
2019-08-21 13:18:20 +00:00
font-weight: 700;
font-size: 16px;
cursor: pointer;
2019-08-29 22:58:10 +00:00
&[disabled], &.disabled {
opacity: 0.7;
cursor: default;
}
2019-08-21 13:18:20 +00:00
}
fieldset {
margin: 16px 0;
2019-08-21 13:52:11 +00:00
border: 2px solid var(--fg-color);
2019-08-21 13:18:20 +00:00
border-radius: 4px;
}
legend {
2019-08-22 10:15:27 +00:00
color: var(--fg-color);
2019-08-21 13:18:20 +00:00
font-weight: 700;
cursor: pointer;
2019-08-21 13:18:20 +00:00
}
2019-08-24 19:40:47 +00:00
fieldset textarea,
fieldset pre {
2019-08-21 13:18:20 +00:00
resize: vertical;
}
fieldset.blue {
2019-08-21 13:18:20 +00:00
border-color: #57b5f9;
}
fieldset.blue legend {
2019-08-21 13:18:20 +00:00
color: #57b5f9;
}
fieldset.gray {
2019-08-22 10:15:27 +00:00
border-color: #9B9B9B;
}
fieldset.gray legend {
2019-08-22 10:15:27 +00:00
color: #9B9B9B;
}
fieldset.green {
2019-08-22 04:34:41 +00:00
border-color: #B8E986;
2019-08-21 13:18:20 +00:00
}
fieldset.green legend {
2019-08-22 04:34:41 +00:00
color: #B8E986;
2019-08-21 13:52:11 +00:00
}
fieldset.cyan {
2019-08-22 04:34:41 +00:00
border-color: #50E3C2;
2019-08-21 13:52:11 +00:00
}
fieldset.cyan legend {
2019-08-22 04:34:41 +00:00
color: #50E3C2;
2019-08-21 13:52:11 +00:00
}
fieldset.blue-dark {
2019-08-21 13:52:11 +00:00
border-color: #4A90E2;
}
fieldset.blue-dark legend {
2019-08-21 13:52:11 +00:00
color: #4A90E2;
2019-08-21 13:18:20 +00:00
}
fieldset.purple {
2019-08-21 13:18:20 +00:00
border-color: #C198FB;
}
fieldset.purple legend {
2019-08-21 13:18:20 +00:00
color: #C198FB;
}
2019-08-27 04:07:41 +00:00
fieldset.orange {
2019-08-27 04:48:41 +00:00
border-color: #F5A623;
2019-08-27 04:07:41 +00:00
}
fieldset.orange legend {
2019-08-27 04:48:41 +00:00
color: #F5A623;
2019-08-27 04:07:41 +00:00
}
.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-08-21 13:18:20 +00:00
padding: 8px 16px;
border-radius: 4px;
2019-08-28 04:32:40 +00:00
width: calc(100% - 8px);
background-color: var(--bg-dark-color);
2019-08-21 13:18:20 +00:00
color: var(--fg-color);
font-weight: 700;
font-size: 18px;
font-family: monospace;
2019-08-21 13:18:20 +00:00
}
// Force the same height, for dropdowns and regular input boxes.
select,
input,
option {
2019-08-28 04:32:40 +00:00
height: 41px;
}
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";
border: 2px solid var(--fg-color);
border-radius: 4px;
display: inline-flex;
height: 16px;
width: 16px;
align-items: center;
justify-content: center;
margin: 8px 8px 8px 0;
color: transparent;
transition: .2s;
}
}
&:checked + label:before {
background-color: var(--ac-color);
border-color: var(--ac-color);
color: var(--act-color);
}
}
2019-08-22 14:41:08 +00:00
.error {
2019-08-22 15:53:08 +00:00
background-color: var(--err-color);
2019-08-22 14:41:08 +00:00
}
2019-08-29 22:58:10 +00:00
.disabled, input[disabled] {
background-color: var(--err-color);
2019-08-22 15:53:08 +00:00
color: #b2b2b2;
2019-08-22 14:41:08 +00:00
}
2019-08-21 13:18:20 +00:00
label {
padding: 4px;
}
ul,
ol {
display: flex;
2019-08-21 13:18:20 +00:00
margin: 8px 0 0;
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-08-24 18:35:39 +00:00
@media (max-width: $responsiveWidth) {
2019-08-28 04:32:40 +00:00
header {
display: block;
text-align: center;
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-08-24 03:06:57 +00:00
#installPWA {
display: none;
}
2019-08-24 19:40:47 +00:00
.info-response {
2019-08-26 09:07:02 +00:00
background-color: #FFEB3B;
2019-08-24 19:40:47 +00:00
}
.success-response {
2019-08-26 09:07:02 +00:00
background-color: #4BB543;
2019-08-24 19:40:47 +00:00
}
.redir-response {
2019-08-26 09:07:02 +00:00
background-color: #FF5722;
2019-08-24 19:40:47 +00:00
}
.cl-error-response {
2019-08-26 09:07:02 +00:00
background-color: #A63232;
2019-08-24 19:40:47 +00:00
}
.sv-error-response {
2019-08-26 09:07:02 +00:00
background-color: #B71C1C;
2019-08-25 08:37:21 +00:00
}
.missing-data-response {
background-color: #676767;
}
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;
top: 44px;
right: 20px;
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 {
text-align: center;
}
2019-08-28 04:32:40 +00:00
.align-right {
text-align: right;
}
#response-details-wrapper {
position: relative;
overflow: hidden;
border-radius: 4px;
margin: 4px;
2019-08-28 04:32:40 +00:00
textarea {
width: 100%;
}
#response-details {
margin: 0;
}
.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
}
#action {
#hidden-message {
display: none;
}
&.show {
display: flex;
position: fixed;
top: 16px;
right: 16px;
z-index: 1;
#hidden-message {
display: block;
margin-left: 4px;
}
}
}