menu_old.css 8.9 KB

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