styles.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. $responsiveWidth: 720px;
  2. ::selection {
  3. background-color: var(--ac-color);
  4. color: var(--act-color);
  5. }
  6. ::-webkit-scrollbar {
  7. width: 8px;
  8. }
  9. ::-webkit-scrollbar-thumb {
  10. background-color: #4a4a4a;
  11. }
  12. * {
  13. box-sizing: border-box;
  14. outline: 0;
  15. border: 0;
  16. font-family: "Poppins", "Roboto", "Noto", sans-serif;
  17. }
  18. a {
  19. display: inline-flex;
  20. color: inherit;
  21. text-decoration: none;
  22. font-weight: 700;
  23. }
  24. body {
  25. background-color: var(--bg-color);
  26. color: var(--fg-color);
  27. font-weight: 500;
  28. line-height: 1.5;
  29. -webkit-tap-highlight-color: transparent;
  30. -webkit-touch-callout: none;
  31. -webkit-user-select: none;
  32. user-select: none;
  33. }
  34. h1,
  35. h2,
  36. h3 {
  37. margin: 0;
  38. font-weight: 700;
  39. }
  40. h3.title {
  41. margin: 4px;
  42. }
  43. header,
  44. footer {
  45. display: flex;
  46. padding: 16px;
  47. width: 100%;
  48. align-items: center;
  49. justify-content: space-between;
  50. }
  51. nav {
  52. a:not(:last-of-type) {
  53. margin-right: 15px;
  54. }
  55. }
  56. body.sticky-footer footer {
  57. position: fixed;
  58. right: 0;
  59. bottom: 0;
  60. left: 0;
  61. }
  62. .logo {
  63. color: var(--ac-color);
  64. }
  65. button {
  66. margin: 4px;
  67. padding: 8px 16px;
  68. border-radius: 4px;
  69. background-color: var(--ac-color);
  70. color: var(--act-color);
  71. font-weight: 700;
  72. font-size: 16px;
  73. cursor: pointer;
  74. &[disabled], &.disabled {
  75. opacity: 0.7;
  76. cursor: default;
  77. }
  78. }
  79. fieldset {
  80. margin: 16px 0;
  81. border: 2px solid var(--fg-color);
  82. border-radius: 4px;
  83. }
  84. legend {
  85. color: var(--fg-color);
  86. font-weight: 700;
  87. cursor: pointer;
  88. }
  89. fieldset textarea,
  90. fieldset pre {
  91. resize: vertical;
  92. }
  93. fieldset.blue {
  94. border-color: #57b5f9;
  95. }
  96. fieldset.blue legend {
  97. color: #57b5f9;
  98. }
  99. fieldset.gray {
  100. border-color: #9B9B9B;
  101. }
  102. fieldset.gray legend {
  103. color: #9B9B9B;
  104. }
  105. fieldset.green {
  106. border-color: #B8E986;
  107. }
  108. fieldset.green legend {
  109. color: #B8E986;
  110. }
  111. fieldset.cyan {
  112. border-color: #50E3C2;
  113. }
  114. fieldset.cyan legend {
  115. color: #50E3C2;
  116. }
  117. fieldset.blue-dark {
  118. border-color: #4A90E2;
  119. }
  120. fieldset.blue-dark legend {
  121. color: #4A90E2;
  122. }
  123. fieldset.purple {
  124. border-color: #C198FB;
  125. }
  126. fieldset.purple legend {
  127. color: #C198FB;
  128. }
  129. fieldset.orange {
  130. border-color: #F5A623;
  131. }
  132. fieldset.orange legend {
  133. color: #F5A623;
  134. }
  135. .hidden {
  136. display: none;
  137. }
  138. select,
  139. input,
  140. option,
  141. textarea,
  142. pre {
  143. margin: 4px;
  144. padding: 8px 16px;
  145. border-radius: 4px;
  146. width: calc(100% - 8px);
  147. background-color: var(--bg-dark-color);
  148. color: var(--fg-color);
  149. font-weight: 700;
  150. font-size: 18px;
  151. font-family: monospace;
  152. }
  153. // Force the same height, for dropdowns and regular input boxes.
  154. select,
  155. input,
  156. option {
  157. height: 41px;
  158. }
  159. input[type="checkbox"] {
  160. display: none;
  161. &,
  162. & + label {
  163. vertical-align: middle;
  164. cursor: pointer;
  165. &:before {
  166. content: "\2714";
  167. border: 2px solid var(--fg-color);
  168. border-radius: 4px;
  169. display: inline-flex;
  170. height: 16px;
  171. width: 16px;
  172. align-items: center;
  173. justify-content: center;
  174. margin: 8px 8px 8px 0;
  175. color: transparent;
  176. transition: .2s;
  177. }
  178. }
  179. &:checked + label:before {
  180. background-color: var(--ac-color);
  181. border-color: var(--ac-color);
  182. color: var(--act-color);
  183. }
  184. }
  185. .error {
  186. background-color: var(--err-color);
  187. }
  188. .disabled, input[disabled] {
  189. background-color: var(--err-color);
  190. color: #b2b2b2;
  191. }
  192. label {
  193. padding: 4px;
  194. }
  195. ul,
  196. ol {
  197. display: flex;
  198. margin: 8px 0 0;
  199. padding: 0;
  200. list-style-type: none;
  201. }
  202. ul li,
  203. ol li {
  204. display: inline-flex;
  205. flex-direction: column;
  206. flex-grow: 1;
  207. }
  208. .flex-wrap {
  209. display: flex;
  210. justify-content: space-between;
  211. align-items: center;
  212. }
  213. @media (max-width: $responsiveWidth) {
  214. header {
  215. display: block;
  216. text-align: center;
  217. nav {
  218. display: inline-flex;
  219. margin-top: 20px;
  220. }
  221. }
  222. ul,
  223. ol {
  224. flex-direction: column;
  225. }
  226. ul li,
  227. ol li {
  228. display: flex;
  229. }
  230. .hide-on-small-screen {
  231. display: none;
  232. }
  233. }
  234. #installPWA {
  235. display: none;
  236. }
  237. .info-response {
  238. background-color: #FFEB3B;
  239. }
  240. .success-response {
  241. background-color: #4BB543;
  242. }
  243. .redir-response {
  244. background-color: #FF5722;
  245. }
  246. .cl-error-response {
  247. background-color: #A63232;
  248. }
  249. .sv-error-response {
  250. background-color: #B71C1C;
  251. }
  252. .missing-data-response {
  253. background-color: #676767;
  254. }
  255. .virtual-list::-webkit-scrollbar {
  256. width: 0;
  257. }
  258. fieldset#history {
  259. .method-list-item {
  260. position: relative;
  261. span {
  262. position: absolute;
  263. top: 44px;
  264. right: 20px;
  265. font-family: monospace, monospace;
  266. }
  267. }
  268. }
  269. .align-left {
  270. text-align: left;
  271. }
  272. .align-right {
  273. text-align: right;
  274. }
  275. #response-details-wrapper {
  276. position: relative;
  277. overflow: hidden;
  278. border-radius: 4px;
  279. margin: 4px;
  280. textarea {
  281. width: 100%;
  282. }
  283. #response-details {
  284. margin: 0;
  285. }
  286. .covers-response {
  287. position: absolute;
  288. top: 0;
  289. left: 0;
  290. right: 0;
  291. bottom: 0;
  292. background-color: white;
  293. height: 100%;
  294. width: 100%;
  295. }
  296. }