options.css 11 KB

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