api-client/style.css

216 lines
2.7 KiB
CSS
Raw Normal View History

2019-08-21 13:18:20 +00:00
:root {
--bg-color: #121212;
2019-08-22 15:53:08 +00:00
--fg-color: #FFF;
2019-08-22 06:13:56 +00:00
--ac-color: #51FF0D;
--err-color: #393939;
2019-08-21 13:18:20 +00:00
}
2019-08-23 10:42:33 +00:00
::selection {
background-color: var(--ac-color);
color: var(--bg-color);
}
::-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;
font-family: 'Poppins', 'Roboto', 'Noto', sans-serif;
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
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;
animation: fadein .2s;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
}
h1,
h2,
h3 {
margin: 0;
font-weight: 700;
}
header,
footer {
display: flex;
padding: 16px;
width: 100%;
align-items: center;
justify-content: space-between;
}
2019-08-24 03:06:57 +00:00
.logo {
color: var(--ac-color);
2019-08-21 13:18:20 +00:00
}
main {
margin: 0 auto;
max-width: 1200px;
}
2019-08-21 13:18:20 +00:00
button {
margin: 4px;
padding: 8px 16px;
border-radius: 4px;
background-color: var(--ac-color);
color: var(--bg-color);
font-weight: 700;
font-size: 16px;
cursor: pointer;
}
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
}
fieldset textarea {
resize: vertical;
}
fieldset.request {
border-color: #57b5f9;
}
fieldset.request legend {
color: #57b5f9;
}
2019-08-22 10:15:27 +00:00
fieldset.history {
border-color: #9B9B9B;
}
fieldset.history legend {
color: #9B9B9B;
}
2019-08-21 13:18:20 +00:00
fieldset.authentication {
2019-08-22 04:34:41 +00:00
border-color: #B8E986;
2019-08-21 13:18:20 +00:00
}
fieldset.authentication legend {
2019-08-22 04:34:41 +00:00
color: #B8E986;
2019-08-21 13:52:11 +00:00
}
fieldset.parameters {
2019-08-22 04:34:41 +00:00
border-color: #50E3C2;
2019-08-21 13:52:11 +00:00
}
fieldset.parameters legend {
2019-08-22 04:34:41 +00:00
color: #50E3C2;
2019-08-21 13:52:11 +00:00
}
fieldset.reqbody {
border-color: #4A90E2;
}
fieldset.reqbody legend {
color: #4A90E2;
2019-08-21 13:18:20 +00:00
}
fieldset.response {
border-color: #C198FB;
}
fieldset.response legend {
color: #C198FB;
}
.hidden .collapsible {
display: none;
}
2019-08-21 13:18:20 +00:00
select,
input,
option,
textarea {
margin: 4px;
2019-08-21 13:18:20 +00:00
padding: 8px 16px;
width: calc(100% - 8px);
border-radius: 4px;
background-color: #000;
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
}
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
}
.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;
}
@media (max-width: 720px) {
ul,
ol {
flex-direction: column;
}
ul li,
ol li {
display: flex;
}
}