Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
MM-29040 Switch center-channel-color-## to -rgb variables (#6644)
Browse files Browse the repository at this point in the history
Co-authored-by: Mattermod <[email protected]>
  • Loading branch information
anchepiece and mattermod authored Oct 13, 2020
1 parent f053053 commit 9d3db58
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions sass/components/_channel-switcher.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
padding: 0;

.close {
color: v(center-channel-color-56);
color: rgba(var(--center-channel-color-rgb), 0.56);
width: 4rem;
height: 4rem;
font-size: 32px;
Expand All @@ -44,8 +44,8 @@
border-radius: 4px;

&:hover {
background-color: v(center-channel-color-08);
color: v(center-channel-color-72);
background-color: rgba(var(--center-channel-color-rgb), 0.08);
color: rgba(var(--center-channel-color-rgb), 0.72);
}

&:active {
Expand Down Expand Up @@ -92,7 +92,7 @@

.suggestion-list {
padding-top: 0.6rem;
border-top: 1px solid v(center-channel-color-08);
border-top: 1px solid rgba(var(--center-channel-color-rgb), 0.08);
margin-top: 2.3rem;
}

Expand Down
4 changes: 2 additions & 2 deletions sass/components/_color-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
width: 24px;
height: 24px;
border-radius: 2px;
border: 1px solid v(center-channel-color-32);
border: 1px solid rgba(var(--center-channel-color-rgb), 0.32);
cursor: pointer;
}

.color-pad {
border-radius: 0 2px 2px 0;
background: v(center-channel-bg) !important;
border-color: v(center-channel-color-32) !important;
border-color: rgba(var(--center-channel-color-rgb), 0.32) !important;
padding: 5px;
line-height: 0;
}
Expand Down
4 changes: 2 additions & 2 deletions sass/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@
.app__body {
.form-control {
color: v(center-channel-color);
border-color: v(center-channel-color-16);
border-color: rgba(var(--center-channel-color-rgb), 0.16);

&:focus {
border-color: v(center-channel-color-40);
border-color: rgba(var(--center-channel-color-rgb), 0.40);
}

&.inline {
Expand Down
4 changes: 2 additions & 2 deletions sass/components/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
.modal {
.modal-content {
background: v(center-channel-bg);
border-color: v(center-channel-color-16);
border-color: rgba(var(--center-channel-color-rgb), 0.16);
color: v(center-channel-color);
}
}
Expand Down Expand Up @@ -813,7 +813,7 @@
}

&.more-modal__row--selected {
background: v(center-channel-color-08);
background: rgba(var(--center-channel-color-rgb), 0.08);

.more-modal__actions--round {
opacity: .5;
Expand Down

0 comments on commit 9d3db58

Please sign in to comment.