menu_old.css 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. .bytm-menu-bg {
  2. --bytm-menu-bg: #333333;
  3. --bytm-menu-bg-highlight: #252525;
  4. --bytm-scroll-indicator-bg: rgba(10, 10, 10, 0.7);
  5. --bytm-menu-separator-color: #797979;
  6. --bytm-menu-border-radius: 10px;
  7. }
  8. .bytm-menu-bg {
  9. display: block;
  10. position: fixed;
  11. width: 100%;
  12. height: 100%;
  13. top: 0;
  14. left: 0;
  15. z-index: 5;
  16. background-color: rgba(0, 0, 0, 0.6);
  17. }
  18. .bytm-menu {
  19. position: fixed;
  20. display: flex;
  21. flex-direction: column;
  22. width: calc(min(100% - 60px, var(--bytm-menu-width-max)));
  23. border-radius: var(--bytm-menu-border-radius);
  24. height: auto;
  25. max-height: calc(min(100% - 40px, var(--bytm-menu-height-max)));
  26. left: 50%;
  27. top: 50%;
  28. transform: translate(-50%, -50%);
  29. z-index: 6;
  30. color: #fff;
  31. background-color: var(--bytm-menu-bg);
  32. }
  33. .bytm-menu.top-aligned {
  34. top: 0;
  35. transform: translate(-50%, 40px);
  36. }
  37. .bytm-menu-body {
  38. padding: 20px;
  39. }
  40. #bytm-menu-opts {
  41. display: flex;
  42. flex-direction: column;
  43. position: relative;
  44. padding: 20px 0px;
  45. overflow-y: auto;
  46. }
  47. .bytm-menu-header {
  48. display: flex;
  49. justify-content: space-between;
  50. align-items: center;
  51. margin-bottom: 6px;
  52. padding: 15px 20px 15px 20px;
  53. background-color: var(--bytm-menu-bg);
  54. border: 2px solid var(--bytm-menu-separator-color);
  55. border-style: none none solid none;
  56. border-radius: var(--bytm-menu-border-radius) var(--bytm-menu-border-radius) 0px 0px;
  57. }
  58. .bytm-menu-header.small {
  59. padding: 10px 15px;
  60. }
  61. .bytm-menu-titlecont {
  62. position: relative;
  63. display: flex;
  64. align-items: center;
  65. }
  66. .bytm-menu-titlecont-no-title {
  67. display: flex;
  68. justify-content: flex-end;
  69. align-items: center;
  70. }
  71. .bytm-menu-title {
  72. position: relative;
  73. display: inline-block;
  74. font-size: 22px;
  75. }
  76. #bytm-cfg-menu-bg .bytm-menu-title {
  77. transform: translate(0px, -6px);
  78. }
  79. #bytm-cfg-menu {
  80. --bytm-menu-subtitle-color: #c6d2db;
  81. }
  82. #bytm-menu-subtitle-cont {
  83. width: 100%;
  84. display: flex;
  85. gap: 6px;
  86. flex-direction: row;
  87. justify-content: space-between;
  88. align-items: end;
  89. position: absolute;
  90. bottom: -12px;
  91. left: 0;
  92. font-size: 10px;
  93. font-weight: normal;
  94. z-index: 7;
  95. }
  96. #bytm-menu-subtitle-cont, #bytm-menu-version-anchor {
  97. color: var(--bytm-menu-subtitle-color);
  98. }
  99. #bytm-menu-subtitle-cont, #bytm-menu-mode-display {
  100. overflow: hidden;
  101. text-overflow: ellipsis;
  102. white-space: nowrap;
  103. }
  104. #bytm-menu-version-anchor {
  105. overflow: hidden;
  106. text-wrap: nowrap;
  107. text-overflow: ellipsis;
  108. }
  109. #bytm-menu-linkscont {
  110. display: flex;
  111. align-items: center;
  112. margin-left: 32px;
  113. }
  114. .bytm-menu-link {
  115. position: relative;
  116. max-height: 32px;
  117. max-width: 32px;
  118. display: inline-flex;
  119. flex-direction: column;
  120. align-items: center;
  121. cursor: pointer;
  122. }
  123. .bytm-menu-link:not(:last-of-type) {
  124. margin-right: 10px;
  125. }
  126. .bytm-menu-link .bytm-menu-img {
  127. width: 32px;
  128. height: 32px;
  129. border-radius: 50%;
  130. padding: 0px;
  131. transform: translateY(0px);
  132. transition: transform 0.15s ease-out, padding 0.15s ease-out;
  133. }
  134. .bytm-menu-link:hover .bytm-menu-img {
  135. padding: 7px;
  136. transform: translateY(-14px);
  137. }
  138. .bytm-menu-link .extended-link {
  139. visibility: hidden;
  140. position: absolute;
  141. top: 14px;
  142. padding-top: 13px;
  143. padding-bottom: 2px;
  144. opacity: 0;
  145. text-decoration: none;
  146. color: var(--bytm-menu-subtitle-color);
  147. white-space: pre;
  148. font-size: 1.1rem;
  149. transition: visibility 0.15s ease-out, opacity 0.15s ease-out;
  150. }
  151. .bytm-menu-link:hover .extended-link {
  152. visibility: visible;
  153. opacity: 1;
  154. }
  155. .bytm-menu-close {
  156. width: 32px;
  157. height: 32px;
  158. cursor: pointer;
  159. }
  160. .bytm-menu-close.small {
  161. width: 24px;
  162. height: 24px;
  163. }
  164. .bytm-menu-footer {
  165. font-size: 17px;
  166. text-decoration: underline;
  167. }
  168. .bytm-menu-footer.hidden {
  169. display: none;
  170. }
  171. .bytm-menu-footer-cont {
  172. display: flex;
  173. flex-direction: row;
  174. justify-content: space-between;
  175. margin-top: 6px;
  176. padding: 15px 20px;
  177. background: var(--bytm-menu-bg);
  178. background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--bytm-menu-bg) 30%, var(--bytm-menu-bg) 100%);
  179. border: 2px solid var(--bytm-menu-separator-color);
  180. border-style: solid none none none;
  181. border-radius: 0px 0px var(--bytm-menu-border-radius) var(--bytm-menu-border-radius);
  182. }
  183. #bytm-menu-footer-buttons-cont button:not(:last-of-type) {
  184. margin-right: 15px;
  185. }
  186. .bytm-menu-footer-right {
  187. display: flex;
  188. flex-direction: row-reverse;
  189. align-items: center;
  190. }
  191. #bytm-menu-footer-left-buttons-cont button:not(:last-of-type) {
  192. margin-right: 15px;
  193. }
  194. #bytm-menu-scroll-indicator {
  195. --bytm-scroll-indicator-padding: 5px;
  196. position: sticky;
  197. bottom: -15px;
  198. left: 50%;
  199. margin-top: calc(-32px - var(--bytm-scroll-indicator-padding) * 2);
  200. padding: var(--bytm-scroll-indicator-padding);
  201. transform: translateX(-50%);
  202. width: 32px;
  203. height: 32px;
  204. z-index: 7;
  205. background-color: var(--bytm-scroll-indicator-bg);
  206. border-radius: 50%;
  207. cursor: pointer;
  208. }
  209. .bytm-hidden {
  210. visibility: hidden !important;
  211. }
  212. .bytm-ftconf-category-header {
  213. font-size: 20px;
  214. margin-top: 32px;
  215. margin-bottom: 8px;
  216. padding: 0px 20px;
  217. }
  218. .bytm-ftconf-category-header:first-of-type {
  219. margin-top: 0;
  220. }
  221. .bytm-ftitem {
  222. display: flex;
  223. flex-direction: row;
  224. justify-content: space-between;
  225. align-items: center;
  226. font-size: 1.4rem;
  227. padding: 8px 20px;
  228. transition: background-color 0.15s ease-out;
  229. }
  230. .bytm-ftitem:hover {
  231. background-color: var(--bytm-menu-bg-highlight);
  232. }
  233. .bytm-ftitem-leftside {
  234. display: flex;
  235. align-items: center;
  236. min-height: 24px;
  237. }
  238. .bytm-ftconf-ctrl {
  239. display: inline-flex;
  240. align-items: center;
  241. white-space: nowrap;
  242. margin-left: 10px;
  243. }
  244. .bytm-ftconf-label {
  245. user-select: none;
  246. }
  247. .bytm-slider-label {
  248. margin-right: 10px;
  249. }
  250. .bytm-toggle-label {
  251. padding-left: 10px;
  252. padding-right: 5px;
  253. }
  254. .bytm-ftconf-input.bytm-hotkey-input {
  255. cursor: pointer;
  256. min-width: 50px;
  257. }
  258. .bytm-ftconf-input[type=number] {
  259. width: 75px;
  260. }
  261. .bytm-ftconf-input[type=checkbox] {
  262. margin-left: 5px;
  263. }
  264. #bytm-export-menu-text, #bytm-import-menu-text {
  265. white-space: pre-wrap;
  266. font-size: 1.6rem;
  267. margin-bottom: 15px;
  268. }
  269. .bytm-menu-footer-copied {
  270. font-size: 1.6rem;
  271. margin-right: 15px;
  272. }
  273. #bytm-changelog-menu-body {
  274. overflow-y: auto;
  275. }
  276. .bytm-changelog-version-details:not(:first-of-type) {
  277. margin-top: 15px;
  278. }
  279. .bytm-changelog-version-details summary h2 {
  280. display: inline-block;
  281. }
  282. .bytm-changelog-version-details summary {
  283. cursor: pointer;
  284. }
  285. .bytm-changelog-version-details summary::marker {
  286. font-size: 2rem;
  287. }
  288. #bytm-export-menu-textarea, #bytm-import-menu-textarea {
  289. width: 100%;
  290. height: 150px;
  291. resize: none;
  292. }
  293. .bytm-markdown-container {
  294. display: flex;
  295. flex-direction: column;
  296. overflow-y: auto;
  297. font-size: 1.5rem;
  298. line-height: 20px;
  299. }
  300. /* Markdown stuff */
  301. .bytm-markdown-container kbd {
  302. --bytm-easing: cubic-bezier(0.31, 0.58, 0.24, 1.15);
  303. display: inline-block;
  304. vertical-align: bottom;
  305. padding: 4px;
  306. padding-top: 2px;
  307. font-size: 0.95em;
  308. line-height: 11px;
  309. background-color: #222;
  310. border: 1px solid #777;
  311. border-radius: 5px;
  312. box-shadow: inset 0 -2px 0 #515559;
  313. transition: padding 0.1s var(--bytm-easing), box-shadow 0.1s var(--bytm-easing);
  314. }
  315. .bytm-markdown-container kbd:active {
  316. padding-bottom: 2px;
  317. box-shadow: inset 0 0 0 initial;
  318. }
  319. .bytm-markdown-container kbd::selection {
  320. background: rgba(0, 0, 0, 0);
  321. }
  322. .bytm-markdown-container code {
  323. background-color: #222;
  324. border-radius: 3px;
  325. padding: 1px 5px;
  326. }
  327. .bytm-markdown-container h2 {
  328. margin-bottom: 5px;
  329. }
  330. .bytm-markdown-container h2:not(:first-of-type) {
  331. margin-top: 30px;
  332. }
  333. .bytm-markdown-container ul li::before {
  334. content: "• ";
  335. font-weight: bolder;
  336. }
  337. .bytm-markdown-container ul li > ul li::before {
  338. white-space: pre-wrap;
  339. content: " • ";
  340. font-weight: bolder;
  341. }
  342. .bytm-markdown-container ul li > ul li > ul li::before {
  343. white-space: pre-wrap;
  344. content: " • ";
  345. font-weight: bolder;
  346. }
  347. #bytm-feat-help-dialog-desc, #bytm-feat-help-dialog-text {
  348. overflow-wrap: break-word;
  349. white-space: pre-wrap;
  350. font-size: 1.5rem;
  351. line-height: 1.25em;
  352. }
  353. #bytm-feat-help-dialog-desc {
  354. font-size: 1.8rem;
  355. padding-bottom: 10px;
  356. }
  357. .bytm-ftitem-help-btn {
  358. width: 24px !important;
  359. height: 24px !important;
  360. }
  361. .bytm-ftitem-help-btn svg {
  362. width: 18px !important;
  363. height: 18px !important;
  364. }
  365. .bytm-ftitem-help-btn svg > path {
  366. fill: #b3bec7 !important;
  367. }
  368. hr {
  369. display: block;
  370. margin: 8px 0px 12px 0px;
  371. border: revert;
  372. }