mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 08:54:36 +03:00
fb12237f62
closes https://github.com/TryGhost/Ghost/issues/8729, closes https://github.com/TryGhost/Ghost/issues/8728 - remove the duplicated `max-height` rules for different parts of the power select dropdowns - they were interacting with each other and causing a large part of the lists to be unreachable - bump the `bufferSize` so that enough dropdown items are rendered to fill the dropdown list - filter the temporary tags that are created when using the PSM tags input so duplicates aren't visible in the tags dropdown filter
237 lines
4.4 KiB
CSS
237 lines
4.4 KiB
CSS
/* Content /ghost/
|
|
|
|
/* Header
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.gh-contentfilter {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin: 2vw 0 1vw;
|
|
padding: 10px 0 0 0;
|
|
border-top: color(var(--lightgrey)) 1px solid;
|
|
list-style: none;
|
|
}
|
|
|
|
.gh-contentfilter-left {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.gh-contentfilter-left .gh-contentfilter-menu {
|
|
margin-right: 30px;
|
|
}
|
|
|
|
.gh-contentfilter-right {
|
|
display: flex;
|
|
}
|
|
|
|
.gh-contentfilter-right .gh-contentfilter-menu {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.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(var(--midgrey) l(+8%));
|
|
font-size: 1.5rem;
|
|
font-weight: 300;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.gh-contentfilter a.active {
|
|
font-weight: 500;
|
|
color: var(--darkgrey);
|
|
}
|
|
|
|
.gh-contentfilter-menu-trigger,
|
|
.gh-contentfilter-menu-trigger:focus,
|
|
.gh-contentfilter-menu-trigger--active {
|
|
padding: 0;
|
|
border: none;
|
|
outline: 0;
|
|
}
|
|
|
|
.gh-contentfilter-menu-trigger:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.gh-contentfilter .ember-power-select-selected-item,
|
|
.gh-contentfilter .ember-power-select-placeholder {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.gh-contentfilter-menu-dropdown {
|
|
width: 180px;
|
|
margin-top: 10px;
|
|
padding: 5px 0 7px 0;
|
|
border: none !important;
|
|
font-size: 1.3rem;
|
|
box-shadow: 0 0 0 1px rgba(99,114,130,0.16), 0 8px 16px rgba(27,39,51,0.08);
|
|
border-radius: 4px !important;
|
|
}
|
|
|
|
.gh-contentfilter-menu-dropdown .ember-power-select-search input {
|
|
display: block !important;
|
|
margin: 0 10px !important;
|
|
}
|
|
|
|
.gh-contentfilter-menu-dropdown .ember-power-select-option {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
|
|
/* Content List
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.content-list {
|
|
position: relative;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.content-list ol {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.gh-posts-list-item {
|
|
position: relative;
|
|
margin: 0;
|
|
padding: 24px 0 25px 0;
|
|
border-bottom: color(var(--lightgrey)) 1px solid;
|
|
}
|
|
|
|
.gh-posts-list-item a:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.gh-content-entry-title {
|
|
margin: 0 0 3px 0;
|
|
font-size: 2.2rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.4px;
|
|
}
|
|
|
|
.gh-content-entry-title a {
|
|
color: color(var(--darkgrey) l(+3%));
|
|
}
|
|
|
|
.gh-posts-list-item p {
|
|
margin: 0;
|
|
font-size: 1.6rem;
|
|
font-weight: 300;
|
|
}
|
|
|
|
|
|
.gh-content-entry-meta {
|
|
margin: 10px 0 0 0;
|
|
font-size: 1.3rem;
|
|
color: var(--midgrey);
|
|
font-weight: 200;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.gh-content-entry-meta .gh-badge {
|
|
margin-right: 3px;
|
|
}
|
|
|
|
.gh-content-status-published {
|
|
color: var(--darkgrey);
|
|
}
|
|
|
|
.gh-content-entry-author {
|
|
color: var(--darkgrey);
|
|
}
|
|
|
|
@media (max-width: 400px) {
|
|
.gh-posts-list-item a {
|
|
padding: 15px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.gh-posts-list-item a {
|
|
padding-right: 40px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 901px) {
|
|
.gh-posts-list-item a:after {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 901px) {
|
|
.content-list .active a {
|
|
box-shadow: var(--blue) 3px 0 0 inset;
|
|
}
|
|
}
|
|
|
|
|
|
/* Empty State
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.no-posts-box {
|
|
position: relative;
|
|
z-index: 600;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin: 0 auto;
|
|
padding: 0;
|
|
height: 70vh;
|
|
}
|
|
|
|
.no-posts-box .no-posts {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.no-posts-box .no-posts h3 {
|
|
margin-bottom: 20px;
|
|
color: var(--midgrey);
|
|
font-size: 2em;
|
|
font-weight: 200;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
|
|
/* 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 {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 500;
|
|
animation: keyboard-focus-style-fade-out 1.5s 1 forwards;
|
|
pointer-events: none;
|
|
}
|