blob: ec687d62633726928d8edbc0353045a18eed31e0 [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
Jan Schefflercc933082020-01-15 10:04:2021input.inside-datagrid {
22 height: 10px;
23 width: 10px;
24}
25
Blink Reformat4c46d092018-04-07 15:32:3726input:focus {
27 outline: auto 5px -webkit-focus-ring-color;
28}
29
30input.dt-checkbox-themed {
31 -webkit-appearance: none;
32 margin: auto 5px auto 2px;
33 border: 1px solid rgb(45, 45, 45);
34 border-radius: 3px;
35 background-color: rgb(102, 102, 102);
36}
37
38input.dt-checkbox-themed:after {
39 content: '';
40 line-height: 10px;
41 position: absolute;
42 cursor: pointer;
43 width: 12px;
44 height: 12px;
45 background: none;
46}
47
48input.dt-checkbox-themed:checked:after {
49 background-color: #333;
50}
51
52input.dt-checkbox-themed:after {
Joel Einbinderf6f86b62019-06-10 23:19:1253 -webkit-mask-image: url(Images/checkboxCheckmark.svg);
Blink Reformat4c46d092018-04-07 15:32:3754 -webkit-mask-size: 11px 11px;
55 -webkit-mask-position: 0 0;
56}
57
58:host-context(.-theme-with-dark-background) input:not(.dt-checkbox-themed) {
59 filter: invert(80%);
60}
61
Blink Reformat4c46d092018-04-07 15:32:3762.dt-checkbox-text {
63 margin-left: 3px;
64 overflow: hidden;
65 text-overflow: ellipsis;
66}
67
68.dt-checkbox-subtitle {
69 color: gray;
70}
Kham Udom047cb692020-02-03 22:30:1171
72@media (forced-colors: active) {
73 input.dt-checkbox-theme-preserve {
74 forced-color-adjust: none;
75 }
76 input.dt-checkbox-theme-preserve:hover:enabled {
77 border-color: Highlight;
78 }
79 input.dt-checkbox-theme-preserve:active::before,
80 input.dt-checkbox-theme-preserve:active::after {
81 background-color: Highlight;
82 }
83 input.dt-checkbox-theme-preserve:active {
84 background: HighlightText;
85 }
86 input.dt-checkbox-theme-preserve:active:checked::before,
87 input.dt-checkbox-theme-preserve:active:checked::after,
88 input.dt-checkbox-theme-preserve:checked::before,
89 input.dt-checkbox-theme-preserve:checked::after {
90 background-color: HighlightText;
91 }
92 input.dt-checkbox-theme-preserve:active:checked,
93 input.dt-checkbox-theme-preserve:checked {
94 background: Highlight;
95 border-color: Highlight;
96 }
97 input.dt-checkbox-theme-preserve:hover:checked::before,
98 input.dt-checkbox-theme-preserve:hover:checked::after {
99 background-color: Highlight !important;
100 }
101 input.dt-checkbox-theme-preserve:hover:checked {
102 background: HighlightText;
103 }
104 }