-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michiel Bijl
committed
Feb 20, 2017
1 parent
8c23a88
commit 4781f28
Showing
10 changed files
with
77 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
[role="checkbox"] { | ||
display: inline-block; | ||
position: relative; | ||
padding-left: 1.4em; | ||
cursor: default; | ||
} | ||
|
||
[role="checkbox"]::before, | ||
[role="checkbox"]::after { | ||
position: absolute; | ||
top: 50%; | ||
left: 7px; | ||
transform: translate(-50%, -50%); | ||
content: ''; | ||
} | ||
|
||
[role="checkbox"]::before { | ||
width: 14px; | ||
height: 14px; | ||
border: 1px solid hsl(0, 0%, 66%); | ||
border-radius: .2em; | ||
background-image: linear-gradient(to bottom, hsl(300, 3%, 93%), #fff 30%); | ||
} | ||
|
||
[role="checkbox"]:active::before { | ||
background-image: linear-gradient(to bottom, hsl(300, 3%, 73%), hsl(300, 3%, 93%) 30%); | ||
} | ||
|
||
[role="checkbox"][aria-checked="mixed"]::before, | ||
[role="checkbox"][aria-checked="true"]::before { | ||
border-color: hsl(216, 80%, 50%); | ||
background: hsl(217, 95%, 68%); | ||
background-image: linear-gradient(to bottom, hsl(217, 95%, 68%), hsl(216, 80%, 57%)); | ||
} | ||
|
||
[role="checkbox"][aria-checked="mixed"]::after { | ||
display: block; | ||
width: 6px; | ||
border-bottom: 0.125em solid #fff; | ||
} | ||
|
||
[role="checkbox"][aria-checked="mixed"]:active::after, | ||
[role="checkbox"][aria-checked="true"]::after { | ||
display: block; | ||
width: .25em; | ||
height: .4em; | ||
border: solid #fff; | ||
border-width: 0 .125em .125em 0; | ||
transform: translateY(-65%) translateX(-50%) rotate(45deg); | ||
} | ||
|
||
[role="checkbox"][aria-checked="mixed"]:active::before, | ||
[role="checkbox"][aria-checked="true"]:active::before { | ||
background-image: linear-gradient(to bottom, hsl(216, 80%, 57%), hsl(217, 95%, 68%)); | ||
} | ||
|
||
[role="checkbox"]:focus { | ||
outline: none; | ||
} | ||
|
||
[role="checkbox"]:focus::before { | ||
width: 16px; | ||
height: 16px; | ||
box-sizing: content-box; | ||
border-color: hsl(216, 94%, 73%); | ||
border-width: 3px; | ||
border-radius: calc(.2em + 3px); | ||
box-shadow: inset 0 0 0 1px hsl(216, 80%, 50%); | ||
} |