Commit aa5c8369 by xuzhenghua

样式

parent 6e012d19
......@@ -196,11 +196,11 @@ class Classify extends Component {
{this.state.data && this.state.data.length > 0 && this.state.data.map((item, index) => {
const Info = (
<div className="info">
<p className='title'
<p className='title text-overflow-2'
onClick={() => this.toCourseDetail(item.course_id)}>
{item.course_title}
</p>
<p className='contact text-overflow-2'>{item.desc}</p>
<p className='contact text-overflow-1'>{item.desc}</p>
<div className='des'>
{
item.is_restricted ?
......
......@@ -73,9 +73,6 @@ html, body, #root {
.title {
font-size: 16px;
color: $color_525B65;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.contact {
......
......@@ -122,13 +122,13 @@ class Preferential extends Component {
{this.state.dataList.map((item, index) => {
const Info = (
<div className="info">
<p className='title'
<p className='title text-overflow-2'
onClick={() => this.toCourseDetail(item.course_id)}>
{/* <Link to={`/detail?id=${item.course_id}`}> */}
{item.course_title}
{/* </Link> */}
</p>
<p className='contact text-overflow-2'>{item.course_desc}</p>
<p className='contact text-overflow-1'>{item.course_desc}</p>
<div className='des'>
{!item.is_buy &&
<p className="course-price">
......
......@@ -61,11 +61,6 @@
.title {
font-size: 16px;
color: $color_525B65;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 18px;
line-height: 18px;
}
.contact {
......
......@@ -55,10 +55,10 @@ class Purchased extends Component {
this.state.data.map((item, index) => {
const Info = (
<div className="info">
<p className='title' onClick={() => this.toCourseDetail(item.course_id)}>
<p className='title text-overflow-2' onClick={() => this.toCourseDetail(item.course_id)}>
{item.course_title}
</p>
<p className='contact text-overflow-2'>{item.simpledescription}</p>
<p className='contact text-overflow-1'>{item.simpledescription}</p>
{
item.is_aist &&
......
......@@ -48,11 +48,6 @@ html, body, #root {
.title {
font-size: 16px;
color: $color_525B65;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 16px;
line-height: 16px;
}
.contact {
......
......@@ -158,8 +158,8 @@ class SearchResult extends PureComponent {
courseList.map(item => {
const Info = (
<div className="info">
<p className='title'>{item.course_title}</p>
<p className='des'>{item.simpledescription}</p>
<p className='title text-overflow-2'>{item.course_title}</p>
<p className='des text-overflow-1'>{item.simpledescription}</p>
<Bottom
item={item}
/>
......
......@@ -27,25 +27,18 @@
}
.info {
display: flex;
flex-wrap: wrap;
width: 50%;
position: relative;
display: block;
.title{
overflow: hidden;
font-size: $font_16;
color:#525C65;
white-space: nowrap;
text-overflow: ellipsis;
}
.des {
font-size: $font_14;
color:#777;
line-height: 16px;
align-self: flex-start;
margin-top: 10px;
}
.price {
......@@ -61,7 +54,8 @@
}
.bottom {
align-self: flex-end;
position: absolute;
bottom: 0;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment