Skip to content

Commit ceae552

Browse files
000-784: top navi extra level
1 parent fc81d3a commit ceae552

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

_sass/_main.scss

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,28 +72,32 @@ $hero-darken: $dark !default;
7272
}
7373

7474

75-
/* Full line hover effect */
75+
/* Full line hover effect for second-level items with dropdowns */
7676
.navbar-item.has-dropdown .navbar-dropdown .navbar-item.has-dropdown > .navbar-link {
77-
display: flex; /* Ensure the entire line is clickable */
78-
align-items: center; /* Center the text and arrow */
79-
justify-content: space-between; /* Space the arrow and text */
77+
display: flex; /* Make the entire line interactive */
78+
align-items: center; /* Align text and arrow */
79+
justify-content: space-between; /* Space between text and arrow */
80+
padding: 0.5rem 1rem; /* Same padding as other items */
8081
background-color: transparent; /* Default background */
81-
color: #000000; /* Default font color */
82-
padding: 0.5rem 1rem; /* Adjust padding for a full-line effect */
82+
color: #000000; /* Black text by default */
8383
}
8484

8585
.navbar-item.has-dropdown .navbar-dropdown .navbar-item.has-dropdown > .navbar-link:hover {
86-
background-color: #f5f5f5; /* Light gray background for the entire line */
87-
color: #000000; /* Keep font black */
86+
background-color: #f5f5f5; /* Light grey background for the entire line */
87+
color: #000000; /* Keep text black */
8888
}
8989

90-
/* Adjust arrow direction */
90+
/* Arrow customization */
9191
.navbar-item.has-dropdown .navbar-dropdown .navbar-item.has-dropdown > .navbar-link::after {
9292
content: ""; /* Right-pointing arrow */
93-
margin-left: 0.5rem; /* Add spacing between text and arrow */
94-
transform: rotate(0deg); /* Default: pointing right */
93+
color: rgba(255, 255, 255, 0.5); /* White arrow, almost transparent */
94+
margin-left: 1rem; /* Increased spacing from the text */
95+
font-size: 0.9rem; /* Slightly smaller size */
9596
}
9697

97-
.navbar-item.has-dropdown .navbar-dropdown .navbar-item.has-dropdown:hover > .navbar-link::after {
98-
transform: rotate(0deg); /* No rotation on hover, arrow stays pointing right */
98+
/* Fix text indentation to match other second-level items */
99+
.navbar-item.has-dropdown .navbar-dropdown .navbar-item.has-dropdown > .navbar-link {
100+
text-indent: 0; /* Remove indentation */
101+
padding-left: 1rem; /* Align padding with other items */
99102
}
103+

0 commit comments

Comments
 (0)