chromesetting
杨树林 6 years ago
parent d4dcb1ae7f
commit 570e3849eb

@ -539,26 +539,26 @@ class NewShixunModel extends Component{
className="fl task-hide edu-txt-left mt3" className="fl task-hide edu-txt-left mt3"
name="shixun_homework[]" name="shixun_homework[]"
></Checkbox> ></Checkbox>
<a target="_blank" href={this.props.type==='shixuns'?`/shixuns/${item.identifier}/challenges`:`/paths/${item.id}`} className="ml15 fl font-16 color-dark maxwidth1100"
dangerouslySetInnerHTML={{__html: item.title}}
>
</a>
{ {
this.props.type==='shixuns'? this.props.type==='shixuns'?
( (
item.is_jupyter===true? item.is_jupyter===true?
<div className="myysljupyter fl ml15 mt3 intermediatecenter"> <div className="myysljupyter fl ml20 mt3 intermediatecenter">
<p className="myysljupytertest"> <p className="myysljupytertest">
Jupyter Jupyter
</p> </p>
</div> </div>
:"" :""
) )
:"" :""
} }
<a target="_blank" href={this.props.type==='shixuns'?`/shixuns/${item.identifier}/challenges`:`/paths/${item.id}`} className="ml15 fl font-16 color-dark maxwidth1100"
dangerouslySetInnerHTML={{__html: item.title}}
>
</a>
<div className="cl"></div> <div className="cl"></div>
<style> <style>
{ {

@ -386,16 +386,19 @@
margin: 0 auto; margin: 0 auto;
} }
.myysljupyter{ .myysljupyter{
width:48px; width:54px;
height:22px; height:24px;
background:#FF6802; text-align: center;
border-radius:2px 10px 10px 2px; border-radius:5px;
border:1px solid #FF6802;
margin-top: 4px;
} }
.myysljupytertest{ .myysljupytertest{
width:39px; width:39px;
height:16px; height:16px;
line-height:16px;
font-size:12px; font-size:12px;
color:#FFFFFF; color:#FF6802;
line-height:16px; line-height:16px;
} }
.intermediatecenter{ .intermediatecenter{

@ -215,7 +215,7 @@ class SearchPage extends Component{
type==="shixun"? type==="shixun"?
( (
item.is_jupyter===true? item.is_jupyter===true?
<div className="jupytertext intermediatecenter ml15"><p className="jupytertextp">Jupyter</p></div> <div className="jupytertext intermediatecenter ml20"><p className="jupytertextp">Jupyter</p></div>
:"" :""
) )
:"" :""

@ -135,17 +135,18 @@
.jupytertext{ .jupytertext{
width:54px; width:54px;
height:24px; height:24px;
background:#FF6802;
border-radius:2px 10px 10px 2px;
margin-top: 2px;
text-align: center; text-align: center;
border-radius:5px;
border:1px solid #FF6802;
margin-top: 4px;
} }
.jupytertextp{ .jupytertextp{
width:39px; width:39px;
height:16px; height:16px;
line-height:16px;
font-size:12px; font-size:12px;
color:#FFFFFF; color:#FF6802;
line-height:16px; line-height:16px;
} }
/* x轴正方向排序 */ /* x轴正方向排序 */

Loading…
Cancel
Save