Skip to content

Commit 2683b26

Browse files
committed
Navbar download button - changed styling to a darker button
#3333 This will draw more attention to the downloads button in the navbar. Created - new css button class for a dark button that has yellow accents and is semi rounded pill. Applied this new class to the download button. Signed-off-by: kaimmej <[email protected]>
1 parent 6711985 commit 2683b26

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

_includes/navbar.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ <h2 class="accordion-header row">
137137

138138

139139
<div class=" my-auto pt-2 pb-2 mx-3">
140-
<a class="btn top-nav-button btn-outline-primary my-1 py-1" href="/downloads.html" aria-current="Download">Download OpenSearch</a>
140+
<a class="btn-primary-dark btn my-1 py-1" href="/downloads.html" aria-current="Download">Download OpenSearch</a>
141141
</div>
142142

143+
143144
<div class="accordion-header my-auto mx-auto">
144145
<button class="btn accordion-button nav-search-icon collapsed my-auto p-0 rounded-circle" type="button" data-bs-toggle="collapse" data-bs-target="#navbarToggleExternalContent-Search" aria-controls="navbarToggleExternalContent-Search" aria-current="Toggle navigation Search" aria-expanded="false" >
145146
{% include icons_navbar.html type='search-magnifying-glass-navbar' %}

_sass/_navbar.scss

+36
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,42 @@
8282
}
8383

8484

85+
86+
87+
88+
.btn-primary-dark {
89+
90+
--bs-btn-padding-y: 15px;
91+
--bs-btn-padding-x: 25px;
92+
background-color: $primary-open-sky-s1;
93+
border-radius: 0px;
94+
color: $secondary-sanfrancisco-fog-t1;
95+
96+
font-size: 18px;
97+
font-weight: 700;
98+
line-height: 24px;
99+
border-radius: 30px;
100+
101+
--bs-btn-active-color: $secondary-golden-poppy;
102+
--bs-btn-active-bg:$primary-open-sky-s3;
103+
104+
&:active {
105+
background-color: $primary-open-sky-s3;
106+
color: $secondary-golden-poppy;
107+
}
108+
&:hover {
109+
background-color: $primary-open-sky-s3;
110+
}
111+
&:visited {
112+
color: $secondary-sanfrancisco-fog-t1;
113+
}
114+
}
115+
116+
117+
118+
119+
120+
85121
.button-dark {
86122
// --bs-btn-color: $secondary-sanfrancisco-fog-t1;
87123
--bs-btn-padding-y: 15px;

0 commit comments

Comments
 (0)