2018-09-19 21:19:11 -05:00
|
|
|
#wrapper {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* for top bottom layout*/
|
|
|
|
#header {
|
|
|
|
height: 49px;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* for left right layout */
|
|
|
|
#main {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
2018-09-21 14:16:15 +08:00
|
|
|
min-height: 0;
|
2018-09-19 21:19:11 -05:00
|
|
|
}
|
|
|
|
|
2018-09-12 17:01:48 +08:00
|
|
|
.side-panel {
|
2018-09-19 21:19:11 -05:00
|
|
|
flex: 0 0 25%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: hidden;
|
2018-09-12 17:01:48 +08:00
|
|
|
}
|
2018-09-19 21:19:11 -05:00
|
|
|
|
2018-09-12 17:01:48 +08:00
|
|
|
.main-panel {
|
2018-09-19 21:19:11 -05:00
|
|
|
flex: 1 0 75%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
.side-panel {
|
|
|
|
position:fixed;
|
|
|
|
left:-300px;
|
2018-09-25 09:13:06 +08:00
|
|
|
z-index: 99; /* important! */
|
2018-09-19 21:19:11 -05:00
|
|
|
width:300px;
|
|
|
|
height:100%;
|
|
|
|
background:#f8f8f8;
|
|
|
|
-webkit-transition: all 0.3s ease;
|
|
|
|
-moz-transition: all 0.3s ease;
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
}
|
2018-09-12 17:01:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.side-panel-north,
|
|
|
|
.main-panel-north {
|
2018-09-25 09:13:06 +08:00
|
|
|
padding: .5rem 1rem;
|
2018-09-19 21:19:11 -05:00
|
|
|
display: flex;
|
|
|
|
flex-shrink: 0;
|
2018-09-12 17:01:48 +08:00
|
|
|
background: #f4f4f7;
|
|
|
|
border-bottom: 1px solid #e8e8e8;
|
|
|
|
}
|
|
|
|
|
2018-09-19 21:19:11 -05:00
|
|
|
.side-panel-center,
|
|
|
|
.main-panel-center {
|
2018-09-12 17:01:48 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2018-09-19 21:19:11 -05:00
|
|
|
flex: 1;
|
2018-09-12 17:01:48 +08:00
|
|
|
}
|
|
|
|
|
2018-09-19 21:19:11 -05:00
|
|
|
.side-panel-center,
|
|
|
|
.side-panel-footer {
|
|
|
|
min-height: 0;
|
|
|
|
border-right: 1px solid #eee;
|
2018-09-12 17:01:48 +08:00
|
|
|
}
|
2018-09-19 21:19:11 -05:00
|
|
|
|
2018-09-21 14:16:15 +08:00
|
|
|
.cur-view-container {
|
2018-09-25 09:13:06 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex: 1 1 auto;
|
2018-09-21 14:16:15 +08:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cur-view-path {
|
2018-09-25 09:13:06 +08:00
|
|
|
position: relative; /* for the ':after' */
|
|
|
|
padding: 8px 16px;
|
|
|
|
max-height: 40px;
|
2018-09-21 14:16:15 +08:00
|
|
|
background:#f9f9f9;
|
2018-09-25 09:13:06 +08:00
|
|
|
display: flex;
|
|
|
|
flex-shrink: 0;
|
|
|
|
justify-content: space-between;
|
2018-09-21 14:16:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.cur-view-path:after {
|
2018-09-25 09:13:06 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 16px;
|
|
|
|
right: 16px;
|
|
|
|
bottom: 0;
|
|
|
|
content: '';
|
|
|
|
border-bottom: 1px solid #e8e8e8;
|
2018-09-21 14:16:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.cur-view-content {
|
2018-09-25 09:13:06 +08:00
|
|
|
padding: 10px 16px 20px;
|
2018-09-21 14:16:15 +08:00
|
|
|
height: calc(100% - 40px);
|
2018-09-25 09:13:06 +08:00
|
|
|
flex: 1;
|
|
|
|
overflow: auto;
|
2018-09-21 14:16:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.cur-view-content .hd {
|
2018-09-25 09:13:06 +08:00
|
|
|
padding-bottom: 0;
|
|
|
|
margin-bottom: .5em;
|
|
|
|
height: 48px;
|
|
|
|
padding: 9px 10px;
|
|
|
|
background: #f2f2f2;
|
|
|
|
border-radius: 2px;
|
2018-09-21 14:16:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[role=group] {
|
|
|
|
display: flex;
|
|
|
|
}
|