Blame progit/static/toggle.css

Johan Cwiklinski ab027f
/*
Johan Cwiklinski ab027f
 * Copyright (c) 2012-2013 Thibaut Courouble
Johan Cwiklinski ab027f
 * http://www.cssflow.com
Johan Cwiklinski ab027f
 *
Johan Cwiklinski ab027f
 * Licensed under the MIT License:
Johan Cwiklinski ab027f
 * http://www.opensource.org/licenses/mit-license.php
Johan Cwiklinski ab027f
 */
Johan Cwiklinski ab027f
Johan Cwiklinski ab027f
.switch {
Johan Cwiklinski ab027f
  position: relative;
Johan Cwiklinski ab027f
  width: 120px;
Johan Cwiklinski ab027f
  border-radius: 3px;
Johan Cwiklinski ab027f
}
Johan Cwiklinski ab027f
Johan Cwiklinski ab027f
.switch.oneline {
Johan Cwiklinski ab027f
    display: inline-block;
Johan Cwiklinski ab027f
    vertical-align: middle;
Johan Cwiklinski ab027f
}
Johan Cwiklinski ab027f
Johan Cwiklinski ab027f
.switch-label {
Johan Cwiklinski ab027f
  position: relative;
Johan Cwiklinski ab027f
  z-index: 2;
Johan Cwiklinski ab027f
  float: left;
Johan Cwiklinski ab027f
  width: 58px;
Johan Cwiklinski ab027f
  line-height: 26px;
Johan Cwiklinski ab027f
  font-size: 11px;
Johan Cwiklinski 931832
  color: rgba(0, 0, 0, 0.15);
Johan Cwiklinski ab027f
  text-align: center;
Johan Cwiklinski ab027f
  cursor: pointer;
Johan Cwiklinski ab027f
  font-weight: bold;
Johan Cwiklinski ab027f
}
Johan Cwiklinski ab027f
Johan Cwiklinski ab027f
.switch-label-off {
Johan Cwiklinski ab027f
  padding-left: 2px;
Johan Cwiklinski ab027f
}
Johan Cwiklinski ab027f
Johan Cwiklinski ab027f
.switch-label-on {
Johan Cwiklinski ab027f
  padding-right: 2px;
Johan Cwiklinski ab027f
}
Johan Cwiklinski ab027f
Johan Cwiklinski ab027f
/*
Johan Cwiklinski ab027f
 * Note: using adjacent or general sibling selectors combined with
Johan Cwiklinski ab027f
 *       pseudo classes doesn't work in Safari 5.0 and Chrome 12.
Johan Cwiklinski ab027f
 *       See this article for more info and a potential fix:
Johan Cwiklinski ab027f
 *       http://css-tricks.com/webkit-sibling-bug/
Johan Cwiklinski ab027f
 */
Johan Cwiklinski ab027f
.switch-input {
Johan Cwiklinski ab027f
  display: none;
Johan Cwiklinski ab027f
}
Johan Cwiklinski ab027f
.switch-input:checked + .switch-label {
Johan Cwiklinski ab027f
  font-weight: bold;
Johan Cwiklinski ab027f
  color: #fff;
Johan Cwiklinski ab027f
  -webkit-transition: 0.15s ease-out;
Johan Cwiklinski ab027f
  -moz-transition: 0.15s ease-out;
Johan Cwiklinski ab027f
  -o-transition: 0.15s ease-out;
Johan Cwiklinski ab027f
  transition: 0.15s ease-out;
Johan Cwiklinski ab027f
}
Johan Cwiklinski ab027f
.switch-input:checked + .switch-label-on ~ .switch-selection {
Johan Cwiklinski ab027f
  left: 60px;
Johan Cwiklinski ab027f
  /* Note: left: 50% doesn't transition in WebKit */
Johan Cwiklinski ab027f
}
Johan Cwiklinski ab027f
Johan Cwiklinski ab027f
.switch-selection {
Johan Cwiklinski ab027f
  display: block;
Johan Cwiklinski ab027f
  position: absolute;
Johan Cwiklinski ab027f
  z-index: 1;
Johan Cwiklinski ab027f
  top: 2px;
Johan Cwiklinski ab027f
  left: 2px;
Johan Cwiklinski ab027f
  width: 58px;
Johan Cwiklinski ab027f
  height: 22px;
Johan Cwiklinski ab027f
  background: #65bd63;
Johan Cwiklinski ab027f
  border-radius: 3px;
Johan Cwiklinski ab027f
  background-image: -webkit-linear-gradient(top, #0066cc, #34609f);
Johan Cwiklinski ab027f
  background-image: -moz-linear-gradient(top, #0066cc, #34609f);
Johan Cwiklinski ab027f
  background-image: -o-linear-gradient(top, #0066cc, #34609f);
Johan Cwiklinski ab027f
  background-image: linear-gradient(to bottom, #0066cc, #34609f);
Johan Cwiklinski ab027f
Johan Cwiklinski ab027f
    //#0066cc
Johan Cwiklinski ab027f
    //#34609f
Johan Cwiklinski ab027f
Johan Cwiklinski ab027f
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 0 2px rgba(0, 0, 0, 0.2);
Johan Cwiklinski ab027f
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 0 2px rgba(0, 0, 0, 0.2);
Johan Cwiklinski ab027f
  -webkit-transition: left 0.15s ease-out;
Johan Cwiklinski ab027f
  -moz-transition: left 0.15s ease-out;
Johan Cwiklinski ab027f
  -o-transition: left 0.15s ease-out;
Johan Cwiklinski ab027f
  transition: left 0.15s ease-out;
Johan Cwiklinski ab027f
}
Johan Cwiklinski ab027f
/*witch-blue .switch-selection {
Johan Cwiklinski ab027f
  background: #3aa2d0;
Johan Cwiklinski ab027f
  background-image: -webkit-linear-gradient(top, #4fc9ee, #3aa2d0);
Johan Cwiklinski ab027f
  background-image: -moz-linear-gradient(top, #4fc9ee, #3aa2d0);
Johan Cwiklinski ab027f
  background-image: -o-linear-gradient(top, #4fc9ee, #3aa2d0);
Johan Cwiklinski ab027f
  background-image: linear-gradient(to bottom, #4fc9ee, #3aa2d0);
Johan Cwiklinski ab027f
}
Johan Cwiklinski ab027f
.switch-yellow .switch-selection {
Johan Cwiklinski ab027f
  background: #c4bb61;
Johan Cwiklinski ab027f
  background-image: -webkit-linear-gradient(top, #e0dd94, #c4bb61);
Johan Cwiklinski ab027f
  background-image: -moz-linear-gradient(top, #e0dd94, #c4bb61);
Johan Cwiklinski ab027f
  background-image: -o-linear-gradient(top, #e0dd94, #c4bb61);
Johan Cwiklinski ab027f
  background-image: linear-gradient(to bottom, #e0dd94, #c4bb61);
Johan Cwiklinski ab027f
}*/