main
scss 176 lines 3.31 KB
Raw
1 .custom-label {
2 color: var(--label-color);
3 font-size: 10px;
4 padding: 2px 6px;
5 border-radius: var(--border-radius-small);
6 position: relative;
7 display: inline-block;
8 font-weight: bold;
9
10 &::before {
11 content: "";
12 width: 100%;
13 height: 100%;
14 background-color: var(--label-color);
15 border-radius: var(--border-radius-small);
16 position: absolute;
17 top: 0;
18 left: 0;
19 z-index: 0;
20 opacity: 0.15;
21 }
22 }
23
24 .page {
25 .page-header {
26 margin-bottom: 20px;
27 display: flex;
28 align-items: baseline;
29 justify-content: space-between;
30 gap: 20px;
31
32 .title {
33 font-family: var(--font-family-display);
34 font-weight: bold;
35 font-size: 30px;
36 }
37
38 .links {
39 display: flex;
40 gap: 20px;
41
42 a {
43 text-decoration: underline;
44 text-decoration-color: var(--primary-color);
45 position: relative;
46 top: -2px;
47
48 .n-icon,
49 .n-icon-wrapper {
50 position: relative;
51 top: 3px;
52 }
53 }
54 }
55
56 @media (max-width: 700px) {
57 flex-direction: column;
58 gap: 6px;
59
60 .title {
61 font-size: 20px;
62 }
63 }
64 }
65 .components-list {
66 display: grid;
67 gap: 1.25em;
68 align-items: start;
69 grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
70
71 @media (max-width: 400px) {
72 grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
73 }
74
75 & > div {
76 overflow: hidden;
77 }
78 }
79 }
80
81 /*
82 DOES NOT WORK ON FIREFOX!
83 :has() CSS relational pseudo-class not yet supported by Firefox
84 (https://caniuse.com/css-has)
85 you can find a worker around in pages that use this class
86 */
87 #app {
88 .layout {
89 .main {
90 .view:has(.page-without-footer) {
91 & + footer {
92 display: none;
93 }
94 }
95 }
96 }
97 }
98
99 .scrollbar-styled {
100 /* Works on Firefox */
101
102 scrollbar-width: thin;
103 scrollbar-color: var(--hover-color) var(--bg-secondary-color);
104
105 /* Works on Chrome, Edge, and Safari */
106 &::-webkit-scrollbar,
107 ::-webkit-scrollbar {
108 width: 12px;
109 }
110
111 &::-webkit-scrollbar-track,
112 ::-webkit-scrollbar-track {
113 background: var(--bg-secondary-color);
114 }
115
116 &::-webkit-scrollbar-thumb,
117 ::-webkit-scrollbar-thumb {
118 background-color: var(--hover-color);
119 border-radius: 20px;
120 border: 2px solid var(--bg-secondary-color);
121 }
122 }
123
124 .code-bg-transparent {
125 code {
126 background-color: transparent;
127 }
128 }
129
130 .over-layer {
131 background-color: rgba(var(--bg-body-color-rgb) / 0.8);
132 position: absolute;
133 top: 0;
134 left: 0;
135 right: 0;
136 bottom: 0;
137 display: flex;
138 align-items: center;
139 justify-content: center;
140 padding: 40px;
141
142 .n-alert {
143 width: 90vw;
144 max-width: 500px;
145 background-color: var(--bg-default-color);
146 }
147 }
148
149 .grid-auto-fit-200 {
150 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
151 grid-auto-flow: row dense;
152 }
153 .grid-auto-fit-250 {
154 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
155 grid-auto-flow: row dense;
156 }
157 .grid-auto-fill-200 {
158 grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
159 grid-auto-flow: row dense;
160 }
161 .grid-auto-fill-250 {
162 grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
163 grid-auto-flow: row dense;
164 }
165
166 input:-webkit-autofill,
167 input:-webkit-autofill:hover,
168 input:-webkit-autofill:focus,
169 textarea:-webkit-autofill,
170 select:-webkit-autofill {
171 -webkit-text-fill-color: var(--fg-default-color);
172 transition: background-color 9999s ease-in-out 0s;
173 -webkit-box-shadow: 0 0 0px 1000px var(--bg-default-color) inset;
174 box-shadow: 0 0 0px 1000px var(--bg-default-color) inset;
175 caret-color: var(--fg-default-color);
176 }