Skip to content

Commit 572d202

Browse files
authored
fix: hover color (#1120)
1 parent fe71ebe commit 572d202

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

src/components/PbNavbar.vue

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
id="toggle-navbar-top"
2626
data-collapse-toggle="navbar-top"
2727
type="button"
28-
class="inline-flex items-center p-2 ml-3 text-sm text-gray-500 rounded-lg lg:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200"
28+
class="inline-flex items-center p-2 ml-3 text-sm text-gray-500 rounded-lg lg:hidden hover:bg-gray-100 "
2929
aria-controls="navbar-default"
3030
aria-expanded="false"
3131
>
@@ -93,20 +93,20 @@
9393
<li role="menuitem">
9494
<a
9595
href="https://pressbooks.com/enterprise/"
96-
class="text-gray-500 font-semibold text-[18px]"
96+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
9797
@keydown.shift.tab.prevent="focusParent('products')"
9898
>Enterprise</a>
9999
</li>
100100
<li role="menuitem">
101101
<a
102102
href="https://pressbooks.com/self-publisher/"
103-
class="text-gray-500 font-semibold text-[18px]"
103+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
104104
>Self-Publisher</a>
105105
</li>
106106
<li role="menuitem">
107107
<a
108108
href="/"
109-
class="text-gray-500 font-semibold text-[18px]"
109+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
110110
@blur="hideSubmenu('products')"
111111
>Pressbooks Directory</a>
112112
</li>
@@ -155,14 +155,14 @@
155155
<li role="menuitem">
156156
<a
157157
href="https://pressbooks.com/educational-institutions-plans-and-pricing/"
158-
class="text-gray-500 font-semibold text-[18px]"
158+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
159159
@keydown.shift.tab.prevent="focusParent('plans')"
160160
>Enterprise Networks</a>
161161
</li>
162162
<li role="menuitem">
163163
<a
164164
href="https://pressbooks.com/self-publisher-plans-and-pricing/"
165-
class="text-gray-500 font-semibold text-[18px]"
165+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
166166
@blur="hideSubmenu('plans')"
167167
>Self-Publisher Plans</a>
168168
</li>
@@ -211,38 +211,38 @@
211211
<li role="menuitem">
212212
<a
213213
href="https://pressbooks.com/collections-hub/"
214-
class="text-gray-500 font-semibold text-[18px]"
214+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
215215
@keydown.shift.tab.prevent="focusParent('resources')"
216216
>Collections Hub</a>
217217
</li>
218218
<li role="menuitem">
219219
<a
220220
href="https://pressbooks.com/category/success-stories/"
221-
class="text-gray-500 font-semibold text-[18px]"
221+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
222222
>Success Stories</a>
223223
</li>
224224
<li role="menuitem">
225225
<a
226226
href="https://pressbooks.com/pressbooks-blog/"
227-
class="text-gray-500 font-semibold text-[18px]"
227+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
228228
>Blog</a>
229229
</li>
230230
<li role="menuitem">
231231
<a
232232
href="/"
233-
class="text-gray-500 font-semibold text-[18px]"
233+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
234234
>Pressbooks Directory</a>
235235
</li>
236236
<li role="menuitem">
237237
<a
238238
href="https://pressbooks.com/support/"
239-
class="text-gray-500 font-semibold text-[18px]"
239+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
240240
>Support Guides</a>
241241
</li>
242242
<li role="menuitem">
243243
<a
244244
href="https://pressbooks.com/webinars/"
245-
class="text-gray-500 font-semibold text-[18px]"
245+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
246246
@blur="hideSubmenu('resources')"
247247
>Events & Webinars</a>
248248
</li>
@@ -291,20 +291,20 @@
291291
<li role="menuitem">
292292
<a
293293
href="https://pressbooks.com/about/"
294-
class="text-gray-500 font-semibold text-[18px]"
294+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
295295
@keydown.shift.tab.prevent="focusParent('about')"
296296
>About Pressbooks</a>
297297
</li>
298298
<li role="menuitem">
299299
<a
300300
href="https://pressbooks.com/pressbooks-team/"
301-
class="text-gray-500 font-semibold text-[18px]"
301+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
302302
>Our Team</a>
303303
</li>
304304
<li role="menuitem">
305305
<a
306306
href="https://pressbooks.com/category/inside-pressbooks/"
307-
class="text-gray-500 font-semibold text-[18px]"
307+
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
308308
@blur="hideSubmenu('about')"
309309
>Inside Pressbooks</a>
310310
</li>

src/styles/base.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@ ul#footer-menu > li {
3333

3434
.book-description a {
3535
@apply text-pb-red underline;
36+
}
37+
38+
*:focus {
39+
@apply outline-pb-red;
3640
}

0 commit comments

Comments
 (0)