blob: d1fe8f3b0bd9d9f20f9bf53cdcab6dcdd713c3f6 [file] [log] [blame]
Alex Rudenkoe4465d12021-08-09 11:37:371/*
2 * Copyright 2021 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* {
8 margin: 0;
9 padding: 0;
10 box-sizing: border-box;
11}
12
Alex Rudenkodc7c9592021-09-30 09:00:5513/**
14* Reset default UA styles for focused elements.
15* The button styles below explicitly implement custom focus styles.
16*/
Alex Rudenkoe4465d12021-08-09 11:37:3717*:focus,
Alex Rudenkodc7c9592021-09-30 09:00:5518*:focus-visible,
19:host(:focus),
20:host(:focus-visible) {
Alex Rudenkoe4465d12021-08-09 11:37:3721 outline: none;
22}
23
Alex Rudenkoe6ba3522021-10-15 06:09:4824:host {
25 display: inline-flex;
26 flex-direction: row;
27}
28
Alex Rudenkoe4465d12021-08-09 11:37:3729button {
Alex Rudenkoe4465d12021-08-09 11:37:3730 align-items: center;
31 border-radius: 4px;
Alex Rudenkocc459b92021-08-11 13:53:4832 display: inline-flex;
33 font-family: inherit;
Alex Rudenkoe4465d12021-08-09 11:37:3734 font-size: 12px;
Alex Rudenkoe6ba3522021-10-15 06:09:4835 height: 24px;
Alex Rudenkoe4465d12021-08-09 11:37:3736 line-height: 14px;
37 padding: 5px 12px;
Alex Rudenko50b3a3e2021-09-29 11:01:4638 justify-content: center;
39 width: 100%;
Alex Rudenkocc459b92021-08-11 13:53:4840}
41
Alex Rudenko1a41fb42021-09-30 09:12:1442button.small {
43 height: 18px;
44 border-radius: 2px;
45}
46
Alex Rudenkocc459b92021-08-11 13:53:4847button:focus-visible {
48 box-shadow: 0 0 0 2px var(--color-button-outline-focus);
49}
50
51button:hover {
52 cursor: pointer;
Alex Rudenkoe4465d12021-08-09 11:37:3753}
54
Alex Rudenkoe6ba3522021-10-15 06:09:4855button.toolbar {
56 background: transparent;
57 border-radius: 2px;
58 border: none;
59 cursor: pointer;
60 height: 24px;
61 width: 24px;
62 overflow: hidden;
63 padding: 0;
64 white-space: nowrap;
65}
66
67button.toolbar.small {
68 height: 18px;
69 width: 18px;
70}
71
Alex Rudenkoe4465d12021-08-09 11:37:3772button.primary {
73 border: 1px solid var(--color-primary);
74 background: var(--color-primary);
75 color: var(--color-background);
76}
77
Alex Rudenkocc459b92021-08-11 13:53:4878button.primary:hover {
79 background: var(--color-button-primary-background-hovering);
80 border: 1px solid var(--color-button-primary-background-hovering);
Alex Rudenkoe4465d12021-08-09 11:37:3781}
82
Alex Rudenkocc459b92021-08-11 13:53:4883button.primary:active {
84 background: var(--color-button-primary-background-pressed);
85 border: 1px solid var(--color-button-primary-background-pressed);
86}
87
88button.secondary {
89 border: 1px solid var(--color-details-hairline);
90 background: var(--color-background);
91 color: var(--color-primary);
92}
93
94button.secondary:hover {
95 background: var(--color-button-secondary-background-hovering);
96}
97
98button.secondary:active {
99 background: var(--color-button-secondary-background-pressed);
100 border: 1px solid var(--color-button-secondary-background-pressed);
101}
102
103button.secondary:focus-visible {
104 border: 1px solid var(--color-background);
105}
106
Alex Rudenkodc7c9592021-09-30 09:00:55107button.secondary:active:focus-visible {
108 border: 1px solid var(--color-button-secondary-background-pressed);
109}
110
Alex Rudenkoe6ba3522021-10-15 06:09:48111button.toolbar:hover {
112 background-color: var(--color-button-secondary-background-hovering);
113}
114
115button.toolbar:active {
116 background-color: var(--color-button-secondary-background-pressed);
117}
118
119button.toolbar:focus-visible {
120 background-color: var(--color-background-elevation-2);
121}
122
Alex Rudenko50b3a3e2021-09-29 11:01:46123button.text-with-icon {
Alex Rudenkocc459b92021-08-11 13:53:48124 padding: 0 12px 0 4px;
Alex Rudenkoe4465d12021-08-09 11:37:37125}
126
Alex Rudenko1a41fb42021-09-30 09:12:14127button.small.text-with-icon {
128 padding: 0 9px 0 3px;
129}
130
Alex Rudenko50b3a3e2021-09-29 11:01:46131button.only-icon {
132 padding: 0;
133}
134
Alex Rudenkoe4465d12021-08-09 11:37:37135button devtools-icon {
136 width: 19px;
137 height: 19px;
Alex Rudenkoe4465d12021-08-09 11:37:37138}
139
Alex Rudenkoe6ba3522021-10-15 06:09:48140button.toolbar devtools-icon {
141 width: 24px;
142 height: 24px;
143
144 --icon-color: var(--color-text-primary);
Alex Rudenko1a41fb42021-09-30 09:12:14145}
146
Alex Rudenkoe4465d12021-08-09 11:37:37147button.primary devtools-icon {
148 --icon-color: var(--color-background);
149}
Alex Rudenkocc459b92021-08-11 13:53:48150
151button.secondary devtools-icon {
152 --icon-color: var(--color-primary);
153}
Alex Rudenkoe6ba3522021-10-15 06:09:48154
155button.small devtools-icon {
156 width: 14px;
157 height: 14px;
158}
159
160button.toolbar.small devtools-icon {
161 width: 18px;
162 height: 18px;
163}