index.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. * {
  2. font-family: var(--sl-font-sans)
  3. }
  4. :root {
  5. --sl-color-primary-50: #e2f4fc;
  6. --sl-color-primary-100: #b6e4f6;
  7. --sl-color-primary-200: #88d2f0;
  8. --sl-color-primary-300: #60c0e9;
  9. --sl-color-primary-400: #48b2e5;
  10. --sl-color-primary-500: #3aa5e1;
  11. --sl-color-primary-600: #3598d3;
  12. --sl-color-primary-700: #2e85bf;
  13. --sl-color-primary-800: #2a74ab;
  14. --sl-color-primary-900: #215588;
  15. --sl-input-focus-ring-color: var(--sl-color-primary-200)
  16. }
  17. [x-cloak] {
  18. display: none !important
  19. }
  20. body {
  21. margin: .85rem auto;
  22. max-width: 42rem;
  23. visibility: hidden
  24. }
  25. body.ready {
  26. visibility: visible
  27. }
  28. @media only screen and (max-width:767px) {
  29. body {
  30. max-width: 22rem
  31. }
  32. }
  33. @media only screen and (max-width:376px) {
  34. body {
  35. max-width: 20rem
  36. }
  37. }
  38. .header {
  39. display: flex;
  40. flex-direction: column;
  41. align-items: center;
  42. justify-content: center;
  43. text-align: center;
  44. font-size: 1.25rem;
  45. line-height: 1.75rem
  46. }
  47. .header__title {
  48. color: #2e84bf;
  49. font-weight: 600;
  50. padding-bottom: .5rem;
  51. margin-top: .5rem;
  52. margin-bottom: .5rem
  53. }
  54. .description {
  55. padding-top: 0.5rem;
  56. margin-top: 0.25rem;
  57. text-align: center;
  58. }
  59. .description__anchor {
  60. color: #2e84bf;
  61. text-decoration: none
  62. }
  63. .base-url {
  64. margin: .75rem auto;
  65. padding: .75rem 1rem;
  66. border-style: solid;
  67. border-radius: .125rem;
  68. border-width: 1px;
  69. border-color: #60a5fa;
  70. background-color: #eff6ff
  71. }
  72. .base-url__title {
  73. font-weight: 600;
  74. margin: 0;
  75. margin-bottom: .5rem
  76. }
  77. .base-url__url {
  78. margin: 0
  79. }
  80. .sources {
  81. margin: .75rem auto
  82. }
  83. .sources__title {
  84. font-weight: 600;
  85. font-size: 1.875rem;
  86. line-height: 2.25rem;
  87. padding-bottom: 1rem;
  88. margin: 0
  89. }
  90. .sources__status {
  91. display: flex;
  92. align-items: center;
  93. justify-content: center
  94. }
  95. .source-search {
  96. display: flex;
  97. flex-direction: column;
  98. row-gap: .5rem;
  99. margin-bottom: .5rem
  100. }
  101. .source-search__nsfw-wrapper {
  102. display: flex;
  103. flex-direction: row;
  104. align-items: center;
  105. column-gap: .5rem
  106. }
  107. .source-search__nsfw-label {
  108. display: inline-flex;
  109. align-items: center
  110. }
  111. .source {
  112. display: flex;
  113. align-items: center;
  114. padding: .3rem .3rem
  115. }
  116. @media only screen and (min-width:1024px) {
  117. .source {
  118. padding-left: 1.5rem;
  119. padding-right: 1.5rem
  120. }
  121. }
  122. .source:target {
  123. background-color: rgba(46, 132, 191, .25);
  124. border-radius: .5rem;
  125. transition: background-color .5s
  126. }
  127. .source:hover .source__anchor {
  128. opacity: 1
  129. }
  130. .source__anchor {
  131. opacity: 0;
  132. float: left;
  133. margin-top: auto;
  134. margin-bottom: auto;
  135. margin-left: -1.5rem;
  136. padding-left: .5rem;
  137. padding-right: .5rem;
  138. font-size: 1.25rem;
  139. font-weight: 400;
  140. line-height: 1.75rem;
  141. color: #2e84bf
  142. }
  143. .source__anchor:hover {
  144. text-decoration-line: underline
  145. }
  146. .source__icon {
  147. margin-top: auto;
  148. margin-bottom: auto;
  149. display: block;
  150. max-width: 100%;
  151. margin-right: .5rem;
  152. border-radius: .5rem
  153. }
  154. .source__info {
  155. display: flex;
  156. flex: 1 1 0%;
  157. flex-direction: column
  158. }
  159. .source__name {
  160. display: flex;
  161. flex-direction: row;
  162. flex-wrap: wrap;
  163. align-items: center;
  164. gap: .25rem;
  165. font-weight: 600
  166. }
  167. .source__version {
  168. font-size: .875rem;
  169. line-height: 1.25rem;
  170. }
  171. .content-rating::part(base) {
  172. padding: .2rem .26rem;
  173. font-size: .7rem;
  174. width: 1.77rem;
  175. height: 1.18rem;
  176. border-radius: .375rem
  177. }
  178. @media (prefers-color-scheme: light) {
  179. .source__version {
  180. color: rgba(60, 60, 67, .6);
  181. }
  182. .content-rating::part(base) {
  183. color: rgba(60, 60, 67, .6);
  184. }
  185. .content-rating--suggestive::part(base) {
  186. background-color: rgba(255, 204, 0, .3);
  187. }
  188. .content-rating--nsfw::part(base) {
  189. background-color: rgba(255, 59, 48, .3);
  190. }
  191. }
  192. @media (prefers-color-scheme: dark) {
  193. .source__version {
  194. color: rgba(235, 235, 245, .6);
  195. }
  196. .content-rating::part(base) {
  197. color: rgba(235, 235, 245, .6);
  198. }
  199. .content-rating--suggestive::part(base) {
  200. background-color: rgba(255, 214, 10, .3);
  201. }
  202. .content-rating--nsfw::part(base) {
  203. background-color: rgba(255, 69, 58, .3);
  204. }
  205. }
  206. .download-button {
  207. margin: auto auto
  208. }
  209. .download-button::part(base) {
  210. background: rgba(118, 118, 128, .1176470588);
  211. border: none
  212. }
  213. .download-button::part(base):hover {
  214. background: rgba(118, 118, 128, .18)
  215. }
  216. .download-button::part(base):active {
  217. background: rgba(118, 118, 128, .26)
  218. }
  219. .download-button::part(label) {
  220. color: #2e84bf
  221. }
  222. @keyframes fade {
  223. from {
  224. opacity: 1
  225. }
  226. to {
  227. opacity: .25
  228. }
  229. }
  230. .spinner {
  231. position: relative;
  232. display: inline-block;
  233. height: 3.5rem;
  234. width: 3.5rem
  235. }
  236. .spinner>div {
  237. position: absolute;
  238. left: 49%;
  239. top: 43%;
  240. height: 16%;
  241. width: 6%;
  242. border-radius: 50px;
  243. background-color: #78787a;
  244. opacity: 0;
  245. box-shadow: 0 0 3px rgba(0, 0, 0, .2);
  246. animation: fade 1s linear infinite
  247. }
  248. .spinner>div.bar0 {
  249. transform: rotate(0) translate(0, -130%);
  250. animation-delay: 0 s
  251. }
  252. .spinner>div.bar1 {
  253. transform: rotate(45deg) translate(0, -130%);
  254. animation-delay: .125 s
  255. }
  256. .spinner>div.bar2 {
  257. transform: rotate(90deg) translate(0, -130%);
  258. animation-delay: .25 s
  259. }
  260. .spinner>div.bar3 {
  261. transform: rotate(135deg) translate(0, -130%);
  262. animation-delay: .375 s
  263. }
  264. .spinner>div.bar4 {
  265. transform: rotate(180deg) translate(0, -130%);
  266. animation-delay: .5 s
  267. }
  268. .spinner>div.bar5 {
  269. transform: rotate(225deg) translate(0, -130%);
  270. animation-delay: .625 s
  271. }
  272. .spinner>div.bar6 {
  273. transform: rotate(270deg) translate(0, -130%);
  274. animation-delay: .75 s
  275. }
  276. .spinner>div.bar7 {
  277. transform: rotate(315deg) translate(0, -130%);
  278. animation-delay: .875 s
  279. }
  280. code {
  281. font-family: var(--sl-font-mono);
  282. font-size: 0.9125em;
  283. background-color: rgba(0 0 0 / 0.025);
  284. background-blend-mode: darken;
  285. border-radius: var(--docs-border-radius);
  286. padding: 0.125em 0.25em;
  287. }
  288. .sl-theme-dark code {
  289. background-color: rgba(255 255 255 / 0.03);
  290. }