menu_old.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. .bytm-menu-bg {
  2. --bytm-menu-bg: #333333;
  3. --bytm-menu-bg-highlight: #1e1e1e;
  4. --bytm-menu-separator-color: #797979;
  5. --bytm-menu-border-radius: 15px;
  6. }
  7. #bytm-cfg-menu-bg {
  8. --bytm-menu-height-max: 750px;
  9. --bytm-menu-width-max: 1000px;
  10. }
  11. #bytm-changelog-menu-bg {
  12. --bytm-menu-height-max: 800px;
  13. --bytm-menu-width-max: 800px;
  14. }
  15. #bytm-export-menu-bg, #bytm-import-menu-bg {
  16. --bytm-menu-height-max: 500px;
  17. --bytm-menu-width-max: 600px;
  18. }
  19. .bytm-menu-bg {
  20. display: block;
  21. position: fixed;
  22. width: 100%;
  23. height: 100%;
  24. top: 0;
  25. left: 0;
  26. z-index: 15;
  27. background-color: rgba(0, 0, 0, 0.6);
  28. }
  29. .bytm-menu {
  30. position: fixed;
  31. display: flex;
  32. flex-direction: column;
  33. width: calc(min(100% - 60px, var(--bytm-menu-width-max)));
  34. border-radius: var(--bytm-menu-border-radius);
  35. height: auto;
  36. max-height: calc(min(100% - 40px, var(--bytm-menu-height-max)));
  37. left: 50%;
  38. top: 50%;
  39. transform: translate(-50%, -50%);
  40. z-index: 16;
  41. color: #fff;
  42. background-color: var(--bytm-menu-bg);
  43. }
  44. .bytm-menu-body {
  45. padding: 20px;
  46. }
  47. #bytm-menu-opts {
  48. position: relative;
  49. overflow: auto;
  50. padding: 30px 0px;
  51. }
  52. .bytm-menu-header {
  53. display: flex;
  54. justify-content: space-between;
  55. margin-bottom: 6px;
  56. padding: 15px 20px 15px 20px;
  57. background-color: var(--bytm-menu-bg);
  58. border: 2px solid var(--bytm-menu-separator-color);
  59. border-style: none none solid none;
  60. border-radius: var(--bytm-menu-border-radius) var(--bytm-menu-border-radius) 0px 0px;
  61. }
  62. #bytm-menu-titlecont {
  63. display: flex;
  64. align-items: center;
  65. }
  66. #bytm-menu-title {
  67. display: inline-block;
  68. font-size: 22px;
  69. }
  70. #bytm-menu-linkscont {
  71. display: flex;
  72. align-items: center;
  73. margin-left: 32px;
  74. }
  75. .bytm-menu-link {
  76. display: inline-flex;
  77. align-items: center;
  78. cursor: pointer;
  79. }
  80. .bytm-menu-link:not(:last-of-type) {
  81. margin-right: 10px;
  82. }
  83. .bytm-menu-close {
  84. width: 32px;
  85. height: 32px;
  86. cursor: pointer;
  87. }
  88. #bytm-menu-footer-cont {
  89. display: flex;
  90. flex-direction: row;
  91. justify-content: space-between;
  92. margin-top: 6px;
  93. padding: 20px 20px 8px 20px;
  94. background: var(--bytm-menu-bg);
  95. background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--bytm-menu-bg) 30%, var(--bytm-menu-bg) 100%);
  96. border: 2px solid var(--bytm-menu-separator-color);
  97. border-style: solid none none none;
  98. }
  99. #bytm-menu-footer-buttons-cont button:not(:last-of-type) {
  100. margin-right: 15px;
  101. }
  102. .bytm-menu-footer-right {
  103. display: flex;
  104. flex-direction: row-reverse;
  105. align-items: center;
  106. margin-top: 15px;
  107. }
  108. #bytm-menu-version-cont {
  109. display: flex;
  110. justify-content: space-around;
  111. font-size: 1.2em;
  112. padding-bottom: 8px;
  113. border-radius: var(--bytm-menu-border-radius) var(--bytm-menu-border-radius) 0px 0px;
  114. }
  115. #bytm-menu-scroll-indicator {
  116. --bytm-scroll-indicator-padding: 5px;
  117. position: sticky;
  118. bottom: -15px;
  119. left: 50%;
  120. margin-top: calc(-32px - var(--bytm-scroll-indicator-padding) * 2);
  121. padding: var(--bytm-scroll-indicator-padding);
  122. transform: translateX(-50%);
  123. width: 32px;
  124. height: 32px;
  125. z-index: 101;
  126. background-color: var(--bytm-menu-bg-highlight);
  127. border-radius: 50%;
  128. cursor: pointer;
  129. }
  130. .bytm-hidden {
  131. visibility: hidden !important;
  132. }
  133. .bytm-ftconf-category-header {
  134. font-size: 18px;
  135. margin-top: 32px;
  136. margin-bottom: 8px;
  137. padding: 0px 20px;
  138. }
  139. .bytm-ftconf-category-header:first-of-type {
  140. margin-top: 0;
  141. }
  142. .bytm-ftitem {
  143. display: flex;
  144. flex-direction: row;
  145. justify-content: space-between;
  146. align-items: center;
  147. padding: 8px 20px;
  148. }
  149. .bytm-ftconf-label {
  150. user-select: none;
  151. }
  152. .bytm-ftconf-input[type=number] {
  153. width: 75px;
  154. }
  155. #bytm-export-menu-text, #bytm-import-menu-text {
  156. font-size: 1.6em;
  157. margin-bottom: 15px;
  158. }
  159. .bytm-menu-footer-copied {
  160. font-size: 1.6em;
  161. margin-right: 15px;
  162. }
  163. #bytm-changelog-menu-body {
  164. overflow-y: auto;
  165. }
  166. #bytm-export-menu-textarea, #bytm-import-menu-textarea {
  167. width: 100%;
  168. height: 150px;
  169. resize: none;
  170. }
  171. #bytm-changelog-menu-text {
  172. display: flex;
  173. flex-direction: column;
  174. overflow-y: auto;
  175. font-size: 1.5em;
  176. }
  177. /* Markdown stuff */
  178. .bytm-markdown-container a, #bytm-menu-version {
  179. color: #369bff;
  180. text-decoration: none;
  181. cursor: pointer;
  182. }
  183. .bytm-markdown-container a:hover, #bytm-menu-version:hover {
  184. text-decoration: underline;
  185. }
  186. .bytm-markdown-container kbd {
  187. display: inline-block;
  188. vertical-align: middle;
  189. padding: 4px;
  190. padding-top: 2px;
  191. font-size: 0.95em;
  192. line-height: 9px;
  193. background-color: #222;
  194. border: 1px solid #777;
  195. border-radius: 5px;
  196. box-shadow: inset 0 -2px 0 #515559;
  197. }
  198. .bytm-markdown-container code {
  199. background-color: #222;
  200. border-radius: 3px;
  201. padding: 1px 5px;
  202. }
  203. .bytm-markdown-container h2 {
  204. margin-bottom: 5px;
  205. }
  206. .bytm-markdown-container h2:not(:first-of-type) {
  207. margin-top: 20px;
  208. }
  209. .bytm-markdown-container ul li::before {
  210. content: "• ";
  211. font-weight: bolder;
  212. }
  213. .bytm-markdown-container ul li > ul li::before {
  214. white-space: pre;
  215. content: " • ";
  216. font-weight: bolder;
  217. }