options.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  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. ::-webkit-scrollbar-thumb {
  210. background-color: #38383d;
  211. }
  212. .profiles button,
  213. .rules-table-container button {
  214. padding: 0;
  215. margin: 0;
  216. text-align: center;
  217. margin-left: 4px;
  218. min-width: 22px;
  219. }
  220. .rules-table-container .thead .tr {
  221. min-height: 32px;
  222. }
  223. .rules-table-container .thead .th:last-of-type {
  224. text-align: right;
  225. }
  226. .profiles button,
  227. .profiles select,
  228. .rules-table-container button,
  229. .rules-table-container select,
  230. .rules-table-container input {
  231. height: 22px;
  232. vertical-align: top;
  233. }
  234. .rules-table-container input {
  235. width: 100%;
  236. height: 20px;
  237. margin: 0;
  238. padding: 0;
  239. padding-left: 2px;
  240. padding-right: 2px;
  241. }
  242. .rules-table-container .rule-create {
  243. margin-top: 8px;
  244. margin-bottom: 3px;
  245. }
  246. .profiles select {
  247. width: calc(100% - 86px);
  248. text-align-last: right;
  249. padding: 0px;
  250. padding-right: 4px;
  251. }
  252. .rules-table-container select {
  253. max-width: 100%;
  254. }
  255. .profiles button:disabled,
  256. .rules-table-container button:disabled {
  257. opacity: .25;
  258. }
  259. .profiles button>img,
  260. .rules-table-container button>img {
  261. width: 14px;
  262. height: auto;
  263. vertical-align: middle;
  264. padding: 2px;
  265. box-sizing: content-box;
  266. }
  267. .rules-table-container+.option label,
  268. .rules-table-container+.option+.option label {
  269. text-align: right;
  270. width: 100%;
  271. }
  272. #profilesLabel {
  273. font-weight: normal;
  274. padding-top: 5px;
  275. margin-right: 5px;
  276. }
  277. details {
  278. color: #555;
  279. margin-left: 6px;
  280. margin-right: 12px;
  281. margin-bottom: 4px;
  282. border-top: #bfbfbf 1px dashed;
  283. }
  284. details:last-of-type {
  285. border-bottom: #bfbfbf 1px dashed;
  286. }
  287. details>summary {
  288. color: black;
  289. padding-bottom: 7px;
  290. padding-top: 7px;
  291. margin-bottom: 3px;
  292. margin-top: 3px;
  293. padding-left: 6px;
  294. cursor: pointer;
  295. }
  296. details[open]>summary {
  297. cursor: pointer;
  298. outline-width: 0px;
  299. }
  300. a {
  301. display: inline-block;
  302. padding-top: 5px;
  303. }
  304. .option.second-level {
  305. margin-left: 10px;
  306. }
  307. .option:not([hidden]) {
  308. display: flex;
  309. justify-content: space-between;
  310. margin-top: 3px;
  311. padding-left: 8px;
  312. padding-bottom: 2px;
  313. min-height: 24px;
  314. }
  315. .option.vertical {
  316. flex-direction: column;
  317. }
  318. .option.vertical label {
  319. align-self: flex-start;
  320. min-height: 24px;
  321. }
  322. .option.vertical input {
  323. margin-top: 4px;
  324. align-self: flex-end;
  325. width: calc(100% - 6px);
  326. margin-bottom: 2px;
  327. padding: 2px;
  328. }
  329. .option:last-of-type {
  330. padding-bottom: 12px;
  331. }
  332. .option:first-of-type {
  333. padding-top: 6px;
  334. }
  335. .option.bottom {
  336. padding-top: 24px;
  337. padding-right: 12px;
  338. padding-bottom: 12px;
  339. padding-left: 12px;
  340. }
  341. #expandAllButton {
  342. font-family: monospace;
  343. display: inline-block;
  344. min-width: 7px;
  345. max-width: 7px;
  346. margin-left: 5px;
  347. opacity: .4;
  348. transition: opacity 250ms;
  349. cursor: pointer;
  350. font-size: 1.1em;
  351. position: relative;
  352. top: -1px;
  353. left: -2px;
  354. }
  355. #expandAllButton::after {
  356. content: '+';
  357. }
  358. #expandAllButton.opened::after {
  359. content: '-';
  360. }
  361. #expandAllButton:hover {
  362. opacity: 1;
  363. }
  364. .popup {
  365. width: 100%;
  366. height: 100%;
  367. position: fixed;
  368. top: 0;
  369. left: 0;
  370. background-color: rgba(191, 191, 191, .75);
  371. display: none;
  372. }
  373. .popup-content {
  374. align-self: flex-start;
  375. width: 90%;
  376. max-width: 320px;
  377. margin-top: 100px;
  378. margin-bottom: 100px;
  379. margin-left: auto;
  380. margin-right: auto;
  381. background-color: white;
  382. box-shadow: 5px 5px #ababab;
  383. }
  384. .popup-content header {
  385. padding-top: 10px;
  386. padding-left: 10px;
  387. padding-bottom: 20px;
  388. font-size: 14px;
  389. line-height: 20px;
  390. }
  391. .popup-content main {
  392. padding-top: 10px;
  393. padding-left: 10px;
  394. padding-bottom: 10px;
  395. }
  396. .popup-content main input {
  397. margin-bottom: 10px;
  398. padding: 2px;
  399. font-size: 13px;
  400. margin-left: 0px;
  401. width: calc(100% - 16px);
  402. }
  403. .popup-content footer {
  404. text-align: right;
  405. padding-left: 10px;
  406. padding-right: 10px;
  407. }
  408. .popup-content footer button {
  409. margin-bottom: 10px;
  410. }
  411. .side-panel .profiles {
  412. max-width: unset;
  413. }
  414. .side-panel .profiles {
  415. top: 0px;
  416. min-width: calc(100% - 12px);
  417. }
  418. .side-panel .profiles select {
  419. min-width: calc(100% - 78px);
  420. text-align-last: auto;
  421. padding-right: 0;
  422. }
  423. .side-panel .options-title,
  424. .side-panel .option.bottom {
  425. display: none;
  426. }
  427. .maximized body {
  428. margin-top: 8px;
  429. }
  430. .maximized body>main {
  431. margin: 0px;
  432. border: solid 1px rgb(191, 191, 191);
  433. background-color: #fbfbfb;
  434. }
  435. html.maximized {
  436. background-color: #f0f0f0;
  437. }
  438. .maximized .profiles {
  439. position: relative;
  440. top: -4px;
  441. }
  442. .maximized #helpLabel {
  443. padding-left: 4px;
  444. padding-right: 4px;
  445. padding-top: 0;
  446. }
  447. @media (max-width:279px) {
  448. h3 {
  449. flex-direction: column;
  450. }
  451. .profiles, .maximized .profiles {
  452. position: static;
  453. margin-top: 8px;
  454. margin-left: 16px;
  455. max-width: 100%;
  456. justify-content: flex-start;
  457. }
  458. .side-panel .profiles {
  459. margin-top: 0;
  460. margin-left: 0;
  461. margin-right: 8px;
  462. justify-content: inherit;
  463. }
  464. .profiles select {
  465. text-align-last: auto;
  466. padding-right: 0;
  467. }
  468. }
  469. @media (max-width:479px) {
  470. body {
  471. min-width: auto;
  472. }
  473. body,
  474. input,
  475. select,
  476. button {
  477. font-size: 11px;
  478. }
  479. }
  480. @media (prefers-color-scheme: dark) {
  481. ::-webkit-scrollbar {
  482. background-color: #2A2A2E;
  483. }
  484. ::-webkit-scrollbar-thumb {
  485. background-color: #555;
  486. }
  487. details {
  488. color: #ccc;
  489. }
  490. html {
  491. background-color: #202023;
  492. }
  493. html.maximized {
  494. background-color: #373737;
  495. }
  496. main,
  497. .maximized body>main,
  498. details>summary,
  499. button,
  500. select,
  501. .popup-content {
  502. background-color: #202023;
  503. color: #fdfdfd;
  504. }
  505. .side-panel,
  506. .side-panel body>main,
  507. .side-panel details>summary,
  508. .side-panel button,
  509. .side-panel select,
  510. .side-panel .popup-content {
  511. background-color: #38383d;
  512. }
  513. .maximized body>main {
  514. border-color: rgb(81, 81, 81);
  515. }
  516. .new-window-link img,
  517. .profiles button img {
  518. filter: invert(100%);
  519. }
  520. .profiles button img:hover {
  521. filter: invert(0%);
  522. }
  523. .profiles button[disabled] {
  524. opacity: .4;
  525. }
  526. .profiles button[disabled] img {
  527. filter: invert(50%);
  528. }
  529. .help-icon>img {
  530. opacity: .6;
  531. border-color: #ccc;
  532. }
  533. .help-icon>img:hover {
  534. opacity: .8;
  535. }
  536. input[type="text"] {
  537. background-color: #fff;
  538. }
  539. button:not([disabled]):hover {
  540. color: #2A2A2E;
  541. }
  542. button:focus {
  543. color: black;
  544. border-color: black;
  545. background-color: #d2d2d2;
  546. }
  547. .help-content {
  548. background-color: rgb(85, 85, 97);
  549. }
  550. .rules-table-container,
  551. .rules-table-container .thead {
  552. border-color: rgb(85, 85, 97);
  553. }
  554. a,
  555. a:visited {
  556. color: white;
  557. }
  558. .popup {
  559. background-color: rgba(59, 59, 59, 0.95);
  560. }
  561. .popup-content {
  562. box-shadow: 5px 5px #000000;
  563. }
  564. }