mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-27 16:50:56 +00:00
ico
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
import React, { PropTypes } from 'react'
|
||||
import {Ico} from '../../components/ui'
|
||||
import styles from './ico.less'
|
||||
|
||||
const IcoPage = () => <div>666</div>
|
||||
const iconlist = ['Cherry','Cheese','Bread','Beer','Beet','Bacon','Banana','Asparagus','Apple']
|
||||
|
||||
const IcoPage = () => <div className="content-inner">
|
||||
<ul className={styles.list}>
|
||||
{iconlist.map ( item =><li key={item}><Ico className={styles.icon} type={item} /><span className={styles.name}>{item}</span></li>)}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
export default IcoPage
|
||||
|
||||
+32
-6
@@ -1,7 +1,33 @@
|
||||
.ico {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
vertical-align: -0.15em;
|
||||
fill: currentColor;
|
||||
overflow: hidden;
|
||||
.list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
margin-right: -24px;
|
||||
|
||||
li {
|
||||
width: 160px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
height: 100px;
|
||||
transition: all 0.5s ease;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-right: 24px;
|
||||
margin-bottom: 24px;
|
||||
box-sizing: border-box;
|
||||
border: solid 1px transparent;
|
||||
|
||||
&:hover{
|
||||
border: solid 1px #f5f5f5;
|
||||
}
|
||||
}
|
||||
|
||||
.name {
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
:global .ico {
|
||||
font-size: 48px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user