Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
393682d9
Commit
393682d9
authored
Oct 27, 2017
by
ddcat1115
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update card style
parent
99ae700f
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
19 deletions
+40
-19
src/routes/List/CardList.js
src/routes/List/CardList.js
+1
-1
src/routes/List/CardList.less
src/routes/List/CardList.less
+10
-5
src/routes/List/CoverCardList.js
src/routes/List/CoverCardList.js
+1
-0
src/routes/List/CoverCardList.less
src/routes/List/CoverCardList.less
+24
-12
src/routes/List/FilterCardList.js
src/routes/List/FilterCardList.js
+1
-1
src/routes/List/FilterCardList.less
src/routes/List/FilterCardList.less
+3
-0
No files found.
src/routes/List/CardList.js
View file @
393682d9
...
...
@@ -63,7 +63,7 @@ export default class CardList extends PureComponent {
dataSource
=
{[
''
,
...
list
]}
renderItem
=
{
item
=>
(
item
?
(
<
List
.
Item
key
=
{
item
.
id
}
>
<
Card
actions
=
{[
<
a
>
ζδ½δΈ
<
/a>, <a>ζδ½δΊ</
a
>
]}
>
<
Card
className
=
{
styles
.
card
}
actions
=
{[
<
a
>
ζδ½δΈ
<
/a>, <a>ζδ½δΊ</
a
>
]}
>
<
Link
to
=
"
/list/card-list
"
>
<
Card
.
Meta
avatar
=
{
<
img
alt
=
""
className
=
{
styles
.
cardAvatar
}
src
=
{
item
.
avatar
}
/>
}
...
...
src/routes/List/CardList.less
View file @
393682d9
...
...
@@ -3,9 +3,15 @@
.cardList {
margin-bottom: -24px;
.card {
:global {
.ant-card-meta-content {
margin-top: 0;
.ant-card-meta-title {
margin-bottom: 12px;
}
.ant-card-actions {
background: #f7f9fa;
}
}
}
}
...
...
@@ -24,7 +30,7 @@
border-color: @border-color-base;
color: @text-color-secondary;
width: 100%;
height: 18
5
px;
height: 18
8
px;
}
.cardAvatar {
...
...
@@ -35,7 +41,6 @@
.cardDescription {
.textOverflowMulti();
color: @text-color;
}
.pageHeaderContent {
...
...
src/routes/List/CoverCardList.js
View file @
393682d9
...
...
@@ -77,6 +77,7 @@ export default class CoverCardList extends PureComponent {
renderItem
=
{
item
=>
(
<
List
.
Item
>
<
Card
className
=
{
styles
.
card
}
hoverable
cover
=
{
<
img
alt
=
{
item
.
title
}
src
=
{
item
.
cover
}
/>
}
>
...
...
src/routes/List/CoverCardList.less
View file @
393682d9
...
...
@@ -3,23 +3,35 @@
.coverCardList {
margin-bottom: -24px;
.card {
:global {
.ant-card-meta-title {
margin-bottom: 4px;
}
.ant-card-meta-title > a {
color: @heading-color;
}
.ant-card:hover .ant-card-meta-title > a {
color: @primary-color;
}
.ant-card-meta-description {
color: @text-color-secondary;
height: 44px;
line-height: 22px;
overflow: hidden;
}
}
&:hover {
:global {
.ant-card-meta-title > a {
color: @primary-color;
}
}
}
}
.cardItemContent {
display: flex;
margin-top: 12px;
margin-top: 16px;
margin-bottom: -4px;
line-height: 20px;
height: 20px;
& > span {
...
...
src/routes/List/FilterCardList.js
View file @
393682d9
...
...
@@ -224,7 +224,7 @@ export default class FilterCardList extends PureComponent {
<
List
.
Item
key
=
{
item
.
id
}
>
<
Card
hoverable
bodyStyle
=
{{
paddingBottom
:
16
}}
bodyStyle
=
{{
paddingBottom
:
20
}}
actions
=
{[
<
Tooltip
title
=
"
δΈθ½½
"
><
Icon
type
=
"
download
"
/><
/Tooltip>
,
<
Tooltip
title
=
"
ηΌθΎ
"
><
Icon
type
=
"
edit
"
/><
/Tooltip>
,
...
...
src/routes/List/FilterCardList.less
View file @
393682d9
...
...
@@ -11,6 +11,9 @@
.ant-card-meta-avatar {
font-size: 0;
}
.ant-card-actions {
background: #f7f9fa;
}
}
.cardInfo {
.clearfix();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment