options.css 11 KB

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