Skip to content

Commit

Permalink
portico: Refactor button selectors to use SCSS nesting.
Browse files Browse the repository at this point in the history
  • Loading branch information
synicalsyntax authored and timabbott committed Jul 18, 2019
1 parent 0f44608 commit 7bb5162
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions static/styles/portico/landing-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,37 +158,37 @@ button {
border-radius: 4px;
border: 1px solid hsl(0, 0%, 80%);
outline: none;
}

button.green {
color: hsl(0, 0%, 100%);
background-color: hsl(170, 47%, 53%);
&.green {
color: hsl(0, 0%, 100%);
background-color: hsl(170, 47%, 53%);

border: 1px solid hsl(169, 45%, 43%);
}
border: 1px solid hsl(169, 45%, 43%);

button.green:hover {
-webkit-filter: brightness(1.05);
-moz-filter: brightness(1.05);
filter: brightness(1.05);
}
&:hover {
-webkit-filter: brightness(1.05);
-moz-filter: brightness(1.05);
filter: brightness(1.05);
}

button.green:active {
-webkit-filter: brightness(0.95);
-moz-filter: brightness(0.95);
filter: brightness(0.95);
}
&:active {
-webkit-filter: brightness(0.95);
-moz-filter: brightness(0.95);
filter: brightness(0.95);
}
}

button.black-disabled {
cursor: default;
color: hsl(0, 0%, 20%);
background-color: transparent;
border: 1px solid hsl(0, 0%, 53%);
}
&.black-disabled {
cursor: default;
color: hsl(0, 0%, 20%);
background-color: transparent;
border: 1px solid hsl(0, 0%, 53%);
}

button:active {
background-color: hsl(0, 0%, 98%);
border: 1px solid hsl(0, 0%, 73%);
&:active {
background-color: hsl(0, 0%, 98%);
border: 1px solid hsl(0, 0%, 73%);
}
}

/* -- navbar styling -- */
Expand Down

0 comments on commit 7bb5162

Please sign in to comment.