Skip to content

Commit 84fea55

Browse files
Consolodate styles
1 parent 4822fc7 commit 84fea55

File tree

3 files changed

+46
-96
lines changed

3 files changed

+46
-96
lines changed

docs-starlight/src/components/Header.astro

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -26,51 +26,3 @@ try {
2626
showThemeToggle={true}
2727
/>
2828
</div>
29-
30-
<style>
31-
.navbar {
32-
display: flex;
33-
width: 100vw;
34-
height: auto;
35-
align-items: center;
36-
justify-content: space-between;
37-
background-color: var(--color-bg-dark);
38-
padding: 20px 80px;
39-
border-bottom: 1px solid var(--color-stroke-dark);
40-
}
41-
42-
@media (width <= 1024px) {
43-
.navbar {
44-
padding: 20px;
45-
}
46-
}
47-
48-
.searchbar {
49-
display: flex;
50-
align-items: center;
51-
justify-content: start;
52-
gap: 8px;
53-
width: 280px;
54-
height: 40px;
55-
padding: 6px 12px;
56-
background-color: rgba(255,255,255,0.05);
57-
border: 1px solid rgba(255,255,255,0.1);
58-
border-radius: 6px;
59-
}
60-
61-
.menu-icon {
62-
display: none;
63-
}
64-
65-
@media (min-width: 768px) and (max-width: 1023px) {
66-
.menu-icon {
67-
display: inline-flex;
68-
}
69-
}
70-
71-
@media (width <= 375px) {
72-
.primary-button, .secondary-button {
73-
padding: 10px 10px;
74-
}
75-
}
76-
</style>

docs-starlight/src/components/dv-Navbar.astro

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -34,51 +34,3 @@ try {
3434
/>
3535
</div>
3636
</nav>
37-
38-
<style>
39-
.navbar {
40-
display: flex;
41-
width: 100vw;
42-
height: auto;
43-
align-items: center;
44-
justify-content: space-between;
45-
background-color: var(--color-bg-dark);
46-
padding: 20px 80px;
47-
border-bottom: 1px solid var(--color-stroke-dark);
48-
}
49-
50-
@media (width <= 1024px) {
51-
.navbar {
52-
padding: 20px;
53-
}
54-
}
55-
56-
.searchbar {
57-
display: flex;
58-
align-items: center;
59-
justify-content: start;
60-
gap: 8px;
61-
width: 280px;
62-
height: 40px;
63-
padding: 6px 12px;
64-
background-color: rgba(255,255,255,0.05);
65-
border: 1px solid rgba(255,255,255,0.1);
66-
border-radius: 6px;
67-
}
68-
69-
.menu-icon {
70-
display: none;
71-
}
72-
73-
@media (min-width: 768px) and (max-width: 1023px) {
74-
.menu-icon {
75-
display: inline-flex;
76-
}
77-
}
78-
79-
@media (width <= 375px) {
80-
.primary-button, .secondary-button {
81-
padding: 10px 10px;
82-
}
83-
}
84-
</style>

docs-starlight/src/styles/global.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,52 @@ header {
226226
padding: 0 !important;
227227
}
228228

229+
.navbar {
230+
display: flex;
231+
width: 100vw;
232+
height: auto;
233+
align-items: center;
234+
justify-content: space-between;
235+
background-color: var(--color-bg-dark);
236+
padding: 20px 80px;
237+
border-bottom: 1px solid var(--color-stroke-dark);
238+
}
239+
240+
@media (width <= 1024px) {
241+
.navbar {
242+
padding: 20px;
243+
}
244+
}
245+
246+
.searchbar {
247+
display: flex;
248+
align-items: center;
249+
justify-content: start;
250+
gap: 8px;
251+
width: 280px;
252+
height: 40px;
253+
padding: 6px 12px;
254+
background-color: rgba(255,255,255,0.05);
255+
border: 1px solid rgba(255,255,255,0.1);
256+
border-radius: 6px;
257+
}
258+
259+
.menu-icon {
260+
display: none;
261+
}
262+
263+
@media (min-width: 768px) and (max-width: 1023px) {
264+
.menu-icon {
265+
display: inline-flex;
266+
}
267+
}
268+
269+
@media (width <= 375px) {
270+
.primary-button, .secondary-button {
271+
padding: 10px 10px;
272+
}
273+
}
274+
229275
.social-icon {
230276
color: var(--color-gray-1) !important;
231277
cursor: pointer;

0 commit comments

Comments
 (0)