@rxova/astro-ui 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/styles/starlight.css +41 -0
package/package.json
CHANGED
package/src/styles/starlight.css
CHANGED
|
@@ -153,6 +153,47 @@ header.header {
|
|
|
153
153
|
margin: 0 0 0.4rem;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
/* A page with no sidebar (a splash landing) has no phone menu, so on phones the header takes a
|
|
157
|
+
second row for the switcher and the sections. Starlight offsets the page by --sl-nav-height. */
|
|
158
|
+
@media (max-width: 49.99rem) {
|
|
159
|
+
:root:not([data-has-sidebar]) {
|
|
160
|
+
--sl-nav-height: 6rem;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
:root:not([data-has-sidebar]) header.header > .header {
|
|
164
|
+
flex-wrap: wrap;
|
|
165
|
+
align-content: space-between;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:root:not([data-has-sidebar]) header.header .title-wrapper {
|
|
169
|
+
flex: 1;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:root:not([data-has-sidebar]) header.header .right-group {
|
|
173
|
+
display: flex;
|
|
174
|
+
flex-basis: 100%;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* Only the switcher and the sections: the social icons and theme picker do not fit. */
|
|
178
|
+
:root:not([data-has-sidebar]) header.header .right-group > :not(.social-icons),
|
|
179
|
+
:root:not([data-has-sidebar]) header.header .social-icons > :not(.rx-sections) {
|
|
180
|
+
display: none;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:root:not([data-has-sidebar]) header.header .social-icons::after {
|
|
184
|
+
content: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* Flush with the logo above, and opening rightward from the left edge. */
|
|
188
|
+
:root:not([data-has-sidebar]) header.header .rx-switcher__trigger {
|
|
189
|
+
margin-inline-start: -0.5rem;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
:root:not([data-has-sidebar]) header.header .rx-switcher .rx-switcher__menu {
|
|
193
|
+
inset-inline: 0 auto;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
156
197
|
/* --- Footer -------------------------------------------------------------- */
|
|
157
198
|
|
|
158
199
|
/* Footer styles live in footer.css (imported above) because /blog and /updates need them too. */
|