summaryrefslogtreecommitdiff
path: root/frontend/delta/scss/web/checkbox.scss
blob: 75b5de8ef75682cbb9cc356a0f033ebc8a74bb27 (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
div.checkbox {
	display: block;
	margin-bottom: 20px;
	@include border-radius(4px);
	border: 2px solid white;
	background-color: white;
	width: 80px;
	position: relative;
	height: 32px;

	&:before {
		content: "ON";
		padding-left: 9px;
		line-height: 32px;
		color: $solarize-Accent-Cyan;
		font-size: 14px;
		font-weight: 600;

	}

	&:after {
		content: "OFF";
//		padding-left: 12px;
		padding-left: 25px;
		line-height: 32px;
		color: $solarize-Accent-Cyan;
		font-size: 14px;
		font-weight: 600;
	}



	label.check { 
		display: block;
		width: 40px;
		height: 30px;
		@include border-radius(3px);
		background-color: $solarize-Accent-Magenta;
		border: 1px solid $solarize-Accent-Magenta;
		position: absolute;
		top: 0px;
		left: 0px;
	}



	input[type=checkbox] {
		display: none;
	}

	input[type=checkbox]:checked + label.check {
		top: 0px;
		left: 38px;
		@include animation(labelON, .2s, ease-in, 1);
	}

	input[type=checkbox] + label.check {
		top: 0px;
		left: 0px;
		@include animation(labelOFF, .2s, ease-in, 1);
	}

	label.info {
		position: absolute;
		color: white;
		top: 0px;
		left: 100px;
		line-height: 32px;
		width: 200px;
		font-size: 16pt;
	}
}

@include keyframes(labelON) {
	0% {
		top: 0px;
		left: 0px;
	}
	
	100% { 
		top: 0px;
		left: 38px;
	}
}

@include keyframes(labelOFF) {
	0% {
		top: 0px;
		left: 38px;
	}
	
	100% { 
		top: 0px;
		left: 0px;
	}
}