Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: Source/devtools/front_end/ui/checkboxTextLabel.css

Issue 1171893005: DevTools: unify theming for checkbox components. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 :host { 7 :host {
8 padding: 0; 8 padding: 0;
9 margin: 0; 9 margin: 0;
10 display: inline-flex; 10 display: inline-flex;
11 flex-shrink: 0; 11 flex-shrink: 0;
12 align-items: center !important; 12 align-items: center !important;
13 } 13 }
14 14
15 input.dt-checkbox-button { 15 input {
16 height: 12px; 16 height: 12px;
17 width: 12px; 17 width: 12px;
18 flex-shrink: 0; 18 flex-shrink: 0;
19 } 19 }
20 20
21 input.dt-checkbox-colored { 21 input.dt-checkbox-themed {
22 -webkit-appearance: none; 22 -webkit-appearance: none;
23 border: 1px solid; 23 margin: 0 5px auto 2px;
24 border: 1px solid rgb(45, 45, 45);
24 border-radius: 3px; 25 border-radius: 3px;
26 background-color: rgb(102, 102, 102);
27 position: relative;
28 top: 1px;
25 } 29 }
26 30
27 input.dt-checkbox-colored:checked { 31 input.dt-checkbox-themed:after {
28 background-image: url(Images/toolbarButtonGlyphs.png); 32 content: '';
29 background-size: 352px 144px; 33 line-height: 10px;
30 background-position: -128px -110px; 34 position: absolute;
35 cursor: pointer;
36 width: 12px;
37 height: 12px;
38 background: none;
31 } 39 }
40
41 input.dt-checkbox-themed:checked:after {
42 background-color: #333;
43 }
44
45 input.dt-checkbox-themed:after {
46 -webkit-mask-image: url(Images/toolbarButtonGlyphs.png);
47 -webkit-mask-size: 352px 144px;
48 -webkit-mask-position: -128px -110px;
49 }
50
51 @media (-webkit-min-device-pixel-ratio: 1.5) {
52 input.dt-checkbox-themed:after {
53 -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png);
54 }
55
56 } /* media */
OLDNEW
« Source/devtools/front_end/ui/UIUtils.js ('K') | « Source/devtools/front_end/ui/UIUtils.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698