options.css 4.4 KB

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