MM-57093 Update SCSS, Stylelint, and related packages (#26296)

* Update Stylelint and related packages

* Autofix CSS files

* Fix scss/no-global-function-names

* Fix scss/operator-no-unspaced

* Fix scss/comment-no-empty

* Disable scss/at-extend-no-missing-placeholder

* Update libraries for loading sass

* Fix Rollup not emitting the CSS for the components package to the right place

* Add plugin to re-add stylistic Stylelint rules

* Actually import Stylelint plugin
Этот коммит содержится в:
Harrison Healey
2024-03-13 17:00:57 -04:00
коммит произвёл GitHub
родитель 4bba850090
Коммит 67f815e373
194 изменённых файлов: 1635 добавлений и 1833 удалений

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

@@ -1,7 +1,7 @@
.AdminUserCard {
padding: 0;
margin: 2em 0 1em;
border-radius: 2px;
margin: 2em 0 1em;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
.noUserBody {

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

@@ -2,8 +2,8 @@
width: 100%;
height: '463px';
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
background-color: var(--sys-center-channel-bg);
border-radius: 4px;
background-color: var(--sys-center-channel-bg);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
color: var(--sys-center-channel-color);
}
@@ -168,9 +168,9 @@
height: 32px;
padding: 7px;
border: none;
border-radius: 4px;
margin-left: 4px;
background: none;
border-radius: 4px;
> i {
font-size: 18px;

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

@@ -40,8 +40,8 @@
max-width: none;
padding: 24px;
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
background-color: var(--sys-center-channel-bg);
border-radius: 4px;
background-color: var(--sys-center-channel-bg);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
color: var(--sys-center-channel-color);
opacity: 1;
@@ -109,9 +109,9 @@
width: 100%;
padding: 13px 0;
border: none;
border-radius: 4px;
margin-top: 16px;
background: var(--button-bg);
border-radius: 4px;
box-shadow: inset 0 0 0 1px var(--sys-button-bg);
color: var(--button-color);
font-size: 14px;
@@ -170,19 +170,19 @@
.PrivateCloudCard__actionButton {
display: block;
@include fit-content;
padding: 13px 20px;
border: none;
border-radius: 4px;
margin-top: 16px;
background: var(--sys-center-channel-bg);
border-radius: 4px;
box-shadow: inset 0 0 0 1px var(--sys-button-bg);
color: var(--sys-button-bg);
font-size: 14px;
font-weight: 600;
line-height: 14px;
@include fit-content;
&:hover:not(.disabled) {
background: rgba(var(--sys-button-bg-rgb), 0.04);
text-decoration: none;
@@ -226,17 +226,17 @@
.cancelSubscriptionSection__contactUs {
display: block;
@include fit-content;
padding: 13px 20px;
margin-top: 16px;
border-radius: 4px;
margin-top: 16px;
box-shadow: inset 0 0 0 1px var(--sys-dnd-indicator);
color: var(--sys-dnd-indicator);
font-size: 12px;
font-weight: 600;
line-height: 9.5px;
@include fit-content;
&:hover:not(.disabled) {
background: rgba(var(--sys-dnd-indicator-rgb), 0.04);
color: var(--sys-dnd-indicator);

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

@@ -3,8 +3,8 @@
flex: 0 0 auto;
padding: 22px 0 42px 16px;
border: 1px solid rgba(var(--center-channel-color-rgb), 0.16);
margin-right: 8px;
border-radius: 4px;
margin-right: 8px;
&--full-width {
width: auto;

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

@@ -38,9 +38,9 @@
.btn {
padding: 11px 16px;
border-radius: 4px;
margin-right: 8px;
background: $primary-color;
border-radius: 4px;
color: $white;
font-size: 12px;
font-weight: bold;

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

@@ -1,9 +1,9 @@
@mixin cloud-card() {
padding: 32px 54px 18px 32px;
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
border-radius: 4px;
margin-top: 20px;
background-color: var(--sys-center-channel-bg);
border-radius: 4px;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
}

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

@@ -2,9 +2,9 @@
width: 332px;
padding: 28px 32px;
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
border-radius: 4px;
margin-left: 20px;
background-color: var(--sys-center-channel-bg);
border-radius: 4px;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
}
@@ -152,8 +152,8 @@
align-items: center;
justify-content: center;
padding: 11px 20px;
background: var(--sys-button-bg);
border-radius: 4px;
background: var(--sys-button-bg);
color: var(--sys-button-color);
&:hover:not(.disabled) {

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

@@ -1,7 +1,7 @@
.CompanyInfoDisplay {
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
background-color: var(--sys-center-channel-bg);
border-radius: 4px;
background-color: var(--sys-center-channel-bg);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
color: var(--sys-center-channel-color);
}
@@ -32,8 +32,8 @@
display: flex;
align-items: center;
padding: 8px 16px;
background: var(--sys-button-bg);
border-radius: 4px;
background: var(--sys-button-bg);
color: var(--sys-button-color);
&:hover:not(.disabled) {

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

@@ -1,9 +1,9 @@
.CompanyInfoEdit__card {
padding: 28px 32px;
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
border-radius: 4px;
margin-top: 20px;
background-color: var(--sys-center-channel-bg);
border-radius: 4px;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
isolation: isolate;

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

@@ -12,15 +12,15 @@
.ProcessPayment-progress {
width: 387px;
height: 4px;
border-radius: 4px;
margin: 0 auto;
margin-top: 60px;
background: rgba(var(--secondary-blue-rgb), 0.12);
border-radius: 4px;
}
.ProcessPayment-progress-fill {
height: 100%;
background: var(--button-bg);
border-radius: 4px;
background: var(--button-bg);
}
}

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

@@ -37,8 +37,8 @@
width: 600px;
height: 360px;
border: 1px solid rgba(var(--center-channel-color-rgb), 0.08);
margin: auto;
border-radius: 8px;
margin: auto;
transform: translate(-50%, -50%) !important;
.modal-header {

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

@@ -1,7 +1,7 @@
.PaymentInfoDisplay {
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
background-color: var(--sys-center-channel-bg);
border-radius: 4px;
background-color: var(--sys-center-channel-bg);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
color: var(--sys-center-channel-color);
}
@@ -32,8 +32,8 @@
display: flex;
align-items: center;
padding: 8px 16px;
background: var(--sys-button-bg);
border-radius: 4px;
background: var(--sys-button-bg);
color: var(--sys-button-color);
&:hover:not(.disabled) {
@@ -131,8 +131,8 @@
.PaymentInfoDisplay__paymentInfo-editButton {
padding: 2px;
margin-left: 12px;
border-radius: 4px;
margin-left: 12px;
color: rgba(var(--sys-center-channel-color-rgb), 0.75);
font-size: 18px;

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

@@ -1,9 +1,9 @@
.PaymentInfoEdit__card {
padding: 28px 32px;
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
border-radius: 4px;
margin-top: 20px;
background-color: var(--sys-center-channel-bg);
border-radius: 4px;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
}

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

@@ -4,8 +4,8 @@
width: 568px;
padding: 28px 32px;
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
background: var(--sys-center-channel-bg);
border-radius: 4px;
background: var(--sys-center-channel-bg);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
}
@@ -36,8 +36,8 @@
&.btn {
padding: 11px 16px;
background: $primary-color;
border-radius: 4px;
background: $primary-color;
color: $white;
font-size: 12px;
font-weight: bold;
@@ -116,9 +116,9 @@
.TrialBadge {
padding: 0 4px;
border-radius: 3px;
margin-left: 10px;
background: var(--sys-online-indicator);
border-radius: 3px;
color: #fff;
text-transform: uppercase;

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

@@ -1,3 +1,5 @@
@use 'sass:color';
@import 'utils/variables';
.DataGrid {
@@ -22,8 +24,8 @@
height: 32px;
box-sizing: border-box;
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.2);
margin-left: 8px;
border-radius: 4px;
margin-left: 8px;
input {
width: 100%;
@@ -94,7 +96,7 @@
&:hover {
border-left: 2px solid $primary-color;
background-color: lighten($primary-color, 45%);
background-color: color.adjust($primary-color, $lightness: 45%);
}
.DataGrid_cell {
@@ -215,9 +217,9 @@
flex-direction: column;
align-items: center;
padding: 8px;
border-radius: 4px;
margin-left: auto;
background: transparent;
border-radius: 4px;
color: rgba(var(--sys-center-channel-color-rgb), 0.75);
text-decoration: none;
}

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

@@ -3,8 +3,8 @@
.FeatureDiscovery {
display: grid;
padding: 20px;
background: $white;
border-radius: 8px;
background: $white;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
font-family: Open Sans;
font-style: normal;
@@ -45,9 +45,9 @@
width: 160px;
height: 48px;
padding: 14px 0;
border-radius: 4px;
margin-right: 8px;
background: $primary-color;
border-radius: 4px;
color: $white;
font-size: 16px;
font-weight: 400;

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

@@ -8,8 +8,8 @@
height: 32px;
padding: 0 10px;
border: 0;
background: var(--sys-center-channel-bg);
border-radius: 4px;
background: var(--sys-center-channel-bg);
color: var(--sys-button-bg);
font-size: 12px;
@@ -36,10 +36,10 @@
box-sizing: border-box;
padding: 16px;
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
border-radius: 4px;
margin-top: 4px;
margin-bottom: 24px;
background: var(--sys-center-channel-bg);
border-radius: 4px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
&.Filter__show {
@@ -104,8 +104,8 @@
&__control {
min-height: 32px;
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.16);
background: var(--sys-center-channel-bg);
border-radius: 4px;
background: var(--sys-center-channel-bg);
color: rgba(var(--sys-center-channel-color-rgb), 0.75);
font-size: 12px;

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

@@ -5,8 +5,8 @@
left: 50%;
width: 600px;
border: 1 px solid rgba(var(--center-channel-color-rgb), 0.08);
margin: auto;
border-radius: 12px;
margin: auto;
transform: translate(-50%, -50%) !important;
}
@@ -59,8 +59,8 @@
padding-bottom: 0;
padding-left: 32px;
border: 0;
background: var(--center-channel-bg) !important;
border-radius: 12px;
background: var(--center-channel-bg) !important;
color: var(--center-channel-color);
}
@@ -79,8 +79,8 @@
max-width: 536px;
height: 52px;
border: 1px rgba(87, 158, 255, 0.16) solid;
background: rgba(87, 158, 255, 0.08);
border-radius: 4px;
background: rgba(87, 158, 255, 0.08);
.Content {
display: flex;
@@ -155,9 +155,9 @@
flex: none;
padding: 12px 20px;
border: none;
border-radius: 4px;
margin-left: 8px;
background: var(--button-bg);
border-radius: 4px;
color: var(--sys-button-color);
font-size: 14px;
font-weight: 600;
@@ -168,8 +168,8 @@
.modal-footer {
padding: 24px 32px;
border-top: none;
border-radius: 12px;
border-top: none;
font-family: Open Sans;
font-size: 14px;
font-style: normal;
@@ -179,8 +179,8 @@
.btn-cancel {
padding: 10px 20px;
border: none;
background: var(--button-bg-8, rgba(28, 88, 217, 0.08));
border-radius: 4px;
background: var(--button-bg-8, rgba(28, 88, 217, 0.08));
color: var(--button-bg, #1c58d9);
}
@@ -193,9 +193,9 @@
padding: 10px 20px;
border: none;
border-radius: 4px;
margin-left: 8px;
background: var(--button-bg, #1c58d9);
border-radius: 4px;
color: var(--button-color, #fff);
}
}

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

@@ -5,8 +5,8 @@
left: 50%;
width: 600px;
border: 1 px solid rgba(var(--center-channel-color-rgb), 0.08);
margin: auto;
border-radius: 12px;
margin: auto;
transform: translate(-50%, -50%) !important;
}
@@ -58,8 +58,8 @@
padding-bottom: 0;
padding-left: 32px;
border: 0;
background: var(--center-channel-bg) !important;
border-radius: 12px;
background: var(--center-channel-bg) !important;
color: var(--center-channel-color);
}
@@ -81,8 +81,8 @@
.modal-footer {
padding: 24px 32px;
border-top: none;
border-radius: 12px;
border-top: none;
font-family: Open Sans;
font-size: 14px;
font-style: normal;
@@ -92,17 +92,17 @@
.btn-cancel {
padding: 10px 20px;
border: none;
background: var(--button-bg-8, rgba(28, 88, 217, 0.08));
border-radius: 4px;
background: var(--button-bg-8, rgba(28, 88, 217, 0.08));
color: var(--button-bg, #1c58d9);
}
.btn-delete {
padding: 10px 20px;
border: none;
border-radius: 4px;
margin-left: 8px;
background: var(--denim-status-do-not-disturb, #d24b4e);
border-radius: 4px;
color: var(--button-color, #fff);
}
}

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

@@ -3,8 +3,8 @@
height: auto;
max-height: 100%;
border: 1px solid rgba(var(--center-channel-color-rgb), 0.08);
background: var(--center-channel-bg);
border-radius: 4px;
background: var(--center-channel-bg);
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.08);
.TableSectionContent {
@@ -225,8 +225,8 @@
justify-content: flex-start;
padding: 10px 16px;
border: none;
background: #1c58d9;
border-radius: 4px;
background: #1c58d9;
color: #fff;
gap: 10px;
}
@@ -239,8 +239,8 @@
justify-content: flex-start;
padding: 16px;
border: 1px solid var(--error-text-16, rgba(210, 75, 78, 0.16));
background: var(--error-text-8, rgba(210, 75, 78, 0.08));
border-radius: 4px;
background: var(--error-text-8, rgba(210, 75, 78, 0.08));
gap: 12px;
.Icon {

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

@@ -24,8 +24,8 @@
justify-content: flex-start;
padding: 24px 32px;
border: 1px solid rgba(var(--center-channel-color-rgb), 0.08);
background-color: var(--center-channel-bg);
border-radius: 4px;
background-color: var(--center-channel-bg);
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.08);
gap: 24px;

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

@@ -5,8 +5,8 @@
left: 50%;
width: 600px;
border: 1 px solid rgba(var(--center-channel-color-rgb), 0.08);
margin: auto;
border-radius: 12px;
margin: auto;
transform: translate(-50%, -50%) !important;
}
@@ -58,8 +58,8 @@
padding-bottom: 0;
padding-left: 32px;
border: 0;
background: var(--center-channel-bg) !important;
border-radius: 12px;
background: var(--center-channel-bg) !important;
color: var(--center-channel-color);
}
@@ -86,9 +86,9 @@
justify-content: flex-start;
padding: 16px;
border: 1px solid rgba(87, 158, 255, 0.16);
border-radius: 4px;
margin-top: 32px;
background: rgba(87, 158, 255, 0.08);
border-radius: 4px;
gap: 12px;
.Icon {
@@ -137,8 +137,8 @@
.modal-footer {
padding: 24px 32px;
border-top: none;
border-radius: 12px;
border-top: none;
font-family: Open Sans;
font-size: 14px;
font-style: normal;
@@ -148,17 +148,17 @@
.btn-cancel {
padding: 10px 20px;
border: none;
background: var(--button-bg-8, rgba(28, 88, 217, 0.08));
border-radius: 4px;
background: var(--button-bg-8, rgba(28, 88, 217, 0.08));
color: var(--button-bg, #1c58d9);
}
.btn-delete {
padding: 10px 20px;
border: none;
border-radius: 4px;
margin-left: 8px;
background: var(--denim-status-do-not-disturb, #d24b4e);
border-radius: 4px;
color: var(--button-color, #fff);
}
}

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

@@ -37,8 +37,8 @@
button {
width: 100%;
margin: 5px auto;
border-radius: 4px;
margin: 5px auto;
}
.purchase_buttons {
@@ -99,8 +99,8 @@
.licenseInformation {
padding: 24px;
border: 1px solid rgba(63, 67, 80, 0.16);
margin: 15px 0;
border-radius: 4px;
margin: 15px 0;
.license-details-top {
display: flex;
@@ -178,9 +178,9 @@
display: block;
padding: 12px 20px;
border: 1px solid var(--sys-button-bg);
border-radius: 4px;
margin-top: 15px;
background-color: var(--sys-center-channel-bg);
border-radius: 4px;
color: var(--sys-button-bg);
span {

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

@@ -11,8 +11,8 @@
.panel-card {
padding: 28px 32px;
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
background: var(--sys-center-channel-bg);
border-radius: 4px;
background: var(--sys-center-channel-bg);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
}
}
@@ -24,8 +24,8 @@
.panel-card {
padding: 28px 32px;
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
background: var(--sys-center-channel-bg);
border-radius: 4px;
background: var(--sys-center-channel-bg);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
}
}

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

@@ -50,9 +50,9 @@
button {
height: 40px;
border-radius: 4px;
margin-top: 15px !important;
margin-left: 10px;
border-radius: 4px;
}
}

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

@@ -30,9 +30,9 @@
display: flex;
button {
border-radius: 4px;
margin-top: 15px !important;
margin-left: auto;
border-radius: 4px;
}
}

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

@@ -53,8 +53,8 @@
width: 90%;
padding: 12px;
border: 1px solid rgba(63, 67, 80, 0.32);
margin-top: 15px;
border-radius: 4px;
margin-top: 15px;
&__titleSection {
color: rgba(63, 67, 80, 0.75);
@@ -138,8 +138,8 @@
height: 48px;
padding: 5px 24px;
border: 0 !important;
margin-top: 15px !important;
border-radius: 4px;
margin-top: 15px !important;
font-size: 16px;
font-weight: 600;
line-height: 18px;

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

@@ -3,9 +3,9 @@
display: block;
padding: 12px 20px;
border: none;
border-radius: 4px;
margin-top: 15px;
background: var(--sys-button-bg);
border-radius: 4px;
color: var(--sys-button-color);
span {

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

@@ -36,8 +36,8 @@
button {
width: 100%;
margin: 5px auto;
border-radius: 4px;
margin: 5px auto;
}
.upgrade-error {

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

@@ -4,9 +4,9 @@
display: grid;
padding: 0;
border: 1px solid rgba(87, 158, 255, 0.24);
border-radius: 4px;
margin-bottom: 25px;
background-color: rgba(87, 158, 255, 0.08);
border-radius: 4px;
font-family: Open Sans;
font-style: normal;
font-weight: normal;
@@ -19,9 +19,9 @@
.btn {
width: 191px;
height: 32px;
border-radius: 4px;
margin-right: 10px;
background: $primary-color;
border-radius: 4px;
color: $white;
font-size: 12px;
font-weight: 600;
@@ -41,8 +41,8 @@
height: 32px;
align-items: center;
justify-content: center;
margin: 0 10px 0 0;
border-radius: 4px;
margin: 0 10px 0 0;
text-decoration: none;
&:hover {

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

@@ -1,7 +1,7 @@
.config-section {
border-radius: 4px;
margin-top: 20px;
background: white;
border-radius: 4px;
.admin-console__wrapper {
padding: 0;

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

@@ -18,8 +18,8 @@
.btn-inverted {
border: 2px solid var(--denim-button-bg);
background: transparent;
border-radius: 4px;
background: transparent;
color: var(--denim-button-bg);
font-weight: bold;
line-height: 12px;
@@ -27,8 +27,8 @@
.btn-dangerous {
border: 2px solid var(--dnd-indicator);
background: transparent;
border-radius: 4px;
background: transparent;
color: var(--dnd-indicator);
font-weight: bold;
line-height: 16px;

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

@@ -48,8 +48,8 @@
.MenuWrapper {
box-sizing: border-box;
background: rgba(var(--sys-center-channel-color-rgb), 0.04);
border-radius: 4px;
background: rgba(var(--sys-center-channel-color-rgb), 0.04);
.PermissionSectionDropdownButton {
display: flex;
@@ -59,8 +59,8 @@
justify-content: space-between;
padding: 1px 0 1px 4px;
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.16);
background: var(--sys-center-channel-bg);
border-radius: 4px;
background: var(--sys-center-channel-bg);
color: var(--sys-center-channel-color);
font-size: 12px;
font-style: normal;
@@ -151,8 +151,8 @@
.PermissionSection_description {
span {
padding: 0 4px;
background: rgba(var(--sys-center-channel-color-rgb), 0.08);
border-radius: 2px;
background: rgba(var(--sys-center-channel-color-rgb), 0.08);
}
margin: 0;

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

@@ -56,8 +56,8 @@
text-decoration: none;
&:hover {
background-color: $light-gray;
border-radius: 3px;
background-color: $light-gray;
}
&.warning {

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

@@ -7,8 +7,8 @@
height: 20px;
align-self: flex-start;
justify-content: center;
background: var(--online-indicator, #3db887);
border-radius: 12px;
background: var(--online-indicator, #3db887);
i {
color: var(--center-channel-bg, #fff);

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

@@ -5,9 +5,9 @@
.upgrade-options-button {
height: 38px;
padding: 9px, 16px;
border-radius: 4px;
margin-left: 16px;
background: #1c58d9;
border-radius: 4px;
color: #fff;
font-weight: 600;
}

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

@@ -73,9 +73,9 @@
align-items: center;
padding: 24px;
border: 1px solid rgba(var(--sys-denim-center-channel-text-rgb), 0.08) !important;
border-radius: 4px;
margin-left: 4px;
background: var(--sys-center-channel-bg);
border-radius: 4px;
box-shadow: var(--elevation-1);
&__scoreEllipseSvg {
@@ -200,8 +200,8 @@
height: 44px;
align-items: center;
justify-content: center;
background-color: rgba(var(--sys-denim-center-channel-text-rgb), 0.16);
border-radius: 50%;
background-color: rgba(var(--sys-denim-center-channel-text-rgb), 0.16);
&.success {
background-color: rgba(var(--sys-online-indicator-rgb), 0.16);
@@ -293,9 +293,9 @@
button {
max-height: 32px;
padding: 5px 20px !important;
border-radius: 4px !important;
margin-top: 0;
margin-right: 10px;
border-radius: 4px !important;
font-weight: 600;
}
}