Skip to content

Commit

Permalink
chore(less): bump less to 4.0.0 (#1418)
Browse files Browse the repository at this point in the history
* chore(less): bump less to 4.0.0

* fix(styles): fix for less v4

* fix(pagination): fix for less v4
  • Loading branch information
simonguo committed Dec 30, 2020
1 parent d60beeb commit a889d80
Show file tree
Hide file tree
Showing 72 changed files with 555 additions and 447 deletions.
8 changes: 4 additions & 4 deletions docs/components/SideNavbar/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

.media-toggle-side-bar.rs-btn.rs-btn-icon {
position: fixed;
top: @top-level-nav-height + 10px;
top: (@top-level-nav-height + 10px);
z-index: 1;
box-shadow: @default-box-shadow;

Expand Down Expand Up @@ -107,13 +107,13 @@

// Scrollbar
&::-webkit-scrollbar {
border-radius: @scrollbar-width / 2;
border-radius: (@scrollbar-width / 2);
width: @scrollbar-width;
}

// Handle
&::-webkit-scrollbar-thumb {
border-radius: @scrollbar-width / 2;
border-radius: (@scrollbar-width / 2);
background-color: fade(#8d8d8d, 30);
&:hover {
background-color: fade(#8d8d8d, 90);
Expand All @@ -122,7 +122,7 @@

// Track
&::-webkit-scrollbar-track {
border-radius: @scrollbar-width / 2;
border-radius: (@scrollbar-width / 2);
background: transparent;
}
}
Expand Down
8 changes: 2 additions & 6 deletions docs/less/code-view.less
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,12 @@ a code {
border-color: @code-view-wrapper-border-color;

> .rs-btn {
.btn-md;

.icon-lg() {
.btn-md();
.rs-icon-code {
@font-size: 20px;
height: @font-size;
font-size: @font-size;
}
.rs-icon-code {
.icon-lg;
}
}
}
.code-view-error {
Expand Down
2 changes: 1 addition & 1 deletion docs/less/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
padding-right: 180px;

@media (max-width: @media-xs) {
margin-top: @top-level-nav-height + 28px;
margin-top: (@top-level-nav-height + 28px);
}
}

Expand Down
2 changes: 1 addition & 1 deletion docs/less/pages/components/calendar.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
list-style: none;

li {
.ellipsis-basic;
.ellipsis-basic();
}

.calendar-todo-item-badge {
Expand Down
2 changes: 1 addition & 1 deletion docs/less/pages/components/table.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

.table-content-edit-span {
margin-left: 2px;
.ellipsis;
.ellipsis();
}

.menu-tabs {
Expand Down
1 change: 1 addition & 0 deletions docs/less/pages/components/timeline.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
color: #999;
margin-left: -13px;
justify-content: center;
padding: 8px;
}
}

Expand Down
Loading

1 comment on commit a889d80

@vercel
Copy link

@vercel vercel bot commented on a889d80 Dec 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.