Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
pablobm committed Dec 28, 2023
1 parent 7a98c46 commit 8440e60
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions spec/example_app/app/assets/stylesheets/admin/identity.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,39 @@
.identity__banner {
margin: 0;

&--admin {
background-image: repeating-linear-gradient(45deg, violet, indigo, blue, green, yellow, orange, red, violet);
text-align: center;
&.identity__banner--admin {
// Done this way purely to satisfy the linter
$rainbow-blue: blue;
$rainbow-green: green;
$rainbow-indigo: indigo;
$rainbow-orange: orange;
$rainbow-red: red;
$rainbow-violet: violet;
$rainbow-yellow: yellow;

animation: rainbow 1s ease;
background-clip: text;
background-image: repeating-linear-gradient(
45deg,
$rainbow-violet,
$rainbow-indigo,
$rainbow-blue,
$rainbow-green,
$rainbow-yellow,
$rainbow-orange,
$rainbow-red,
$rainbow-violet
);
background-size: 800% 800%;
-webkit-background-clip: text;
text-align: center;
-webkit-text-fill-color: transparent;
animation: rainbow 1s ease;
}
}

@keyframes rainbow {
0%{background-position:0% 50%}
50%{background-position:100% 25%}
100%{background-position:0% 50%}
0% { background-position: 0% 50%; }

50% { background-position: 100% 25%; }

100% { background-position: 0% 50%; }
}

0 comments on commit 8440e60

Please sign in to comment.