demo.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. /*!
  2. * Tabler v1.0.0-beta14 (https://tabler.io)
  3. * @version 1.0.0-beta14
  4. * @link https://tabler.io
  5. * Copyright 2018-2022 The Tabler Authors
  6. * Copyright 2018-2022 codecalm.net Paweł Kuna
  7. * Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
  8. */
  9. pre.highlight,
  10. .highlight pre {
  11. max-height: 30rem;
  12. margin: 1.5rem 0;
  13. overflow: auto;
  14. border-radius: var(--tblr-border-radius);
  15. }
  16. pre.highlight::-webkit-scrollbar,
  17. .highlight pre::-webkit-scrollbar {
  18. width: 0.5rem;
  19. height: 0.5rem;
  20. -webkit-transition: background 0.3s;
  21. transition: background 0.3s;
  22. }
  23. @media (prefers-reduced-motion: reduce) {
  24. pre.highlight::-webkit-scrollbar,
  25. .highlight pre::-webkit-scrollbar {
  26. -webkit-transition: none;
  27. transition: none;
  28. }
  29. }
  30. pre.highlight::-webkit-scrollbar-thumb,
  31. .highlight pre::-webkit-scrollbar-thumb {
  32. border-radius: 5px;
  33. background: rgba(var(--tblr-light-rgb), 0.16);
  34. }
  35. pre.highlight::-webkit-scrollbar-track,
  36. .highlight pre::-webkit-scrollbar-track {
  37. background: rgba(var(--tblr-light-rgb), 0.06);
  38. }
  39. pre.highlight:hover::-webkit-scrollbar-thumb,
  40. .highlight pre:hover::-webkit-scrollbar-thumb {
  41. background: rgba(var(--tblr-light-rgb), 0.32);
  42. }
  43. pre.highlight::-webkit-scrollbar-corner,
  44. .highlight pre::-webkit-scrollbar-corner {
  45. background: transparent;
  46. }
  47. .highlight {
  48. margin: 0;
  49. }
  50. .highlight code > * {
  51. margin: 0 !important;
  52. padding: 0 !important;
  53. }
  54. .highlight .c, .highlight .c1 {
  55. color: #a0aec0;
  56. }
  57. .highlight .nt, .highlight .nc, .highlight .nx {
  58. color: #ff8383;
  59. }
  60. .highlight .na, .highlight .p {
  61. color: #ffe484;
  62. }
  63. .highlight .s, .highlight .dl, .highlight .s2 {
  64. color: #b5f4a5;
  65. }
  66. .highlight .k {
  67. color: #93ddfd;
  68. }
  69. .highlight .s1, .highlight .mi {
  70. color: #d9a9ff;
  71. }
  72. .example {
  73. padding: 2rem;
  74. margin: 1rem 0 2rem;
  75. border: var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);
  76. border-radius: 3px 3px 0 0;
  77. position: relative;
  78. min-height: 12rem;
  79. display: flex;
  80. align-items: center;
  81. overflow-x: auto;
  82. }
  83. .example-centered {
  84. justify-content: center;
  85. }
  86. .example-centered .example-content {
  87. flex: 0 auto;
  88. }
  89. .example-content {
  90. font-size: 0.875rem;
  91. line-height: 1.4285714286;
  92. color: #1d273b;
  93. flex: 1;
  94. max-width: 100%;
  95. }
  96. .example-content .page-header {
  97. margin-bottom: 0;
  98. }
  99. .example-bg {
  100. background: #f1f5f9;
  101. }
  102. .example-code {
  103. margin: 2rem 0;
  104. border: var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);
  105. border-top: none;
  106. }
  107. .example-code pre {
  108. margin: 0;
  109. border: 0;
  110. border-radius: 0 0 3px 3px;
  111. }
  112. .example + .example-code {
  113. margin-top: -2rem;
  114. }
  115. .example-column {
  116. margin: 0 auto;
  117. }
  118. .example-column > .card:last-of-type {
  119. margin-bottom: 0;
  120. }
  121. .example-column-1 {
  122. max-width: 26rem;
  123. }
  124. .example-column-2 {
  125. max-width: 52rem;
  126. }
  127. .example-modal-backdrop {
  128. background: #1d273b;
  129. opacity: 0.24;
  130. position: absolute;
  131. width: 100%;
  132. left: 0;
  133. top: 0;
  134. height: 100%;
  135. border-radius: 2px 2px 0 0;
  136. }
  137. @media not print {
  138. .theme-dark .example {
  139. background-color: #1a2234;
  140. border-color: #243049;
  141. }
  142. .theme-dark .example-content {
  143. color: #f8fafc;
  144. }
  145. .theme-dark .example-code {
  146. border-color: #243049;
  147. border-top: none;
  148. }
  149. }
  150. @media not print {
  151. @media (prefers-color-scheme: dark) {
  152. .theme-dark-auto .example {
  153. background-color: #1a2234;
  154. border-color: #243049;
  155. }
  156. .theme-dark-auto .example-content {
  157. color: #f8fafc;
  158. }
  159. .theme-dark-auto .example-code {
  160. border-color: #243049;
  161. border-top: none;
  162. }
  163. }
  164. }
  165. .card-sponsor {
  166. background: #dbe7f6 no-repeat center/100% 100%;
  167. border-color: #548ed2;
  168. min-height: 316px;
  169. }
  170. body.no-transitions * {
  171. transition: none !important;
  172. }
  173. .dropdown-menu-demo {
  174. display: inline-block;
  175. width: 100%;
  176. position: relative;
  177. top: 0;
  178. margin-bottom: 1rem !important;
  179. }
  180. .demo-icon-preview {
  181. position: -webkit-sticky;
  182. position: sticky;
  183. top: 0;
  184. }
  185. .demo-icon-preview svg,
  186. .demo-icon-preview i {
  187. width: 15rem;
  188. height: 15rem;
  189. font-size: 15rem;
  190. stroke-width: 1.5;
  191. margin: 0 auto;
  192. display: block;
  193. }
  194. @media (max-width: 575.98px) {
  195. .demo-icon-preview svg,
  196. .demo-icon-preview i {
  197. width: 10rem;
  198. height: 10rem;
  199. font-size: 10rem;
  200. }
  201. }
  202. .demo-icon-preview-icon pre {
  203. margin: 0;
  204. -webkit-user-select: all;
  205. -moz-user-select: all;
  206. user-select: all;
  207. }
  208. .demo-dividers > p {
  209. opacity: 0.2;
  210. -webkit-user-select: none;
  211. -moz-user-select: none;
  212. -ms-user-select: none;
  213. user-select: none;
  214. }
  215. .demo-icons-list {
  216. display: flex;
  217. flex-wrap: wrap;
  218. padding: 0;
  219. margin: 0 -2px -1px 0;
  220. list-style: none;
  221. }
  222. .demo-icons-list > * {
  223. flex: 1 0 4rem;
  224. }
  225. .demo-icons-list-wrap {
  226. overflow: hidden;
  227. }
  228. .demo-icons-list-item {
  229. display: flex;
  230. flex-direction: column;
  231. align-items: center;
  232. justify-content: center;
  233. aspect-ratio: 1;
  234. text-align: center;
  235. padding: 0.5rem;
  236. border-right: var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);
  237. border-bottom: var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);
  238. color: inherit;
  239. cursor: pointer;
  240. }
  241. .demo-icons-list-item .icon {
  242. width: 1.5rem;
  243. height: 1.5rem;
  244. font-size: 1.5rem;
  245. }
  246. .demo-icons-list-item:hover {
  247. text-decoration: none;
  248. }
  249. .settings-btn {
  250. position: fixed;
  251. right: -1px;
  252. top: 10rem;
  253. border-top-right-radius: 0;
  254. border-bottom-right-radius: 0;
  255. box-shadow: rgba(var(--tblr-body-color-rgb), 0.04) 0 2px 4px 0;
  256. }
  257. .settings-scheme {
  258. display: inline-block;
  259. border-radius: 50%;
  260. height: 3rem;
  261. width: 3rem;
  262. position: relative;
  263. border: var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);
  264. box-shadow: rgba(var(--tblr-body-color-rgb), 0.04) 0 2px 4px 0;
  265. }
  266. .settings-scheme-light {
  267. background: linear-gradient(135deg, #ffffff 50%, #f8fafc 50%);
  268. }
  269. .settings-scheme-mixed {
  270. background-image: linear-gradient(135deg, #1d273b 50%, #fff 50%);
  271. }
  272. .settings-scheme-transparent {
  273. background: #f8fafc;
  274. }
  275. .settings-scheme-dark {
  276. background: #1d273b;
  277. }
  278. .settings-scheme-colored {
  279. background-image: linear-gradient(135deg, var(--tblr-primary) 50%, #f8fafc 50%);
  280. }