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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/ui/checkboxTextLabel.css
diff --git a/Source/devtools/front_end/ui/checkboxTextLabel.css b/Source/devtools/front_end/ui/checkboxTextLabel.css
index a5cf41fec7afc144818cb095e8cd2dee2ce324b6..544bdf0815ec84b27ca6e2a8dbf6d44274195188 100644
--- a/Source/devtools/front_end/ui/checkboxTextLabel.css
+++ b/Source/devtools/front_end/ui/checkboxTextLabel.css
@@ -12,20 +12,45 @@
align-items: center !important;
}
-input.dt-checkbox-button {
+input {
height: 12px;
width: 12px;
flex-shrink: 0;
}
-input.dt-checkbox-colored {
+input.dt-checkbox-themed {
-webkit-appearance: none;
- border: 1px solid;
+ margin: 0 5px auto 2px;
+ border: 1px solid rgb(45, 45, 45);
border-radius: 3px;
+ background-color: rgb(102, 102, 102);
+ position: relative;
+ top: 1px;
}
-input.dt-checkbox-colored:checked {
- background-image: url(Images/toolbarButtonGlyphs.png);
- background-size: 352px 144px;
- background-position: -128px -110px;
+input.dt-checkbox-themed:after {
+ content: '';
+ line-height: 10px;
+ position: absolute;
+ cursor: pointer;
+ width: 12px;
+ height: 12px;
+ background: none;
}
+
+input.dt-checkbox-themed:checked:after {
+ background-color: #333;
+}
+
+input.dt-checkbox-themed:after {
+ -webkit-mask-image: url(Images/toolbarButtonGlyphs.png);
+ -webkit-mask-size: 352px 144px;
+ -webkit-mask-position: -128px -110px;
+}
+
+@media (-webkit-min-device-pixel-ratio: 1.5) {
+input.dt-checkbox-themed:after {
+ -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png);
+}
+
+} /* media */
« 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