Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 1 | /* |
| 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 | |
| 15 | input { |
| 16 | height: 12px; |
| 17 | width: 12px; |
| 18 | flex-shrink: 0; |
| 19 | } |
| 20 | |
Jan Scheffler | cc93308 | 2020-01-15 10:04:20 | [diff] [blame] | 21 | input.inside-datagrid { |
| 22 | height: 10px; |
| 23 | width: 10px; |
| 24 | } |
| 25 | |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 26 | input:focus { |
| 27 | outline: auto 5px -webkit-focus-ring-color; |
| 28 | } |
| 29 | |
| 30 | input.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 | |
| 38 | input.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 | |
| 48 | input.dt-checkbox-themed:checked:after { |
| 49 | background-color: #333; |
| 50 | } |
| 51 | |
| 52 | input.dt-checkbox-themed:after { |
Joel Einbinder | f6f86b6 | 2019-06-10 23:19:12 | [diff] [blame] | 53 | -webkit-mask-image: url(Images/checkboxCheckmark.svg); |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 54 | -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 Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 62 | .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 Udom | 047cb69 | 2020-02-03 22:30:11 | [diff] [blame^] | 71 | |
| 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 | } |