Skip to content

Commit f3554a1

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

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

peruwelz/src/scss/main.scss

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,17 @@ footer #container-section-noussuivre {
109109
}
110110
}
111111

112-
.sectionfiles a {
113-
color: #fff;
114-
text-decoration: none;
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 */
121-
background-position: 0 100%;
122-
background-repeat: no-repeat;
123-
transition: background-size 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
124-
}
112+
.sectionfiles {
113+
a {
114+
color: #fff;
115+
text-decoration: none;
116+
background: linear-gradient(to right, #fff 0%, transparent 100%) left bottom /
117+
15% 2px no-repeat;
118+
119+
transition: background-size 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
125120

126-
.sectionfiles a:hover {
127-
background-size: 40% 2px; /* largeur max au hover */
121+
&:hover {
122+
background-size: 40% 2px;
123+
}
124+
}
128125
}

0 commit comments

Comments
 (0)