blob: f562144243110658d535f8bee9f61934e7c504a7 [file] [log] [blame]
Blink Reformat4c46d092018-04-07 15:32:371/*
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
4 * found in the LICENSE file.
5 */
6
7:host {
8 padding: 0;
9 margin: 0;
10 display: inline-flex;
11 flex-shrink: 0;
12 align-items: center !important;
13}
14
15input {
16 height: 12px;
17 width: 12px;
18 flex-shrink: 0;
19}
20
21input:focus {
22 outline: auto 5px -webkit-focus-ring-color;
23}
24
25input.dt-checkbox-themed {
26 -webkit-appearance: none;
27 margin: auto 5px auto 2px;
28 border: 1px solid rgb(45, 45, 45);
29 border-radius: 3px;
30 background-color: rgb(102, 102, 102);
31}
32
33input.dt-checkbox-themed:after {
34 content: '';
35 line-height: 10px;
36 position: absolute;
37 cursor: pointer;
38 width: 12px;
39 height: 12px;
40 background: none;
41}
42
43input.dt-checkbox-themed:checked:after {
44 background-color: #333;
45}
46
47input.dt-checkbox-themed:after {
48 -webkit-mask-image: url(Images/checkboxCheckmark.png);
49 -webkit-mask-size: 11px 11px;
50 -webkit-mask-position: 0 0;
51}
52
53:host-context(.-theme-with-dark-background) input:not(.dt-checkbox-themed) {
54 filter: invert(80%);
55}
56
57@media (-webkit-min-device-pixel-ratio: 1.1) {
58input.dt-checkbox-themed:after {
59 -webkit-mask-image: url(Images/checkboxCheckmark_2x.png);
60}
61
62} /* media */
63
64.dt-checkbox-text {
65 margin-left: 3px;
66 overflow: hidden;
67 text-overflow: ellipsis;
68}
69
70.dt-checkbox-subtitle {
71 color: gray;
72}