Skip to content

Commit

Permalink
feat(style): prettier less files
Browse files Browse the repository at this point in the history
  • Loading branch information
hankliu62 committed Apr 22, 2024
1 parent d2b4916 commit 9ee05c9
Show file tree
Hide file tree
Showing 21 changed files with 410 additions and 410 deletions.
7 changes: 3 additions & 4 deletions components/back-top/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
width: 40px;
height: 40px;
padding-top: 8px;
color: #fff;
font-size: 24px;
text-align: center;
border-radius: 50%;
color: #fff;
background-color: @color-border-dark;
border-radius: 50%;
box-shadow: @box-shadow-3;
&:hover
{
&:hover {
background-color: @primary-color;
}
}
Expand Down
16 changes: 5 additions & 11 deletions components/badge/style/index.less
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
@import '~antd4x/lib/badge/style/index-pure.less';
@import '../../style/themes/variable';


.@{ant-prefix}-badge-count,
.@{ant-prefix}-badge-dot
{
.@{ant-prefix}-badge-dot {
background-color: @color-danger;
}

.@{ant-prefix}-badge-count-status-default .@{ant-prefix}-badge-count
{
.@{ant-prefix}-badge-count-status-default .@{ant-prefix}-badge-count {
background-color: @normal-color;
}
.@{ant-prefix}-badge-count-status-success .@{ant-prefix}-badge-count
{
.@{ant-prefix}-badge-count-status-success .@{ant-prefix}-badge-count {
background-color: @color-success;
}

.@{ant-prefix}-badge-count-status-warning .@{ant-prefix}-badge-count
{
.@{ant-prefix}-badge-count-status-warning .@{ant-prefix}-badge-count {
background-color: @color-warning;
}

.@{ant-prefix}-badge-count-status-processing .@{ant-prefix}-badge-count
{
.@{ant-prefix}-badge-count-status-processing .@{ant-prefix}-badge-count {
background-color: @color-progress;
}
6 changes: 3 additions & 3 deletions components/button/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ a.@{ant-prefix}-btn-medium {
height: 28px;
padding: 0px 10px;
font-size: 14px;
border-radius:@btn-border-radius-smedium;
border-radius: @btn-border-radius-smedium;
}
.@{ant-prefix}-btn-icon-only.@{ant-prefix}-btn-smedium {
width: 28px;
Expand All @@ -60,14 +60,14 @@ a.@{ant-prefix}-btn-medium {
border-radius: 50%;
}
.@{ant-prefix}-btn-group-smedium > .@{ant-prefix}-btn:only-child {
border-radius:@btn-border-radius-smedium;
border-radius: @btn-border-radius-smedium;
}
.@{ant-prefix}-btn-group-smedium > span:only-child > .@{ant-prefix}-btn {
border-radius: @btn-border-radius-smedium;
}
.@{ant-prefix}-btn-group-smedium > .@{ant-prefix}-btn:first-child:not(:last-child),
.@{ant-prefix}-btn-group-smedium > span:first-child:not(:last-child) > .@{ant-prefix}-btn {
border-top-left-radius:@btn-border-radius-smedium;
border-top-left-radius: @btn-border-radius-smedium;
border-bottom-left-radius: @btn-border-radius-smedium;
}
.@{ant-prefix}-btn-group-smedium > .@{ant-prefix}-btn:last-child:not(:first-child),
Expand Down
34 changes: 15 additions & 19 deletions components/check-card/style/index.less
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
@import '~antd4x/lib/carousel/style/index-pure.less';
@import '../../style/themes/variable';

// :export {
// antPrefix: @ant-prefix
// }

.@{ant-prefix}-check-card {
position: relative;
border-radius: @border-radius-small;
Expand All @@ -14,11 +10,11 @@
border-color: @color-border;
box-shadow: none;
&:hover {
border-color: var(--color-primary-light,#7febd3);
border-color: var(--color-primary-light, #7febd3);
}
}
&.@{ant-prefix}-checked {
border-color: var(--color-primary-light,#7febd3);
border-color: var(--color-primary-light, #7febd3);
}
&.@{ant-prefix}-usable {
cursor: pointer;
Expand All @@ -33,42 +29,42 @@
.@{ant-prefix}-check-card-icon {
position: absolute;
z-index: 9;
background-color: rgba(221, 221, 221, 0.8);
text-align: center;
overflow: hidden;
color: transparent;
text-align: center;
background-color: rgba(221, 221, 221, 0.8);
&.@{ant-prefix}-checked {
color: #fff;
background-color: var(--color-primary,#0cc5ae);
background-color: var(--color-primary, #0cc5ae);
}
&.@{ant-prefix}-disabled {
background-color: rgba(221, 221, 221, 0.9);
}
&.@{ant-prefix}-type-circle {
top: 5px;
right: 5px;
border-radius: 50%;
border: solid white 1px;
box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 5px 0px;
width: 26px;
height: 26px;
line-height: 24px;
font-size: 16px;
line-height: 24px;
border: solid white 1px;
border-radius: 50%;
box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 5px 0px;
&.@{ant-prefix}-size-small {
top: 2px;
right: 2px;
width: 22px;
height: 22px;
line-height: 20px;
font-size: 12px;
line-height: 20px;
}
&.@{ant-prefix}-size-large {
top: 12px;
right: 12px;
width: 30px;
height: 30px;
line-height: 28px;
font-size: 18px;
line-height: 28px;
}
}
&.@{ant-prefix}-type-round {
Expand All @@ -81,23 +77,23 @@
&.@{ant-prefix}-size-small {
width: 18px;
height: 18px;
line-height: 16px;
font-size: 12px;
line-height: 16px;
border-bottom-left-radius: 5px;
}
&.@{ant-prefix}-size-default {
width: 22px;
height: 22px;
line-height: 1em;
font-size: 14px;
padding-top: 3px;
font-size: 14px;
line-height: 1em;
border-bottom-left-radius: 7px;
}
&.@{ant-prefix}-size-large {
width: 26px;
height: 26px;
line-height: 24px;
font-size: 16px;
line-height: 24px;
border-bottom-left-radius: 9px;
}
}
Expand Down
67 changes: 36 additions & 31 deletions components/check-list/style/index.less
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
@import '../../style/themes/variable';
@import '../../style/mixins/clearfix.less';

// checklist
.@{ant-prefix}-checklist {
&-list-item {
margin-top: 8px;
display: flex;
align-items: flex-start;
margin-top: 8px;
&:first-child {
margin-top: 0;
}
&-item-title {
flex: 1;
.@{ant-prefix}-checkbox-wrapper {
display: block;
position: relative;
display: block;
padding-left: 16px;
.@{ant-prefix}-checkbox {
position: absolute;
left: 0;
top: 3px;
left: 0;
}
.@{ant-prefix}-checkbox + span {
display: block;
}
}
}
&-item-subtitle {
color: @color-text-light;
font-size: 12px;
line-height: 23px;
color: @color-text-light;
}
}
&-more {
Expand All @@ -38,25 +39,26 @@
color: @color-text-light;
cursor: pointer;
&:hover {
color:@primary-color;
color: @primary-color;
}
}
}

// end

.@{ant-prefix}-head-subtitle {
font-size: 12px;
position: absolute;
right: 20px;
top: 0px;
right: 20px;
bottom: 0;
height: 1em;
margin: auto;
color: @color-text-light;
font-size: 12px;
line-height: 1;
height: 1em;
}
.@{ant-prefix}-checklist-group, .@{ant-prefix}-checklist-groups {
.@{ant-prefix}-checklist-group,
.@{ant-prefix}-checklist-groups {
.check-list {
padding-left: 18px;
}
Expand All @@ -79,24 +81,27 @@
color: @color-text-light;
cursor: pointer;
&:hover {
color:@primary-color;
color: @primary-color;
}
}

.@{ant-prefix}-checklist-groups.hlui-collapse , .hlui-checklist-group.hlui-collapse {
border: none;
.@{ant-prefix}-checklist-groups.hlui-collapse,
.hlui-checklist-group.hlui-collapse {
background-color: transparent;
border: none;
& > .hlui-collapse-item > .hlui-collapse-header {
padding: 2px 12px 2px 0;
}
.hlui-collapse-content > .hlui-collapse-content-box {
padding: 6px 34px;
}
.hlui-collapse-item {
padding-bottom: 0;
margin: 6px 0;
padding-bottom: 0;
}
.hlui-collapse-item, .hlui-collapse-header, .hlui-collapse-content {
.hlui-collapse-item,
.hlui-collapse-header,
.hlui-collapse-content {
border: none;
}
}
Expand All @@ -110,28 +115,30 @@
// z-index: 99;
&.scrolled {
padding: 0 24px;
.scroll-left, .scroll-right {
.scroll-left,
.scroll-right {
display: flex;
}
}
.rows-scroll {
overflow: hidden;
position: relative;
overflow: hidden;
}
.scroll-left, .scroll-right {
display: none;
z-index: 9;
.scroll-left,
.scroll-right {
position: absolute;
top: 0;
bottom: 0;
font-size: 16px;
width: 24px;
z-index: 9;
display: none;
// display: flex;
align-items: center;
justify-content: center;
width: 24px;
font-size: 16px;
cursor: pointer;
&:hover {
color:@primary-color;
color: @primary-color;
}
}
.scroll-left {
Expand All @@ -143,27 +150,27 @@
// background: linear-gradient(to left, #FFFFFF 50px, rgba(255, 255, 255, 0) 100%);
}
.rows-inner {
white-space: nowrap;
display: inline-block;
white-space: nowrap;
transform: translate3d(0, 0, 0);
transition: all 400ms;
}
.row-item {
padding: 8px;
display: inline-block;
white-space: nowrap;
position: relative;
display: inline-block;
padding: 8px;
padding-right: 30px;
white-space: nowrap;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
.anticon-icon-expand {
position: absolute;
top: 0;
bottom: 0;
right: 8px;
margin: auto;
bottom: 0;
width: 1em;
height: 1em;
margin: auto;
transform: rotateZ(0deg);
transition: all 400ms;
}
Expand All @@ -177,10 +184,9 @@

.@{ant-prefix}-checklist-drop {
position: absolute;
left: 0;
right: 0;
left: 0;
display: none;

}
.@{ant-prefix}-checklist-rows-sub {
// position: ;
Expand All @@ -191,7 +197,6 @@
display: block;
}
}

}

.@{ant-prefix}-checklist-rows-sub {
Expand Down
Loading

0 comments on commit 9ee05c9

Please sign in to comment.