Revert "Use Compound primary colors for most actions" (#12264)
* Revert ed5ef023b2
* Update failing snapshots
* Update snapshots after develop merge
This commit is contained in:
parent
d20e9e4f8e
commit
96a33b800a
87 changed files with 99 additions and 104 deletions
|
@ -21,8 +21,7 @@ limitations under the License.
|
|||
list-style: none;
|
||||
font-weight: var(--cpd-font-weight-semibold);
|
||||
cursor: pointer;
|
||||
color: var(--cpd-color-text-primary);
|
||||
text-decoration: underline;
|
||||
color: $accent;
|
||||
width: fit-content;
|
||||
|
||||
/* list-style doesn't do it for webkit */
|
||||
|
|
|
@ -60,6 +60,7 @@ limitations under the License.
|
|||
|
||||
a,
|
||||
.mx_AccessibleButton_kind_link {
|
||||
color: $accent;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
@ -131,7 +132,7 @@ limitations under the License.
|
|||
|
||||
.mx_StyledRadioButton_checked {
|
||||
font-size: 24px;
|
||||
border-color: var(--cpd-color-bg-action-primary-rest);
|
||||
border-color: $accent;
|
||||
}
|
||||
|
||||
&::after {
|
||||
|
|
|
@ -71,7 +71,7 @@ limitations under the License.
|
|||
|
||||
.mx_AccessibleButton_hasKind {
|
||||
&.mx_AccessibleButton_kind_link {
|
||||
font: var(--cpd-font-body-md-semibold);
|
||||
font: var(--cpd-font-body-md-regular);
|
||||
margin: 7px 18px;
|
||||
|
||||
&.mx_SettingsTab_showAdvanced {
|
||||
|
|
|
@ -396,7 +396,7 @@ limitations under the License.
|
|||
left: $spacing-8;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background: var(--cpd-color-icon-primary);
|
||||
background: $accent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ limitations under the License.
|
|||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font: var(--cpd-font-body-md-semibold);
|
||||
font: var(--cpd-font-body-md-regular);
|
||||
border: none; /* override default <button /> styles */
|
||||
word-break: keep-all; /* prevent button text in Chinese/Japanese/Korean (CJK) from being collapsed */
|
||||
|
||||
|
@ -53,23 +53,21 @@ limitations under the License.
|
|||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_primary_sm {
|
||||
color: var(--cpd-color-text-on-solid-primary);
|
||||
background-color: var(--cpd-color-bg-action-primary-rest);
|
||||
color: $button-primary-fg-color;
|
||||
background-color: $accent;
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_danger_sm {
|
||||
color: var(--cpd-color-text-on-solid-primary);
|
||||
background-color: var(--cpd-color-bg-critical-primary);
|
||||
color: $button-danger-fg-color;
|
||||
background-color: $alert;
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_link_sm {
|
||||
color: var(--cpd-color-text-primary);
|
||||
text-decoration: underline;
|
||||
font-weight: var(--cpd-font-weight-semibold);
|
||||
color: $accent;
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_confirm_sm {
|
||||
background-color: var(--cpd-color-bg-action-primary-rest);
|
||||
background-color: $accent;
|
||||
|
||||
&::before {
|
||||
mask-image: url("$(res)/img/feather-customised/check.svg");
|
||||
|
@ -77,7 +75,7 @@ limitations under the License.
|
|||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_cancel_sm {
|
||||
background-color: var(--cpd-color-bg-critical-primary);
|
||||
background-color: $alert;
|
||||
|
||||
&::before {
|
||||
mask-image: url("$(res)/img/feather-customised/x.svg");
|
||||
|
@ -101,22 +99,26 @@ limitations under the License.
|
|||
font-weight: var(--cpd-font-weight-semibold);
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_icon_primary,
|
||||
&.mx_AccessibleButton_kind_icon_primary_outline,
|
||||
&.mx_AccessibleButton_kind_primary,
|
||||
&.mx_AccessibleButton_kind_primary_outline {
|
||||
border: 1px solid $accent;
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_icon_primary,
|
||||
&.mx_AccessibleButton_kind_primary {
|
||||
border: 1px solid var(--cpd-color-bg-action-primary-rest);
|
||||
color: var(--cpd-color-text-on-solid-primary);
|
||||
background-color: var(--cpd-color-bg-action-primary-rest);
|
||||
color: $button-primary-fg-color;
|
||||
background-color: $accent;
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_icon_primary_outline,
|
||||
&.mx_AccessibleButton_kind_primary_outline {
|
||||
border: 1px solid var(--cpd-color-border-interactive-secondary);
|
||||
color: var(--cpd-color-text-primary);
|
||||
color: $accent;
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_secondary {
|
||||
color: var(--cpd-color-text-primary);
|
||||
text-decoration: underline;
|
||||
color: $accent;
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_secondary_content {
|
||||
|
@ -124,30 +126,30 @@ limitations under the License.
|
|||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_danger {
|
||||
color: var(--cpd-color-text-on-solid-primary);
|
||||
background-color: var(--cpd-color-bg-critical-primary);
|
||||
color: $button-danger-fg-color;
|
||||
background-color: $alert;
|
||||
|
||||
&.mx_AccessibleButton_disabled {
|
||||
color: var(--cpd-color-text-on-solid-primary);
|
||||
background-color: var(--cpd-color-bg-critical-primary);
|
||||
color: $button-danger-disabled-fg-color;
|
||||
background-color: $button-danger-disabled-bg-color;
|
||||
}
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_danger_outline {
|
||||
color: var(--cpd-color-text-critical-primary);
|
||||
color: $alert;
|
||||
background-color: transparent;
|
||||
border: 1px solid var(--cpd-color-border-critical-primary);
|
||||
border: 1px solid $alert;
|
||||
|
||||
&.mx_AccessibleButton_disabled {
|
||||
color: var(--cpd-color-text-disabled);
|
||||
border-color: var(--cpd-color-border-disabled);
|
||||
color: $button-danger-disabled-bg-color;
|
||||
border-color: $button-danger-disabled-bg-color;
|
||||
}
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_danger_sm {
|
||||
&.mx_AccessibleButton_disabled {
|
||||
color: var(--cpd-color-text-disabled);
|
||||
background-color: var(--cpd-color-bg-subtle-primary);
|
||||
color: $button-danger-disabled-fg-color;
|
||||
background-color: $button-danger-disabled-bg-color;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -156,19 +158,18 @@ limitations under the License.
|
|||
&.mx_AccessibleButton_kind_danger_inline,
|
||||
&.mx_AccessibleButton_kind_content_inline {
|
||||
font-size: inherit;
|
||||
font-weight: var(--cpd-font-weight-semibold);
|
||||
font-weight: normal;
|
||||
line-height: inherit;
|
||||
padding: 0;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_link,
|
||||
&.mx_AccessibleButton_kind_link_inline {
|
||||
color: var(--cpd-color-text-primary);
|
||||
color: $accent;
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_danger_inline {
|
||||
color: var(--cpd-color-text-critical-primary);
|
||||
color: $alert;
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_content_inline {
|
||||
|
|
|
@ -19,10 +19,10 @@ progress.mx_ProgressBar {
|
|||
width: 60px;
|
||||
overflow: hidden;
|
||||
appearance: none;
|
||||
border: var(--cpd-border-width-1) solid var(--cpd-color-gray-400);
|
||||
border: none;
|
||||
|
||||
@mixin ProgressBarBorderRadius 6px;
|
||||
@mixin ProgressBarColour var(--cpd-color-icon-accent-tertiary);
|
||||
@mixin ProgressBarColour $accent;
|
||||
@mixin ProgressBarBgColour $progressbar-bg-color;
|
||||
::-webkit-progress-value {
|
||||
transition: width 1s;
|
||||
|
|
|
@ -25,8 +25,6 @@ limitations under the License.
|
|||
white-space: nowrap; /* Enforce 'In reply to' to be a single line */
|
||||
color: $secondary-content;
|
||||
transition: color ease 0.15s;
|
||||
font-weight: var(--cpd-font-weight-normal);
|
||||
text-decoration: inherit;
|
||||
|
||||
&:hover {
|
||||
color: $primary-content;
|
||||
|
|
|
@ -26,7 +26,7 @@ limitations under the License.
|
|||
background: none;
|
||||
font-size: 1em; /* set base multiplier for em units applied later */
|
||||
|
||||
--active-color: var(--cpd-color-bg-action-primary-rest);
|
||||
--active-color: $accent;
|
||||
--selection-dot-size: 2.4em;
|
||||
|
||||
&:disabled {
|
||||
|
|
|
@ -42,7 +42,7 @@ limitations under the License.
|
|||
height: $size;
|
||||
width: $size;
|
||||
size: 0.5rem;
|
||||
border: 1px solid var(--cpd-color-border-interactive-primary);
|
||||
border: 1px solid $strong-input-border-color;
|
||||
box-sizing: border-box;
|
||||
border-radius: $border-radius;
|
||||
|
||||
|
@ -80,12 +80,12 @@ limitations under the License.
|
|||
|
||||
.mx_Checkbox.mx_Checkbox_kind_solid input[type="checkbox"] {
|
||||
& + label > .mx_Checkbox_background .mx_Checkbox_checkmark {
|
||||
background: var(--cpd-color-icon-on-solid-primary);
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
&:checked + label > .mx_Checkbox_background {
|
||||
background: var(--cpd-color-bg-action-primary-rest);
|
||||
border-color: var(--cpd-color-bg-action-primary-rest);
|
||||
background: $accent;
|
||||
border-color: $accent;
|
||||
}
|
||||
|
||||
&:checked:disabled + label > .mx_Checkbox_background {
|
||||
|
@ -95,11 +95,11 @@ limitations under the License.
|
|||
|
||||
.mx_Checkbox.mx_Checkbox_kind_outline input[type="checkbox"] {
|
||||
& + label > .mx_Checkbox_background .mx_Checkbox_checkmark {
|
||||
background: var(--cpd-color-bg-action-primary-rest);
|
||||
background: $accent;
|
||||
}
|
||||
|
||||
&:checked + label > .mx_Checkbox_background {
|
||||
background: transparent;
|
||||
border-color: var(--cpd-color-bg-action-primary-rest);
|
||||
border-color: $accent;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,8 +20,8 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
.mx_StyledRadioButton {
|
||||
$radio-circle-color: var(--cpd-color-border-interactive-primary);
|
||||
$active-radio-circle-color: var(--cpd-color-bg-action-primary-rest);
|
||||
$radio-circle-color: $strong-input-border-color;
|
||||
$active-radio-circle-color: $accent;
|
||||
position: relative;
|
||||
|
||||
display: flex;
|
||||
|
@ -126,5 +126,5 @@ limitations under the License.
|
|||
}
|
||||
|
||||
.mx_StyledRadioButton_checked {
|
||||
border-color: var(--cpd-color-bg-action-primary-rest);
|
||||
border-color: $accent;
|
||||
}
|
||||
|
|
|
@ -16,9 +16,8 @@ limitations under the License.
|
|||
|
||||
.mx_AliasSettings_localAddresses {
|
||||
cursor: pointer;
|
||||
color: var(--cpd-color-text-primary);
|
||||
color: $accent;
|
||||
font-weight: var(--cpd-font-weight-semibold);
|
||||
text-decoration: underline;
|
||||
list-style: none;
|
||||
width: fit-content;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ limitations under the License.
|
|||
padding: 3px 6px;
|
||||
|
||||
&:focus {
|
||||
border-color: var(--cpd-color-border-interactive-primary);
|
||||
border-color: $accent-500;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
.mx_EmojiButton {
|
||||
@mixin composerButton 50%, var(--cpd-color-icon-secondary), var(--cpd-color-bg-subtle-secondary);
|
||||
@mixin composerButton 50%, $accent, $accent-300;
|
||||
}
|
||||
|
||||
.mx_EmojiButton_highlight {
|
||||
|
|
|
@ -240,7 +240,7 @@ $left-gutter: 64px;
|
|||
> .mx_EventTile_line {
|
||||
/* TODO: ultimately we probably want some transition on here. */
|
||||
box-shadow: inset var(--EventTile-box-shadow-offset-x) 0 0 var(--EventTile-box-shadow-spread-radius)
|
||||
var(--cpd-color-bg-action-primary-rest);
|
||||
$accent;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -191,7 +191,7 @@ limitations under the License.
|
|||
}
|
||||
|
||||
.mx_MessageComposer_button {
|
||||
@mixin composerButton 50%, var(--cpd-color-icon-secondary), var(--cpd-color-bg-subtle-secondary);
|
||||
@mixin composerButton 50%, $accent, $accent-300;
|
||||
|
||||
&:last-child {
|
||||
margin-right: auto;
|
||||
|
@ -199,11 +199,11 @@ limitations under the License.
|
|||
|
||||
&.mx_MessageComposer_closeButtonMenu {
|
||||
&::after {
|
||||
background: var(--cpd-color-bg-subtle-primary);
|
||||
background: $accent-300;
|
||||
}
|
||||
|
||||
&::before {
|
||||
background-color: var(--cpd-color-icon-primary);
|
||||
background-color: $accent;
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
|
@ -295,7 +295,7 @@ limitations under the License.
|
|||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 100%;
|
||||
background-color: var(--cpd-color-icon-accent-tertiary);
|
||||
background-color: $accent;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
|
@ -309,7 +309,7 @@ limitations under the License.
|
|||
mask-size: contain;
|
||||
mask-position: center;
|
||||
|
||||
background-color: var(--cpd-color-icon-on-solid-primary);
|
||||
background-color: $button-fg-color;
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,8 +49,6 @@ limitations under the License.
|
|||
|
||||
.mx_RoomInfoLine_members {
|
||||
color: inherit;
|
||||
text-decoration: inherit;
|
||||
font-weight: inherit;
|
||||
|
||||
&::before {
|
||||
content: "·"; /* visual separator */
|
||||
|
|
|
@ -30,8 +30,8 @@ limitations under the License.
|
|||
width: 4px;
|
||||
height: 4px;
|
||||
border-radius: 16px;
|
||||
background-color: var(--cpd-color-bg-canvas-default);
|
||||
border: 6px solid var(--cpd-color-icon-primary);
|
||||
background-color: $secondary-accent-color;
|
||||
border: 6px solid $accent;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ limitations under the License.
|
|||
}
|
||||
|
||||
&.mx_LayoutSwitcher_RadioButton_selected {
|
||||
border-color: var(--cpd-color-bg-action-primary-rest);
|
||||
border-color: $accent;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ limitations under the License.
|
|||
}
|
||||
|
||||
.mx_StyledRadioButton_checked {
|
||||
background-color: var(--cpd-color-bg-subtle-secondary);
|
||||
background-color: $accent-200;
|
||||
}
|
||||
|
||||
.mx_EventTile {
|
||||
|
|
|
@ -56,7 +56,7 @@ limitations under the License.
|
|||
margin-bottom: $spacing-28;
|
||||
|
||||
> .mx_AccessibleButton_kind_link {
|
||||
font: var(--cpd-font-body-md-semibold);
|
||||
font: var(--cpd-font-body-md-regular);
|
||||
margin-inline-end: 10px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ limitations under the License.
|
|||
content: "";
|
||||
position: absolute;
|
||||
inset: -2px;
|
||||
background: var(--cpd-color-icon-accent-tertiary);
|
||||
background: $accent;
|
||||
border-radius: 32px;
|
||||
|
||||
animation-duration: 300ms;
|
||||
|
@ -75,7 +75,7 @@ limitations under the License.
|
|||
}
|
||||
|
||||
&::after {
|
||||
background-color: var(--cpd-color-icon-on-solid-primary);
|
||||
background-color: $background;
|
||||
content: "";
|
||||
mask-repeat: no-repeat;
|
||||
mask-position: center;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue