Skip to content

Commit 800424f

Browse files
committed
Theme Peruwelz - Section files and accessible colors
1 parent da65e79 commit 800424f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

peruwelz/src/scss/main.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,17 @@ footer #container-section-noussuivre {
112112
.sectionfiles a {
113113
color: #fff;
114114
text-decoration: none;
115-
background-image: linear-gradient(#fff, #fff);
116-
background-size: 0% 2px;
115+
background-image: linear-gradient(
116+
to right,
117+
rgba(255, 255, 255, 1) 0%,
118+
rgba(255, 255, 255, 0) 100%
119+
);
120+
background-size: 15% 2px; /* visible par défaut */
117121
background-position: 0 100%;
118122
background-repeat: no-repeat;
119-
transition: background-size 0.3s ease;
123+
transition: background-size 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
120124
}
121125

122126
.sectionfiles a:hover {
123-
background-size: 100% 2px;
127+
background-size: 40% 2px; /* largeur max au hover */
124128
}

0 commit comments

Comments
 (0)