options.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. body {
  2. background-color: transparent;
  3. font-family: sans-serif;
  4. max-width: 800px;
  5. }
  6. button {
  7. background-color: transparent;
  8. border-color: rgb(191, 191, 191);
  9. border-style: solid;
  10. border-radius: 2px;
  11. padding-top: 5px;
  12. padding-bottom: 5px;
  13. padding-left: 15px;
  14. padding-right: 15px;
  15. border-width: 1px;
  16. }
  17. button:active {
  18. border-color: rgb(237, 237, 237);
  19. }
  20. input {
  21. margin-left: 5px;
  22. }
  23. label,
  24. input {
  25. align-self: center;
  26. }
  27. input[type="text"] {
  28. min-width: 70%;
  29. }
  30. input[type="number"] {
  31. max-width: 40px;
  32. }
  33. h3 {
  34. padding-left: 8px;
  35. margin-bottom: 10px;
  36. margin-top: 10px;
  37. }
  38. details {
  39. margin-left: 12px;
  40. margin-right: 12px;
  41. border-top: gray 1px dashed;
  42. }
  43. details:last-of-type {
  44. border-bottom: gray 1px dashed;
  45. }
  46. details>summary {
  47. margin-bottom: 10px;
  48. margin-top: 10px;
  49. cursor: pointer;
  50. }
  51. details>summary:focus {
  52. outline-width: 0px;
  53. }
  54. a {
  55. display: inline-block;
  56. padding-top: 5px;
  57. }
  58. .option.second-level {
  59. margin-left: 10px;
  60. }
  61. .option {
  62. display: flex;
  63. justify-content: space-between;
  64. margin-top: 5px;
  65. padding-left: 12px;
  66. min-height: 24px;
  67. }
  68. .option.vertical {
  69. flex-direction: column;
  70. }
  71. .option.vertical label {
  72. align-self: flex-start;
  73. }
  74. .option.vertical input {
  75. margin-top: 3px;
  76. align-self: flex-end;
  77. width: calc(100% - 3px);
  78. }
  79. .option:last-of-type {
  80. padding-bottom: 12px;
  81. }
  82. .option:first-of-type {
  83. padding-top: 6px;
  84. }
  85. .option.bottom {
  86. padding-top: 24px;
  87. padding-right: 12px;
  88. }
  89. #expandAllButton {
  90. opacity: .3;
  91. transition: opacity 250ms;
  92. cursor: pointer;
  93. font-size: .9em;
  94. margin-right: 1px;
  95. }
  96. #expandAllButton::after {
  97. content: '▷';
  98. }
  99. #expandAllButton.opened::after {
  100. content: '▽';
  101. position: relative;
  102. top: 1px;
  103. }
  104. #expandAllButton:hover {
  105. opacity: 1;
  106. }
  107. @media (max-width:400px) {
  108. body {
  109. font-size: 11px;
  110. }
  111. body,
  112. input {
  113. font-size: 12px;
  114. }
  115. }