BytmDialog.css 8.5 KB

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