Ghost/ghost/admin/app/styles/layouts/content.css

375 lines
6.7 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* Content /ghost/
/* ---------------------------------------------------------- */
/* Show/Hide on Mobile // TODO: What the fuck does that mean?
/* ---------------------------------------------------------- */
.content-list.show-menu {
display: block;
}
.content-list.show-content {
display: none;
}
.content-preview.show-menu {
display: none;
}
.content-preview.show-content {
display: block;
}
/* Content List (Left pane)
/* ---------------------------------------------------------- */
.content-list {
width: 33%;
padding: 15px;
position: absolute;
bottom: 0;
top: 0;
left: 0;
border-right: #e1e1e1 1px solid;
background: #fff;
}
@media (max-width: 900px) {
.content-list {
width: auto;
right: 0;
z-index: 500;
border: none;
}
}
.content-list .content-list-content {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.content-list .entry-title {
font-size: 1.6rem;
line-height: 1.4em;
font-weight: normal;
}
.content-list .entry-meta {
margin-top: 14px;
line-height: 18px;
}
.content-list .avatar {
float: left;
margin-right: 14px;
width: 18px;
height: 18px;
border-radius: 18px;
background-size: cover;
background-position: center center;
position: relative;
}
.content-list .avatar img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
}
.content-list .status,
.content-list .author {
font-size: 1.3rem;
font-weight: 300;
transition: opacity 0.15s linear;
}
.content-list .avatar:hover + .author + .status {
opacity: 0;
}
.content-list .avatar:hover + .author {
opacity: 1;
}
.content-list .author {
position: absolute;
bottom: 22px;
left: 56px;
opacity: 0;
}
.content-list .status .draft {
color: var(--red);
}
.content-list .status .scheduled {
color: var(--orange);
}
.content-list ol {
list-style: none;
padding: 0;
margin: 0;
border-top: #e1e1e1 1px solid;
}
.content-list li {
position: relative;
margin: 0;
padding: 0;
border-bottom: #e1e1e1 1px solid;
}
.content-list li a {
display: block;
padding: 19px 20px 22px 24px;
color: rgba(0, 0, 0, 0.5);
}
.content-list li a:hover {
text-decoration: none;
}
@media (max-width: 400px) {
.content-list li a {
padding: 15px;
}
}
@media (max-width: 900px) {
.content-list li a {
padding-right: 40px;
}
}
@media (min-width: 901px) {
.content-list li a:after {
display: none;
}
}
@media (min-width: 901px) {
.content-list .active {
background: color(#e1e1e1 lightness(+9%));
}
}
/* Preview (Right pane)
/* ---------------------------------------------------------- */
.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) {
.content-preview {
width: 100%;
border: none;
overflow: visible;
}
}
.content-preview .unfeatured {
vertical-align: -6%;
margin: 0 7px 0 -5px;
padding: 3px;
}
.content-preview .featured {
vertical-align: -6%;
margin: 0 7px 0 -5px;
padding: 3px;
}
.content-preview .post-published-by .status a {
color: inherit;
}
.content-preview .post-published-by .status a:hover {
text-decoration: underline;
}
.content-preview .normal {
text-transform: none;
margin: 0 3px;
}
.content-preview .content-preview-content {
padding: 5%;
word-break: break-word;
hyphens: auto;
}
@media (max-width: 900px) {
.content-preview .content-preview-content {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
}
.content-preview .content-preview-content .wrapper {
max-width: 700px;
margin: 0 auto;
}
.content-preview .post-controls {
float: right;
position: relative;
top: 3px;
}
.content-preview .post-settings-menu {
position: absolute;
top: 35px;
right: -3px;
}
.content-preview img {
width: 100%;
height: auto;
}
.post-preview-header .page-title,
.post-preview-header .btn-back {
display: none;
}
@media (max-width: 900px) {
.post-preview-header {
position: fixed;
left: 0;
right: 0;
top: 0;
z-index: 3000;
height: 44px;
text-align: center;
color: #fff;
background: #242628;
overflow: hidden;
}
.post-preview-header .btn-back {
display: block;
position: absolute;
top: 4px;
left: 4px;
color: #fff;
background-color: transparent;
}
.post-preview-header .page-title {
display: block;
}
.post-preview-header .post-controls {
position: absolute;
top: 4px;
right: 4px;
}
.post-preview-header .post-edit {
color: #fff;
background-color: transparent;
}
2015-05-16 00:28:30 +03:00
.post-preview-header .featured,
.post-preview-header .unfeatured,
.post-preview-header small {
2015-05-14 16:45:37 +03:00
display: none;
}
}
@media (min-width: 901px) {
2015-05-16 00:28:30 +03:00
.post-preview-header .unfeatured,
.post-preview-header .featured {
2015-05-14 16:45:37 +03:00
float: left;
}
.post-preview-header .post-published-by {
float: left;
margin-top: 7px;
margin-left: 3px;
}
}
/* Empty State
/* ---------------------------------------------------------- */
.no-posts-box {
position: relative;
height: 90%;
2015-05-16 00:28:30 +03:00
margin: 0 auto;
padding: 0;
2015-05-14 16:45:37 +03:00
display: table;
z-index: 600;
}
@media (max-width: 900px) {
.no-posts-box {
position: fixed;
top: 45%;
left: 50%;
}
}
.no-posts-box .no-posts {
vertical-align: middle;
display: table-cell;
text-align: center;
}
@media (max-width: 900px) {
.no-posts-box .no-posts {
display: block;
position: relative;
left: -50%;
}
}
.no-posts-box .no-posts h3 {
color: var(--brown);
font-weight: 200;
font-size: 2em;
}
/* Keyboard Focus Effects
/* ---------------------------------------------------------- */
/* This has to be a pseudo element to sit over the top of everything else in the content list */
.content-list.keyboard-focused:before {
2015-05-16 00:28:30 +03:00
content: "";
2015-05-14 16:45:37 +03:00
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 500;
pointer-events: none;
animation: keyboard-focus-style-fade-out 1.5s 1 forwards;
}
.content-preview.keyboard-focused {
animation: keyboard-focus-style-fade-out 1.5s 1 forwards;
}