宽屏样式
This commit is contained in:
parent
89fd776ef4
commit
98c88f2250
|
@ -201,12 +201,12 @@ export class App extends React.PureComponent {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className={`${theme.ns}Layout-brandBar`}>
|
<div className={`${theme.ns}Layout-brandBar`}>
|
||||||
<button
|
{/* <button
|
||||||
onClick={() => this.setState({offScreen: !this.state.offScreen})}
|
onClick={() => this.setState({offScreen: !this.state.offScreen})}
|
||||||
className="pull-right visible-xs"
|
className="pull-right visible-xs"
|
||||||
>
|
>
|
||||||
<i className="glyphicon glyphicon-align-justify" />
|
<i className="glyphicon glyphicon-align-justify" />
|
||||||
</button>
|
</button> */}
|
||||||
|
|
||||||
<div className={`${theme.ns}Layout-brand`}>
|
<div className={`${theme.ns}Layout-brand`}>
|
||||||
<i className="fa fa-paw" />
|
<i className="fa fa-paw" />
|
||||||
|
@ -252,7 +252,8 @@ export class App extends React.PureComponent {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className={`${theme.ns}Layout-searchBar`}>
|
||||||
<DocSearch theme={this.state.theme.value} />
|
<DocSearch theme={this.state.theme.value} />
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|
|
@ -100,12 +100,31 @@ body {
|
||||||
.dark-Layout {
|
.dark-Layout {
|
||||||
padding-top: 100px;
|
padding-top: 100px;
|
||||||
|
|
||||||
&-headerBar {
|
&::before {
|
||||||
height: 64px;
|
background-color: #fff;
|
||||||
padding-right: 20px;
|
}
|
||||||
|
|
||||||
&::before,
|
&-header {
|
||||||
&::after {
|
height: 64px;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
position: fixed;
|
||||||
|
height: 64px;
|
||||||
|
content: '';
|
||||||
|
z-index: -1;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-brandBar,
|
||||||
|
&-searchBar {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&::before {
|
||||||
top: 50%;
|
top: 50%;
|
||||||
right: 0;
|
right: 0;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
|
@ -115,16 +134,37 @@ body {
|
||||||
border-left: 1px solid #e8ebee;
|
border-left: 1px solid #e8ebee;
|
||||||
width: 1px;
|
width: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::before {
|
|
||||||
left: -19px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-brandBar {
|
||||||
|
background-color: transparent;
|
||||||
|
width: 200px;
|
||||||
|
|
||||||
|
.a-Layout-brand,
|
||||||
|
.cxd-Layout-brand,
|
||||||
|
.dark-Layout-brand {
|
||||||
|
color: #333;
|
||||||
|
height: 64px;
|
||||||
|
line-height: 64px;
|
||||||
|
font-size: 24px;
|
||||||
|
padding: 0;
|
||||||
|
font-weight: 400;
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #108cee;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-headerBar {
|
||||||
|
height: 64px;
|
||||||
|
padding-right: 20px;
|
||||||
|
|
||||||
&-links {
|
&-links {
|
||||||
height: 64px;
|
height: 64px;
|
||||||
line-height: 64px;
|
line-height: 64px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
padding-left: 10px;
|
padding-left: 30px;
|
||||||
|
|
||||||
> a {
|
> a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -150,50 +190,15 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-brandBar {
|
&-searchBar {
|
||||||
background-color: transparent;
|
width: 220px;
|
||||||
position: absolute;
|
|
||||||
left: -220px;
|
|
||||||
|
|
||||||
.a-Layout-brand,
|
|
||||||
.cxd-Layout-brand,
|
|
||||||
.dark-Layout-brand {
|
|
||||||
color: #333;
|
|
||||||
height: 64px;
|
|
||||||
line-height: 64px;
|
|
||||||
font-size: 24px;
|
|
||||||
padding: 0;
|
|
||||||
font-weight: 400;
|
|
||||||
|
|
||||||
i {
|
|
||||||
color: #108cee;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&::before {
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
&-header {
|
|
||||||
height: 64px;
|
|
||||||
box-shadow: none;
|
|
||||||
|
|
||||||
&::before {
|
|
||||||
position: fixed;
|
|
||||||
height: 64px;
|
|
||||||
content: '';
|
|
||||||
z-index: -1;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
background: #fff;
|
|
||||||
box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.Doc-search {
|
.Doc-search {
|
||||||
position: absolute;
|
top: 15px;
|
||||||
right: -160px;
|
}
|
||||||
padding-top: 15px;
|
|
||||||
|
&::before {
|
||||||
|
left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -447,19 +452,11 @@ body {
|
||||||
|
|
||||||
> .schema-wrapper {
|
> .schema-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
> .a-Page,
|
> .a-Page,
|
||||||
> .cxd-Page,
|
> .cxd-Page,
|
||||||
> .dark-Page {
|
> .dark-Page {
|
||||||
padding: 0 45px;
|
padding: 0 45px;
|
||||||
// position: absolute;
|
|
||||||
// top: 100px;
|
|
||||||
// left: 30px;
|
|
||||||
// right: 60px;
|
|
||||||
// bottom: 0;
|
|
||||||
|
|
||||||
// &--withSidebar {
|
|
||||||
// padding-right: 80px;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -504,10 +501,6 @@ body {
|
||||||
width: 0;
|
width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-toc {
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&-toc > div {
|
&-toc > div {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 220px;
|
width: 220px;
|
||||||
|
@ -525,6 +518,31 @@ body {
|
||||||
border-right: 1px solid #e8ebee;
|
border-right: 1px solid #e8ebee;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.app-wrapper {
|
||||||
|
.a-Layout,
|
||||||
|
.cxd-Layout,
|
||||||
|
.dark-Layout {
|
||||||
|
&-header {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
|
||||||
|
&Bar {
|
||||||
|
flex: 1 auto;
|
||||||
|
width: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-brandBar > div {
|
||||||
|
width: 220px;
|
||||||
|
position: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-searchBar > div {
|
||||||
|
width: 220px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 1640px) {
|
@media screen and (min-width: 1640px) {
|
||||||
|
@ -537,7 +555,24 @@ body {
|
||||||
width: 1px;
|
width: 1px;
|
||||||
|
|
||||||
> div {
|
> div {
|
||||||
margin-left: -219px;
|
margin-left: -199px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-wrapper {
|
||||||
|
.a-Layout,
|
||||||
|
.cxd-Layout,
|
||||||
|
.dark-Layout {
|
||||||
|
&-brandBar {
|
||||||
|
width: 1px;
|
||||||
|
> div {
|
||||||
|
margin-left: -220px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-searchBar {
|
||||||
|
width: 1px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue