-
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
authored and
Michiel Bijl
committed
Feb 17, 2017
1 parent
7cbf6f8
commit 1b7de6b
Showing
5 changed files
with
122 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
.tabs { | ||
margin-top: 2em; | ||
width: 20em; | ||
font-family: "lucida grande", sans-serif; | ||
} | ||
|
||
[role="tablist"] { | ||
margin: 0 0 -.1em; | ||
overflow: visible; | ||
} | ||
|
||
[role="tab"] { | ||
position: relative; | ||
margin: 0; | ||
padding: .3em .5em .4em; | ||
border: 1px solid hsl(219, 1%, 72%); | ||
border-radius: .2em .2em 0 0; | ||
box-shadow: 0 0 .2em hsl(219, 1%, 72%); | ||
overflow: visible; | ||
font-family: inherit; | ||
font-size: inherit; | ||
background: hsl(220, 20%, 94%); | ||
} | ||
|
||
[role="tab"]:hover::before, | ||
[role="tab"]:focus::before, | ||
[role="tab"][aria-selected="true"]::before { | ||
position: absolute; | ||
bottom: 100%; | ||
right: -1px; | ||
left: -1px; | ||
border-radius: 0.2em 0.2em 0 0; | ||
border-top: 3px solid hsl(20, 96%, 48%); | ||
content: ''; | ||
} | ||
|
||
[role="tab"][aria-selected="true"] { | ||
border-radius: 0; | ||
background: hsl(220, 43%, 99%); | ||
outline: 0; | ||
} | ||
|
||
[role="tab"][aria-selected="true"]:not(:focus):not(:hover)::before { | ||
border-top: 5px solid hsl(218, 96%, 48%); | ||
} | ||
|
||
[role="tab"][aria-selected="true"]::after { | ||
position: absolute; | ||
z-index: 3; | ||
bottom: -1px; | ||
right: 0; | ||
left: 0; | ||
height: .3em; | ||
background: hsl(220, 43%, 99%); | ||
box-shadow: none; | ||
content: ''; | ||
} | ||
|
||
[role="tab"]:hover, | ||
[role="tab"]:focus, | ||
[role="tab"]:active { | ||
outline: 0; | ||
border-radius: 0; | ||
color: inherit; | ||
} | ||
|
||
[role="tab"]:hover::before, | ||
[role="tab"]:focus::before { | ||
border-color: hsl(20, 96%, 48%); | ||
} | ||
|
||
[role="tabpanel"] { | ||
position: relative; | ||
z-index: 2; | ||
padding: .5em .5em .7em; | ||
border: 1px solid hsl(219, 1%, 72%); | ||
border-radius: 0 .2em .2em .2em; | ||
box-shadow: 0 0 .2em hsl(219, 1%, 72%); | ||
background: hsl(220, 43%, 99%); | ||
|
||
} | ||
|
||
[role="tabpanel"]:focus { | ||
border-color: hsl(20, 96%, 48%); | ||
box-shadow: 0 0 .2em hsl(20, 96%, 48%); | ||
outline: 0; | ||
} | ||
|
||
[role="tabpanel"]:focus::after { | ||
position: absolute; | ||
bottom: 0; | ||
right: -1px; | ||
left: -1px; | ||
border-bottom: 3px solid hsl(20, 96%, 48%); | ||
border-radius: 0 0 0.2em 0.2em; | ||
content: ''; | ||
} | ||
|
||
[role="tabpanel"] p { | ||
margin: 0; | ||
} | ||
|
||
[role="tabpanel"] * + p { | ||
margin-top: 1em; | ||
} |
This file was deleted.
Oops, something went wrong.
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.
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