options.css 11 KB

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