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 удалений

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

@@ -1,7 +1,49 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// These mixins are from `src/sass/utils/_mixins.scss in the web app. They've been copied because rollup-plugin-sass
// that we use doesn't properly support @use.
@import '../../../../channels/src/sass/utils/mixins';
@mixin button-small {
height: 32px;
padding: 0 16px;
font-size: 12px;
line-height: 10px;
}
@mixin tertiary-button {
display: inline-flex;
align-items: center;
border: 0;
border-radius: 4px;
background: rgba(var(--button-bg-rgb), 0.08);
color: var(--button-bg);
font-weight: 600;
transition: all 0.15s ease-out;
&:disabled {
background: rgba(var(--center-channel-color-rgb), 0.08);
color: rgba(var(--center-channel-color-rgb), 0.32);
}
&:hover:enabled {
background: rgba(var(--button-bg-rgb), 0.12);
}
&:active:enabled {
background: rgba(var(--button-bg-rgb), 0.16);
}
i {
display: flex;
font-size: 18px;
&:first-child::before {
margin: 0 7px 0 0;
}
&:last-child::before {
margin: 0 0 0 7px;
}
}
}
.footer-pagination {
display: flex;

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

@@ -1,11 +1,3 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
@charset 'UTF-8';
@import '../../../../channels/src/sass/utils/variables';
@import '../../../../channels/src/sass/utils/mixins';
.console__body .modal .GenericModal,
.app__body .modal .GenericModal {
&.modal-dialog {