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
P
pro-blocks
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
pro-blocks
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
Hide 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 {
...
@@ -63,7 +63,7 @@ export default class CardList extends PureComponent {
dataSource
=
{[
''
,
...
list
]}
dataSource
=
{[
''
,
...
list
]}
renderItem
=
{
item
=>
(
item
?
(
renderItem
=
{
item
=>
(
item
?
(
<
List
.
Item
key
=
{
item
.
id
}
>
<
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
"
>
<
Link
to
=
"
/list/card-list
"
>
<
Card
.
Meta
<
Card
.
Meta
avatar
=
{
<
img
alt
=
""
className
=
{
styles
.
cardAvatar
}
src
=
{
item
.
avatar
}
/>
}
avatar
=
{
<
img
alt
=
""
className
=
{
styles
.
cardAvatar
}
src
=
{
item
.
avatar
}
/>
}
...
...
src/routes/List/CardList.less
View file @
393682d9
...
@@ -3,9 +3,15 @@
...
@@ -3,9 +3,15 @@
.cardList {
.cardList {
margin-bottom: -24px;
margin-bottom: -24px;
:global {
.ant-card-meta-content {
.card {
margin-top: 0;
:global {
.ant-card-meta-title {
margin-bottom: 12px;
}
.ant-card-actions {
background: #f7f9fa;
}
}
}
}
}
}
}
...
@@ -24,7 +30,7 @@
...
@@ -24,7 +30,7 @@
border-color: @border-color-base;
border-color: @border-color-base;
color: @text-color-secondary;
color: @text-color-secondary;
width: 100%;
width: 100%;
height: 18
5
px;
height: 18
8
px;
}
}
.cardAvatar {
.cardAvatar {
...
@@ -35,7 +41,6 @@
...
@@ -35,7 +41,6 @@
.cardDescription {
.cardDescription {
.textOverflowMulti();
.textOverflowMulti();
color: @text-color;
}
}
.pageHeaderContent {
.pageHeaderContent {
...
...
src/routes/List/CoverCardList.js
View file @
393682d9
...
@@ -77,6 +77,7 @@ export default class CoverCardList extends PureComponent {
...
@@ -77,6 +77,7 @@ export default class CoverCardList extends PureComponent {
renderItem
=
{
item
=>
(
renderItem
=
{
item
=>
(
<
List
.
Item
>
<
List
.
Item
>
<
Card
<
Card
className
=
{
styles
.
card
}
hoverable
hoverable
cover
=
{
<
img
alt
=
{
item
.
title
}
src
=
{
item
.
cover
}
/>
}
cover
=
{
<
img
alt
=
{
item
.
title
}
src
=
{
item
.
cover
}
/>
}
>
>
...
...
src/routes/List/CoverCardList.less
View file @
393682d9
...
@@ -3,23 +3,35 @@
...
@@ -3,23 +3,35 @@
.coverCardList {
.coverCardList {
margin-bottom: -24px;
margin-bottom: -24px;
:global {
.ant-card-meta-title > a {
.card {
color: @heading-color;
:global {
}
.ant-card-meta-title {
.ant-card:hover .ant-card-meta-title > a {
margin-bottom: 4px;
color: @primary-color;
}
.ant-card-meta-title > a {
color: @heading-color;
}
.ant-card-meta-description {
height: 44px;
line-height: 22px;
overflow: hidden;
}
}
}
.ant-card-meta-description {
color: @text-color-secondary;
&:hover {
height: 44px;
:global {
line-height: 22px;
.ant-card-meta-title > a {
overflow: hidden;
color: @primary-color;
}
}
}
}
}
}
.cardItemContent {
.cardItemContent {
display: flex;
display: flex;
margin-top: 12px;
margin-top: 16px;
margin-bottom: -4px;
line-height: 20px;
line-height: 20px;
height: 20px;
height: 20px;
& > span {
& > span {
...
...
src/routes/List/FilterCardList.js
View file @
393682d9
...
@@ -224,7 +224,7 @@ export default class FilterCardList extends PureComponent {
...
@@ -224,7 +224,7 @@ export default class FilterCardList extends PureComponent {
<
List
.
Item
key
=
{
item
.
id
}
>
<
List
.
Item
key
=
{
item
.
id
}
>
<
Card
<
Card
hoverable
hoverable
bodyStyle
=
{{
paddingBottom
:
16
}}
bodyStyle
=
{{
paddingBottom
:
20
}}
actions
=
{[
actions
=
{[
<
Tooltip
title
=
"
下载
"
><
Icon
type
=
"
download
"
/><
/Tooltip>
,
<
Tooltip
title
=
"
下载
"
><
Icon
type
=
"
download
"
/><
/Tooltip>
,
<
Tooltip
title
=
"
编辑
"
><
Icon
type
=
"
edit
"
/><
/Tooltip>
,
<
Tooltip
title
=
"
编辑
"
><
Icon
type
=
"
edit
"
/><
/Tooltip>
,
...
...
src/routes/List/FilterCardList.less
View file @
393682d9
...
@@ -11,6 +11,9 @@
...
@@ -11,6 +11,9 @@
.ant-card-meta-avatar {
.ant-card-meta-avatar {
font-size: 0;
font-size: 0;
}
}
.ant-card-actions {
background: #f7f9fa;
}
}
}
.cardInfo {
.cardInfo {
.clearfix();
.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