Fixathon: Web app dependency updates part 2 (Sass) (#29037)

* Update sass-loader@16.0.2

* Update sass part 1 (actually update it)

* Update scss files to remove at-charset and use at-use instead of at-import

at-charset hasn't been needed since we switched to dart-sass, and
at-import is now deprecated. Most of this was done using sass-migrator.

We still use at-import for files imported from node_modules, but sass
doesn't seem to complain about that

* Inline at-extend rule that was causing an error

* Remove or inline at-use rules in components package
Этот коммит содержится в:
Harrison Healey
2024-11-15 12:23:11 -05:00
коммит произвёл GitHub
родитель 11ac1f4d19
Коммит c519bee236
176 изменённых файлов: 1325 добавлений и 1000 удалений

Просмотреть файл

@@ -433,10 +433,7 @@ for (const key of emojiFilePositions.keys()) {
cssEmojis.push(`.emoji-${key} { background-position: ${emojiFilePositions.get(key)} }`); cssEmojis.push(`.emoji-${key} { background-position: ${emojiFilePositions.get(key)} }`);
} }
const cssRules = ` const cssRules = `.emojisprite-preview {
@charset "UTF-8";
.emojisprite-preview {
width: ${EMOJI_SIZE_PADDED}px; width: ${EMOJI_SIZE_PADDED}px;
max-width: none; max-width: none;
height: ${EMOJI_SIZE_PADDED}px; height: ${EMOJI_SIZE_PADDED}px;

Просмотреть файл

@@ -1,5 +1,5 @@
@import 'utils/_mixins'; @use 'utils/_mixins' as utils-mixins;
@import './mixins'; @use 'mixins';
.BillingSubscriptions { .BillingSubscriptions {
.BillingSubscriptions__topWrapper { .BillingSubscriptions__topWrapper {
@@ -121,7 +121,7 @@
} }
.PrivateCloudCard { .PrivateCloudCard {
@include cloud-card; @include mixins.cloud-card;
display: flex; display: flex;
@@ -137,7 +137,7 @@
} }
.PrivateCloudCard__text-title { .PrivateCloudCard__text-title {
@include cloud-card-title; @include mixins.cloud-card-title;
} }
.PrivateCloudCard__text-description { .PrivateCloudCard__text-description {
@@ -165,7 +165,7 @@
font-weight: 600; font-weight: 600;
line-height: 14px; line-height: 14px;
@include fit-content; @include utils-mixins.fit-content;
&:hover:not(.disabled) { &:hover:not(.disabled) {
background: rgba(var(--sys-button-bg-rgb), 0.04); background: rgba(var(--sys-button-bg-rgb), 0.04);
@@ -219,7 +219,7 @@
font-weight: 600; font-weight: 600;
line-height: 9.5px; line-height: 9.5px;
@include fit-content; @include utils-mixins.fit-content;
&:hover:not(.disabled) { &:hover:not(.disabled) {
background: rgba(var(--sys-dnd-indicator-rgb), 0.04); background: rgba(var(--sys-dnd-indicator-rgb), 0.04);

Просмотреть файл

@@ -1,6 +1,6 @@
@import 'utils/mixins'; @use 'utils/mixins';
.upgradeLink { .upgradeLink {
@include primary-button; @include mixins.primary-button;
@include button-medium; @include mixins.button-medium;
} }

Просмотреть файл

@@ -1,8 +1,8 @@
@import 'utils/variables'; @use 'utils/variables';
@import './mixins'; @use 'mixins';
.ProductLimitsPanel { .ProductLimitsPanel {
@include cloud-card; @include mixins.cloud-card;
&--left-panel { &--left-panel {
max-width: 568px; max-width: 568px;
@@ -14,7 +14,7 @@
} }
&__title { &__title {
@include cloud-card-title; @include mixins.cloud-card-title;
padding-bottom: 8px; padding-bottom: 8px;
} }
@@ -40,8 +40,8 @@
padding: 11px 16px; padding: 11px 16px;
border-radius: 4px; border-radius: 4px;
margin-right: 8px; margin-right: 8px;
background: $primary-color; background: variables.$primary-color;
color: $white; color: variables.$white;
font-size: 12px; font-size: 12px;
font-weight: bold; font-weight: bold;
line-height: 9.5px; line-height: 9.5px;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/mixins'; @use 'utils/mixins';
.ToPaidNudgeBanner { .ToPaidNudgeBanner {
&__actions { &__actions {
@@ -8,7 +8,7 @@
&__primary { &__primary {
font-size: 12px; font-size: 12px;
@include primary-button; @include mixins.primary-button;
&:hover { &:hover {
color: var(--button-color); color: var(--button-color);
@@ -19,7 +19,7 @@
margin-left: 4px; margin-left: 4px;
font-size: 12px; font-size: 12px;
@include tertiary-button; @include mixins.tertiary-button;
&:hover { &:hover {
color: var(--button-bg); color: var(--button-bg);

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.PlanDetails { .PlanDetails {
width: 568px; width: 568px;
@@ -37,8 +37,8 @@
&.btn { &.btn {
padding: 11px 16px; padding: 11px 16px;
border-radius: 4px; border-radius: 4px;
background: $primary-color; background: variables.$primary-color;
color: $white; color: variables.$white;
font-size: 12px; font-size: 12px;
font-weight: bold; font-weight: bold;
line-height: 9.5px; line-height: 9.5px;

Просмотреть файл

@@ -1,11 +1,11 @@
@use 'sass:color'; @use 'sass:color';
@import 'utils/variables'; @use 'utils/variables';
.DataGrid { .DataGrid {
width: 100%; width: 100%;
padding: 2rem 2rem 2rem 2rem; padding: 2rem 2rem 2rem 2rem;
background: $bg--gray; background: variables.$bg--gray;
color: var(--sys-center-channel-color); color: var(--sys-center-channel-color);
.DataGrid_search { .DataGrid_search {
@@ -14,7 +14,7 @@
flex-direction: row; flex-direction: row;
padding: 0.5em 0; padding: 0.5em 0;
border-bottom: solid 1px rgba(0, 0, 0, 0.1); border-bottom: solid 1px rgba(0, 0, 0, 0.1);
background: $white; background: variables.$white;
font-weight: bold; font-weight: bold;
.DataGrid_searchBar { .DataGrid_searchBar {
@@ -43,7 +43,7 @@
position: absolute; position: absolute;
top: 5px; top: 5px;
left: 10px; left: 10px;
color: $dark-gray; color: variables.$dark-gray;
pointer-events: none; pointer-events: none;
} }
@@ -91,12 +91,12 @@
border-left: 2px solid transparent; border-left: 2px solid transparent;
&:nth-child(odd) { &:nth-child(odd) {
background-color: $bg--gray; background-color: variables.$bg--gray;
} }
&:hover { &:hover {
border-left: 2px solid $primary-color; border-left: 2px solid variables.$primary-color;
background-color: color.adjust($primary-color, $lightness: 45%); background-color: color.adjust(variables.$primary-color, $lightness: 45%);
} }
.DataGrid_cell { .DataGrid_cell {
@@ -143,7 +143,7 @@
padding: 8px; padding: 8px;
border-top: solid 1px rgba(0, 0, 0, 0.1); border-top: solid 1px rgba(0, 0, 0, 0.1);
border-bottom: solid 1px rgba(0, 0, 0, 0.1); border-bottom: solid 1px rgba(0, 0, 0, 0.1);
background: $white; background: variables.$white;
color: rgba(0, 0, 0, 0.5); color: rgba(0, 0, 0, 0.5);
font-size: 1.1em; font-size: 1.1em;
text-align: right; text-align: right;

Просмотреть файл

@@ -1,10 +1,10 @@
@import 'utils/variables'; @use 'utils/variables';
.FeatureDiscovery { .FeatureDiscovery {
display: grid; display: grid;
padding: 20px; padding: 20px;
border-radius: 8px; border-radius: 8px;
background: $white; background: variables.$white;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
font-family: Open Sans; font-family: Open Sans;
font-style: normal; font-style: normal;
@@ -47,8 +47,8 @@
padding: 14px 0; padding: 14px 0;
border-radius: 4px; border-radius: 4px;
margin-right: 8px; margin-right: 8px;
background: $primary-color; background: variables.$primary-color;
color: $white; color: variables.$white;
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
line-height: 16px; line-height: 16px;
@@ -62,8 +62,8 @@
&:disabled { &:disabled {
border-color: transparent; border-color: transparent;
background: $light-gray; background: variables.$light-gray;
color: $dark-gray; color: variables.$dark-gray;
} }
&.btn-inactive { &.btn-inactive {
@@ -72,9 +72,9 @@
} }
&.btn-secondary { &.btn-secondary {
border: 1px solid $primary-color; border: 1px solid variables.$primary-color;
background: $white; background: variables.$white;
color: $primary-color; color: variables.$primary-color;
} }
&.btn-primary { &.btn-primary {

Просмотреть файл

@@ -1,5 +1,5 @@
@import 'utils/variables'; @use 'utils/variables';
@import 'utils/mixins'; @use 'utils/mixins';
.StarterEditionRightPannel { .StarterEditionRightPannel {
.svg-image { .svg-image {
@@ -87,7 +87,7 @@
margin-left: auto; margin-left: auto;
&.btn { &.btn {
@include tertiary-button; @include mixins.tertiary-button;
} }
} }

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.RenewLicenseCard.TrialLicense { .RenewLicenseCard.TrialLicense {
.TrialLicenseCard__text-title { .TrialLicenseCard__text-title {

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.OpenIdConvert { .OpenIdConvert {
display: grid; display: grid;
@@ -21,8 +21,8 @@
height: 32px; height: 32px;
border-radius: 4px; border-radius: 4px;
margin-right: 10px; margin-right: 10px;
background: $primary-color; background: variables.$primary-color;
color: $white; color: variables.$white;
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
line-height: 9px; line-height: 9px;
@@ -46,8 +46,8 @@
text-decoration: none; text-decoration: none;
&:hover { &:hover {
background-color: $primary-color; background-color: variables.$primary-color;
color: $white; color: variables.$white;
} }
} }
} }
@@ -61,7 +61,7 @@
flex: 0 0 60px; flex: 0 0 60px;
align-items: center; align-items: center;
padding: 4 0 4px; padding: 4 0 4px;
border-top: 1px solid alpha-color($black, 0.1); border-top: 1px solid alpha-color(variables.$black, 0.1);
} }
.OpenIdConvert_copyWrapper { .OpenIdConvert_copyWrapper {

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
#SystemRolePermissions { #SystemRolePermissions {
margin-top: 0; margin-top: 0;

Просмотреть файл

@@ -1,5 +1,5 @@
@import 'utils/variables'; @use 'utils/variables';
@import 'utils/functions'; @use 'utils/functions';
.AbstractList { .AbstractList {
padding: 1rem 2rem 2rem 2rem; padding: 1rem 2rem 2rem 2rem;
@@ -19,7 +19,7 @@
} }
.AbstractList__body { .AbstractList__body {
background: $bg--gray; background: variables.$bg--gray;
.AbstractList__loading { .AbstractList__loading {
padding: 40px; padding: 40px;
@@ -28,8 +28,8 @@
.AbstractList__empty { .AbstractList__empty {
margin-top: 1rem; margin-top: 1rem;
background: alpha-color($white, 0.5); background: functions.alpha-color(variables.$white, 0.5);
color: $gray; color: variables.$gray;
font-size: 1.6rem; font-size: 1.6rem;
text-align: center; text-align: center;
@@ -50,10 +50,10 @@
justify-content: flex-end; justify-content: flex-end;
padding: 5px; padding: 5px;
border-top: solid 1px rgba(0, 0, 0, 0.1); border-top: solid 1px rgba(0, 0, 0, 0.1);
background: $white; background: variables.$white;
.btn-tertiary { .btn-tertiary {
color: $dark-gray; color: variables.$dark-gray;
&.disabled { &.disabled {
opacity: 0.5; opacity: 0.5;
@@ -62,7 +62,7 @@
.counter { .counter {
margin-bottom: 2px; margin-bottom: 2px;
color: $dark-gray; color: variables.$dark-gray;
font-size: 1.1em; font-size: 1.1em;
} }
} }

Просмотреть файл

@@ -1,8 +1,8 @@
@import 'utils/variables'; @use 'utils/variables';
.TeamRow { .TeamRow {
&:nth-child(odd) { &:nth-child(odd) {
background: alpha-color($white, 0.5); background: alpha-color(variables.$white, 0.5);
} }
} }
@@ -11,7 +11,7 @@
height: 80px; height: 80px;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
border: 2px solid $transparent; border: 2px solid variables.$transparent;
} }
.TeamRow__row .TeamRow__team-name { .TeamRow__row .TeamRow__team-name {
@@ -52,16 +52,16 @@
> a { > a {
padding: 3px 5px; padding: 3px 5px;
color: $black; color: variables.$black;
text-decoration: none; text-decoration: none;
&:hover { &:hover {
border-radius: 3px; border-radius: 3px;
background-color: $light-gray; background-color: variables.$light-gray;
} }
&.warning { &.warning {
color: $red; color: variables.$red;
} }
} }
} }

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/_mixins'; @use 'utils/_mixins';
table.systemUsersTable { table.systemUsersTable {
thead { thead {
@@ -47,7 +47,7 @@ table.systemUsersTable {
font-weight: 600; font-weight: 600;
grid-area: displayName; grid-area: displayName;
@include textEllipsis; @include mixins.textEllipsis;
.icon { .icon {
color: rgba(var(--sys-denim-center-channel-text-rgb), 0.8); color: rgba(var(--sys-denim-center-channel-text-rgb), 0.8);
@@ -58,7 +58,7 @@ table.systemUsersTable {
align-self: start; align-self: start;
grid-area: userName; grid-area: userName;
@include textEllipsis; @include mixins.textEllipsis;
} }
.error { .error {
@@ -66,7 +66,7 @@ table.systemUsersTable {
align-self: start; align-self: start;
grid-area: error; grid-area: error;
@include textEllipsis; @include mixins.textEllipsis;
// this need to be here, after textEllipsis because // this need to be here, after textEllipsis because
// we need to override white-space property coming from the mixing // we need to override white-space property coming from the mixing

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.AdvancedTextEditor__skeleton { .AdvancedTextEditor__skeleton {
display: flex; display: flex;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.contact-us { .contact-us {
display: block; display: block;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/mixins'; @use 'utils/mixins';
.overage_users_banner { .overage_users_banner {
&__description { &__description {
@@ -9,7 +9,7 @@
} }
&__button { &__button {
@include link; @include mixins.link;
background: transparent; background: transparent;
font-size: 14px; font-size: 14px;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.annnouncementBar__purchaseNow { .annnouncementBar__purchaseNow {
display: block; display: block;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.annnouncementBar__renewLicense { .annnouncementBar__renewLicense {
display: block; display: block;

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/mixins'; @use 'utils/mixins';
$app-bar-icon-size: 24px; $app-bar-icon-size: 24px;
$app-bar-width: 44px; $app-bar-width: 44px;
@@ -140,8 +140,8 @@ $app-bar-width: 44px;
padding-bottom: 36px; padding-bottom: 36px;
.app_bar__marketplace_button { .app_bar__marketplace_button {
@include icon-button; @include mixins.icon-button;
@include icon-button-small-compact; @include mixins.icon-button-small-compact;
color: rgba(var(--sidebar-text-rgb), 0.64); color: rgba(var(--sidebar-text-rgb), 0.64);

Просмотреть файл

@@ -1,6 +1,6 @@
@use 'sass:color'; @use 'sass:color';
@import 'utils/variables'; @use 'utils/variables';
#searchInput { #searchInput {
flex: none; flex: none;
@@ -11,9 +11,9 @@
height: auto; height: auto;
flex-direction: row; flex-direction: row;
padding: 8px; padding: 8px;
border: 1px solid $light-gray; border: 1px solid variables.$light-gray;
border-top: none; border-top: none;
background: $white; background: variables.$white;
color: rgba(0, 0, 0, 0.5); color: rgba(0, 0, 0, 0.5);
font-size: 1.1em; font-size: 1.1em;
text-align: right; text-align: right;

Просмотреть файл

@@ -1,5 +1,3 @@
@charset 'UTF-8';
#browseChannelsModal { #browseChannelsModal {
.modal-dialog { .modal-dialog {
margin-top: calc(45vh - 240px) !important; margin-top: calc(45vh - 240px) !important;

Просмотреть файл

@@ -1,5 +1,3 @@
@charset 'UTF-8';
.edit-category__helpText { .edit-category__helpText {
color: rgba(var(--center-channel-color-rgb), 0.75); color: rgba(var(--center-channel-color-rgb), 0.75);
font-size: 12px; font-size: 12px;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/mixins'; @use 'utils/mixins';
.CenterMessageLock { .CenterMessageLock {
display: flex; display: flex;
@@ -28,7 +28,7 @@
padding-top: 12px; padding-top: 12px;
.btn { .btn {
@include tertiary-button; @include mixins.tertiary-button;
font-size: 12px; font-size: 12px;
@@ -42,7 +42,7 @@
} }
&.is-admin { &.is-admin {
@include primary-button; @include mixins.primary-button;
&:hover, &:hover,
&:focus { &:focus {

Просмотреть файл

@@ -1,4 +1,4 @@
@import '../payment_form/mixins'; @use '../payment_form/mixins';
.shipping-address-section { .shipping-address-section {
display: flex; display: flex;
@@ -39,5 +39,5 @@
} }
.PurchaseModal .shipping-address-section { .PurchaseModal .shipping-address-section {
@include payment-form-padding; @include mixins.payment-form-padding;
} }

Просмотреть файл

@@ -1,10 +1,10 @@
@import 'utils/variables'; @use 'utils/variables';
.WorkspaceLimitLine { .WorkspaceLimitLine {
display: flex; display: flex;
align-items: center; align-items: center;
padding-bottom: 16px; padding-bottom: 16px;
font-weight: $font-weight--semibold; font-weight: variables.$font-weight--semibold;
&:last-child { &:last-child {
padding-bottom: 0; padding-bottom: 0;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.MultiSelectCard { .MultiSelectCard {
position: relative; position: relative;
@@ -12,7 +12,7 @@
border-radius: 8px; border-radius: 8px;
margin-right: 16px; margin-right: 16px;
background: var(--center-channel-bg); background: var(--center-channel-bg);
box-shadow: $elevation-3; box-shadow: variables.$elevation-3;
cursor: pointer; cursor: pointer;
list-style-type: none; list-style-type: none;
outline: 1px solid rgba(var(--center-channel-color-rgb), 0.16); outline: 1px solid rgba(var(--center-channel-color-rgb), 0.16);
@@ -21,7 +21,7 @@
&:hover, &:hover,
&:active, &:active,
&:focus { &:focus {
box-shadow: $elevation-4; box-shadow: variables.$elevation-4;
outline: 1px solid rgba(var(--center-channel-color-rgb), 0.32); outline: 1px solid rgba(var(--center-channel-color-rgb), 0.32);
} }
@@ -44,18 +44,18 @@
} }
&--checked { &--checked {
box-shadow: $elevation-2; box-shadow: variables.$elevation-2;
outline: 2px solid var(--button-bg); outline: 2px solid var(--button-bg);
&:hover, &:hover,
&:active, &:active,
&:focus { &:focus {
box-shadow: $elevation-2; box-shadow: variables.$elevation-2;
outline: 2px solid var(--button-bg); outline: 2px solid var(--button-bg);
} }
&:focus { &:focus {
box-shadow: $elevation-4; box-shadow: variables.$elevation-4;
} }
} }

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/mixins'; @use 'utils/mixins';
.do-verify-body { .do-verify-body {
display: flex; display: flex;
@@ -21,8 +21,8 @@
justify-content: center; justify-content: center;
.do-verify-body-content-button-return { .do-verify-body-content-button-return {
@include primary-button; @include mixins.primary-button;
@include button-medium; @include mixins.button-medium;
} }
} }
} }

Просмотреть файл

@@ -1,11 +1,11 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/mixins'; @use 'utils/mixins';
.external-login-button { .external-login-button {
@include secondary-button; @include mixins.secondary-button;
@include button-medium; @include mixins.button-medium;
min-width: 136px; min-width: 136px;
flex: 1 1 0%; flex: 1 1 0%;

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/mixins'; @use 'utils/mixins';
.FeatureRestrictedModal { .FeatureRestrictedModal {
&__description { &__description {
@@ -19,7 +19,7 @@
line-height: 16px; line-height: 16px;
a { a {
@include link; @include mixins.link;
} }
} }
@@ -29,20 +29,20 @@
padding: 24px 0; padding: 24px 0;
.button-plans { .button-plans {
@include tertiary-button; @include mixins.tertiary-button;
@include button-medium; @include mixins.button-medium;
} }
.button-trial { .button-trial {
@include primary-button; @include mixins.primary-button;
@include button-medium; @include mixins.button-medium;
} }
&.single { &.single {
justify-content: flex-end; justify-content: flex-end;
.button-plans { .button-plans {
@include primary-button; @include mixins.primary-button;
} }
} }
} }

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/mixins'; @use 'utils/mixins';
.alternate-link { .alternate-link {
margin-left: auto; margin-left: auto;
@@ -15,7 +15,7 @@
&__link { &__link {
padding-left: 4px; padding-left: 4px;
@include link; @include mixins.link;
} }
} }

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/mixins'; @use 'utils/mixins';
.hfroute-footer { .hfroute-footer {
display: flex; display: flex;
@@ -15,7 +15,7 @@
padding: 0 40px; padding: 0 40px;
.footer-link { .footer-link {
@include link; @include mixins.link;
color: rgba(var(--center-channel-color-rgb), 0.75); color: rgba(var(--center-channel-color-rgb), 0.75);
font-size: 11px; font-size: 11px;

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/mixins'; @use 'utils/mixins';
.hfroute-header { .hfroute-header {
position: relative; position: relative;
@@ -21,7 +21,7 @@
justify-content: space-between; justify-content: space-between;
.header-logo-link { .header-logo-link {
@include link; @include mixins.link;
display: flex; display: flex;
color: rgba(var(--center-channel-color-rgb), 0.75); color: rgba(var(--center-channel-color-rgb), 0.75);
@@ -68,7 +68,7 @@
background: none; background: none;
a { a {
@include link; @include mixins.link;
} }
} }

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/mixins'; @use 'utils/mixins';
.header-footer-route { .header-footer-route {
position: relative; position: relative;

Просмотреть файл

@@ -1,5 +1,3 @@
@charset 'UTF-8';
.info-toast { .info-toast {
position: fixed; position: fixed;
z-index: 99; z-index: 99;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.AddToChannels { .AddToChannels {
&__messageInput { &__messageInput {

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'components/toggle'; @use 'components/toggle';
.InviteAs { .InviteAs {
&__label { &__label {

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/_mixins'; @use 'utils/_mixins';
.InviteView { .InviteView {
&__sectionTitle { &__sectionTitle {

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/mixins'; @use 'utils/mixins';
.overage_users_banner { .overage_users_banner {
margin-top: 16px; margin-top: 16px;
@@ -11,7 +11,7 @@
} }
&__button { &__button {
@include link; @include mixins.link;
background: transparent; background: transparent;
font-size: 14px; font-size: 14px;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.InviteResultTable { .InviteResultTable {
width: 100%; width: 100%;

Просмотреть файл

@@ -1,5 +1,3 @@
@charset 'UTF-8';
.modal { .modal {
.shortcuts-modal { .shortcuts-modal {
width: 1100px; width: 1100px;

Просмотреть файл

@@ -1,8 +1,8 @@
@import 'utils/variables'; @use 'utils/variables';
.tooltip-container { .tooltip-container {
opacity: 0; opacity: 0;
transition: opacity $transition-quick ease-in; transition: opacity variables.$transition-quick ease-in;
visibility: hidden; visibility: hidden;
&.visible { &.visible {

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/mixins'; @use 'utils/mixins';
.login-body { .login-body {
display: flex; display: flex;
@@ -101,7 +101,7 @@
box-shadow: var(--elevation-5); box-shadow: var(--elevation-5);
&.with-error { &.with-error {
@include shake-horizontally; @include mixins.shake-horizontally;
} }
.login-body-card-content { .login-body-card-content {
@@ -144,13 +144,13 @@
margin-top: 17px; margin-top: 17px;
a { a {
@include link; @include mixins.link;
} }
} }
.login-body-card-form-button-submit { .login-body-card-form-button-submit {
@include primary-button; @include mixins.primary-button;
@include button-large; @include mixins.button-large;
width: 100%; width: 100%;
margin-top: 30px; margin-top: 30px;

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/mixins'; @use 'utils/mixins';
.login-mfa-form { .login-mfa-form {
display: flex; display: flex;
@@ -19,8 +19,8 @@
background-color: var(--center-channel-bg); background-color: var(--center-channel-bg);
.login-mfa-form-button-submit { .login-mfa-form-button-submit {
@include primary-button; @include mixins.primary-button;
@include button-large; @include mixins.button-large;
flex: 1; flex: 1;
margin: 0; margin: 0;

Просмотреть файл

@@ -1,5 +1,5 @@
@import 'utils/functions'; @use 'utils/functions';
@import 'utils/variables'; @use 'utils/variables';
.markdown-image-expand { .markdown-image-expand {
position: relative; position: relative;
@@ -18,7 +18,7 @@
border: 1px solid rgba(var(--center-channel-color-rgb), 0.16); border: 1px solid rgba(var(--center-channel-color-rgb), 0.16);
border-radius: 16px; border-radius: 16px;
background-color: var(--center-channel-bg); background-color: var(--center-channel-bg);
box-shadow: $elevation-1; box-shadow: variables.$elevation-1;
color: rgba(var(--center-channel-color-rgb), 0.64); color: rgba(var(--center-channel-color-rgb), 0.64);
font-size: 18px; font-size: 18px;
line-height: 21px; line-height: 21px;
@@ -34,7 +34,7 @@
&:hover { &:hover {
border: 1px solid rgba(var(--center-channel-color-rgb), 0.24); border: 1px solid rgba(var(--center-channel-color-rgb), 0.24);
box-shadow: $elevation-2; box-shadow: variables.$elevation-2;
} }
} }

Просмотреть файл

@@ -1,5 +1,3 @@
@charset 'UTF-8';
.no-results__holder { .no-results__holder {
display: grid; display: grid;
width: 100%; width: 100%;

Просмотреть файл

@@ -1,6 +1,3 @@
@charset 'UTF-8';
.on-boarding-video_modal { .on-boarding-video_modal {
.modal & { .modal & {
width: 100%; width: 100%;

Просмотреть файл

@@ -1,5 +1,5 @@
@import 'utils/variables'; @use 'utils/variables';
@import 'utils/mixins'; @use 'utils/mixins';
.marketplace-modal { .marketplace-modal {
width: 832px; width: 832px;
@@ -145,14 +145,14 @@
.plugin-configure, .plugin-configure,
.app-installed { .app-installed {
@include secondary-button; @include mixins.secondary-button;
@include button-medium; @include mixins.button-medium;
} }
.plugin-install, .plugin-install,
.app-install { .app-install {
@include primary-button; @include mixins.primary-button;
@include button-medium; @include mixins.button-medium;
} }
a { a {
@@ -177,7 +177,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 50%; border-radius: 50%;
background-color: $white; background-color: variables.$white;
svg, svg,
img { img {
@@ -242,7 +242,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
padding: 10px 15px; padding: 10px 15px;
border-bottom: 1px solid $light-gray; border-bottom: 1px solid variables.$light-gray;
&.clickable { &.clickable {
cursor: pointer; cursor: pointer;
@@ -273,8 +273,8 @@
} }
&__action { &__action {
@include primary-button; @include mixins.primary-button;
@include button-medium; @include mixins.button-medium;
margin-top: 30px; margin-top: 30px;
} }

Просмотреть файл

@@ -1,17 +1,15 @@
@charset "UTF-8"; @use 'utils/mixins';
@import 'utils/mixins';
.PostPriorityPicker { .PostPriorityPicker {
width: 324px; width: 324px;
&__apply { &__apply {
@include button-small; @include mixins.button-small;
@include primary-button; @include mixins.primary-button;
} }
&__cancel { &__cancel {
@include button-small; @include mixins.button-small;
@include tertiary-button; @include mixins.tertiary-button;
} }
} }

Просмотреть файл

@@ -1,10 +1,8 @@
@charset "UTF-8"; @use 'utils/mixins';
@use 'utils/variables';
@import 'utils/mixins';
@import 'utils/variables';
.AcknowledgementButton { .AcknowledgementButton {
@include button-xsmall; @include mixins.button-xsmall;
position: relative; position: relative;
display: flex; display: flex;

Просмотреть файл

@@ -1,5 +1,5 @@
@import 'utils/mixins'; @use 'utils/mixins';
@import 'utils/functions'; @use 'utils/functions';
.reaction-emoji--large img { .reaction-emoji--large img {
width: 48px; width: 48px;
@@ -10,7 +10,7 @@
} }
.Reaction { .Reaction {
@include button-style--none; @include mixins.button-style--none;
display: inline-flex; display: inline-flex;
min-width: 28px; min-width: 28px;
@@ -40,15 +40,15 @@
&:not(.Reaction--reacted) { &:not(.Reaction--reacted) {
&:hover { &:hover {
border-color: rgba(var(--center-channel-color-rgb), 0.16); border-color: rgba(var(--center-channel-color-rgb), 0.16);
background-color: v(center-channel-bg); background-color: functions.v(center-channel-bg);
color: rgba(var(--center-channel-color-rgb), 0.75); color: rgba(var(--center-channel-color-rgb), 0.75);
fill: rgba(var(--center-channel-color-rgb), 0.75); fill: rgba(var(--center-channel-color-rgb), 0.75);
} }
&:active { &:active {
background-color: rgba(var(--button-bg-rgb), 0.08); background-color: rgba(var(--button-bg-rgb), 0.08);
color: v(button-bg); color: functions.v(button-bg);
fill: v(button-bg); fill: functions.v(button-bg);
} }
} }
@@ -90,19 +90,19 @@
&.Reaction--reacted, &.Reaction--reacted,
&.Reaction--reacting { &.Reaction--reacting {
border-color: v(button-bg); border-color: functions.v(button-bg);
background-color: rgba(var(--button-bg-rgb), 0.08); background-color: rgba(var(--button-bg-rgb), 0.08);
color: v(button-bg); color: functions.v(button-bg);
&:hover { &:hover {
border-color: v(button-bg); border-color: functions.v(button-bg);
background: v(center-channel-bg); background: functions.v(center-channel-bg);
} }
&:active { &:active {
background-color: rgba(var(--button-bg-rgb), 0.08); background-color: rgba(var(--button-bg-rgb), 0.08);
color: v(button-bg); color: functions.v(button-bg);
fill: v(button-bg); fill: functions.v(button-bg);
} }
} }

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/mixins'; @use 'utils/mixins';
// UX decision to show no more than about 5 1/4 lines of users/emails at a time. // UX decision to show no more than about 5 1/4 lines of users/emails at a time.
$less-than-6-user-lines-height: 227px; $less-than-6-user-lines-height: 227px;
@@ -65,7 +65,7 @@ $less-than-6-user-lines-height: 227px;
} }
} }
@include simple-in-and-out-before("InviteMembers"); @include mixins.simple-in-and-out-before("InviteMembers");
.ChannelsPreview--enter-from-after { .ChannelsPreview--enter-from-after {
&-enter { &-enter {

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/mixins'; @use 'utils/mixins';
.InviteMembersLink { .InviteMembersLink {
display: flex; display: flex;
@@ -55,7 +55,7 @@
} }
&__button--single { &__button--single {
@include tertiary-button; @include mixins.tertiary-button;
height: 40px; height: 40px;
border-radius: 4px; border-radius: 4px;

Просмотреть файл

@@ -1,6 +1,6 @@
@import 'utils/variables'; @use 'utils/variables';
@import 'utils/mixins'; @use 'utils/mixins' as utils-mixins;
@import './mixins'; @use 'mixins';
.Organization-body { .Organization-body {
display: flex; display: flex;
@@ -23,7 +23,7 @@
.Organization { .Organization {
&__input { &__input {
@include input; @include mixins.input;
} }
&__status { &__status {
@@ -60,4 +60,4 @@
} }
} }
@include simple-in-and-out("Organization"); @include utils-mixins.simple-in-and-out("Organization");

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/mixins'; @use 'utils/mixins';
.Plugins__marketplace { .Plugins__marketplace {
margin-top: 24px; margin-top: 24px;
@@ -52,4 +52,4 @@
} }
} }
@include simple-in-and-out("Plugins"); @include mixins.simple-in-and-out("Plugins");

Просмотреть файл

@@ -1,6 +1,6 @@
@import 'utils/variables'; @use 'utils/variables';
@import 'utils/mixins'; @use 'utils/mixins' as utils-mixins;
@import 'mixins'; @use 'mixins';
.PreparingWorkspace { .PreparingWorkspace {
width: 100vw; width: 100vw;
@@ -38,7 +38,7 @@
padding: 10px; padding: 10px;
border-radius: 4px; border-radius: 4px;
background-color: var(--dnd-indicator); background-color: var(--dnd-indicator);
box-shadow: $elevation-3; box-shadow: variables.$elevation-3;
color: var(--center-channel-bg); color: var(--center-channel-bg);
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
@@ -55,15 +55,15 @@
} }
.tertiary-button { .tertiary-button {
@include tertiary-button; @include utils-mixins.tertiary-button;
@include button-medium; @include utils-mixins.button-medium;
margin-left: 16px; margin-left: 16px;
} }
.primary-button { .primary-button {
@include primary-button; @include utils-mixins.primary-button;
@include button-medium; @include utils-mixins.button-medium;
box-sizing: border-box; box-sizing: border-box;
border: 2px solid var(--button-bg); border: 2px solid var(--button-bg);
@@ -75,7 +75,7 @@
} }
.link-style { .link-style {
@include link; @include utils-mixins.link;
background: transparent; background: transparent;
font-size: 14px; font-size: 14px;
@@ -95,7 +95,7 @@
animation-fill-mode: forwards; animation-fill-mode: forwards;
animation-timing-function: ease-in-out; animation-timing-function: ease-in-out;
@include sideIllustrationKeyframe(invitation, -651, 0); @include mixins.sideIllustrationKeyframe(invitation, -651, 0);
&.enter { &.enter {
animation-name: invitationSlideInRight; animation-name: invitationSlideInRight;
@@ -138,7 +138,7 @@
@media screen and (min-width: 1200px) and (max-width: 1500px) { @media screen and (min-width: 1200px) and (max-width: 1500px) {
.PreparingWorkspace__invite-members-illustration { .PreparingWorkspace__invite-members-illustration {
@include sideIllustrationKeyframe(invitation, -651, -200); @include mixins.sideIllustrationKeyframe(invitation, -651, -200);
&.enter { &.enter {
animation-name: invitationSlideInRight; animation-name: invitationSlideInRight;

Просмотреть файл

@@ -1,7 +1,7 @@
@use 'sass:color'; @use 'sass:color';
@import 'utils/variables'; @use 'utils/variables';
@import 'utils/mixins'; @use 'utils/mixins';
.PreparingWorkspaceProgress { .PreparingWorkspaceProgress {
position: fixed; position: fixed;
@@ -25,12 +25,12 @@
height: 6px; height: 6px;
border-radius: 6px; border-radius: 6px;
margin: 5px 0; margin: 5px 0;
background: $primary-color; background: variables.$primary-color;
opacity: 0.2; opacity: 0.2;
&.active { &.active {
opacity: 1; opacity: 1;
outline: 3px solid color.adjust($primary-color, $lightness: 50%); outline: 3px solid color.adjust(variables.$primary-color, $lightness: 50%);
} }
} }

Просмотреть файл

@@ -1,5 +1,3 @@
@charset 'UTF-8';
.productNotices { .productNotices {
width: 692px; width: 692px;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/mixins'; @use 'utils/mixins';
.user-profile-popover-floating-overlay { .user-profile-popover-floating-overlay {
// 99 being the z-index of the global header // 99 being the z-index of the global header
@@ -109,7 +109,7 @@
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
line-height: 28px; line-height: 28px;
@include textEllipsis; @include mixins.textEllipsis;
} }
i.shared-user-icon { i.shared-user-icon {
@@ -129,7 +129,7 @@
padding-inline-start: 16px; padding-inline-start: 16px;
text-align: center; text-align: center;
@include textEllipsis; @include mixins.textEllipsis;
} }
hr { hr {
@@ -163,14 +163,14 @@
font-weight: 400; font-weight: 400;
line-height: 20px; line-height: 20px;
@include textEllipsis; @include mixins.textEllipsis;
} }
} }
.user-profile-popover-pluggables { .user-profile-popover-pluggables {
&:not(:empty) { &:not(:empty) {
padding: 0 16px 12px 16px; padding: 0 16px 12px 16px;
@include textEllipsis; @include mixins.textEllipsis;
} }
} }
@@ -190,7 +190,7 @@
flex-direction: column; flex-direction: column;
padding: 0 16px 12px 16px; padding: 0 16px 12px 16px;
@include textEllipsis; @include mixins.textEllipsis;
.user-popover__subtitle { .user-popover__subtitle {
display: flex; display: flex;
@@ -199,7 +199,7 @@
font-weight: 600; font-weight: 600;
gap: 4px; gap: 4px;
line-height: 16px; line-height: 16px;
@include textEllipsis; @include mixins.textEllipsis;
} }
.user-popover__subtitle-text { .user-popover__subtitle-text {

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/mixins'; @use 'utils/mixins';
.should-verify-body { .should-verify-body {
display: flex; display: flex;
@@ -27,18 +27,18 @@
justify-content: center; justify-content: center;
.should-verify-body-content-button-resend { .should-verify-body-content-button-resend {
@include tertiary-button; @include mixins.tertiary-button;
} }
.should-verify-body-content-button-return { .should-verify-body-content-button-return {
@include primary-button; @include mixins.primary-button;
margin-left: 16px; margin-left: 16px;
} }
.should-verify-body-content-button-resend, .should-verify-body-content-button-resend,
.should-verify-body-content-button-return { .should-verify-body-content-button-return {
@include button-large; @include mixins.button-large;
} }
} }

Просмотреть файл

@@ -1,6 +1,4 @@
@charset "UTF-8"; @use 'utils/variables';
@import 'utils/variables';
.nav-pills__unread-indicator { .nav-pills__unread-indicator {
position: absolute; position: absolute;
@@ -34,7 +32,7 @@
body.enable-animations & { body.enable-animations & {
transition-delay: 0s; transition-delay: 0s;
transition-duration: $transition-quick; transition-duration: variables.$transition-quick;
transition-property: opacity, visibility; transition-property: opacity, visibility;
transition-timing-function: ease-out, step-start; transition-timing-function: ease-out, step-start;
} }
@@ -63,7 +61,7 @@
body.enable-animations & { body.enable-animations & {
transition-delay: 0s; transition-delay: 0s;
transition-duration: $transition-quick; transition-duration: variables.$transition-quick;
transition-property: opacity, visibility; transition-property: opacity, visibility;
transition-timing-function: ease-out, step-start; transition-timing-function: ease-out, step-start;
} }

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/mixins'; @use 'utils/mixins';
.signup-body { .signup-body {
display: flex; display: flex;
@@ -130,7 +130,7 @@
box-shadow: var(--elevation-5); box-shadow: var(--elevation-5);
&.with-error { &.with-error {
@include shake-horizontally; @include mixins.shake-horizontally;
} }
.signup-body-card-content { .signup-body-card-content {
@@ -183,8 +183,8 @@
} }
.signup-body-card-form-button-submit { .signup-body-card-form-button-submit {
@include primary-button; @include mixins.primary-button;
@include button-large; @include mixins.button-large;
width: 100%; width: 100%;
margin-top: 30px; margin-top: 30px;
@@ -230,7 +230,7 @@
line-height: 16px; line-height: 16px;
a { a {
@include link; @include mixins.link;
font-size: 11px; font-size: 11px;
} }
@@ -273,8 +273,8 @@
justify-content: center; justify-content: center;
.signup-body-content-button-return { .signup-body-content-button-return {
@include primary-button; @include mixins.primary-button;
@include button-medium; @include mixins.button-medium;
} }
} }
} }

Просмотреть файл

@@ -1,4 +1,3 @@
@mixin leveled-bg($hover, $active) { @mixin leveled-bg($hover, $active) {
&:hover { &:hover {
&:not(:disabled) { &:not(:disabled) {

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/_mixins'; @use 'utils/_mixins';
.ThreadItem { .ThreadItem {
position: relative; position: relative;
@@ -28,7 +28,7 @@
} }
&__author { &__author {
@include clearfix; @include mixins.clearfix;
overflow: hidden; overflow: hidden;
max-width: 100%; max-width: 100%;
@@ -124,7 +124,7 @@
margin: 0 0 10px; margin: 0 0 10px;
color: rgba(var(--center-channel-color-rgb), 1); color: rgba(var(--center-channel-color-rgb), 1);
@include text-clamp(2, 20); @include mixins.text-clamp(2, 20);
} }
time { time {

Просмотреть файл

@@ -1,5 +1,5 @@
@import 'utils/variables'; @use 'utils/variables';
@import 'utils/mixins'; @use 'utils/mixins';
// since the modal is kind of tall, this makes it look more aligned to the top and the content better distributed // since the modal is kind of tall, this makes it look more aligned to the top and the content better distributed
.GenericModal.modal-dialog { .GenericModal.modal-dialog {
@@ -100,8 +100,8 @@
margin-top: 24px; margin-top: 24px;
margin-left: auto; margin-left: auto;
@include primary-button; @include mixins.primary-button;
@include button-medium; @include mixins.button-medium;
&:focus-visible { &:focus-visible {
outline: none !important; outline: none !important;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.toast { .toast {
position: absolute; position: absolute;
@@ -92,7 +92,7 @@
} }
.toast__red { .toast__red {
background-color: $red; background-color: variables.$red;
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {

Просмотреть файл

@@ -1,6 +1,3 @@
@charset 'UTF-8';
.GenericModal.CollapsedReplyThreadsModal { .GenericModal.CollapsedReplyThreadsModal {
width: 692px; width: 692px;

Просмотреть файл

@@ -1,5 +1,5 @@
@import 'utils/variables'; @use 'utils/variables';
@import 'utils/mixins'; @use 'utils/mixins';
.TrialBenefitsModalStep { .TrialBenefitsModalStep {
&.slide-container { &.slide-container {
@@ -70,16 +70,16 @@
margin-top: 10px; margin-top: 10px;
.tertiary-button { .tertiary-button {
@include tertiary-button; @include mixins.tertiary-button;
@include button-medium; @include mixins.button-medium;
height: 32px; height: 32px;
font-size: 12px; font-size: 12px;
} }
.primary-button { .primary-button {
@include primary-button; @include mixins.primary-button;
@include button-small; @include mixins.button-small;
margin-left: 8px; margin-left: 8px;
} }

Просмотреть файл

@@ -1,5 +1,3 @@
@charset 'UTF-8';
.user-groups-modal-create, .user-groups-modal-create,
.user-groups-modal-update, .user-groups-modal-update,
.view-user-groups-modal, .view-user-groups-modal,

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.AdminPanel { .AdminPanel {
padding: 0; padding: 0;
@@ -17,7 +17,7 @@
width: 100%; width: 100%;
th { th {
border-bottom: solid 1px alpha-color($black, 0.1); border-bottom: solid 1px alpha-color(variables.$black, 0.1);
} }
td, td,
@@ -37,7 +37,7 @@
justify-content: space-between; justify-content: space-between;
padding: 20px; padding: 20px;
border-radius: var(--radius-s) var(--radius-s) 0 0; border-radius: var(--radius-s) var(--radius-s) 0 0;
background: $white; background: variables.$white;
h3 { h3 {
padding: 0; padding: 0;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.ChannelsInput { .ChannelsInput {
&.empty { &.empty {

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
@import 'utils/mixins'; @use 'utils/mixins';
.url-input-main { .url-input-main {
display: flex; display: flex;
@@ -42,7 +42,7 @@
} }
.url-input-button { .url-input-button {
@include link; @include mixins.link;
padding: 0; padding: 0;
border: none; border: none;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.UsersEmailsInput { .UsersEmailsInput {

Просмотреть файл

@@ -1,5 +1,5 @@
@import 'utils/variables'; @use 'utils/variables';
@import 'utils/functions'; @use 'utils/functions';
.MenuGroup { .MenuGroup {
&.menu-divider { &.menu-divider {

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.Menu { .Menu {
.MenuHeader { .MenuHeader {
@@ -11,7 +11,7 @@
clear: both; clear: both;
color: inherit; color: inherit;
cursor: default; cursor: default;
font-weight: $font-weight--semibold; font-weight: variables.$font-weight--semibold;
text-align: left; text-align: left;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;

Просмотреть файл

@@ -1,4 +1,4 @@
@import 'utils/variables'; @use 'utils/variables';
.Menu { .Menu {
.MenuItem { .MenuItem {
@@ -394,6 +394,6 @@
} }
.MenuItem__divider { .MenuItem__divider {
border-top: $border-gray; border-top: variables.$border-gray;
margin: 8px 0; margin: 8px 0;
} }

Просмотреть файл

@@ -1,6 +1,4 @@
@charset 'UTF-8'; @use 'utils/variables';
@import 'utils/variables';
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
#submenuModal { #submenuModal {
@@ -84,7 +82,7 @@
.MenuGroup { .MenuGroup {
&.menu-divider { &.menu-divider {
background: $white; background: variables.$white;
} }
} }
} }

Просмотреть файл

@@ -1,10 +1,10 @@
@import 'utils/functions'; @use 'utils/functions';
.MenuWrapper { .MenuWrapper {
position: relative; position: relative;
*:first-child { *:first-child {
@include unselectable; @include functions.unselectable;
} }
} }

Просмотреть файл

@@ -1,5 +1,3 @@
@charset 'UTF-8';
.NotificationSeparator { .NotificationSeparator {
.separator__hr { .separator__hr {
border-color: #ffaf53; border-color: #ffaf53;

Просмотреть файл

@@ -1,6 +1,4 @@
@charset 'UTF-8'; @use 'utils/functions';
@import 'utils/functions';
.Separator { .Separator {
position: relative; position: relative;
@@ -58,8 +56,8 @@
display: inline-block; display: inline-block;
padding: 0 1em; padding: 0 1em;
border-radius: 50px; border-radius: 50px;
background: v(center-channel-bg); background: functions.v(center-channel-bg);
color: v(center-channel-color); color: functions.v(center-channel-color);
font-size: 13px; font-size: 13px;
font-weight: 700; font-weight: 700;
line-height: 2em; line-height: 2em;

Просмотреть файл

@@ -1,7 +1,5 @@
@charset 'UTF-8'; @use 'utils/mixins';
@use 'utils/variables';
@import 'utils/mixins';
@import 'utils/variables';
.TeamIcon__content { .TeamIcon__content {
display: flex; display: flex;
@@ -109,11 +107,11 @@
} }
.TeamIcon__image { .TeamIcon__image {
@include clearfix; @include mixins.clearfix;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: $white; background-color: variables.$white;
background-repeat: unset; background-repeat: unset;
background-size: 100% 100%; background-size: 100% 100%;
} }

Просмотреть файл

@@ -1,2 +1,2 @@
// Only for combining all the files in this folder // Only for combining all the files in this folder
@import 'sys_css_variables'; @use 'sys_css_variables';

Просмотреть файл

@@ -1,4 +1,4 @@
// Only for combining all the files in this folder // Only for combining all the files in this folder
@import 'typography'; @use 'typography';
@import 'structure'; @use 'structure';
@import 'css_variables'; @use 'css_variables';

Просмотреть файл

@@ -1,4 +1,5 @@
@charset 'UTF-8'; @use "utils/mixins";
@use "utils/variables";
html, html,
body { body {
@@ -8,7 +9,7 @@ body {
body { body {
position: relative; position: relative;
width: 100%; width: 100%;
background: $bg--gray; background: variables.$bg--gray;
&.sticky { &.sticky {
.container-fluid { .container-fluid {
@@ -29,7 +30,7 @@ body {
} }
.sticky { .sticky {
background: $white; background: variables.$white;
> .channel-view { > .channel-view {
overflow: auto; overflow: auto;
@@ -73,14 +74,14 @@ body {
} }
.container-fluid { .container-fluid {
@include pie-clearfix; @include mixins.pie-clearfix;
position: relative; position: relative;
height: 100%; height: 100%;
} }
.channel-view { .channel-view {
@include clearfix; @include mixins.clearfix;
position: relative; position: relative;
height: 100%; height: 100%;
@@ -102,7 +103,7 @@ body.admin-onboarding #root {
.app__body { .app__body {
#root.channel-view { #root.channel-view {
&:has(.backstage-body) { &:has(.backstage-body) {
background-color: $bg--gray; background-color: variables.$bg--gray;
} }
} }
} }

Просмотреть файл

@@ -1,4 +1,5 @@
@charset 'UTF-8'; @use "utils/mixins";
@use "utils/variables";
b, b,
strong { strong {
@@ -6,19 +7,19 @@ strong {
} }
a { a {
color: $primary-color; color: variables.$primary-color;
cursor: pointer; cursor: pointer;
text-decoration: none; text-decoration: none;
word-break: break-word; word-break: break-word;
&:focus, &:focus,
&:hover { &:hover {
color: $primary-color--hover; color: variables.$primary-color--hover;
} }
} }
.color--link { .color--link {
color: $link-color; color: variables.$link-color;
cursor: pointer; cursor: pointer;
&:hover, &:hover,
@@ -28,7 +29,7 @@ a {
} }
body { body {
@include font-smoothing; @include mixins.font-smoothing;
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
} }
@@ -49,7 +50,7 @@ h1 {
label { label {
&.has-error { &.has-error {
color: $red; color: variables.$red;
font-weight: normal; font-weight: normal;
} }
} }
@@ -227,7 +228,7 @@ ol {
.color--link--adminack { .color--link--adminack {
padding-left: 20px; padding-left: 20px;
color: $white; color: variables.$white;
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;

Просмотреть файл

@@ -1,3 +1,6 @@
@use "utils/mixins";
@use "utils/variables";
.AdminSidebarHeader { .AdminSidebarHeader {
background: #333; background: #333;
@@ -17,13 +20,13 @@
} }
.header__info { .header__info {
@include clearfix; @include mixins.clearfix;
position: relative; position: relative;
width: 100%; width: 100%;
flex-grow: 1; flex-grow: 1;
padding: 3px 15px 0 8px; padding: 3px 15px 0 8px;
color: $white; color: variables.$white;
.team__name { .team__name {
overflow: hidden; overflow: hidden;
@@ -43,7 +46,7 @@
.menu-icon { .menu-icon {
margin-right: 10px; margin-right: 10px;
fill: $white; fill: variables.$white;
opacity: 0.8; opacity: 0.8;
} }

Просмотреть файл

@@ -1,5 +1,3 @@
@charset 'UTF-8';
.alert { .alert {
padding: 8px 12px; padding: 8px 12px;
border-radius: var(--radius-s); border-radius: var(--radius-s);

Просмотреть файл

@@ -1,15 +1,15 @@
@charset 'UTF-8'; @use "utils/variables";
.announcement-bar { .announcement-bar {
display: flex; display: flex;
overflow: hidden; overflow: hidden;
width: 100vw; width: 100vw;
min-height: $announcement-bar-height; min-height: variables.$announcement-bar-height;
max-height: $announcement-bar-height; max-height: variables.$announcement-bar-height;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background-color: #579eff; background-color: #579eff;
color: $white; color: variables.$white;
text-align: center; text-align: center;
.announcement-bar__text { .announcement-bar__text {
@@ -48,7 +48,7 @@
} }
.annnouncementBar__renewLicense { .annnouncementBar__renewLicense {
border-color: $white; border-color: variables.$white;
} }
} }
@@ -66,14 +66,14 @@
top: 5px; top: 5px;
right: 0; right: 0;
padding: 0 10px; padding: 0 10px;
color: $white; color: variables.$white;
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
text-decoration: none; text-decoration: none;
&:hover { &:hover {
color: $white; color: variables.$white;
text-decoration: none; text-decoration: none;
} }
} }

Просмотреть файл

@@ -1,4 +1,4 @@
@charset 'UTF-8'; @use "utils/variables";
.style--none { .style--none {
padding: 0; padding: 0;
@@ -313,22 +313,22 @@ button {
&.btn-danger { &.btn-danger {
background: var(--error-text); background: var(--error-text);
color: $white; color: variables.$white;
.app__body & { .app__body & {
color: $white; color: variables.$white;
&:hover, &:hover,
&:focus, &:focus,
&:active { &:active {
color: $white; color: variables.$white;
} }
} }
&:hover, &:hover,
&:focus, &:focus,
&:active { &:active {
color: $white; color: variables.$white;
} }
} }
@@ -340,8 +340,8 @@ button {
&.btn-inactive { &.btn-inactive {
border-color: transparent; border-color: transparent;
background: $light-gray; background: variables.$light-gray;
color: $white; color: variables.$white;
} }
.fa { .fa {
@@ -356,7 +356,3 @@ button {
} }
} }
} }
%btn-transition {
transition: all 0.15s ease;
}

Просмотреть файл

@@ -1,3 +1,5 @@
@use "utils/functions";
.channel-header__icon { .channel-header__icon {
position: relative; position: relative;
z-index: 5; z-index: 5;
@@ -43,23 +45,23 @@
&--active.btn.btn-icon, &--active.btn.btn-icon,
&--active:hover { &--active:hover {
background: rgba(var(--button-bg-rgb), 0.08); background: rgba(var(--button-bg-rgb), 0.08);
color: v(button-bg); color: functions.v(button-bg);
fill: v(button-bg); fill: functions.v(button-bg);
.icon__text { .icon__text {
color: v(button-bg); color: functions.v(button-bg);
} }
.icon { .icon {
color: v(button-bg); color: functions.v(button-bg);
} }
} }
&--active-inverted, &--active-inverted,
&--active-inverted:hover { &--active-inverted:hover {
background: v(button-bg); background: functions.v(button-bg);
color: v(button-color); color: functions.v(button-color);
fill: v(button-color); fill: functions.v(button-color);
} }
.icon__text { .icon__text {

Просмотреть файл

@@ -1,7 +1,5 @@
@charset "UTF-8"; @use 'utils/variables';
@use 'utils/mixins';
@import 'utils/variables';
@import 'utils/mixins';
.modal .channel-invite__content, .modal .channel-invite__content,
.modal .user-groups-modal__content { .modal .user-groups-modal__content {

Просмотреть файл

@@ -1,4 +1,4 @@
@charset "UTF-8"; @use "utils/functions";
.modal { .modal {
.channel-switcher, .channel-switcher,
@@ -55,7 +55,7 @@
&:focus { &:focus {
padding: 0 33px; padding: 0 33px;
border: 1px solid v(button-bg); border: 1px solid functions.v(button-bg);
} }
} }

Просмотреть файл

@@ -1,4 +1,4 @@
@charset 'UTF-8'; @use "utils/functions";
.color-input { .color-input {
position: relative; position: relative;
@@ -21,7 +21,7 @@
padding: 5px; padding: 5px;
border-color: rgba(var(--center-channel-color-rgb), 0.32) !important; border-color: rgba(var(--center-channel-color-rgb), 0.32) !important;
border-radius: 0 2px 2px 0; border-radius: 0 2px 2px 0;
background: v(center-channel-bg) !important; background: functions.v(center-channel-bg) !important;
line-height: 0; line-height: 0;
} }

Просмотреть файл

@@ -1,3 +1,5 @@
@use "utils/functions";
.app__body { .app__body {
.DayPicker { .DayPicker {
width: 100%; width: 100%;
@@ -100,7 +102,7 @@
border: 1px solid rgba(var(--center-channel-color-rgb), 0.08); border: 1px solid rgba(var(--center-channel-color-rgb), 0.08);
border-radius: 4px; border-radius: 4px;
background: rgba(var(--center-channel-bg-rgb), 1); background: rgba(var(--center-channel-bg-rgb), 1);
box-shadow: 0 8px 24px 0 alpha-color(black, 0.12); box-shadow: 0 8px 24px 0 functions.alpha-color(black, 0.12);
& .DayPicker { & .DayPicker {
margin-top: 8px; margin-top: 8px;

Просмотреть файл

@@ -1,5 +1,3 @@
@charset "utf-8";
.dropdown-menu { .dropdown-menu {
border-radius: 4px; border-radius: 4px;
background: var(--center-channel-bg); background: var(--center-channel-bg);

Просмотреть файл

@@ -1,3 +1,5 @@
@use "utils/variables";
.edit-post-time-limit-button { .edit-post-time-limit-button {
height: 26px; height: 26px;
padding: 0 8px; padding: 0 8px;
@@ -16,8 +18,8 @@
} }
&:hover { &:hover {
border-color: $primary-color; border-color: variables.$primary-color;
background: $primary-color; background: variables.$primary-color;
color: $white; color: variables.$white;
} }
} }

Просмотреть файл

@@ -1,5 +1,3 @@
@charset "UTF-8";
.emoji-picker { .emoji-picker {
pointer-events: auto; pointer-events: auto;

Просмотреть файл

@@ -1,6 +1,3 @@
@charset "UTF-8";
.emojisprite-preview { .emojisprite-preview {
width: 66px; width: 66px;
max-width: none; max-width: none;

Просмотреть файл

@@ -1,4 +1,6 @@
@charset "UTF-8"; @use "utils/functions";
@use "utils/mixins";
@use "utils/variables";
.reacticon { .reacticon {
position: relative; position: relative;
@@ -54,7 +56,7 @@
} }
.emoticon-suggestion { .emoticon-suggestion {
@include clearfix; @include mixins.clearfix;
width: 100%; width: 100%;
height: 30px; height: 30px;
@@ -96,7 +98,7 @@
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
user-select: none; user-select: none;
@include clearfix; @include mixins.clearfix;
.emoji-picker__header { .emoji-picker__header {
background: var(--sidebar-header-bg); background: var(--sidebar-header-bg);
@@ -208,7 +210,7 @@
&:active { &:active {
color: var(--button-bg); color: var(--button-bg);
color: v(center-channel-color); color: functions.v(center-channel-color);
} }
&--selected { &--selected {
@@ -235,8 +237,8 @@
display: none; // only visible < 480px width screen display: none; // only visible < 480px width screen
width: 100%; width: 100%;
padding: 13px 10px 13px 15px; padding: 13px 10px 13px 15px;
border: 1px solid $light-gray; border: 1px solid variables.$light-gray;
background: $primary-color; background: variables.$primary-color;
color: var(--sidebar-header-text-color); color: var(--sidebar-header-text-color);
.emoji-picker__header-title { .emoji-picker__header-title {
@@ -252,7 +254,7 @@
opacity: 1; opacity: 1;
&:hover { &:hover {
background: rgba($black, 0.1); background: rgba(variables.$black, 0.1);
} }
} }
} }
@@ -361,7 +363,7 @@
border-radius: 4px; border-radius: 4px;
&:focus-within { &:focus-within {
border: 2px solid v(button-bg); border: 2px solid functions.v(button-bg);
& .emoji-picker__search-icon { & .emoji-picker__search-icon {
padding-top: 7px; padding-top: 7px;
@@ -398,19 +400,19 @@
border: none; border: none;
border-radius: 4px; border-radius: 4px;
background: none; background: none;
color: rgba(v(center-channel-color-rgb), 0.75); color: rgba(functions.v(center-channel-color-rgb), 0.75);
&:hover { &:hover {
background: rgba(v(center-channel-color-rgb), 0.08); background: rgba(functions.v(center-channel-color-rgb), 0.08);
color: rgba(v(center-channel-color-rgb), 0.75); color: rgba(functions.v(center-channel-color-rgb), 0.75);
} }
&:active, &:active,
&--active, &--active,
&--active:hover { &--active:hover {
background: rgba(var(--button-bg-rgb), 0.08); background: rgba(var(--button-bg-rgb), 0.08);
color: v(button-bg); color: functions.v(button-bg);
fill: v(button-bg); fill: functions.v(button-bg);
} }
} }

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше