aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/bluemoon/checkbox.reel/checkbox.css
blob: 2a0c8c99526c482b0ac08ebf5b57f60ab9bebc33 (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/* <copyright>
 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
 (c) Copyright 2011 Motorola Mobility, Inc.  All Rights Reserved.
 </copyright> */
.montage-checkbox {
    display: inline-block;
    width: 53px;
    height: 53px;
}

.montage-checkbox .background {
    display: block;
    position: absolute;
    width: 53px;
    height: 53px;
    border-radius: 27px;
    background: #CCC;
    -webkit-box-shadow: inset 0 1px 2px #8D8D8D, 0 2px 2px rgba(255,255,255,.4), 0 -2px 2px rgba(0,0,0,.1);
    -webkit-transform: scale3d(.5283, .5283, 1);
}

.montage-checkbox .button {
    display: block;
    position: absolute;
    width: 49px;
    height: 49px;
    border-radius: 25px;
    background: -webkit-gradient(linear, left top, left bottom, from(#FEFEFE), to(#E6E6E6));
    -webkit-transform: translate3d(2px, 2px, 0) scale3d(.5283, .5283, 1);
}

.montage-checkbox .checkmark {
    display: block;
    position: absolute;
    width: 63px;
    height: 53px;
    background: url(checkmark.svg) no-repeat 10px 0;
    background-size: 53px 53px;
    -webkit-transform-origin: 26.5px 26.5px;
    -webkit-transform: scale3d(.5283, .5283, 1);
    opacity: 0;
}

.montage-checkbox.active .background,  .montage-checkbox.active .button, .montage-checkbox.active .checkmark{
    -webkit-transition-duration: 150ms;
    -webkit-transition-property: all;
}

.montage-checkbox .checkmark{
	-webkit-transition-duration: 360ms;
}

.montage-checkbox input[type=checkbox] {
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    position: absolute;
    border: 0;
    border-radius: 27px;
    margin: 0;
    padding: 0;
    width: 53px;
    height: 53px;
    background: transparent;
}

.montage-checkbox.active .background,
.montage-checkbox.active .button,
.montage-checkbox.active .checkmark {
    -webkit-transform: scale3d(1, 1, 1);
}

.montage-checkbox.active .button {
    opacity: 0;
}

.montage-checkbox.checked .checkmark {
    opacity: 1;
}

.montage-checkbox.dark .checkmark {
    background-image: url(checkmark-dark.svg);
}

.montage-checkbox.dark .button {
    background: -webkit-gradient(linear, left top, left bottom, from(#757575), to(#5c5c5c));
}

.montage-checkbox.dark .background {
    background: #404040;
    -webkit-box-shadow: inset 0 1px 2px #333, 0 2px 2px rgba(255,255,255,.2), 0 -2px 2px rgba(0,0,0,.1);
}

.montage-checkbox.disabled .background {
    margin: 12px 0 0 13px;
    width: 26px;
    height: 26px;
    background: transparent;
    -webkit-box-shadow: none;
    border: 1px solid #000;
    -webkit-transform: none;
    opacity: .26;
}

.montage-checkbox.disabled .button {
    display: none;
}

.montage-checkbox.disabled .checkmark {
    background-image: url(checkmark-light-disabled.svg);
}

.montage-checkbox.dark.disabled .checkmark {
    background-image: url(checkmark-dark-disabled.svg);
}