Skip to content

Commit c2f9e81

Browse files
zeroedinbennypowers
authored andcommitted
docs: add hover effect to pfbar ctas
1 parent 2939393 commit c2f9e81

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

docs/_snippets/pf-bar-html.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<div class="pf-bar">
2-
<a href="https://www.patternfly.org/" class="cta">PatternFly.org</a>
2+
<a href="https://www.patternfly.org/" class="cta">
3+
PatternFly.org
4+
</a>
35
<a href="https://github.com/patternfly/patternfly-elements" class="cta">
46
<pf-icon size="md" icon="github" set="fab" aria-hidden="true"></pf-icon>
57
Contribute on Github

docs/home.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
}
4646

4747
#home-header a.cta.primary:hover {
48-
--pf-cta--Color--hover: white;
48+
--pf-cta--Color--hover: var(--pf-theme--color--white, #fff);
4949
--pf-cta--BackgroundColor: transparent;
5050
}
5151

docs/main.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ section.band.overview + section.band {
109109
}
110110

111111

112-
113112
a.cta {
114113
white-space: normal;
115114
display: inline-block;
@@ -351,15 +350,19 @@ main.blog {
351350
height: 100%;
352351
}
353352

353+
.pf-bar a:hover {
354+
color: var(--pf-theme--color--white, #fff);
355+
}
356+
354357
.pf-bar a.cta:not(.primary):not(.secondary)::after {
355358
background-image: url("data:image/svg+xml,%3Csvg fill='white' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 31.56 31.56' %3E%3Cpath d='M15.78 0l-3.1 3.1 10.5 10.49H0v4.38h23.18l-10.5 10.49 3.1 3.1 15.78-15.78L15.78 0z'%3E%3C/path%3E%3C/svg%3E");
356359
}
357360

358-
.pf-bar a:hover {
359-
color: var(--pf-theme--color--white, #fff);
360-
text-decoration: underline;
361+
.pf-bar a.cta:hover:not(.primary):not(.secondary)::after {
362+
translate: 6px;
361363
}
362364

365+
363366
.logo-bar {
364367
--pf-navigation--Height--actual: 70px;
365368
display: flex;

0 commit comments

Comments
 (0)