Introduction

Stylizer offer you a simple tags style that be used to tag an element.

Auto Moto Photo

You can use these tags by calling the class .tagme.


<span class="tagme">hello</span>            
          

You can also create a tag with hover.

Hello world

<span class="tagme tagme-hover">Hello world</span>            
          

Tags can be grouped.

  • First tag
  • Second tag
  • Third tag




<ul class="tagmes">
  <li class="tagme">First tag</li>
  <li class="tagme">Second tag</li>
  <li class="tagme">Third tag</li>
</ul>           
          

SCSS


// ---------------------------------------------------------------
// This file contains all styles related to the tags component.
// ---------------------------------------------------------------

.tagmes {
  list-style: none;
  margin: 0;
  overflow: hidden; 
  padding: 0;
}

.tagmes li {
  float: left; 
}

.tagme {
  background: #eee;
  border-radius: 3px 0 0 3px;
  color: #999;
  display: inline-block;
  height: 26px;
  line-height: 26px;
  padding: 0 20px 0 23px;
  position: relative;
  margin: 0 10px 10px 0;
  text-decoration: none;
  -webkit-transition: color 0.2s;
}

.tagme::before {
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
  content: '';
  height: 6px;
  left: 10px;
  position: absolute;
  width: 6px;
  top: 10px;
}

.tagme::after {
  background: #fff;
  border-bottom: 13px solid transparent;
  border-left: 10px solid #eee;
  border-top: 13px solid transparent;
  content: '';
  position: absolute;
  right: 0;
  top: 0;
}

.tagme.tagme-hover:hover {
  background-color: #b2bec3;
  color: white;
}

.tagme.tagme-hover:hover::after {
   border-left-color: #b2bec3; 
}