.tool-container {
  position: absolute;
  background-color: #e0e0e0;
  -webkit-background-size: 100% 100%;
          background-size: 100% 100%;
  border: 1px solid transparent;
  border-radius: 4px;
}
.tool-container.tool-top,
.tool-container.tool-bottom {
  height: 42px;
}
.tool-container.tool-top .tool-item,
.tool-container.tool-bottom .tool-item {
  float: left;
}
.tool-item {
  display: block;
  width: 20px;
  height: 20px;
  -webkit-box-sizing: content-box;
     -moz-box-sizing: content-box;
          box-sizing: content-box;
  padding: 10px;
  color: #757575;
  text-align: center;
  -webkit-transition: none;
       -o-transition: none;
          transition: none;
}
.tool-item.selected,
.tool-item:hover {
  color: #fff;
  background: #bdbdbd;
}
.tool-top .tool-item:first-child:hover,
.tool-bottom .tool-item:first-child:hover {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.tool-top .tool-item:last-child:hover,
.tool-bottom .tool-item:last-child:hover {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.tool-vertical-top .tool-item:first-child:hover,
.tool-vertical-bottom .tool-item:first-child:hover,
.tool-right .tool-item:first-child:hover,
.tool-left .tool-item:first-child:hover {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.tool-vertical-top .tool-item:last-child:hover,
.tool-vertical-bottom .tool-item:last-child:hover,
.tool-right .tool-item:last-child:hover,
.tool-left .tool-item:last-child:hover {
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
}
.tool-container .arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px;
}
.tool-container.tool-top .arrow {
  bottom: -16px;
  left: 50%;
  margin-left: -8px;
  border-color: #e0e0e0 transparent transparent;
}
.tool-container.tool-bottom .arrow {
  top: -16px;
  left: 50%;
  margin-left: -8px;
  border-color: transparent transparent #e0e0e0;
}
.tool-container.tool-left .arrow {
  top: 50%;
  right: -16px;
  margin-top: -8px;
  border-color: transparent transparent transparent #e0e0e0;
}
.tool-container.tool-right .arrow {
  top: 50%;
  left: -16px;
  margin-top: -8px;
  border-color: transparent #e0e0e0 transparent transparent;
}
.toolbar-default {
  background-color: #e0e0e0;
}
.toolbar-default.tool-top .arrow {
  border-color: #e0e0e0 transparent transparent;
}
.toolbar-default.tool-bottom .arrow {
  border-color: transparent transparent #e0e0e0;
}
.toolbar-default.tool-left .arrow {
  border-color: transparent transparent transparent #e0e0e0;
}
.toolbar-default.tool-right .arrow {
  border-color: transparent #e0e0e0 transparent transparent;
}
.toolbar-default .tool-item.selected,
.toolbar-default .tool-item:hover {
  color: #fff;
  background: #bdbdbd;
}
.toolbar-primary {
  background-color: #3f51b5;
}
.toolbar-primary.tool-top .arrow {
  border-color: #3f51b5 transparent transparent;
}
.toolbar-primary.tool-bottom .arrow {
  border-color: transparent transparent #3f51b5;
}
.toolbar-primary.tool-left .arrow {
  border-color: transparent transparent transparent #3f51b5;
}
.toolbar-primary.tool-right .arrow {
  border-color: transparent #3f51b5 transparent transparent;
}
.toolbar-primary .tool-item {
  color: #fff;
}
.toolbar-primary .tool-item.selected,
.toolbar-primary .tool-item:hover {
  color: #fff;
  background: #3949ab;
}
.toolbar-success {
  background-color: #4caf50;
}
.toolbar-success.tool-top .arrow {
  border-color: #4caf50 transparent transparent;
}
.toolbar-success.tool-bottom .arrow {
  border-color: transparent transparent #4caf50;
}
.toolbar-success.tool-left .arrow {
  border-color: transparent transparent transparent #4caf50;
}
.toolbar-success.tool-right .arrow {
  border-color: transparent #4caf50 transparent transparent;
}
.toolbar-success .tool-item {
  color: #fff;
}
.toolbar-success .tool-item.selected,
.toolbar-success .tool-item:hover {
  color: #fff;
  background: #43a047;
}
.toolbar-info {
  background-color: #00bcd4;
}
.toolbar-info.tool-top .arrow {
  border-color: #00bcd4 transparent transparent;
}
.toolbar-info.tool-bottom .arrow {
  border-color: transparent transparent #00bcd4;
}
.toolbar-info.tool-left .arrow {
  border-color: transparent transparent transparent #00bcd4;
}
.toolbar-info.tool-right .arrow {
  border-color: transparent #00bcd4 transparent transparent;
}
.toolbar-info .tool-item {
  color: #fff;
}
.toolbar-info .tool-item.selected,
.toolbar-info .tool-item:hover {
  color: #fff;
  background: #00acc1;
}
.toolbar-warning {
  background-color: #ff9800;
}
.toolbar-warning.tool-top .arrow {
  border-color: #ff9800 transparent transparent;
}
.toolbar-warning.tool-bottom .arrow {
  border-color: transparent transparent #ff9800;
}
.toolbar-warning.tool-left .arrow {
  border-color: transparent transparent transparent #ff9800;
}
.toolbar-warning.tool-right .arrow {
  border-color: transparent #ff9800 transparent transparent;
}
.toolbar-warning .tool-item {
  color: #fff;
}
.toolbar-warning .tool-item.selected,
.toolbar-warning .tool-item:hover {
  color: #fff;
  background: #fb8c00;
}
.toolbar-danger {
  background-color: #f44336;
}
.toolbar-danger.tool-top .arrow {
  border-color: #f44336 transparent transparent;
}
.toolbar-danger.tool-bottom .arrow {
  border-color: transparent transparent #f44336;
}
.toolbar-danger.tool-left .arrow {
  border-color: transparent transparent transparent #f44336;
}
.toolbar-danger.tool-right .arrow {
  border-color: transparent #f44336 transparent transparent;
}
.toolbar-danger .tool-item {
  color: #fff;
}
.toolbar-danger .tool-item.selected,
.toolbar-danger .tool-item:hover {
  color: #fff;
  background: #e53935;
}
.toolbar-dark {
  background-color: #616161;
}
.toolbar-dark.tool-top .arrow {
  border-color: #616161 transparent transparent;
}
.toolbar-dark.tool-bottom .arrow {
  border-color: transparent transparent #616161;
}
.toolbar-dark.tool-left .arrow {
  border-color: transparent transparent transparent #616161;
}
.toolbar-dark.tool-right .arrow {
  border-color: transparent #616161 transparent transparent;
}
.toolbar-dark .tool-item {
  color: #fff;
}
.toolbar-dark .tool-item.selected,
.toolbar-dark .tool-item:hover {
  color: #fff;
  background: #424242;
}
.animate-standard {
  -webkit-animation: standardAnimate .3s 1 ease;
}
.animate-flyin {
  -webkit-animation: rotateAnimate .5s 1 ease;
}
.animate-grow {
  -webkit-animation: growAnimate .4s 1 ease;
}
.animate-flip {
  -webkit-animation: flipAnimate .4s 1 ease;
}
.animate-bounce {
  -webkit-animation: bounceAnimate .4s 1 ease-out;
}
@-webkit-keyframes rotateAnimate {
  from {
    opacity: 0;
    -webkit-transform: rotate(180deg) translate(-120px);
            transform: rotate(180deg) translate(-120px);
  }
  to {
    opacity: 1;
    -webkit-transform: rotate(0deg) translate(0);
            transform: rotate(0deg) translate(0);
  }
}
@-webkit-keyframes standardAnimate {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes growAnimate {
  0% {
    opacity: 0;
    -webkit-transform: scale(0) translateY(40px);
            transform: scale(0) translateY(40px);
  }
  70% {
    -webkit-transform: scale(1.5) translate(0);
            transform: scale(1.5) translate(0);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1) translate(0);
            transform: scale(1) translate(0);
  }
}
@-webkit-keyframes rotate2Animate {
  from {
    opacity: 0;
    -webkit-transform: rotate(-90deg);
            transform: rotate(-90deg);
    -webkit-transform-origin: 0 100%;
            transform-origin: 0 100%;
  }
  to {
    opacity: 1;
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
}
@-webkit-keyframes flipAnimate {
  from {
    opacity: 0;
    -webkit-transform: rotate3d(2, 2, 2, 180deg);
            transform: rotate3d(2, 2, 2, 180deg);
  }
  to {
    opacity: 1;
    -webkit-transform: rotate3d(0, 0, 0, 0deg);
            transform: rotate3d(0, 0, 0, 0deg);
  }
}
@-webkit-keyframes bounceAnimate {
  0% {
    opacity: 0;
    -webkit-transform: translateY(40px);
            transform: translateY(40px);
  }
  30% {
    -webkit-transform: translateY(-40px);
            transform: translateY(-40px);
  }
  70% {
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
