Skip to content

Commit

Permalink
fix tab menu alignment issue (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
oraNod authored Feb 20, 2024
1 parent 0d3ffbb commit ecf8c2c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
21 changes: 0 additions & 21 deletions themes/ansible-community/sass/_homepage-clickable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,6 @@
white-space: inherit;
}

/* tabs in the secondary menu */
.tab-menu-anchor {
display: flex;
padding: 1.75rem;
align-items: center;
justify-content: center;
font-size: $font-lg;
img {
float: left;
width: auto;
height: 2.5rem;
}
p {
white-space: nowrap;
}
&:hover {
background-color: $white;
color: $navy;
}
}

/* controls text elements next to
anchors, such as fa icons */
.homepage-link {
Expand Down
20 changes: 19 additions & 1 deletion themes/ansible-community/sass/_homepage-tab-menu-band.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
background-color: $grey94;
display: grid;
grid-template-columns: repeat(5 1fr);
gap: 20px;
@media screen and (max-width: 992px) {
display: none;
}
Expand All @@ -20,3 +19,22 @@
color: $cyan;
}
}

.tab-menu-anchor {
display: flex;
padding: 1.75rem 1.75rem 1rem 1.75rem;
justify-content: center;
font-size: $font-lg;
line-height: 40px;
img {
float: left;
margin-right: 0.25rem;
}
p {
white-space: nowrap;
}
&:hover {
background-color: $white;
color: $navy;
}
}

0 comments on commit ecf8c2c

Please sign in to comment.