options.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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 button {
  112. padding: 0;
  113. margin: 0;
  114. width: 22px;
  115. text-align: center;
  116. }
  117. .profiles button,
  118. .profiles select,
  119. .rules-table button,
  120. .rules-table select,
  121. .rules-table input {
  122. height: 22px;
  123. vertical-align: top;
  124. }
  125. .rules-table input {
  126. width: 100%;
  127. height: 20px;
  128. margin: 0;
  129. padding: 0;
  130. padding-left: 2px;
  131. padding-right: 2px;
  132. }
  133. .rules-table .rule-create {
  134. margin-top: 8px;
  135. margin-bottom: 3px;
  136. }
  137. .profiles select {
  138. max-width: calc(100% - 78px);
  139. }
  140. .rules-table select {
  141. max-width: 100%;
  142. }
  143. .profiles button:disabled,
  144. .rules-table-container button:disabled {
  145. opacity: .25;
  146. }
  147. .profiles button>img,
  148. .rules-table button>img {
  149. width: 14px;
  150. height: auto;
  151. vertical-align: middle;
  152. padding: 2px;
  153. }
  154. .rules-table-container+.option label,
  155. .rules-table-container+.option+.option label {
  156. text-align: right;
  157. width: 100%;
  158. }
  159. #profilesLabel {
  160. font-weight: normal;
  161. padding-top: 5px;
  162. margin-right: 5px;
  163. }
  164. details {
  165. margin-left: 12px;
  166. margin-right: 12px;
  167. border-top: gray 1px dashed;
  168. }
  169. details:last-of-type {
  170. border-bottom: gray 1px dashed;
  171. }
  172. details>summary {
  173. margin-bottom: 10px;
  174. margin-top: 10px;
  175. cursor: pointer;
  176. }
  177. details>summary:focus {
  178. outline-width: 0px;
  179. }
  180. a {
  181. display: inline-block;
  182. padding-top: 5px;
  183. }
  184. .option.second-level {
  185. margin-left: 10px;
  186. }
  187. .option {
  188. display: flex;
  189. justify-content: space-between;
  190. margin-top: 5px;
  191. padding-left: 12px;
  192. min-height: 24px;
  193. }
  194. .option.vertical {
  195. flex-direction: column;
  196. }
  197. .option.vertical label {
  198. align-self: flex-start;
  199. }
  200. .option.vertical input {
  201. margin-top: 3px;
  202. align-self: flex-end;
  203. width: calc(100% - 3px);
  204. }
  205. .option:last-of-type {
  206. padding-bottom: 12px;
  207. }
  208. .option:first-of-type {
  209. padding-top: 6px;
  210. }
  211. .option.bottom {
  212. padding-top: 24px;
  213. padding-right: 12px;
  214. }
  215. #expandAllButton {
  216. opacity: .3;
  217. transition: opacity 250ms;
  218. cursor: pointer;
  219. font-size: .9em;
  220. position: relative;
  221. top: -1px;
  222. left: -3px;
  223. }
  224. #expandAllButton::after {
  225. content: '▷';
  226. }
  227. #expandAllButton.opened::after {
  228. content: '▽';
  229. position: relative;
  230. top: 1px;
  231. }
  232. #expandAllButton:hover {
  233. opacity: 1;
  234. }
  235. @media (max-width:400px) {
  236. body,
  237. input,
  238. select,
  239. button {
  240. font-size: 11px;
  241. }
  242. }