Skip to content

Instantly share code, notes, and snippets.

@webtester0
Created September 18, 2019 22:01
Show Gist options
  • Save webtester0/886409b0d3d25d97e5a823a87b1e978e to your computer and use it in GitHub Desktop.
Save webtester0/886409b0d3d25d97e5a823a87b1e978e to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/yekajep
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
* {
box-sizing: border-box;
}
.container--flex {
display: flex;
}
.container--inline-flex {
display: inline-flex;
flex-direction: column;
}
.flex-child {
padding-top: 8px;
width: 190px;
height: 54px;
display: inline-flex;
border-top: 2px solid #C0C4CB;
}
.flex-child:hover {
background: #EBEEF2;
}
.active {
border-top: 2px solid #2375E1;
}
.content {
font-size: 14px;
line-height: 16px;
padding: 0 8px 0
}
.future {
color: #C0C4CB;
}
.warning {
color: #EF7015;
border-top: 2px solid #EF7015;
}
</style>
</head>
<body>
<div class="container--flex">
<div class="flex-child active">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="10" cy="10" r="9" stroke="#2375E1" stroke-width="2"/>
</svg>
<div class="content">
Завершено
</div>
</div>
<div class="flex-child">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="10" cy="10" r="9" stroke="#2375E1" stroke-width="2"/>
<circle cx="10" cy="10" r="4" fill="#2375E1"/>
</svg>
<div class="content">
Текущий
</div>
</div>
<div class="flex-child">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="10" cy="10" r="9" stroke="#C0C4CB" stroke-width="2"/>
</svg>
<div class="content future">
Будущее
</div>
</div>
<div class="flex-child warning">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="10" cy="10" r="9" stroke="#EF7015" stroke-width="2"/>
</svg>
<div class="content">
Внимание
</div>
</div>
</div>
<br>
<div class="container--inline-flex">
<div class="flex-child"></div>
<div class="flex-child"></div>
<div class="flex-child"></div>
<div class="flex-child"></div>
</div>
<script id="jsbin-source-css" type="text/css">* {
box-sizing: border-box;
}
.container--flex {
display: flex;
}
.container--inline-flex {
display: inline-flex;
flex-direction: column;
}
.flex-child {
padding-top: 8px;
width: 190px;
height: 54px;
display: inline-flex;
border-top: 2px solid #C0C4CB;
}
.flex-child:hover {
background: #EBEEF2;
}
.active {
border-top: 2px solid #2375E1;
}
.content {
font-size: 14px;
line-height: 16px;
padding: 0 8px 0
}
.future {
color: #C0C4CB;
}
.warning {
color: #EF7015;
border-top: 2px solid #EF7015;
}</script>
</body>
</html>
* {
box-sizing: border-box;
}
.container--flex {
display: flex;
}
.container--inline-flex {
display: inline-flex;
flex-direction: column;
}
.flex-child {
padding-top: 8px;
width: 190px;
height: 54px;
display: inline-flex;
border-top: 2px solid #C0C4CB;
}
.flex-child:hover {
background: #EBEEF2;
}
.active {
border-top: 2px solid #2375E1;
}
.content {
font-size: 14px;
line-height: 16px;
padding: 0 8px 0
}
.future {
color: #C0C4CB;
}
.warning {
color: #EF7015;
border-top: 2px solid #EF7015;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment