Skip to content

Commit

Permalink
#285 new rainbow color sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatan-lledo-netcentric committed Feb 21, 2023
1 parent a4863c0 commit 5bf3d91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions blocks/columns/columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,20 @@
color: var(--c-dark-plum);
}

/* Rainbow: darker-plum, dark-plum, dark-blue */
.columns.rainbow > div > div:nth-of-type(3n),
.columns.rainbow-reverse > div > div:nth-of-type(3n + 1) {
background-color: var(--c-mid-blue);
background-color: var(--c-dark-blue);
}

.columns.rainbow > div > div:nth-child(3n + 1),
.columns.rainbow-reverse > div > div:nth-of-type(3n) {
background-color: var(--c-mid-plum);
background-color: var(--c-darker-plum);
}

.columns.rainbow > div > div:nth-child(3n + 2),
.columns.rainbow-reverse > div > div:nth-of-type(3n + 2) {
background-color: var(--c-dark-blue);
background-color: var(--c-dark-plum);
}

@media (min-width: 600px) {
Expand Down
1 change: 1 addition & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
--c-dark-blue: #2f78c4;
--c-dark-mid-plum: #3e40a0; /* for background footer only */
--c-dark-plum: #2e308e;
--c-darker-plum: #1c1d55;
--c-dark-gray: #53565a;
--c-dark-teal: #06c7cc;
--c-light-teal: #97f5f7;
Expand Down

0 comments on commit 5bf3d91

Please sign in to comment.