| 1 | /* |
| 2 | DOES NOT WORK ON FIREFOX! |
| 3 | :has() CSS relational pseudo-class not yet supported by Firefox |
| 4 | (https://caniuse.com/css-has) |
| 5 | you can find a worker around in pages that use this class |
| 6 | */ |
| 7 | #app { |
| 8 | .layout { |
| 9 | .main { |
| 10 | .view:has(.page-without-footer) { |
| 11 | & + footer { |
| 12 | display: none; |
| 13 | } |
| 14 | } |
| 15 | } |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | .scrollbar-styled { |
| 20 | /* Works on Firefox */ |
| 21 | |
| 22 | scrollbar-width: thin; |
| 23 | scrollbar-color: var(--hover-color) var(--bg-secondary-color); |
| 24 | |
| 25 | /* Works on Chrome, Edge, and Safari */ |
| 26 | &::-webkit-scrollbar, |
| 27 | ::-webkit-scrollbar { |
| 28 | width: 12px; |
| 29 | } |
| 30 | |
| 31 | &::-webkit-scrollbar-track, |
| 32 | ::-webkit-scrollbar-track { |
| 33 | background: var(--bg-secondary-color); |
| 34 | } |
| 35 | |
| 36 | &::-webkit-scrollbar-thumb, |
| 37 | ::-webkit-scrollbar-thumb { |
| 38 | background-color: var(--hover-color); |
| 39 | border-radius: 20px; |
| 40 | border: 2px solid var(--bg-secondary-color); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | .code-bg-transparent { |
| 45 | code { |
| 46 | background-color: transparent; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | .over-layer { |
| 51 | background-color: rgba(var(--bg-body-color-rgb) / 0.8); |
| 52 | position: absolute; |
| 53 | top: 0; |
| 54 | left: 0; |
| 55 | right: 0; |
| 56 | bottom: 0; |
| 57 | display: flex; |
| 58 | align-items: center; |
| 59 | justify-content: center; |
| 60 | padding: 40px; |
| 61 | |
| 62 | .n-alert { |
| 63 | width: 90vw; |
| 64 | max-width: 500px; |
| 65 | background-color: var(--bg-default-color); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | .grid-auto-fit-200 { |
| 70 | grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); |
| 71 | grid-auto-flow: row dense; |
| 72 | } |
| 73 | .grid-auto-fit-250 { |
| 74 | grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); |
| 75 | grid-auto-flow: row dense; |
| 76 | } |
| 77 | .grid-auto-fill-200 { |
| 78 | grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); |
| 79 | grid-auto-flow: row dense; |
| 80 | } |
| 81 | .grid-auto-fill-250 { |
| 82 | grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); |
| 83 | grid-auto-flow: row dense; |
| 84 | } |
| 85 | |
| 86 | input:-webkit-autofill, |
| 87 | input:-webkit-autofill:hover, |
| 88 | input:-webkit-autofill:focus, |
| 89 | textarea:-webkit-autofill, |
| 90 | select:-webkit-autofill { |
| 91 | -webkit-text-fill-color: var(--fg-default-color); |
| 92 | transition: background-color 9999s ease-in-out 0s; |
| 93 | -webkit-box-shadow: 0 0 0px 1000px var(--bg-default-color) inset; |
| 94 | box-shadow: 0 0 0px 1000px var(--bg-default-color) inset; |
| 95 | caret-color: var(--fg-default-color); |
| 96 | } |