Merge lp:~daker/ubuntu-html5-theme/fix.1224188 into lp:~ubuntu-html5-theme-devs/ubuntu-html5-theme/ambiance

Proposed by Adnane Belmadiaf
Status: Merged
Approved by: Alexandre Abreu
Approved revision: 80
Merged at revision: 80
Proposed branch: lp:~daker/ubuntu-html5-theme/fix.1224188
Merge into: lp:~ubuntu-html5-theme-devs/ubuntu-html5-theme/ambiance
Diff against target: 145 lines (+34/-26)
1 file modified
0.1/ambiance/css/toggles.css (+34/-26)
To merge this branch: bzr merge lp:~daker/ubuntu-html5-theme/fix.1224188
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Ubuntu HTML5 Theme Developers Pending
Review via email: mp+185180@code.launchpad.net

Commit message

Fixed the Switchs CSS to match the QML theme

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '0.1/ambiance/css/toggles.css'
2--- 0.1/ambiance/css/toggles.css 2013-07-17 15:27:43 +0000
3+++ 0.1/ambiance/css/toggles.css 2013-09-11 23:03:05 +0000
4@@ -5,18 +5,18 @@
5 * This file is part of ubuntu-html5-theme.
6 *
7 * This package is free software; you can redistribute it and/or modify
8- * it under the terms of the GNU Lesser General Public License as
9- * published by the Free Software Foundation; either version 3 of the
10+ * it under the terms of the GNU Lesser General Public License as
11+ * published by the Free Software Foundation; either version 3 of the
12 * License, or
13 * (at your option) any later version.
14-
15+
16 * This package is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20-
21- * You should have received a copy of the GNU Lesser General Public
22- * License along with this program. If not, see
23+
24+ * You should have received a copy of the GNU Lesser General Public
25+ * License along with this program. If not, see
26 * <http://www.gnu.org/licenses/>.
27 */
28
29@@ -50,25 +50,28 @@
30 border-radius: 6px;
31 -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3);
32 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3);
33- background: rgba(187, 187, 187, 0.4);
34- border-bottom: 1px solid #f5f5f5;
35- -webkit-transition: background-color 0.1s ease;
36- transition: background-color 0.1s ease;
37+ background: rgba(0, 0, 0, 0.4);
38+ background-position-y: 30px;
39+ -webkit-transition: background-image 0.3s ease-in-out, background-color 0.3s ease-in-out, background-position 0.3s ease-in-out;
40+ transition: background-image 0.3s ease-in-out, background-color 0.3s ease-in-out, background-position 0.3s ease-in-out;
41 }
42
43 label:not([for]) input[type="checkbox"]:checked + span {
44- background: #dd4814 url(../img/CheckMark@18.png) no-repeat 0.5rem 0.5rem;
45- background-size: 53% 53%;
46+ background: #dd4814 url(../img/tick@30.png) no-repeat 0.3rem 0.3rem;
47+ background-size: 75% 75%;
48+ background-position-y: 5px;
49+ -webkit-transition: background-image 0.3s ease-in-out, background-color 0.3s ease-in-out, background-position 0.3s ease-in-out;
50+ transition: background-image 0.3s ease-in-out, background-color 0.3s ease-in-out, background-position 0.3s ease-in-out;
51 }
52
53
54 input[type="checkbox"]:disabled + span {
55- background: rgba(192, 192, 192, 0.5)!important;
56+ background: rgba(0, 0, 0, 0.25)!important;
57 }
58
59 input[type="checkbox"]:disabled:checked + span {
60- background: rgba(221, 72, 20, 0.5) url(../img/CheckMark@18.png) no-repeat 0.5rem 0.5rem!important;
61- background-size: 53% 53%!important;
62+ background: rgba(221, 72, 20, 0.5) url(../img/tick@30.png) no-repeat 0.3rem 0.3rem!important;
63+ background-size: 75% 75%!important;
64 }
65
66 label input[type="checkbox"][data-type="switch"] + span.toggle {
67@@ -80,19 +83,20 @@
68 height: 2.2rem;
69 pointer-events: none;
70 overflow: hidden;
71- background: transparent;
72+ background: rgba(136, 136, 136, 0.3);
73 }
74
75 label input[type="checkbox"][data-type="switch"] + span.toggle > span.toggle-bg {
76- background: transparent url(../img/Checkbox.png) no-repeat 0.5rem 0.6rem;
77- background-size: 80% 50%;
78+ background: transparent url(../img/unCheckbox.png) no-repeat 0.4rem 0.35rem;
79+ background-size: 90% 75%;
80 position: absolute;
81 top: 0;
82 left: 0;
83 z-index: 10;
84 width: 4.5rem;
85 height: 2.1rem;
86-
87+ -webkit-transition: background-image 0.3s ease-in-out;
88+ transition: background-image 0.3s ease-in-out;
89 }
90
91 label input[type="checkbox"][data-type="switch"] + span.toggle > span.toggle-handle {
92@@ -100,21 +104,25 @@
93 top: 2px;
94 left: 2px;
95 z-index: 2;
96- width: 1.9rem;
97+ width: 2rem;
98 height: 2rem;
99 -webkit-box-sizing: border-box;
100 box-sizing: border-box;
101 border-radius: 6px;
102 -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3);
103 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3);
104- background: rgba(187, 187, 187, 0.7);
105- -webkit-transition: background 0.1s ease, -webkit-transform 0.1s ease-in-out;
106- transition: background 0.1s ease, transform 0.1s ease-in-out;
107- border-bottom: 1px solid #f5f5f5;
108+ background: rgba(0, 0, 0, 0.4);
109+ -webkit-transition: background 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
110+ transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
111 }
112
113 label input[type="checkbox"][data-type="switch"]:checked + span.toggle {
114- background: transparent;
115+ background: rgba(136, 136, 136, 0.3);
116+}
117+
118+label input[type="checkbox"][data-type="switch"]:checked + span.toggle > span.toggle-bg {
119+ background: transparent url(../img/Checkbox.png) no-repeat 0.4rem 0.35rem;
120+ background-size: 90% 75%;
121 }
122
123 label input[type="checkbox"][data-type="switch"]:checked + span.toggle > span.toggle-handle {
124@@ -124,7 +132,7 @@
125 }
126
127 label input[data-type="switch"]:disabled + span.toggle {
128- background: transparent!important;
129+ background: rgba(136, 136, 136, 0.3)!important;
130 }
131
132 label input[data-type="switch"]:disabled + span.toggle > span.toggle-handle {
133
134=== removed file '0.1/ambiance/img/CheckMark@18.png'
135Binary files 0.1/ambiance/img/CheckMark@18.png 2013-06-08 14:24:51 +0000 and 0.1/ambiance/img/CheckMark@18.png 1970-01-01 00:00:00 +0000 differ
136=== modified file '0.1/ambiance/img/Checkbox.png'
137Binary files 0.1/ambiance/img/Checkbox.png 2013-06-11 22:44:50 +0000 and 0.1/ambiance/img/Checkbox.png 2013-09-11 23:03:05 +0000 differ
138=== removed file '0.1/ambiance/img/Cross@18.png'
139Binary files 0.1/ambiance/img/Cross@18.png 2013-06-08 14:24:51 +0000 and 0.1/ambiance/img/Cross@18.png 1970-01-01 00:00:00 +0000 differ
140=== added file '0.1/ambiance/img/cross@30.png'
141Binary files 0.1/ambiance/img/cross@30.png 1970-01-01 00:00:00 +0000 and 0.1/ambiance/img/cross@30.png 2013-09-11 23:03:05 +0000 differ
142=== added file '0.1/ambiance/img/tick@30.png'
143Binary files 0.1/ambiance/img/tick@30.png 1970-01-01 00:00:00 +0000 and 0.1/ambiance/img/tick@30.png 2013-09-11 23:03:05 +0000 differ
144=== added file '0.1/ambiance/img/unCheckbox.png'
145Binary files 0.1/ambiance/img/unCheckbox.png 1970-01-01 00:00:00 +0000 and 0.1/ambiance/img/unCheckbox.png 2013-09-11 23:03:05 +0000 differ

Subscribers

People subscribed via source and target branches