Skip to content

Commit 1f0c408

Browse files
committed
add(main page): intern box style
1 parent 708dbaf commit 1f0c408

3 files changed

Lines changed: 23 additions & 5 deletions

File tree

src/js/components/pages/dashboard/Base.styl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$brand_blue_light = lighten(#0AF, 25%)
2-
$brand_blue = darken(#0AF, 5%)
1+
$brand_blue_light = lighten(#58A0FC, 5%)
2+
$brand_blue = darken(#58A0FC, 5%)
33

44
.submitNewPost--contain
55
display: flex

src/js/components/pages/dashboard/InternBox.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export default CSSModules(class Inner extends Component {
8282
render () {
8383
return (
8484
<div className="internBoxWrapper">
85+
<div className="innerBoxWrapperContent">
8586
<Animate enter={{'animation': 'fade', 'duration': 700, 'delay': 0}}
8687
keep={false}
8788
style={{
@@ -114,10 +115,13 @@ export default CSSModules(class Inner extends Component {
114115
link= {
115116
<Anchor
116117
// onClick={this.props.onClose}
118+
className="internBoxLink"
117119
id={this.state.id.toString()}
118120
label='查看心得全文'
119121
style={{
120-
marginTop: '10px'
122+
marginTop: '10px',
123+
fontWeight: 'bold',
124+
color: '#0AF !important'
121125
}} />
122126
}
123127
style={{
@@ -142,7 +146,8 @@ export default CSSModules(class Inner extends Component {
142146
<span>{this.state.messageCount}</span>
143147
</div>
144148
</Link>
145-
</Animate>
149+
</Animate>
150+
</div>
146151
</div>
147152
)
148153
}

src/js/components/pages/dashboard/InternBox.styl

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.internBoxWrapper
22
width: 100%
3+
padding: 10px
4+
margin: 5px 0
35
.actionButton
46
display: flex
57
margin-left: 10px
@@ -15,7 +17,18 @@
1517
.grommetux-app--hidden
1618
position: fixed
1719
overflow: hidden !important
20+
.innerBoxWrapperContent
21+
width: 100%
22+
padding-bottom: 1px
23+
border-radius: 5px
24+
box-shadow: 0px 1px 7px #50514F
25+
.internBoxLink
26+
color: #58A0FC !important
27+
text-decoration: none !important
1828
a
19-
color: #50514F
29+
color: #50514F !important
30+
text-decoration: none !important
31+
&hover
32+
text-decoration: none !important
2033
@media screen and (min-width: 768px)
2134
width: 50%

0 commit comments

Comments
 (0)