#wrapper, .wrapper { width: 100%; height: 100%; display: flex; flex-direction: column; } /* for top bottom layout*/ #header { display: flex; } /* for left right layout */ #main { flex: 1; display: flex; min-height: 0; } .side-panel { flex: 0 0 25%; display: flex; flex-direction: column; overflow: hidden; } .main-panel { flex: 1 0 75%; display: flex; flex-direction: column; } @media (max-width: 767px) { .side-panel { position:fixed; left:-300px; z-index: 99; /* important! */ width:300px; height:100%; background:#f8f8f8; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; transition: all 0.3s ease; } } .side-panel-north, .main-panel-north { padding: .5rem 1rem; display: flex; flex-shrink: 0; background: #f4f4f7; border-bottom: 1px solid #e8e8e8; } @media (max-width: 767px) { .side-panel-north { border-right: 1px solid #eee; } .main-panel-north { padding-bottom: 0.25rem; } } .side-panel-center, .main-panel-center { display: flex; flex-direction: column; flex: 1; min-height: 0; } .side-panel-center, .side-panel-footer { min-height: 0; border-right: 1px solid #eee; } .cur-view-container { display: flex; flex-direction: column; flex: 1 1 auto; overflow: hidden; min-height: 0; } .cur-view-path { position: relative; /* for the ':after' */ padding: 8px 16px; max-height: 40px; background:#f9f9f9; display: flex; flex-shrink: 0; justify-content: space-between; } .cur-view-path:after { position: absolute; left: 16px; right: 16px; bottom: 0; content: ''; border-bottom: 1px solid #e8e8e8; } .cur-view-content { padding: 0.625rem 1rem 1.25rem; height: calc(100% - 40px); flex: 1; min-height: 0; overflow: auto; } .cur-view-content .article { padding: 40px; } .wiki-main-panel .cur-view-content .article { padding: 0 10px; } .cur-view-content .hd { padding-bottom: 0; margin-bottom: .5em; height: 48px; padding: 9px 10px; background: #f2f2f2; border-radius: 2px; } .cur-view-content .permission-editor-select .permission-editor__control { height: 24px; min-height: 24px; } .cur-view-detail { flex: 0 0 20rem; display: flex; } /* for reach/router */ [role=group] { display: flex; flex: 1; flex-direction: column; min-height: 0; } .header { padding: 0.625rem; display: flex; flex-shrink:0; align-items: center; justify-content: space-between; background-color: #fff; border-bottom: 1px solid #e5e5e5; box-shadow: 0 3px 2px -2px rgba(200,200,200,.15); } .header .cur-file-info { display: flex; margin-left: 0.5rem; } .header .info-item { display: flex; font-size: 1.2rem; font-weight: bold; margin-right: 0.5rem; align-items: center; justify-content: center; } .header .file-copywriting { margin-left: 0.5rem; font-size: 1rem; font-weight: normal; color: #999; } .header .file-feature { width: 2.9375rem; height: 2.9375rem; font-size: 1.8rem; background-color: #fbcb09; color: #fff; } .header .file-operation-btn { margin-right: 0.25rem; } .review { padding: 0; } .review .cur-file-info { margin: 0; } .review .file-feature { width: 4.1875rem; height: 4.1875rem; font-size: 3rem; } .review-state { position: relative; margin: auto 0.5rem; border: 1px solid transparent; border-radius: 3px; } .review-state-finished { color: #316100; background-color: #dff1cc; border-color: #d2ecb8; } .review-state-closed { color: #6b1110; background-color: #f5d2d2; border-color: #f1c1c0; } .review-state-closed:focus, .review-state-finished:focus { box-shadow: 0 0 0 0; } img[src=""],img:not([src]){ /* for first loading img*/ opacity:0; }