forked from newthuhole/hole_thu_frontend
@@ -1,6 +1,6 @@
|
|||||||
.config-ui-header {
|
.config-ui-header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
top: 3em;
|
top: 0;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -344,6 +344,7 @@ class FlowSidebar extends PureComponent {
|
|||||||
area_ref={this.reply_ref} on_complete={this.load_replies.bind(this)} /> :
|
area_ref={this.reply_ref} on_complete={this.load_replies.bind(this)} /> :
|
||||||
<div className="box box-tip flow-item">登录后可以回复树洞</div>
|
<div className="box box-tip flow-item">登录后可以回复树洞</div>
|
||||||
}
|
}
|
||||||
|
<br />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: calc(100% - 700px);
|
width: calc(100% - 700px);
|
||||||
|
padding: 1em;
|
||||||
background-color: rgba(255,255,255,.7);
|
background-color: rgba(255,255,255,.7);
|
||||||
z-index: 21;
|
z-index: 21;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
@@ -34,30 +35,12 @@
|
|||||||
.sidebar-title {
|
.sidebar-title {
|
||||||
text-shadow: 0 0 3px white;
|
text-shadow: 0 0 3px white;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
|
||||||
top: 0;
|
|
||||||
line-height: 3em;
|
|
||||||
padding-left: .5em;
|
|
||||||
padding-bottom: 1em;
|
|
||||||
margin-bottom: -1em;
|
|
||||||
background-image: linear-gradient(top,rgba(255,255,255,.7) 40%,rgba(255,255,255,0) 100%);
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
.sidebar-title a {
|
|
||||||
pointer-events: initial;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-content {
|
|
||||||
padding: 2em 1em 1em 1em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1300px) {
|
@media screen and (max-width: 1300px) {
|
||||||
.sidebar {
|
.sidebar {
|
||||||
width: 550px;
|
width: 550px;
|
||||||
}
|
padding: 1em .5em;
|
||||||
.sidebar-content {
|
|
||||||
padding: 2em .5em 1em .5em;
|
|
||||||
}
|
}
|
||||||
.sidebar-on .sidebar {
|
.sidebar-on .sidebar {
|
||||||
left: calc(100% - 550px);
|
left: calc(100% - 550px);
|
||||||
|
|||||||
@@ -6,13 +6,11 @@ export function Sidebar(props) {
|
|||||||
<div className={props.content ? 'sidebar-on' : ''}>
|
<div className={props.content ? 'sidebar-on' : ''}>
|
||||||
<div className="sidebar-shadow" onClick={props.do_close} />
|
<div className="sidebar-shadow" onClick={props.do_close} />
|
||||||
<div className="sidebar">
|
<div className="sidebar">
|
||||||
<div className="sidebar-title">
|
<p className="sidebar-title">
|
||||||
<a onClick={props.do_close}> <span className="icon icon-back" /> </a>
|
<a onClick={props.do_close}> <span className="icon icon-back" /> </a>
|
||||||
{props.title}
|
{props.title}
|
||||||
</div>
|
</p>
|
||||||
<div className="sidebar-content">
|
{props.content}
|
||||||
{props.content}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
}
|
}
|
||||||
.reply-sticky {
|
.reply-sticky {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
bottom: 1em;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reply-form textarea {
|
.reply-form textarea {
|
||||||
|
|||||||
Reference in New Issue
Block a user