Пример блока меток
by Denis Tverdokhlebov
HTML
<div class="container">
<p class="tags"> <span>Tags</span><a class="tag" href="#">CSS</a><a class="tag" href="#">JavaScript</a><a class="tag active" href="#">Trend</a><a class="tag" href="#">API</a><a class="more" href="#">more...</a></p>
<label>
<input class="tag_search" type="search" placeholder="Tag search..."/>
</label>
</div>
<svg class="text-circle" viewBox="0 0 200 200">
<path d="M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0" id="path"></path>
<text>
<textPath xlink:href="#path">Be cool. Be helpful. The web is a big place. Have fun. High five.</textPath>
</text>
</svg><a class="dribbble" href="https://dribbble.com/shots/5880849-CSS-Tricks-Style-for-tags-bar-search" target="_blank">dribbble shot</a>
CSS
@import url("https://fonts.googleapis.com/css?family=Lato");
*,
::before,
::after {
box-sizing: border-box;
}
body {
margin: 0;
display: flex;
height: 100vh;
align-items: center;
justify-content: center;
overflow: hidden;
font: 600 62.5% "Lato", sans-serif;
background-color: #17141d;
}
a {
text-decoration: none;
white-space: nowrap;
font-size: 1rem;
color: #a1a1af;
}
a.tag {
display: block;
padding: 0.3em 0.85em;
margin: 0.5em;
text-transform: uppercase;
border: 3px solid #28242f;
border-radius: 2em;
transition: transform 0.2s;
transition-timing-function: cubic-bezier(0.45, -0.85, 0.55, -0.45);
}
a.tag:hover {
transform: scale(1.2);
background: linear-gradient(to right, #ff8a00, #da1b60);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.container {
margin: 2em 6em;
padding: 3em;
padding-left: 1em;
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
font-size: 1rem;
color: #a1a1af;
border: 1px solid #28242f;
border-radius: 0.35em;
background-color: #201c29;
background-image: url(https://css-tricks.com/wp-content/themes/CSS-Tricks-17/images/featured-comment.svg);
background-repeat: no-repeat;
background-size: contain;
background-position: 70% 50%;
box-shadow: 0 10px 60px #070509;
}
.container .tags {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
}
.container .tags span {
margin-right: 1em;
padding: 1em;
text-transform: uppercase;
transform: rotate(180deg);
writing-mode: vertical-rl;
border-left: 3px solid #28242f;
background: linear-gradient(to right, #ff8a00, #da1b60);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.container .tags a:last-child {
margin-left: 0.5em;
}
.container .tags a:last-child:hover {
color: white;
}
.container label {
position: relative;
white-space: nowrap;
display: flex;
width: 48px;
height: 48px;
...