segment.css 1.1 KB
.m-segment {
  overflow: hidden;
}
.m-segment li {
  width: 33.3%;
  line-height: 1;
  text-align: center;
  float: left;
  background-color: #FFF;
  box-sizing: border-box;
  position: relative;
}
.m-segment li:after {
  position: absolute;
  content: '';
  border-right: 1px solid #e2e2e2;
  display: block;
  height: 200%;
  width: 0;
  top: 0;
  right: -1px;
  z-index: 1;
  -webkit-transform: scale(0.5);
  transform: scale(0.5);
  -webkit-transform-origin: left top;
  transform-origin: left top;
}
.m-segment li .text {
  display: block;
  color: #333;
  font-size: 15px;
  padding: 7px 0;
}
.m-segment li .subtext {
  line-height: 1;
  padding-top: 5px;
}
.m-segment li:first-child {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
.m-segment li:last-child {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}
.m-segment li:last-child:after {
  display: none;
}
.m-segment .on {
  color: #FFF;
  background-color: #69b8dc;
}
.m-segment .on:after {
  border-color: #69b8dc;
}
.m-segment .on .text {
  color: #FFF;
}
.m-segment .on .text .font-gray {
  color: #FFF !important;
}