options.css 11 KB

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