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

509 lines
9.8 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* Content /ghost/
/* Header
2015-05-14 16:45:37 +03:00
/* ---------------------------------------------------------- */
.gh-contentfilter {
display: flex;
2017-03-11 14:23:44 +03:00
align-items: center;
justify-content: space-between;
margin: 0 24px;
padding: 0;
list-style: none;
2015-05-14 16:45:37 +03:00
}
.gh-contentfilter li {
position: relative;
display: inline-block;
margin: 0 25px 0 0;
}
.gh-contentfilter li.active:after {
content: "";
display: block;
width: 100%;
height: 1px;
background: var(--darkgrey);
position: absolute;
top: -1px;
opacity: 0.5;
}
.gh-contentfilter li a {
display: block;
padding: 13px 1px 0;
color: color-mod(var(--midgrey) l(+8%));
font-size: 1.5rem;
font-weight: 400;
letter-spacing: 0.3px;
}
.gh-contentfilter a.active {
font-weight: 500;
color: var(--darkgrey);
2015-05-14 16:45:37 +03:00
}
2017-04-10 14:16:19 +03:00
.gh-contentfilter-menu-trigger,
.gh-contentfilter-menu-trigger:focus,
.gh-contentfilter-menu-trigger--active {
background: var(--white);
2021-02-04 18:52:19 +03:00
font-size: 1.35rem;
font-weight: 400;
color: var(--darkgrey);
letter-spacing: 0.2px;
2021-02-12 16:29:44 +03:00
height: 34px;
padding: 6px 12px 6px;
margin-right: 8px;
outline: none;
2017-04-10 14:16:19 +03:00
border: none;
border-radius: 2px !important;
white-space: nowrap;
transition: all 0.25s ease;
2021-02-12 16:29:44 +03:00
overflow: hidden;
2017-04-10 14:16:19 +03:00
}
.gh-contentfilter-menu-trigger:hover {
cursor: pointer;
color: var(--darkgrey);
background: var(--whitegrey);
}
.gh-contentfilter-selected .gh-contentfilter-menu-trigger,
.gh-contentfilter-selected .gh-contentfilter-menu-trigger:hover {
2021-02-04 20:19:39 +03:00
color: var(--green);
2021-02-04 17:25:20 +03:00
font-weight: 600;
2021-02-04 20:19:39 +03:00
background: var(--whitegrey-l1);
}
2021-02-05 14:04:36 +03:00
.gh-canvas-header.grey .gh-contentfilter-menu-trigger,
.gh-canvas-header.grey .gh-contentfilter-menu-trigger:focus,
.gh-canvas-header.grey .gh-contentfilter-menu-trigger--active {
background: var(--main-color-content-greybg);
}
.gh-contentfilter-menu-trigger svg path {
stroke: var(--black);
2017-04-10 14:16:19 +03:00
}
2021-02-11 18:24:40 +03:00
.gh-btn-save-view svg {
margin-top: 3px !important;
}
2017-04-10 14:16:19 +03:00
.gh-contentfilter .ember-power-select-selected-item,
.gh-contentfilter .ember-power-select-placeholder {
margin-left: 0;
}
.gh-contentfilter-menu-dropdown {
width: 180px;
margin-top: 6px;
padding: 6px 0;
2017-04-10 14:16:19 +03:00
border: none !important;
2021-02-04 18:52:19 +03:00
font-size: 1.35rem;
box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 7px 20px -5px rgba(0,0,0,.15);
border-radius: 5px !important;
2017-04-10 14:16:19 +03:00
}
.gh-contentfilter-menu-dropdown .ember-power-select-search input {
display: block !important;
margin: 0 14px !important;
border-bottom: 1px solid var(--lightgrey) !important;
width: calc(100% - 28px) !important;
2017-04-10 14:16:19 +03:00
}
.gh-contentfilter-menu-dropdown .ember-power-select-option {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.gh-contentfilter-sort .gh-contentfilter-menu-trigger .ember-power-select-selected-item::before {
content: "Sort by: ";
}
.gh-contentfilter-actions svg {
width: 18px;
height: 18px;
margin: 2px 0 0;
color: var(--black);
}
.gh-contentfilter-actions svg g {
stroke: var(--black);
}
.gh-contentfilter-button {
display: flex;
height: 33px;
line-height: 33px;
2021-02-04 20:19:39 +03:00
background: color-mod(var(--whitegrey-l1) l(-3%));
}
2015-05-14 16:45:37 +03:00
/* Content List
2015-05-14 16:45:37 +03:00
/* ---------------------------------------------------------- */
.content-list {
position: relative;
2015-05-14 16:45:37 +03:00
}
.gh-posts-list-item {
position: relative;
}
.gh-posts-list-item a:hover {
text-decoration: none;
}
.content-list .gh-list-header.no-padding {
padding: 0 !important;
}
2019-11-14 15:53:43 +03:00
.gh-posts-title-header {
padding-left: 10px;
}
.gh-posts-sends-header,
.gh-posts-opens-header {
width: 120px;
2019-11-14 15:53:43 +03:00
}
.gh-posts-status-header {
width: 140px;
2019-11-14 15:53:43 +03:00
}
.gh-post-list-title {
padding-left: 10px;
}
.gh-post-list-featured {
padding: 15px 0px 20px 10px;
width: 1px;
vertical-align: top;
}
.gh-post-list-updated,
.gh-post-list-author,
.gh-post-list-recipients,
.gh-post-list-opens {
color: var(--middarkgrey);
font-size: 1.3rem;
}
.gh-content-entry-title {
margin: 0 0 3px 0;
font-size: 1.6rem !important;
font-weight: 600;
2015-05-14 16:45:37 +03:00
}
.gh-content-entry-title a {
color: var(--darkgrey);
2015-05-14 16:45:37 +03:00
}
.gh-posts-list-item p {
margin: 2px 0 0;
font-size: 1.3rem;
overflow-wrap: break-word;
color: var(--middarkgrey);
}
.gh-schedule-plan {
color: var(--green-d1);
2015-05-14 16:45:37 +03:00
}
.gh-schedule-subtext {
max-width: 200px;
}
2015-05-14 16:45:37 +03:00
.gh-content-entry-meta {
margin: 4px 0 0 0;
font-size: 1.3rem;
color: var(--midlightgrey);
2015-05-14 16:45:37 +03:00
}
.gh-content-entry-meta .gh-badge {
margin-right: 3px;
2015-05-14 16:45:37 +03:00
}
.gh-content-email-stats-mobile {
display: none;
}
2019-11-22 18:25:06 +03:00
.gh-content-status-draft,
.gh-content-status-published,
.gh-content-status-scheduled,
2019-11-22 18:25:06 +03:00
.gh-content-status-emailed {
display: flex;
justify-content: center;
align-items: center;
height: 19px;
2021-02-12 19:15:25 +03:00
padding: 0 9px;
2019-11-22 18:25:06 +03:00
}
.gh-content-status-published {
color: var(--midgrey);
2021-02-11 12:56:54 +03:00
background: var(--whitegrey);
display: inline-block;
2021-02-12 19:15:25 +03:00
border-radius: 999px;
text-transform: uppercase;
font-size: 1.2rem;
2021-02-12 19:15:25 +03:00
padding: 0 9px;
font-weight: 500;
}
.gh-content-status-featured {
color: var(--blue);
text-transform: uppercase;
font-size: 1.2rem;
font-weight: 500;
padding: 0 3px 0 0;
}
.gh-content-status-featured svg {
display: inline-block;
width: 12px;
height: 12px;
margin-left: -4px;
}
.gh-content-status-featured svg path {
fill: var(--blue);
2015-05-14 16:45:37 +03:00
}
2019-11-22 18:25:06 +03:00
.gh-content-status-emailed {
2019-11-14 15:53:43 +03:00
display: inline-block;
2019-11-22 18:25:06 +03:00
margin: 0px 6px;
background: var(--lightgrey);
padding-right: 5px;
border-radius: 3px;
}
.gh-content-status-emailed svg {
width: 12px;
height: 12px;
2019-11-14 15:53:43 +03:00
}
2019-11-22 18:25:06 +03:00
.gh-content-status-emailed.error {
background: color-mod(var(--red) a(10%));
2019-11-14 15:53:43 +03:00
}
.gh-content-status-emailed.scheduled {
background: color-mod(var(--green) a(20%));
}
.gh-content-entry-author {
color: var(--middarkgrey);
2015-05-14 16:45:37 +03:00
}
.gh-posts-placeholder {
width: 120px;
margin: -30px 0 15px;
}
.gh-pages-placeholder {
width: 118px;
margin: -30px 0 15px;
}
2019-11-08 13:17:28 +03:00
.gh-post-list-email {
padding: 0 15px 2px;
width: 1px;
}
/* Mobile style of post list */
@media (max-width: 1000px) {
.gh-posts-list-item {
display: flex;
flex-wrap: wrap;
2021-02-12 16:29:44 +03:00
border-bottom: 1px solid var(--whitegrey);
margin: 0;
}
.gh-posts-list-item:nth-of-type(2) {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.gh-posts-list-item:hover {
background: var(--whitegrey-l2);
}
.gh-posts-list-item:hover .gh-list-data {
background: none !important;
}
.gh-post-list-featured {
display: block;
order: 1;
border-bottom: none;
position: absolute;
left: -6px;
top: 4px;
border: none;
}
.gh-post-list-title {
display: block;
order: 2;
flex: 1 1 100%;
border: none;
padding: 20px 28px 4px;
}
.gh-post-list-status,
.gh-post-list-recipients,
.gh-post-list-opens {
display: inline-block;
border: none;
2021-02-12 16:29:44 +03:00
padding: 0 4px 20px 0;
font-size: 1.3rem;
max-width: 140px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.gh-post-list-status {
order: 3;
}
.gh-post-list-recipients {
order: 4;
}
.gh-post-list-opens {
order: 5;
}
.gh-post-list-updated {
display: inline-block;
order: 6;
border: none;
padding: 0 4px 20px;
font-size: 1.3rem;
max-width: calc((100% - 140px) * 1/4);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.gh-post-list-author {
display: inline-block;
order: 7;
border: none;
padding: 0 4px 20px 0;
font-size: 1.3rem;
max-width: calc((100% - 140px) * 3/4);;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.gh-post-list-author:before {
content: "- by";
}
.gh-post-headers,
.gh-post-list-actions {
display: none;
}
.gh-content-email-stats {
display: none;
}
.gh-content-email-stats-mobile {
display: inherit;
}
}
@media (max-width: 800px) {
.post-header {
left: 0;
}
.post-header .gh-canvas-title {
left: 25px;
}
.gh-post-list-updated {
display: none;
}
.gh-post-list-author {
max-width: calc(100% - 140px);
2015-05-14 16:45:37 +03:00
}
}
@media (max-width: 430px) {
.post-header .view-actions .gh-contentfilter {
border-right: 1px solid var(--whitegrey-d1);
}
.gh-contentfilter-menu:last-of-type {
padding-right: 8px;
}
}
2015-05-14 16:45:37 +03:00
@media (min-width: 901px) {
.gh-posts-list-item a:after {
2015-05-14 16:45:37 +03:00
display: none;
}
}
/* Empty State
/* ---------------------------------------------------------- */
.no-posts {
background: none;
box-shadow: none;
2021-02-08 23:37:05 +03:00
border: none !important;
}
.no-posts + .infinity-loader {
padding: 0 !important;
}
2015-05-14 16:45:37 +03:00
.no-posts-box {
position: relative;
2015-05-16 14:43:12 +03:00
z-index: 600;
display: flex;
justify-content: center;
align-items: center;
2015-05-16 00:28:30 +03:00
margin: 0 auto;
2021-02-08 23:37:05 +03:00
padding: 0;
height: calc(100vh - 200px);
2015-05-14 16:45:37 +03:00
}
.no-posts-box .no-posts {
display: flex;
flex-direction: column;
align-items: center;
2015-05-14 16:45:37 +03:00
}
.no-posts-box .no-posts h3 {
margin-bottom: 20px;
color: var(--midgrey);
2015-05-14 16:45:37 +03:00
font-size: 2em;
2019-11-22 13:53:57 +03:00
font-weight: 300;
2015-05-14 16:45:37 +03:00
}
/* Keyboard Focus Effects
/* ---------------------------------------------------------- */
/* This has to be a pseudo element to sit over the top of everything else in the content list */
.tag-list-content.keyboard-focused:before,
.tag-settings.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;
animation: keyboard-focus-style-fade-out 1.5s 1 forwards;
2015-05-16 14:43:12 +03:00
pointer-events: none;
2015-05-14 16:45:37 +03:00
}