options.css 10 KB

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