options.css 4.7 KB

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