menu_old.css 8.4 KB

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