options.css 11 KB

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