Skip to content

Commit

Permalink
Core Style: Simplify CodePen button code (issue #1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeBijl authored and mcking65 committed Jul 1, 2020
1 parent 28319f9 commit 28f5453
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/css/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ table.data.attributes tbody td {
margin-left: 1em;
}

form[action^="https://codepen.io/"] button {
.example-header button {
display: inline-block;
position: relative;
padding: 0.4em 0.7em;
Expand All @@ -76,18 +76,18 @@ form[action^="https://codepen.io/"] button {
background-image: linear-gradient(to bottom, hsl(216, 82%, 53%), hsl(216, 82%, 47%));
}

form[action^="https://codepen.io/"] button:hover {
.example-header button:hover {
border-color: hsl(213, 71%, 29%);
background-color: hsl(216, 82%, 31%);
background-image: linear-gradient(to bottom, hsl(216, 82%, 33%), hsl(216, 82%, 27%));
cursor: default;
}

form[action^="https://codepen.io/"] button:focus {
.example-header button:focus {
outline: none;
}

form[action^="https://codepen.io/"] button:focus::before {
.example-header button:focus::before {
position: absolute;
z-index: -1;

Expand All @@ -103,7 +103,7 @@ form[action^="https://codepen.io/"] button:focus::before {
content: '';
}

form[action^="https://codepen.io/"] button:active {
.example-header button:active {
border-color: hsl(213, 71%, 49%);
background-color: hsl(216, 82%, 31%);
background-image: linear-gradient(to bottom, hsl(216, 82%, 53%), hsl(216, 82%, 47%));
Expand Down

0 comments on commit 28f5453

Please sign in to comment.