Skip to content

Commit

Permalink
style: add web component style prefix (#1773)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZWkang committed Apr 22, 2024
1 parent 25968f0 commit d002179
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion style/web/components/back-top/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
font-size: @font-headline-small;
}

&.t-size-m {
&.@{prefix}-size-m {
.@{prefix-block}__icon {
margin-top: 2px;
}
Expand Down
2 changes: 1 addition & 1 deletion style/web/components/badge/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
background-color: @badge-color;
line-height: @badge-height;

&.t-size-s {
&.@{prefix}-size-s {
padding-right: @badge-padding-s;
padding-left: @badge-padding-s;
min-width: @badge-min-width;
Expand Down
2 changes: 1 addition & 1 deletion style/web/components/breadcrumb/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
color: @breadcrumb-text-color-hover;
}

&.t-is-active {
&.@{prefix}-is-active {
color: @breadcrumb-text-color-hover;
}
}
Expand Down
4 changes: 2 additions & 2 deletions style/web/components/collapse/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
align-items: center;
justify-content: center;

> .t-fake-arrow {
> .@{prefix}-fake-arrow {
transform: rotate(-90deg);
transition: all @anim-duration-base @anim-time-fn-easing;
}
Expand All @@ -52,7 +52,7 @@
margin-left: @collapse-panel-header-icon-margin;
}

&--active > .t-fake-arrow {
&--active > .@{prefix}-fake-arrow {
transform: rotate(0);
}

Expand Down
4 changes: 2 additions & 2 deletions style/web/components/link/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@

font: @@font-size;

.t-link__prefix-icon {
.@{prefix}-link__prefix-icon {
margin-right: @@icon-margin-size;
display: flex;
}

.t-link__suffix-icon {
.@{prefix}-link__suffix-icon {
margin-left: @@icon-margin-size;
display: flex;
}
Expand Down
2 changes: 1 addition & 1 deletion style/web/components/notification/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
margin-left: @notification-detail-item-margin-left;
}

&__detail-item.t-is-active {
&__detail-item.@{prefix}-is-active {
color: @notification-detail-item-is-active-color;
}

Expand Down
6 changes: 3 additions & 3 deletions style/web/components/table/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@
border-top: @border;
padding: @comp-paddingTB-l @comp-paddingLR-l;

.t-button + .t-button {
.@{prefix}-button + .@{prefix}-button {
margin-left: @comp-margin-l;
}
}
Expand Down Expand Up @@ -794,7 +794,7 @@
}

.@{prefix}-table__th-row-select {
.t-table__th-cell-inner {
.@{prefix}-table__th-cell-inner {
display: inline-flex;
align-items: center;
}
Expand Down Expand Up @@ -1213,7 +1213,7 @@
}
}

.t-table .@{prefix}-table__sort-column {
.@{prefix}-table .@{prefix}-table__sort-column {
background-color: @table-sort-bg-color;
}

Expand Down
4 changes: 2 additions & 2 deletions style/web/components/transfer/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
margin-top: 0;
}

&.t-is-disabled {
&.@{prefix}-is-disabled {
&:hover {
background: @transfer-bg-color;
}
Expand Down Expand Up @@ -176,7 +176,7 @@
font-size: @transfer-operations-icon-size;
}

.t-icon + .t-button__text {
.t-icon + .@{prefix}-button__text {
margin-left: 0;
}
}
Expand Down

0 comments on commit d002179

Please sign in to comment.