// // Content Management // -------------------------------------------------- // Slug: /ghost/ // -------------------------------------------------- .content-view-container { position: relative; height: 100%; width: 100%; @media (max-width: 900px) { overflow-x: hidden; } } // Show/hide content list & preview on mobile .content-list { &.show-menu { display: block; } &.show-content { display: none; } } .content-preview { &.show-menu { display: none; } &.show-content { display: block; } } .content-list { width: 33%; padding: 15px; position: absolute; bottom: 0; top: 0; left: 0; border-right: $lightbrown 1px solid; background: #fff; @media (max-width: 900px) { width: auto; right: 0; z-index: 500; border: none; } .content-filter { position: relative; z-index: 300; > a { padding: 5px; margin-left: -5px; } .menu-drop { display: block; } } .btn-green { @include icon($i-add); position: absolute; top: 9px; right: 20px; z-index: 700; padding: 2px 4px 3px 5px; color: #fff !important; // getting overridden by floatingheader } .content-list-content { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: auto; -webkit-overflow-scrolling: touch; padding-top: 40px; } .entry-title { font-size: 1.6rem; line-height: 1.25em; font-weight: normal; } .views { @include icon($i-stats, 10px, $brown); float: right; text-align: right; margin-left: 15px; @media (max-width: 900px) { float: none; } } .status { font-size: 1.3rem; font-weight: 300; .draft { color: $red; } .scheduled { color: $orange; } } .featured .status { @include icon($i-featured, 11px) { margin-right: 10px; vertical-align: 7%; }; } ol { list-style: none; padding: 0; margin: 0; border-top: $lightbrown 1px solid; } li { margin: 0; padding: 0; border-bottom: $lightbrown 1px solid; a { display: block; padding: 20px 20px; color: rgba(0,0,0,0.5); @media (max-width: 400px) { padding: 15px; } @media (max-width: 900px) { padding-right: 40px; } @include icon-after($i-chevron) { position: absolute; top: 50%; margin-top: -6px; right: 15px; } @media (min-width: 901px) { &:after { display: none; } } &:hover { text-decoration: none; } } // a } // li li.active { @media (min-width: 901px) { // only apply active styles on larger devices border-bottom: lighten($midgrey, 40%) 1px solid; background: lighten($lightbrown, 5%); box-shadow: lighten($midgrey, 40%) 0 -1px 0, // top border rgba(0,0,0,0.06) 7px 0 0 inset, // big left border lighten($midgrey, 40%) 1px 0 0 inset; // small left border .views { @include icon($i-stats, 10px, $darkgrey); color: $darkgrey; font-weight: normal; } } } // li.active } // .content-list // // Preview // -------------------------------------------------- .content-preview { width: 67%; padding: 15px; position: absolute; bottom: 0; top: 0; right: 0; overflow: auto; -webkit-overflow-scrolling: touch; background: #fff; @media (max-width: 900px) { width: 100%; border: none; overflow: visible; } .unfeatured { @include icon($i-unfeatured, 14px); vertical-align: -6%; margin: 0 7px 0 -5px; padding: 3px; } .featured { @include icon($i-featured, 14px); vertical-align: -6%; margin: 0 7px 0 -5px; padding: 3px; } .normal { text-transform: none; margin: 0 3px; } .content-preview-content { padding: 5%; word-break: break-word; hyphens: auto; @media (max-width: 900px) { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: auto; -webkit-overflow-scrolling: touch; } .wrapper { max-width: 700px; margin:0 auto; } } // .content-preview-content .post-controls { float:right; position: relative; top: 3px; } .post-settings-menu { position: absolute; top: 35px; right: -3px; } .post-edit { @include icon($i-edit, 14px); } img { width:100%; height:auto; } } // .content-preview .post-preview-header { .page-title, .btn-back { display: none; } @media (max-width: 900px) { position: fixed; left: 0; right: 0; top: 0; z-index: 3000; height: 44px; text-align: center; color: #fff; background: #242628; overflow: hidden; .btn-back { display: block; position: absolute; top: 4px; left: 4px; color: #fff; background-color: transparent; } .page-title { display: block; } .post-controls { position: absolute; top: 4px; right: 4px; } .post-edit { color: #fff; background-color: transparent; } .featured, .unfeatured, small { display: none; } // @media (max-width: 900px) } @media (min-width: 901px) { .unfeatured, .featured { float: left; } .post-published-by { float: left; margin-top: 7px; margin-left: 3px; } } } // .post-preview-header .no-posts-box { position: relative; height: 90%; margin: 0px auto; padding: 0px; display: table; z-index: 600; @media (max-width: 900px) { position: fixed; top: 45%; left: 50%; } .no-posts { vertical-align: middle; display: table-cell; text-align: center; @media (max-width: 900px) { display: block; position: relative; left: -50%; } h3 { color: $brown; font-weight: 200; font-size: 2em; } } // ,no-posts } // .no-posts-box