options.css 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. body {
  2. background-color: transparent;
  3. font-family: sans-serif;
  4. font-size: 12px;
  5. max-width: 800px;
  6. width: 100%;
  7. margin: 0;
  8. margin-left: auto;
  9. margin-right: auto;
  10. }
  11. button {
  12. padding-top: 5px;
  13. padding-bottom: 5px;
  14. padding-left: 8px;
  15. padding-right: 8px;
  16. border-width: 1px;
  17. }
  18. button:not([disabled]):hover {
  19. background-color: #ededed;
  20. }
  21. button,
  22. select,
  23. input[type=text] {
  24. background-color: transparent;
  25. border-color: rgb(191, 191, 191);
  26. border-style: solid;
  27. border-radius: 2px;
  28. border-width: 1px;
  29. }
  30. button:active {
  31. border-color: rgb(237, 237, 237);
  32. }
  33. button:focus {
  34. border-color: black;
  35. background-color: #fefefe;
  36. }
  37. input {
  38. margin-left: 5px;
  39. }
  40. label,
  41. input {
  42. align-self: center;
  43. }
  44. input[type="text"] {
  45. min-width: 70%;
  46. }
  47. input[type="number"] {
  48. max-width: 50px;
  49. }
  50. select {
  51. min-height: 22px;
  52. max-height: 22px;
  53. }
  54. input.large-input {
  55. min-width: 60px;
  56. }
  57. h3 {
  58. padding-left: 8px;
  59. padding-top: 10px;
  60. margin-top: 4px;
  61. min-height: 28px;
  62. }
  63. h3 a {
  64. padding-left: 5px;
  65. }
  66. .buttons {
  67. white-space: nowrap;
  68. }
  69. .profiles {
  70. float: right;
  71. margin-right: 12px;
  72. position: relative;
  73. top: 3px;
  74. max-width: calc(100% - 120px);
  75. }
  76. .rules-table-container {
  77. width: 100%;
  78. border-spacing: 0;
  79. border-color: rgb(191, 191, 191);
  80. border-style: solid;
  81. border-width: 1px;
  82. margin-top: 24px;
  83. }
  84. .rules-table-container .tr {
  85. height: 26px;
  86. display: grid;
  87. grid-template-columns: 1fr 1fr 1fr 58px;
  88. }
  89. .rules-table-container.compact .tr {
  90. grid-template-columns: 1fr 1fr 58px;
  91. }
  92. .rules-table-container.compact .tr .rule-autosave-profile {
  93. display: none;
  94. }
  95. .rules-table-container .tr[hidden] {
  96. display: none;
  97. }
  98. .rules-table-container .thead {
  99. text-align: left;
  100. border-color: rgb(225, 225, 225);
  101. border-style: solid;
  102. border-width: 0;
  103. border-bottom-width: 1px;
  104. }
  105. .rules-table-container .th,
  106. .rules-table-container .td {
  107. padding: 4px;
  108. text-overflow: ellipsis;
  109. overflow: hidden;
  110. white-space: nowrap;
  111. align-self: center;
  112. }
  113. .rules-table .td:first-of-type {
  114. padding-right: 8px;
  115. }
  116. .rules-table .td:last-of-type {
  117. text-align: right;
  118. }
  119. .rules-data {
  120. max-height: 552px;
  121. overflow-y: auto;
  122. padding-top: 2px;
  123. padding-bottom: 2px;
  124. scrollbar-width: thin;
  125. }
  126. ::-webkit-scrollbar {
  127. width: 6px;
  128. background-color: #cdcdcd;
  129. }
  130. .profiles button,
  131. .rules-table-container button {
  132. padding: 0;
  133. margin: 0;
  134. width: 22px;
  135. text-align: center;
  136. }
  137. .rules-table-container .thead .tr {
  138. min-height: 32px;
  139. }
  140. .rules-table-container .thead .th:last-of-type {
  141. text-align: right;
  142. }
  143. .profiles button,
  144. .profiles select,
  145. .rules-table-container button,
  146. .rules-table-container select,
  147. .rules-table-container input {
  148. height: 22px;
  149. vertical-align: top;
  150. }
  151. .rules-table-container input {
  152. width: 100%;
  153. height: 20px;
  154. margin: 0;
  155. padding: 0;
  156. padding-left: 2px;
  157. padding-right: 2px;
  158. }
  159. .rules-table-container .rule-create {
  160. margin-top: 8px;
  161. margin-bottom: 3px;
  162. }
  163. .profiles select {
  164. max-width: calc(100% - 78px);
  165. }
  166. .rules-table-container select {
  167. max-width: 100%;
  168. }
  169. .profiles button:disabled,
  170. .rules-table-container button:disabled {
  171. opacity: .25;
  172. }
  173. .profiles button>img,
  174. .rules-table-container button>img {
  175. width: 14px;
  176. height: auto;
  177. vertical-align: middle;
  178. padding: 2px;
  179. }
  180. .rules-table-container+.option label,
  181. .rules-table-container+.option+.option label {
  182. text-align: right;
  183. width: 100%;
  184. }
  185. #profilesLabel {
  186. font-weight: normal;
  187. padding-top: 5px;
  188. margin-right: 5px;
  189. }
  190. details {
  191. color: #555;
  192. margin-left: 6px;
  193. margin-right: 12px;
  194. border-top: #bfbfbf 1px dashed;
  195. }
  196. details:last-of-type {
  197. border-bottom: #bfbfbf 1px dashed;
  198. }
  199. details>summary {
  200. color: black;
  201. padding-bottom: 7px;
  202. padding-top: 7px;
  203. margin-bottom: 3px;
  204. margin-top: 3px;
  205. padding-left: 6px;
  206. cursor: pointer;
  207. }
  208. details[open]>summary {
  209. cursor: pointer;
  210. }
  211. details>summary:focus {
  212. outline-width: 0px;
  213. }
  214. a {
  215. display: inline-block;
  216. padding-top: 5px;
  217. }
  218. .option.second-level {
  219. margin-left: 10px;
  220. }
  221. .option {
  222. display: flex;
  223. justify-content: space-between;
  224. margin-top: 5px;
  225. padding-left: 8px;
  226. min-height: 24px;
  227. }
  228. .option.vertical {
  229. flex-direction: column;
  230. }
  231. .option.vertical label {
  232. align-self: flex-start;
  233. }
  234. .option.vertical input {
  235. margin-top: 3px;
  236. align-self: flex-end;
  237. width: calc(100% - 3px);
  238. }
  239. .option:last-of-type {
  240. padding-bottom: 12px;
  241. }
  242. .option:first-of-type {
  243. padding-top: 6px;
  244. }
  245. .option.bottom {
  246. padding-top: 24px;
  247. padding-right: 12px;
  248. padding-bottom: 12px;
  249. }
  250. #expandAllButton {
  251. font-family: monospace;
  252. display: inline-block;
  253. min-width: 7px;
  254. max-width: 7px;
  255. margin-left: 5px;
  256. opacity: .4;
  257. transition: opacity 250ms;
  258. cursor: pointer;
  259. font-size: 1.1em;
  260. position: relative;
  261. top: -1px;
  262. left: -2px;
  263. }
  264. #expandAllButton::after {
  265. content: '+';
  266. }
  267. #expandAllButton.opened::after {
  268. content: '-';
  269. }
  270. #expandAllButton:hover {
  271. opacity: 1;
  272. }
  273. .popup {
  274. width: 100%;
  275. height: 100%;
  276. position: fixed;
  277. top: 0;
  278. left: 0;
  279. background-color: rgba(191, 191, 191, .75);
  280. }
  281. .popup-content {
  282. width: 90%;
  283. max-width: 320px;
  284. margin-top: 25vh;
  285. transform: translateY(-50%);
  286. margin-left: auto;
  287. margin-right: auto;
  288. background-color: white;
  289. box-shadow: 5px 5px #ababab;
  290. }
  291. .popup-content header {
  292. padding-top: 10px;
  293. padding-left: 10px;
  294. padding-bottom: 20px;
  295. font-size: 14px;
  296. line-height: 20px;
  297. }
  298. .popup-content main {
  299. padding-top: 10px;
  300. padding-left: 10px;
  301. padding-bottom: 10px;
  302. }
  303. .popup-content main input {
  304. margin-bottom: 10px;
  305. padding: 2px;
  306. font-size: 13px;
  307. margin-left: 0px;
  308. width: calc(100% - 16px);
  309. }
  310. .popup-content footer {
  311. text-align: right;
  312. padding-left: 10px;
  313. padding-right: 10px;
  314. }
  315. .popup-content footer button {
  316. margin-bottom: 10px;
  317. }
  318. .side-panel .profiles {
  319. max-width: unset;
  320. }
  321. .side-panel .profiles {
  322. top: 0px;
  323. min-width: calc(100% - 12px);
  324. }
  325. .side-panel .profiles select {
  326. min-width: calc(100% - 78px);
  327. }
  328. .side-panel .options-title,
  329. .side-panel .option.bottom {
  330. display: none;
  331. }
  332. @media (max-width:400px) {
  333. body,
  334. input,
  335. select,
  336. button {
  337. font-size: 11px;
  338. }
  339. }
  340. @media (min-width:800px) {
  341. main {
  342. margin: 8px;
  343. border: solid 1px rgb(191, 191, 191);
  344. }
  345. }