2021-12-07 11:59:57 -08:00
|
|
|
/*
|
|
|
|
|
Copyright 2021 New Vector Ltd
|
|
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
.button,
|
|
|
|
|
.toolbarButton,
|
2022-02-15 12:58:55 -08:00
|
|
|
.toolbarButtonSecondary,
|
2021-12-13 12:39:29 -08:00
|
|
|
.iconButton,
|
2021-12-13 14:54:44 -08:00
|
|
|
.iconCopyButton,
|
|
|
|
|
.secondary,
|
2022-04-22 18:05:48 -07:00
|
|
|
.secondaryHangup,
|
2022-05-26 13:52:06 -04:00
|
|
|
.copyButton,
|
|
|
|
|
.dropdownButton {
|
2021-12-07 11:59:57 -08:00
|
|
|
position: relative;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
padding: 0;
|
|
|
|
|
border: none;
|
|
|
|
|
cursor: pointer;
|
2021-12-13 16:16:25 -08:00
|
|
|
text-decoration: none;
|
2021-12-14 18:24:15 -08:00
|
|
|
box-sizing: border-box;
|
2021-12-07 11:59:57 -08:00
|
|
|
}
|
|
|
|
|
|
2021-12-13 14:54:44 -08:00
|
|
|
.secondary,
|
2022-04-22 18:05:48 -07:00
|
|
|
.secondaryHangup,
|
2021-12-13 14:54:44 -08:00
|
|
|
.button,
|
|
|
|
|
.copyButton {
|
2023-05-22 12:54:26 -04:00
|
|
|
padding: 8px 20px;
|
2021-12-07 11:59:57 -08:00
|
|
|
border-radius: 8px;
|
2022-12-09 14:25:02 -05:00
|
|
|
font-size: var(--font-size-body);
|
2023-05-22 12:54:26 -04:00
|
|
|
font-weight: 600;
|
2021-12-07 11:59:57 -08:00
|
|
|
}
|
|
|
|
|
|
2021-12-13 14:54:44 -08:00
|
|
|
.button {
|
2023-08-28 16:45:17 -04:00
|
|
|
color: var(--stopgap-color-on-solid-accent);
|
|
|
|
|
background-color: var(--cpd-color-text-action-accent);
|
2021-12-13 14:54:44 -08:00
|
|
|
}
|
|
|
|
|
|
2022-01-18 16:03:49 -08:00
|
|
|
.button:focus,
|
|
|
|
|
.toolbarButton:focus,
|
2022-02-15 12:58:55 -08:00
|
|
|
.toolbarButtonSecondary:focus,
|
2022-01-18 16:03:49 -08:00
|
|
|
.iconButton:focus,
|
|
|
|
|
.iconCopyButton:focus,
|
|
|
|
|
.secondary:focus,
|
2022-04-22 18:05:48 -07:00
|
|
|
.secondaryHangup:focus,
|
2022-01-18 16:03:49 -08:00
|
|
|
.copyButton:focus {
|
|
|
|
|
outline: auto;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-10 12:26:47 +02:00
|
|
|
.toolbarButton:disabled {
|
2023-08-28 16:45:17 -04:00
|
|
|
background-color: var(--cpd-color-bg-action-primary-disabled);
|
2023-07-10 12:26:47 +02:00
|
|
|
}
|
|
|
|
|
|
2022-02-15 12:58:55 -08:00
|
|
|
.toolbarButton,
|
|
|
|
|
.toolbarButtonSecondary {
|
2021-12-07 11:59:57 -08:00
|
|
|
width: 50px;
|
|
|
|
|
height: 50px;
|
|
|
|
|
border-radius: 50px;
|
2023-08-28 16:45:17 -04:00
|
|
|
background-color: var(--cpd-color-bg-subtle-secondary);
|
2021-12-07 11:59:57 -08:00
|
|
|
}
|
|
|
|
|
|
2022-02-15 12:58:55 -08:00
|
|
|
.toolbarButton:hover,
|
|
|
|
|
.toolbarButtonSecondary:hover {
|
2023-08-28 16:45:17 -04:00
|
|
|
background-color: var(--cpd-color-bg-action-secondary-hovered);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toolbarButton:active,
|
|
|
|
|
.toolbarButtonSecondary:active {
|
|
|
|
|
background-color: var(--cpd-color-bg-action-secondary-pressed);
|
2021-12-07 11:59:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toolbarButton.on,
|
|
|
|
|
.toolbarButton.off {
|
2023-08-28 16:45:17 -04:00
|
|
|
background-color: var(--cpd-color-bg-action-primary-rest);
|
2021-12-07 11:59:57 -08:00
|
|
|
}
|
|
|
|
|
|
2022-02-15 12:58:55 -08:00
|
|
|
.toolbarButtonSecondary.on {
|
2023-08-28 16:45:17 -04:00
|
|
|
background-color: var(--cpd-color-text-success-primary);
|
2022-02-15 12:58:55 -08:00
|
|
|
}
|
|
|
|
|
|
2021-12-07 17:59:55 -08:00
|
|
|
.iconButton:not(.stroke) svg * {
|
2023-08-28 16:45:17 -04:00
|
|
|
fill: var(--cpd-color-bg-action-primary-rest);
|
2021-12-07 11:59:57 -08:00
|
|
|
}
|
|
|
|
|
|
2021-12-07 17:59:55 -08:00
|
|
|
.iconButton:not(.stroke):hover svg * {
|
2023-08-28 16:45:17 -04:00
|
|
|
fill: var(--cpd-color-icon-accent-tertiary);
|
2021-12-07 11:59:57 -08:00
|
|
|
}
|
|
|
|
|
|
2021-12-07 17:59:55 -08:00
|
|
|
.iconButton.on:not(.stroke) svg * {
|
2023-08-28 16:45:17 -04:00
|
|
|
fill: var(--cpd-color-icon-accent-tertiary);
|
2021-12-07 11:59:57 -08:00
|
|
|
}
|
|
|
|
|
|
2021-12-07 17:59:55 -08:00
|
|
|
.iconButton.on.stroke svg * {
|
2023-08-28 16:45:17 -04:00
|
|
|
stroke: var(--cpd-color-icon-accent-tertiary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.hangupButton {
|
|
|
|
|
background-color: var(--cpd-color-bg-critical-primary);
|
2021-12-07 11:59:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.hangupButton:hover {
|
2023-08-28 16:45:17 -04:00
|
|
|
background-color: var(--cpd-color-bg-critical-hovered);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toolbarButton.hangupButton svg * {
|
|
|
|
|
fill: var(--stopgap-color-on-solid-accent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toolbarButton svg *,
|
|
|
|
|
.toolbarButtonSecondary svg * {
|
|
|
|
|
fill: var(--cpd-color-icon-primary);
|
2021-12-07 11:59:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toolbarButton.on svg * {
|
2023-08-28 16:45:17 -04:00
|
|
|
fill: var(--cpd-color-icon-accent-tertiary);
|
2021-12-07 11:59:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toolbarButton.off svg * {
|
2023-08-28 16:45:17 -04:00
|
|
|
fill: var(--cpd-color-icon-on-solid-primary);
|
2021-12-07 11:59:57 -08:00
|
|
|
}
|
|
|
|
|
|
2022-02-15 12:58:55 -08:00
|
|
|
.toolbarButtonSecondary.on svg * {
|
2023-08-28 16:45:17 -04:00
|
|
|
fill: var(--stopgap-color-on-solid-accent);
|
2022-02-15 12:58:55 -08:00
|
|
|
}
|
|
|
|
|
|
2021-12-13 14:54:44 -08:00
|
|
|
.secondary,
|
2021-12-07 11:59:57 -08:00
|
|
|
.copyButton {
|
2023-08-28 16:45:17 -04:00
|
|
|
color: var(--cpd-color-text-action-accent);
|
|
|
|
|
border: 2px solid var(--cpd-color-text-action-accent);
|
2021-12-13 14:54:44 -08:00
|
|
|
background-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-22 18:05:48 -07:00
|
|
|
.secondaryHangup {
|
2023-08-28 16:45:17 -04:00
|
|
|
color: var(--cpd-color-text-critical-primary);
|
|
|
|
|
border: 2px solid var(--cpd-color-border-critical-primary);
|
2022-04-22 18:05:48 -07:00
|
|
|
background-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-04 12:31:59 -08:00
|
|
|
.copyButton.secondaryCopy {
|
2023-08-28 16:45:17 -04:00
|
|
|
color: var(--cpd-color-text-primary);
|
|
|
|
|
border-color: var(--cpd-color-border-interactive-primary);
|
2022-02-04 12:31:59 -08:00
|
|
|
}
|
|
|
|
|
|
2021-12-13 14:54:44 -08:00
|
|
|
.copyButton {
|
2021-12-07 11:59:57 -08:00
|
|
|
width: 100%;
|
|
|
|
|
height: 40px;
|
|
|
|
|
transition: border-color 250ms, background-color 250ms;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copyButton span {
|
|
|
|
|
font-weight: 600;
|
2022-12-09 14:25:02 -05:00
|
|
|
font-size: var(--font-size-body);
|
2021-12-07 11:59:57 -08:00
|
|
|
margin-right: 10px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copyButton svg {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copyButton:not(.on) svg * {
|
2023-08-28 16:45:17 -04:00
|
|
|
fill: var(--cpd-color-icon-accent-tertiary);
|
2021-12-07 11:59:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copyButton.on {
|
|
|
|
|
border-color: transparent;
|
2023-08-28 16:45:17 -04:00
|
|
|
background-color: var(--cpd-color-text-action-accent);
|
2021-12-07 11:59:57 -08:00
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copyButton.on svg * {
|
|
|
|
|
stroke: white;
|
|
|
|
|
}
|
2021-12-13 12:39:29 -08:00
|
|
|
|
2022-02-04 12:31:59 -08:00
|
|
|
.copyButton.secondaryCopy:not(.on) svg * {
|
2023-08-28 16:45:17 -04:00
|
|
|
fill: var(--cpd-color-bg-action-primary-rest);
|
2022-02-04 12:31:59 -08:00
|
|
|
}
|
|
|
|
|
|
2021-12-13 12:39:29 -08:00
|
|
|
.iconCopyButton svg * {
|
2023-08-28 16:45:17 -04:00
|
|
|
fill: var(--cpd-color-icon-accent-tertiary);
|
2021-12-13 12:39:29 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.iconCopyButton:hover svg * {
|
2023-08-28 16:45:17 -04:00
|
|
|
fill: var(--cpd-color-icon-accent-tertiary);
|
2021-12-13 12:39:29 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.iconCopyButton.on svg *,
|
|
|
|
|
.iconCopyButton.on:hover svg * {
|
|
|
|
|
fill: transparent;
|
2023-08-28 16:45:17 -04:00
|
|
|
stroke: var(--cpd-color-text-action-accent);
|
2021-12-13 12:39:29 -08:00
|
|
|
}
|
2021-12-14 16:12:58 -08:00
|
|
|
|
2022-05-26 13:52:06 -04:00
|
|
|
.dropdownButton {
|
2023-08-28 16:45:17 -04:00
|
|
|
color: var(--cpd-color-text-primary);
|
2022-05-26 13:52:06 -04:00
|
|
|
padding: 2px 8px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-28 16:45:17 -04:00
|
|
|
.dropdownButton:hover {
|
|
|
|
|
background-color: var(--cpd-color-bg-action-secondary-hovered);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdownButton:active,
|
2022-05-26 13:52:06 -04:00
|
|
|
.dropdownButton.on {
|
2023-08-28 16:45:17 -04:00
|
|
|
background-color: var(--cpd-color-bg-action-secondary-pressed);
|
2022-05-26 13:52:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdownButton svg {
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdownButton svg * {
|
2023-08-28 16:45:17 -04:00
|
|
|
fill: var(--cpd-color-icon-primary);
|
2022-05-26 13:52:06 -04:00
|
|
|
}
|
|
|
|
|
|
2021-12-14 16:12:58 -08:00
|
|
|
.lg {
|
|
|
|
|
height: 40px;
|
|
|
|
|
}
|
2022-06-09 21:56:58 +01:00
|
|
|
|
|
|
|
|
.linkButton {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
border: none;
|
2023-08-28 16:45:17 -04:00
|
|
|
color: var(--cpd-color-text-action-accent);
|
2022-06-09 21:56:58 +01:00
|
|
|
cursor: pointer;
|
|
|
|
|
}
|