Last active
December 27, 2015 08:49
-
-
Save Tims101/7299347 to your computer and use it in GitHub Desktop.
HeadHunter: css
This file contains hidden or 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
<!DOCTYPE> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
.navigation { | |
list-style: none; | |
display: table-row; | |
} | |
.navigation__button-wrapper { | |
display: table-cell; | |
table-layout: fixed; | |
width: 1%; | |
text-align: center; | |
padding: 0 6px; | |
} | |
.navigation__button-wrapper:first-child > .navigation__button { | |
border-radius: 5px 0 0 5px; | |
} | |
.navigation__button-wrapper:first-child > .navigation__button:before { | |
content: none; | |
} | |
.navigation__button-wrapper:last-child > .navigation__button { | |
border-radius: 0 5px 5px 0; | |
} | |
.navigation__button-wrapper:last-child > .navigation__button:after { | |
content: none; | |
} | |
.navigation__button { | |
color: #59AAE5; | |
font-weight: bold; | |
font-family: sans-serif; | |
text-decoration: none; | |
font-size: 14px; | |
line-height: 40px; | |
display: block; | |
position: relative; | |
background: #CAE9F7; | |
} | |
.navigation__button:after { | |
content: " "; | |
border-top: 20px solid transparent; | |
border-bottom: 20px solid transparent; | |
border-left: 10px solid #CAE9F7; | |
position: absolute; | |
top: 50%; | |
left: 100%; | |
margin-top: -20px; | |
} | |
.navigation__button:before { | |
content: ""; | |
position: absolute; | |
top: 50%; | |
margin-top: -20px; | |
border-top: 20px solid #CAE9F7; | |
border-bottom: 20px solid #CAE9F7; | |
border-left: 10px solid transparent; | |
left: -10px; | |
} | |
.navigation__button_active { | |
background: #59AAE5; | |
color: white; | |
} | |
.navigation__button_active:after { | |
border-left: 10px solid #59AAE5; | |
} | |
.navigation__button_active:before { | |
border-top: 20px solid #59AAE5; | |
border-bottom: 20px solid #59AAE5; | |
} | |
.navigation__button_complete { | |
background: #D3D3D3; | |
color: white; | |
} | |
.navigation__button_complete:after { | |
border-left: 10px solid #D3D3D3; | |
} | |
.navigation__button_complete:before { | |
border-top: 20px solid #D3D3D3; | |
border-bottom: 20px solid #D3D3D3; | |
} | |
</style> | |
</head> | |
<body> | |
<ul class="navigation"> | |
<li class="navigation__button-wrapper"> | |
<a href="#" class="navigation__button navigation__button_complete">Link</a> | |
</li> | |
<li class="navigation__button-wrapper"> | |
<a href="#" class="navigation__button navigation__button_complete">Link</a> | |
</li> | |
<li class="navigation__button-wrapper"> | |
<span class="navigation__button navigation__button_active">Link</span> | |
</li> | |
<li class="navigation__button-wrapper"> | |
<span class="navigation__button">Link</span> | |
</li> | |
<li class="navigation__button-wrapper"> | |
<span class="navigation__button">Link</span> | |
</li> | |
</ul> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment