styles.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. $responsiveWidth: 720px;
  2. ::selection {
  3. background-color: var(--ac-color);
  4. color: var(--act-color);
  5. }
  6. ::-webkit-scrollbar {
  7. width: 8px;
  8. height: 8px;
  9. }
  10. ::-webkit-scrollbar-thumb {
  11. background-color: rgba(0, 0, 0, .5);
  12. }
  13. ::-webkit-scrollbar-thumb:hover {
  14. background-color: rgba(0, 0, 0, .6);
  15. }
  16. ::placeholder {
  17. color: var(--fg-color);
  18. }
  19. * {
  20. box-sizing: border-box;
  21. outline: 0;
  22. border: 0;
  23. font-family: "Poppins", "Roboto", "Noto", sans-serif;
  24. }
  25. a {
  26. display: inline-flex;
  27. color: inherit;
  28. text-decoration: none;
  29. font-weight: 700;
  30. }
  31. body {
  32. background-color: var(--bg-color);
  33. color: var(--fg-color);
  34. font-weight: 500;
  35. line-height: 1.5;
  36. -webkit-tap-highlight-color: transparent;
  37. -webkit-touch-callout: none;
  38. user-select: none;
  39. }
  40. h1,
  41. h2,
  42. h3 {
  43. margin: 0;
  44. font-weight: 700;
  45. }
  46. h3.title {
  47. margin: 4px;
  48. }
  49. header,
  50. footer {
  51. & > div {
  52. display: flex;
  53. padding: 16px;
  54. width: 100%;
  55. align-items: center;
  56. justify-content: space-between;
  57. }
  58. }
  59. nav {
  60. a:not(:last-of-type) {
  61. margin-right: 15px;
  62. }
  63. }
  64. body.sticky-footer footer {
  65. position: fixed;
  66. right: 0;
  67. bottom: 0;
  68. left: 0;
  69. }
  70. .logo {
  71. color: var(--ac-color);
  72. }
  73. button {
  74. display: inline-flex;
  75. align-items: center;
  76. justify-content: center;
  77. margin: 4px;
  78. padding: 8px 16px;
  79. border-radius: 4px;
  80. background-color: var(--ac-color);
  81. color: var(--act-color);
  82. font-weight: 700;
  83. font-size: 16px;
  84. cursor: pointer;
  85. transition: all 0.2s ease-in-out;
  86. fill: var(--act-color);
  87. span {
  88. display: inline-flex;
  89. margin-left: 8px;
  90. }
  91. &.icon {
  92. background-color: var(--bg-color);
  93. color: var(--ac-color);
  94. fill: var(--ac-color);
  95. }
  96. &:not([disabled]):hover,
  97. &:not(.disabled):focus {
  98. background-color: var(--bg-color);
  99. box-shadow: inset 0 0 0 2px var(--ac-color);
  100. color: var(--ac-color);
  101. fill: var(--ac-color);
  102. }
  103. }
  104. fieldset {
  105. margin: 16px 0;
  106. border: 2px solid var(--fg-color);
  107. border-radius: 4px;
  108. }
  109. legend {
  110. color: var(--fg-color);
  111. font-weight: 700;
  112. cursor: pointer;
  113. }
  114. fieldset textarea,
  115. fieldset pre
  116. code {
  117. resize: vertical;
  118. }
  119. fieldset.blue {
  120. border-color: #57b5f9;
  121. }
  122. fieldset.blue legend {
  123. color: #57b5f9;
  124. }
  125. fieldset.gray {
  126. border-color: #BCC2CD;
  127. }
  128. fieldset.gray legend {
  129. color: #BCC2CD;
  130. }
  131. fieldset.green {
  132. border-color: #50fa7b;
  133. }
  134. fieldset.green legend {
  135. color: #50fa7b;
  136. }
  137. fieldset.cyan {
  138. border-color: #8be9fd;
  139. }
  140. fieldset.cyan legend {
  141. color: #8be9fd;
  142. }
  143. fieldset.purple {
  144. border-color: #bd93f9;
  145. }
  146. fieldset.purple legend {
  147. color: #bd93f9;
  148. }
  149. fieldset.orange {
  150. border-color: #ffb86c;
  151. }
  152. fieldset.orange legend {
  153. color: #ffb86c;
  154. }
  155. fieldset.pink {
  156. border-color: #ff79c6;
  157. }
  158. fieldset.pink legend {
  159. color: #ff79c6;
  160. }
  161. fieldset.red {
  162. border-color: #ff5555;
  163. }
  164. fieldset.red legend {
  165. color: #ff5555;
  166. }
  167. fieldset.yellow {
  168. border-color: #f1fa8c;
  169. }
  170. fieldset.yellow legend {
  171. color: #f1fa8c;
  172. }
  173. .hidden {
  174. display: none;
  175. }
  176. select,
  177. input,
  178. option,
  179. textarea,
  180. pre {
  181. margin: 4px;
  182. padding: 8px;
  183. border-radius: 4px;
  184. width: calc(100% - 8px);
  185. background-color: var(--bg-dark-color);
  186. color: var(--fg-color);
  187. font-weight: 700;
  188. font-size: 18px;
  189. font-family: monospace;
  190. transition: all 0.2s ease-in-out;
  191. user-select: all;
  192. &:not([readonly]):hover,
  193. &:not([readonly]):focus {
  194. background-color: var(--bg-color);
  195. box-shadow: inset 0 0 0 2px var(--ac-color);
  196. }
  197. }
  198. pre {
  199. display: grid;
  200. }
  201. code {
  202. height: 336px;
  203. }
  204. .hljs,
  205. .hljs-subst {
  206. background-color: var(--bg-dark-color) !important;
  207. color: var(--fg-color) !important;
  208. }
  209. select,
  210. input,
  211. option {
  212. height: 41px;
  213. }
  214. input[type="checkbox"] {
  215. display: none;
  216. &,
  217. & + label {
  218. vertical-align: middle;
  219. cursor: pointer;
  220. &:before {
  221. content: "\2714";
  222. border: 2px solid var(--fg-color);
  223. border-radius: 4px;
  224. display: inline-flex;
  225. height: 16px;
  226. width: 16px;
  227. align-items: center;
  228. justify-content: center;
  229. margin: 8px 8px 8px 0;
  230. color: transparent;
  231. transition: .2s;
  232. }
  233. }
  234. &:checked + label:before {
  235. background-color: var(--ac-color);
  236. border-color: var(--ac-color);
  237. color: var(--act-color);
  238. }
  239. }
  240. .error,
  241. .disabled,
  242. [disabled] {
  243. background-color: var(--err-color);
  244. color: #b2b2b2;
  245. cursor: default;
  246. &.icon {
  247. color: #b2b2b2;
  248. fill: #b2b2b2;
  249. }
  250. }
  251. label {
  252. padding: 4px;
  253. }
  254. ul,
  255. ol {
  256. display: flex;
  257. margin: 8px 0 0;
  258. padding: 0;
  259. list-style-type: none;
  260. }
  261. ul li,
  262. ol li {
  263. display: inline-flex;
  264. flex-direction: column;
  265. flex-grow: 1;
  266. }
  267. .flex-wrap {
  268. display: flex;
  269. justify-content: space-between;
  270. align-items: center;
  271. }
  272. .show-on-small-screen {
  273. display: flex;
  274. }
  275. @media (max-width: $responsiveWidth) {
  276. header div {
  277. display: flex;
  278. text-align: center;
  279. flex-direction: column;
  280. nav {
  281. display: inline-flex;
  282. margin-top: 20px;
  283. }
  284. }
  285. ul,
  286. ol {
  287. flex-direction: column;
  288. }
  289. ul li,
  290. ol li {
  291. display: flex;
  292. }
  293. .hide-on-small-screen {
  294. display: none;
  295. }
  296. .show-on-small-screen {
  297. display: inline-flex;
  298. }
  299. }
  300. #installPWA {
  301. display: none;
  302. }
  303. .info-response {
  304. background-color: #FFEB3B;
  305. }
  306. .success-response {
  307. background-color: #4BB543;
  308. }
  309. .redir-response {
  310. background-color: #FF5722;
  311. }
  312. .cl-error-response {
  313. background-color: #A63232;
  314. }
  315. .sv-error-response {
  316. background-color: #B71C1C;
  317. }
  318. .missing-data-response {
  319. background-color: var(--err-color);
  320. }
  321. .virtual-list::-webkit-scrollbar {
  322. width: 0;
  323. }
  324. fieldset#history {
  325. .method-list-item {
  326. position: relative;
  327. span {
  328. position: absolute;
  329. top: 44px;
  330. right: 20px;
  331. font-family: monospace, monospace;
  332. }
  333. }
  334. }
  335. .align-left {
  336. text-align: left;
  337. }
  338. .align-center {
  339. text-align: center;
  340. }
  341. .align-right {
  342. text-align: right;
  343. }
  344. #response-details-wrapper {
  345. position: relative;
  346. overflow: hidden;
  347. border-radius: 4px;
  348. textarea {
  349. margin: 0;
  350. width: 100%;
  351. }
  352. .covers-response {
  353. position: absolute;
  354. top: 0;
  355. left: 0;
  356. right: 0;
  357. bottom: 0;
  358. background-color: white;
  359. height: 100%;
  360. width: 100%;
  361. }
  362. }
  363. #action {
  364. #hidden-message {
  365. display: none;
  366. }
  367. &.show {
  368. display: flex;
  369. position: fixed;
  370. top: 16px;
  371. right: 16px;
  372. z-index: 1;
  373. #hidden-message {
  374. display: block;
  375. margin-left: 4px;
  376. }
  377. }
  378. }