fix(panes): unify styles

This commit is contained in:
hexxa 2021-11-20 16:23:33 +08:00 committed by Hexxa
parent c536730cf9
commit 59ca0d5c51
3 changed files with 48 additions and 25 deletions

View file

@ -76,7 +76,7 @@ body input {
border-bottom: solid 1px #e8e8e8; border-bottom: solid 1px #e8e8e8;
} }
#panes { /* #panes {
position: fixed; position: fixed;
left: 0; left: 0;
right: 0; right: 0;
@ -85,24 +85,18 @@ body input {
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.5);
z-index: 100; z-index: 100;
overflow: scroll; overflow: scroll;
} } */
#panes .root-container { /* #panes .root-container {
max-width: 80rem; max-width: 80rem;
width: 96%; width: 96%;
z-index: 101; z-index: 101;
text-align: left; text-align: left;
margin: 3rem auto 8rem auto; margin: 3rem auto 8rem auto;
border-radius: 0.6rem; border-radius: 0.6rem;
} } */
#panes .container { /* #panes .return-btn {
background-color: white;
margin: 3rem auto 1rem auto;
border-radius: 0.6rem;
}
#panes .return-btn {
position: fixed; position: fixed;
max-width: 960px; max-width: 960px;
width: 96%; width: 96%;
@ -114,7 +108,7 @@ body input {
bottom: 3rem; bottom: 3rem;
height: 3rem; height: 3rem;
border-radius: 0.6rem; border-radius: 0.6rem;
} } */
#op-bar { #op-bar {
/* width: 96%; */ /* width: 96%; */
@ -655,10 +649,6 @@ div.hr {
font-size: 1.4rem; font-size: 1.4rem;
} }
.txt-cap {
text-transform: capitalize;
}
.captcha { .captcha {
width: 14rem; width: 14rem;
height: 3rem; height: 3rem;

View file

@ -1,8 +1,9 @@
#root-frame {} #root-frame {
}
.theme-default #bg { .theme-default #bg {
background: url("/static/img/textured_paper.png") repeat fixed center; background: url("/static/img/textured_paper.png") repeat fixed center;
} }
.theme-default #top-bar { .theme-default #top-bar {
background: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.9);
@ -22,6 +23,40 @@
min-width: 7rem; min-width: 7rem;
} }
.theme-default #panes {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 100;
overflow: scroll;
}
.theme-default #root-container {
max-width: 80rem;
width: 96%;
z-index: 101;
text-align: left;
margin: 3rem auto 8rem auto;
border-radius: 0.6rem;
}
.theme-default #panes #title-container {
padding: 2rem;
}
.theme-default #panes .container {
background-color: white;
margin: 3rem auto 1rem auto;
border-radius: 0.6rem;
}
.theme-default #panes #title {
text-transform: capitalize;
}
.theme-default .op-bar { .theme-default .op-bar {
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
box-shadow: 0 5px 30px 0 rgba(31, 38, 135, 0.1); box-shadow: 0 5px 30px 0 rgba(31, 38, 135, 0.1);
@ -56,7 +91,6 @@
font-weight: bold; font-weight: bold;
} }
.theme-default .font-xs { .theme-default .font-xs {
font-size: 1.2rem; font-size: 1.2rem;
line-height: 1.8rem; line-height: 1.8rem;
@ -78,7 +112,7 @@
} }
.theme-default .font-xl { .theme-default .font-xl {
font-size: 2.0rem; font-size: 2rem;
line-height: 3rem; line-height: 3rem;
} }

View file

@ -53,19 +53,18 @@ export class Panes extends React.Component<Props, State, {}> {
return ( return (
<div id="panes" className={displaying === "" ? "hidden" : ""}> <div id="panes" className={displaying === "" ? "hidden" : ""}>
<div className="root-container"> <div id="root-container">
<div className="container"> <div id="title-container" className="container">
<Flexbox <Flexbox
children={List([ children={List([
<h3 className="flex-list-item-l txt-cap">{title}</h3>, <h3 id="title">{title}</h3>,
<button <button
onClick={this.closePane} onClick={this.closePane}
className={`red0-bg white-font ${btnClass}`} className={`${btnClass}`}
> >
{this.props.msg.pkg.get("panes.close")} {this.props.msg.pkg.get("panes.close")}
</button>, </button>,
])} ])}
className="padding-l"
childrenStyles={List([{}, { justifyContent: "flex-end" }])} childrenStyles={List([{}, { justifyContent: "flex-end" }])}
/> />
</div> </div>