Making WordPress.org


Ignore:
Timestamp:
12/11/2023 09:44:25 PM (12 months ago)
Author:
coffee2code
Message:

Theme Directory: Improve appearance of menubar link.

Improves hover design and adds current page recognition and design. Not perfect, but good enough for the one link it needs to handle.

Props sabernhardt, coffee2code.
See #6552.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/css/components/_main.scss

    r12655 r13048  
    17301730}
    17311731
     1732.main-navigation .menu {
     1733    padding: 12px 0;
     1734}
     1735.main-navigation .menu li > a::after {
     1736    content: '';
     1737    display: block;
     1738    border-bottom: 1px solid transparent;
     1739    position: relative;
     1740}
     1741.main-navigation .menu li > a:hover {
     1742    color: #2ea2cc;
     1743}
     1744.main-navigation .menu li:hover > a::after,
     1745.main-navigation .menu li.current-menu-item a::after,
     1746.main-navigation .menu li.current-menu-item:hover a::after {
     1747    border-bottom-color: #2ea2cc;
     1748}
     1749.main-navigation .menu li.current-menu-item a::after {
     1750    border-bottom-color: #636363;
     1751}
     1752
    17321753/* Responsive design for secondary header */
    17331754@media (max-width: 740px) {
Note: See TracChangeset for help on using the changeset viewer.