Skip to content

Commit a071c01

Browse files
committed
up to latest verison
1 parent 8541197 commit a071c01

File tree

44 files changed

+1567
-1568
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1567
-1568
lines changed

jsExample/src/components/GlobalHeader/index.less

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
@import '~antd/es/style/themes/default.less';
1+
@import url('~antd/es/style/themes/default.less');
22

33
@pro-header-hover-bg: rgba(0, 0, 0, 0.025);
44

55
.menu {
66
:global(.anticon) {
77
margin-right: 8px;
88
}
9+
910
:global(.ant-dropdown-menu-item) {
1011
min-width: 160px;
1112
}
@@ -17,46 +18,55 @@
1718
height: 48px;
1819
margin-left: auto;
1920
overflow: hidden;
21+
2022
.action {
2123
display: flex;
2224
align-items: center;
2325
height: 100%;
2426
padding: 0 12px;
2527
cursor: pointer;
2628
transition: all 0.3s;
29+
2730
> span {
2831
vertical-align: middle;
2932
}
33+
3034
&:hover {
3135
background: @pro-header-hover-bg;
3236
}
37+
3338
&:global(.opened) {
3439
background: @pro-header-hover-bg;
3540
}
3641
}
42+
3743
.search {
3844
padding: 0 12px;
45+
3946
&:hover {
4047
background: transparent;
4148
}
4249
}
50+
4351
.account {
4452
.avatar {
4553
margin: ~'calc((@{layout-header-height} - 24px) / 2)' 0;
4654
margin-right: 8px;
4755
color: @primary-color;
4856
vertical-align: top;
49-
background: rgba(255, 255, 255, 0.85);
57+
background: rgb(255 255 255 / 85%);
5058
}
5159
}
5260
}
5361

5462
.dark {
5563
.action {
56-
color: rgba(255, 255, 255, 0.85);
64+
color: rgb(255 255 255 / 85%);
65+
5766
> span {
58-
color: rgba(255, 255, 255, 0.85);
67+
color: rgb(255 255 255 / 85%);
5968
}
69+
6070
&:hover,
6171
&:global(.opened) {
6272
background: @primary-color;
@@ -68,13 +78,16 @@
6878
.dark {
6979
.action {
7080
color: @text-color;
81+
7182
> span {
7283
color: @text-color;
7384
}
85+
7486
&:hover {
75-
color: rgba(255, 255, 255, 0.85);
87+
color: rgb(255 255 255 / 85%);
88+
7689
> span {
77-
color: rgba(255, 255, 255, 0.85);
90+
color: rgb(255 255 255 / 85%);
7891
}
7992
}
8093
}

jsExample/src/components/HeaderDropdown/index.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '~antd/es/style/themes/default.less';
1+
@import url('~antd/es/style/themes/default.less');
22

33
.container > * {
44
background-color: @popover-bg;
@@ -10,6 +10,7 @@
1010
.container {
1111
width: 100% !important;
1212
}
13+
1314
.container > * {
1415
border-radius: 0 !important;
1516
}

jsExample/src/components/HeaderSearch/index.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '~antd/es/style/themes/default.less';
1+
@import url('~antd/es/style/themes/default.less');
22

33
.headerSearch {
44
.input {
@@ -8,20 +8,24 @@
88
background: transparent;
99
border-radius: 0;
1010
transition: width 0.3s, margin-left 0.3s;
11+
1112
:global(.ant-select-selection) {
1213
background: transparent;
1314
}
15+
1416
input {
1517
padding-right: 0;
1618
padding-left: 0;
1719
border: 0;
1820
box-shadow: none !important;
1921
}
22+
2023
&,
2124
&:hover,
2225
&:focus {
2326
border-bottom: 1px solid @border-color-base;
2427
}
28+
2529
&.show {
2630
width: 210px;
2731
margin-left: 8px;

jsExample/src/components/NoticeIcon/NoticeList.less

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
@import '~antd/es/style/themes/default.less';
1+
@import url('~antd/es/style/themes/default.less');
22

33
.list {
44
max-height: 400px;
55
overflow: auto;
6+
67
&::-webkit-scrollbar {
78
display: none;
89
}
10+
911
.item {
1012
padding-right: 24px;
1113
padding-left: 24px;
@@ -21,32 +23,39 @@
2123
margin-top: 4px;
2224
background: @component-background;
2325
}
26+
2427
.iconElement {
2528
font-size: 32px;
2629
}
2730

2831
&.read {
2932
opacity: 0.4;
3033
}
34+
3135
&:last-child {
3236
border-bottom: 0;
3337
}
38+
3439
&:hover {
3540
background: @primary-1;
3641
}
42+
3743
.title {
3844
margin-bottom: 8px;
3945
font-weight: normal;
4046
}
47+
4148
.description {
4249
font-size: 12px;
4350
line-height: @line-height-base;
4451
}
52+
4553
.datetime {
4654
margin-top: 4px;
4755
font-size: 12px;
4856
line-height: @line-height-base;
4957
}
58+
5059
.extra {
5160
float: right;
5261
margin-top: -1.5px;
@@ -55,13 +64,15 @@
5564
font-weight: normal;
5665
}
5766
}
67+
5868
.loadMore {
5969
padding: 8px 0;
6070
color: @primary-6;
6171
text-align: center;
6272
cursor: pointer;
73+
6374
&.loadedAll {
64-
color: rgba(0, 0, 0, 0.25);
75+
color: rgb(0 0 0 / 25%);
6576
cursor: unset;
6677
}
6778
}
@@ -71,6 +82,7 @@
7182
padding: 73px 0 88px;
7283
color: @text-color-secondary;
7384
text-align: center;
85+
7486
img {
7587
display: inline-block;
7688
height: 76px;
@@ -86,6 +98,7 @@
8698
border-top: 1px solid @border-color-split;
8799
border-radius: 0 0 @border-radius-base @border-radius-base;
88100
transition: all 0.3s;
101+
89102
div {
90103
display: inline-block;
91104
width: 50%;
@@ -96,6 +109,7 @@
96109
&:only-child {
97110
width: 100%;
98111
}
112+
99113
&:not(:only-child):last-child {
100114
border-left: 1px solid @border-color-split;
101115
}

jsExample/src/components/NoticeIcon/index.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '~antd/es/style/themes/default.less';
1+
@import url('~antd/es/style/themes/default.less');
22

33
.popover {
44
position: relative;
@@ -10,6 +10,7 @@
1010
cursor: pointer;
1111
transition: all 0.3s;
1212
}
13+
1314
.icon {
1415
padding: 4px;
1516
vertical-align: middle;
@@ -28,6 +29,7 @@
2829
.ant-tabs-nav-scroll {
2930
text-align: center;
3031
}
32+
3133
.ant-tabs-bar {
3234
margin-bottom: 0;
3335
}

jsExample/src/global.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '~antd/es/style/themes/default.less';
1+
@import url('~antd/es/style/themes/default.less');
22

33
html,
44
body,
@@ -19,7 +19,7 @@ canvas {
1919
}
2020

2121
body {
22-
text-rendering: optimizeLegibility;
22+
text-rendering: optimizelegibility;
2323
-webkit-font-smoothing: antialiased;
2424
-moz-osx-font-smoothing: grayscale;
2525
}
@@ -33,11 +33,13 @@ ol {
3333
.ant-table {
3434
width: 100%;
3535
overflow-x: auto;
36+
3637
&-thead > tr,
3738
&-tbody > tr {
3839
> th,
3940
> td {
4041
white-space: pre;
42+
4143
> span {
4244
display: block;
4345
}

jsExample/src/layouts/UserLayout.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '~antd/es/style/themes/default.less';
1+
@import url('~antd/es/style/themes/default.less');
22

33
.container {
44
display: flex;
@@ -13,6 +13,7 @@
1313
height: 40px;
1414
line-height: 44px;
1515
text-align: right;
16+
1617
:global(.ant-dropdown-trigger) {
1718
margin-right: 24px;
1819
}
@@ -43,6 +44,7 @@
4344
.header {
4445
height: 44px;
4546
line-height: 44px;
47+
4648
a {
4749
text-decoration: none;
4850
}

jsExample/src/pages/User/login/index.less

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '~antd/es/style/themes/default.less';
1+
@import url('~antd/es/style/themes/default.less');
22

33
.main {
44
width: 328px;
@@ -17,7 +17,7 @@
1717

1818
.icon {
1919
margin-left: 16px;
20-
color: rgba(0, 0, 0, 0.2);
20+
color: rgb(0 0 0 / 20%);
2121
font-size: 24px;
2222
vertical-align: middle;
2323
cursor: pointer;
@@ -32,6 +32,7 @@
3232
margin-top: 24px;
3333
line-height: 22px;
3434
text-align: left;
35+
3536
.register {
3637
float: right;
3738
}

jsExample/src/pages/Welcome.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '~antd/lib/style/themes/default.less';
1+
@import url('~antd/lib/style/themes/default.less');
22

33
.pre {
44
margin: 12px 0;

jsExample/src/utils/utils.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
// ------------------------
33
.clearfix() {
44
zoom: 1;
5+
56
&::before,
67
&::after {
78
display: table;
89
content: ' ';
910
}
11+
1012
&::after {
1113
clear: both;
1214
height: 0;

0 commit comments

Comments
 (0)