summaryrefslogtreecommitdiffstats
path: root/layout/style/crashtests/1017798-1.css
blob: feb77d9dcf2e1f056b05f2d5415c80ed95a88c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/* ----------------------------------
 * SWITCHES
 * ---------------------------------- */

label.pack-switch {
  display: inline-block;
  vertical-align: middle;
  width: 100%;
  height: 5rem;
  position: relative;
  background: none;
}

label.pack-switch span {
  float: left;
  font-size: 1.8rem;
  color: #333;
  padding: 1rem 0 0;
  height: 6rem;
  line-height: 3rem;
  box-sizing: border-box;
  display: block;
}

label.pack-switch input {
  margin: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

label.pack-switch input:checked ~ span:after {
  background-position: center bottom;
}

/* ----------------------------------
 * ON/OFF SWITCHES
 * ---------------------------------- */

label.pack-switch input ~ span:after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 6rem;
  margin: -1.4rem 0 0;
  height: 2.7rem;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #e6e6e6 url(images/background_off.png) no-repeat -3.2rem 0 / 9.2rem 2.7rem;
  transition: background 0.2s ease;
}

/* switch: 'ON' state */
label.pack-switch input:checked ~ span:after {
  background: #e6e6e6 url(images/background.png) no-repeat 0 0 / 9.2rem 2.7rem;
}

/* switch: disabled state */
label.pack-switch input:disabled ~ span:after {
  opacity: 0.4;
}

label.pack-switch input.uninit ~ span:after {
  transition: none;
}

/******************************************************************************
 * Right-To-Left tweaks
 */
html[dir="rtl"] label.pack-switch input {
  left: auto;
  right: 0;
}

html[dir="rtl"] label.pack-switch input ~ span:after {
  left: 0;
  right: auto;
}

html[dir="rtl"] label.pack-switch input ~ span:after {
  background-position: 0;
}