options.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. body {
  2. background-color: transparent;
  3. font-family: sans-serif;
  4. max-width: 800px;
  5. }
  6. button {
  7. padding-top: 5px;
  8. padding-bottom: 5px;
  9. padding-left: 8px;
  10. padding-right: 8px;
  11. border-width: 1px;
  12. }
  13. button:not([disabled]):hover {
  14. background-color: #ebebeb;
  15. }
  16. button,
  17. select,
  18. input[type=text] {
  19. background-color: transparent;
  20. border-color: rgb(191, 191, 191);
  21. border-style: solid;
  22. border-radius: 2px;
  23. border-width: 1px;
  24. }
  25. button:active {
  26. border-color: rgb(237, 237, 237);
  27. }
  28. input {
  29. margin-left: 5px;
  30. }
  31. label,
  32. input {
  33. align-self: center;
  34. }
  35. input[type="text"] {
  36. min-width: 70%;
  37. }
  38. input[type="number"] {
  39. max-width: 40px;
  40. }
  41. input.large-input {
  42. min-width: 60px;
  43. }
  44. h3 {
  45. padding-left: 8px;
  46. margin-bottom: 10px;
  47. margin-top: 10px;
  48. }
  49. .profiles {
  50. float: right;
  51. margin-right: 12px;
  52. position: relative;
  53. top: -3px;
  54. max-width: calc(100% - 100px);
  55. }
  56. .rules-table-container {
  57. width: 100%;
  58. border-spacing: 0;
  59. border-color: rgb(191, 191, 191);
  60. border-style: solid;
  61. border-width: 1px;
  62. margin-top: 24px;
  63. }
  64. .rules-table-container .tr {
  65. height: 26px;
  66. display: grid;
  67. grid-template-columns: 1fr 1fr 1fr 56px;
  68. }
  69. .rules-table-container.compact .tr {
  70. grid-template-columns: 1fr 1fr 56px;
  71. }
  72. .rules-table-container.compact .tr .rule-autosave-profile {
  73. display: none;
  74. }
  75. .rules-table-container .tr[hidden] {
  76. display: none;
  77. }
  78. .rules-table-container .th {
  79. text-align: left;
  80. border-color: rgb(225, 225, 225);
  81. border-style: solid;
  82. border-width: 0;
  83. border-bottom-width: 1px;
  84. }
  85. .rules-table-container .th,
  86. .rules-table-container .td {
  87. padding: 4px;
  88. text-overflow: ellipsis;
  89. overflow: hidden;
  90. white-space: nowrap;
  91. align-self: center;
  92. }
  93. .rules-table .td:first-of-type {
  94. padding-right: 8px;
  95. }
  96. .rules-table .td:last-of-type {
  97. text-align: right;
  98. }
  99. .rules-data {
  100. max-height: 552px;
  101. overflow-y: auto;
  102. padding-top: 2px;
  103. padding-bottom: 2px;
  104. scrollbar-width: thin;
  105. }
  106. ::-webkit-scrollbar {
  107. width: 6px;
  108. background-color: #cdcdcd;
  109. }
  110. .profiles button,
  111. .rules-table-container button {
  112. padding: 0;
  113. margin: 0;
  114. width: 22px;
  115. text-align: center;
  116. }
  117. .rules-table-container .thead .tr {
  118. min-height: 32px;
  119. }
  120. .rules-table-container .thead .th:last-of-type {
  121. text-align: right;
  122. padding-right: 4px;
  123. }
  124. .rules-table-container .thead .th {
  125. min-height: 22px;
  126. }
  127. .profiles button,
  128. .profiles select,
  129. .rules-table-container button,
  130. .rules-table-container select,
  131. .rules-table-container input {
  132. height: 22px;
  133. vertical-align: top;
  134. }
  135. .rules-table-container input {
  136. width: 100%;
  137. height: 20px;
  138. margin: 0;
  139. padding: 0;
  140. padding-left: 2px;
  141. padding-right: 2px;
  142. }
  143. .rules-table-container .rule-create {
  144. margin-top: 8px;
  145. margin-bottom: 3px;
  146. }
  147. .profiles select {
  148. max-width: calc(100% - 78px);
  149. }
  150. .rules-table-container select {
  151. max-width: 100%;
  152. }
  153. .profiles button:disabled,
  154. .rules-table-container button:disabled {
  155. opacity: .25;
  156. }
  157. .profiles button>img,
  158. .rules-table-container button>img {
  159. width: 14px;
  160. height: auto;
  161. vertical-align: middle;
  162. padding: 2px;
  163. }
  164. .rules-table-container+.option label,
  165. .rules-table-container+.option+.option label {
  166. text-align: right;
  167. width: 100%;
  168. }
  169. #profilesLabel {
  170. font-weight: normal;
  171. padding-top: 5px;
  172. margin-right: 5px;
  173. }
  174. details {
  175. margin-left: 12px;
  176. margin-right: 12px;
  177. border-top: gray 1px dashed;
  178. }
  179. details:last-of-type {
  180. border-bottom: gray 1px dashed;
  181. }
  182. details>summary {
  183. margin-bottom: 10px;
  184. margin-top: 10px;
  185. cursor: pointer;
  186. }
  187. details>summary:focus {
  188. outline-width: 0px;
  189. }
  190. a {
  191. display: inline-block;
  192. padding-top: 5px;
  193. }
  194. .option.second-level {
  195. margin-left: 10px;
  196. }
  197. .option {
  198. display: flex;
  199. justify-content: space-between;
  200. margin-top: 5px;
  201. padding-left: 12px;
  202. min-height: 24px;
  203. }
  204. .option.vertical {
  205. flex-direction: column;
  206. }
  207. .option.vertical label {
  208. align-self: flex-start;
  209. }
  210. .option.vertical input {
  211. margin-top: 3px;
  212. align-self: flex-end;
  213. width: calc(100% - 3px);
  214. }
  215. .option:last-of-type {
  216. padding-bottom: 12px;
  217. }
  218. .option:first-of-type {
  219. padding-top: 6px;
  220. }
  221. .option.bottom {
  222. padding-top: 24px;
  223. padding-right: 12px;
  224. }
  225. #expandAllButton {
  226. opacity: .3;
  227. transition: opacity 250ms;
  228. cursor: pointer;
  229. font-size: .9em;
  230. position: relative;
  231. top: -1px;
  232. left: -3px;
  233. }
  234. #expandAllButton::after {
  235. content: '▷';
  236. }
  237. #expandAllButton.opened::after {
  238. content: '▽';
  239. position: relative;
  240. top: 1px;
  241. }
  242. #expandAllButton:hover {
  243. opacity: 1;
  244. }
  245. @media (max-width:400px) {
  246. body,
  247. input,
  248. select,
  249. button {
  250. font-size: 11px;
  251. }
  252. }