options.css 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  1. body {
  2. background-color: #fff;
  3. font-family: sans-serif;
  4. font-size: 12px;
  5. max-width: 1024px;
  6. width: 100%;
  7. margin: 0;
  8. margin-left: auto;
  9. margin-right: auto;
  10. }
  11. .side-panel body {
  12. background-color: #fbfbfb;
  13. }
  14. button {
  15. padding-top: 5px;
  16. padding-bottom: 5px;
  17. padding-left: 8px;
  18. padding-right: 8px;
  19. border-width: 1px;
  20. }
  21. button:not([disabled]):hover {
  22. background-color: #ededed;
  23. }
  24. button,
  25. select,
  26. input[type=text] {
  27. background-color: transparent;
  28. border-color: rgb(191, 191, 191);
  29. border-style: solid;
  30. border-radius: 2px;
  31. border-width: 1px;
  32. color: black;
  33. }
  34. input[type=checkbox] {
  35. margin-bottom: 1px;
  36. }
  37. button:active {
  38. border-color: rgb(237, 237, 237);
  39. }
  40. button:focus {
  41. border-color: black;
  42. background-color: #fefefe;
  43. }
  44. input {
  45. margin-left: 5px;
  46. }
  47. label,
  48. input {
  49. align-self: center;
  50. }
  51. input[type="text"] {
  52. min-width: 70%;
  53. }
  54. input[type="number"] {
  55. max-width: 50px;
  56. }
  57. select {
  58. min-height: 22px;
  59. max-height: 22px;
  60. }
  61. input.large-input {
  62. min-width: 60px;
  63. }
  64. h3 {
  65. padding-left: 8px;
  66. padding-top: 10px;
  67. margin-top: 4px;
  68. min-height: 28px;
  69. }
  70. h3 a {
  71. padding-left: 5px;
  72. }
  73. .buttons {
  74. white-space: nowrap;
  75. }
  76. .profiles {
  77. float: right;
  78. margin-right: 12px;
  79. position: relative;
  80. top: 3px;
  81. max-width: calc(100% - 115px);
  82. }
  83. .help-icon {
  84. vertical-align: middle;
  85. border-radius: 50%;
  86. border: 1px black solid;
  87. opacity: .2;
  88. width: 12px;
  89. margin-top: 3px;
  90. margin-bottom: 3px;
  91. margin-left: 8px;
  92. margin-right: 8px;
  93. transition: opacity;
  94. transition-duration: 200ms;
  95. cursor: pointer;
  96. }
  97. .help-icon:hover {
  98. opacity: .4;
  99. }
  100. .help-content {
  101. margin-top: 4px;
  102. margin-left: 8px;
  103. margin-bottom: 12px;
  104. border: 1px #bfbfbf dotted;
  105. border-radius: 4px;
  106. padding: 2px;
  107. background-color: #fffdde;
  108. line-height: 1.6em;
  109. }
  110. .help-content img {
  111. max-height: 1em;
  112. }
  113. .help-content a {
  114. padding: 0px;
  115. }
  116. .help-content p {
  117. margin: 6px;
  118. }
  119. .help-content ul {
  120. margin: 4px;
  121. padding-left: 25px;
  122. }
  123. .help-content li {
  124. margin: 2px;
  125. }
  126. .rules-table-container {
  127. width: 100%;
  128. border-spacing: 0;
  129. border-color: rgb(191, 191, 191);
  130. border-style: solid;
  131. border-width: 1px;
  132. margin-top: 24px;
  133. }
  134. .rules-table-container .tr {
  135. height: 26px;
  136. display: grid;
  137. grid-template-columns: 1fr 1fr 1fr 58px;
  138. }
  139. .rules-table-container.compact .tr {
  140. grid-template-columns: 1fr 1fr 58px;
  141. }
  142. .rules-table-container.compact .tr .rule-autosave-profile {
  143. display: none;
  144. }
  145. .rules-table-container .tr[hidden] {
  146. display: none;
  147. }
  148. .rules-table-container .thead {
  149. text-align: left;
  150. border-color: rgb(225, 225, 225);
  151. border-style: solid;
  152. border-width: 0;
  153. border-bottom-width: 1px;
  154. }
  155. .rules-table-container .th,
  156. .rules-table-container .td {
  157. padding: 4px;
  158. text-overflow: ellipsis;
  159. overflow: hidden;
  160. white-space: nowrap;
  161. align-self: center;
  162. }
  163. .rules-table .td:first-of-type {
  164. padding-right: 8px;
  165. }
  166. .rules-table .td:last-of-type {
  167. text-align: right;
  168. }
  169. .rules-data {
  170. max-height: 552px;
  171. overflow-y: auto;
  172. padding-top: 2px;
  173. padding-bottom: 2px;
  174. scrollbar-width: thin;
  175. }
  176. ::-webkit-scrollbar {
  177. width: 6px;
  178. background-color: #cdcdcd;
  179. }
  180. .profiles button,
  181. .rules-table-container button {
  182. padding: 0;
  183. margin: 0;
  184. width: 22px;
  185. text-align: center;
  186. }
  187. .rules-table-container .thead .tr {
  188. min-height: 32px;
  189. }
  190. .rules-table-container .thead .th:last-of-type {
  191. text-align: right;
  192. }
  193. .profiles button,
  194. .profiles select,
  195. .rules-table-container button,
  196. .rules-table-container select,
  197. .rules-table-container input {
  198. height: 22px;
  199. vertical-align: top;
  200. }
  201. .rules-table-container input {
  202. width: 100%;
  203. height: 20px;
  204. margin: 0;
  205. padding: 0;
  206. padding-left: 2px;
  207. padding-right: 2px;
  208. }
  209. .rules-table-container .rule-create {
  210. margin-top: 8px;
  211. margin-bottom: 3px;
  212. }
  213. .profiles select {
  214. max-width: calc(100% - 78px);
  215. }
  216. .rules-table-container select {
  217. max-width: 100%;
  218. }
  219. .profiles button:disabled,
  220. .rules-table-container button:disabled {
  221. opacity: .25;
  222. }
  223. .profiles button>img,
  224. .rules-table-container button>img {
  225. width: 14px;
  226. height: auto;
  227. vertical-align: middle;
  228. padding: 2px;
  229. }
  230. .rules-table-container+.option label,
  231. .rules-table-container+.option+.option label {
  232. text-align: right;
  233. width: 100%;
  234. }
  235. #profilesLabel {
  236. font-weight: normal;
  237. padding-top: 5px;
  238. margin-right: 5px;
  239. }
  240. details {
  241. color: #555;
  242. margin-left: 6px;
  243. margin-right: 12px;
  244. margin-bottom: 4px;
  245. border-top: #bfbfbf 1px dashed;
  246. }
  247. details:last-of-type {
  248. border-bottom: #bfbfbf 1px dashed;
  249. }
  250. details>summary {
  251. color: black;
  252. padding-bottom: 7px;
  253. padding-top: 7px;
  254. margin-bottom: 3px;
  255. margin-top: 3px;
  256. padding-left: 6px;
  257. cursor: pointer;
  258. }
  259. details[open]>summary {
  260. cursor: pointer;
  261. outline-width: 0px;
  262. }
  263. a {
  264. display: inline-block;
  265. padding-top: 5px;
  266. }
  267. .option.second-level {
  268. margin-left: 10px;
  269. }
  270. .option {
  271. display: flex;
  272. justify-content: space-between;
  273. margin-top: 5px;
  274. padding-left: 8px;
  275. min-height: 24px;
  276. }
  277. .option.vertical {
  278. flex-direction: column;
  279. }
  280. .option.vertical label {
  281. align-self: flex-start;
  282. }
  283. .option.vertical input {
  284. margin-top: 4px;
  285. align-self: flex-end;
  286. width: calc(100% - 6px);
  287. margin-bottom: 2px;
  288. padding: 2px;
  289. }
  290. .option:last-of-type {
  291. padding-bottom: 12px;
  292. }
  293. .option:first-of-type {
  294. padding-top: 6px;
  295. }
  296. .option.bottom {
  297. padding-top: 24px;
  298. padding-right: 12px;
  299. padding-bottom: 12px;
  300. padding-left: 12px;
  301. }
  302. #expandAllButton {
  303. font-family: monospace;
  304. display: inline-block;
  305. min-width: 7px;
  306. max-width: 7px;
  307. margin-left: 5px;
  308. opacity: .4;
  309. transition: opacity 250ms;
  310. cursor: pointer;
  311. font-size: 1.1em;
  312. position: relative;
  313. top: -1px;
  314. left: -2px;
  315. }
  316. #expandAllButton::after {
  317. content: '+';
  318. }
  319. #expandAllButton.opened::after {
  320. content: '-';
  321. }
  322. #expandAllButton:hover {
  323. opacity: 1;
  324. }
  325. .popup {
  326. width: 100%;
  327. height: 100%;
  328. position: fixed;
  329. top: 0;
  330. left: 0;
  331. background-color: rgba(191, 191, 191, .75);
  332. }
  333. .popup-content {
  334. width: 90%;
  335. max-width: 320px;
  336. margin-top: 25vh;
  337. transform: translateY(-50%);
  338. margin-left: auto;
  339. margin-right: auto;
  340. background-color: white;
  341. box-shadow: 5px 5px #ababab;
  342. }
  343. .popup-content header {
  344. padding-top: 10px;
  345. padding-left: 10px;
  346. padding-bottom: 20px;
  347. font-size: 14px;
  348. line-height: 20px;
  349. }
  350. .popup-content main {
  351. padding-top: 10px;
  352. padding-left: 10px;
  353. padding-bottom: 10px;
  354. }
  355. .popup-content main input {
  356. margin-bottom: 10px;
  357. padding: 2px;
  358. font-size: 13px;
  359. margin-left: 0px;
  360. width: calc(100% - 16px);
  361. }
  362. .popup-content footer {
  363. text-align: right;
  364. padding-left: 10px;
  365. padding-right: 10px;
  366. }
  367. .popup-content footer button {
  368. margin-bottom: 10px;
  369. }
  370. .side-panel .profiles {
  371. max-width: unset;
  372. }
  373. .side-panel .profiles {
  374. top: 0px;
  375. min-width: calc(100% - 12px);
  376. }
  377. .side-panel .profiles select {
  378. min-width: calc(100% - 78px);
  379. }
  380. .side-panel .options-title,
  381. .side-panel .option.bottom {
  382. display: none;
  383. }
  384. .maximized body {
  385. margin-top: 8px;
  386. }
  387. .maximized main {
  388. margin: 0px;
  389. border: solid 1px rgb(191, 191, 191);
  390. background-color: #fbfbfb;
  391. }
  392. html.maximized {
  393. background-color: #f0f0f0;
  394. }
  395. .maximized .profiles {
  396. top: -4px;
  397. max-width: calc(100% - 90px);
  398. }
  399. .maximized #helpLabel {
  400. padding-left: 4px;
  401. padding-right: 4px;
  402. padding-top: 7px;
  403. }
  404. @media (max-width:400px) {
  405. body,
  406. input,
  407. select,
  408. button {
  409. font-size: 11px;
  410. }
  411. }
  412. @media (prefers-color-scheme: dark) {
  413. details {
  414. color: #ccc;
  415. }
  416. html {
  417. background-color: #202023;
  418. }
  419. html.maximized {
  420. background-color: #373737;
  421. }
  422. main,
  423. .maximized main,
  424. details>summary,
  425. button,
  426. select,
  427. .popup-content {
  428. background-color: #202023;
  429. color: #fdfdfd;
  430. }
  431. .maximized main {
  432. border-color: rgb(81, 81, 81);
  433. }
  434. .new-window-link img,
  435. .profiles button img {
  436. filter: invert(100%);
  437. }
  438. .profiles button img:hover {
  439. filter: invert(0%);
  440. }
  441. .profiles button[disabled] {
  442. opacity: .4;
  443. }
  444. .profiles button[disabled] img {
  445. filter: invert(50%);
  446. }
  447. .help-icon {
  448. opacity: .6;
  449. border-color: #ccc;
  450. }
  451. .help-icon:hover {
  452. opacity: .8;
  453. }
  454. input[type="text"] {
  455. background-color: #fff;
  456. }
  457. button:not([disabled]):hover {
  458. color: #2A2A2E;
  459. }
  460. button:focus {
  461. color: black;
  462. border-color: black;
  463. background-color: #d2d2d2;
  464. }
  465. .help-content {
  466. background-color: rgb(85, 85, 97);
  467. }
  468. .rules-table-container,
  469. .rules-table-container .thead {
  470. border-color: rgb(85, 85, 97);
  471. }
  472. a,
  473. a:visited {
  474. color: white;
  475. }
  476. .popup {
  477. background-color: rgba(59, 59, 59, 0.95);
  478. }
  479. .popup-content {
  480. box-shadow: 5px 5px #000000;
  481. }
  482. }