mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
42eb736b15
closes https://github.com/TryGhost/Ghost/issues/9494, refs https://github.com/TryGhost/Ghost/issues/10365 - removed `overflow-y: auto` on posts list to fix the vertical scrolling - added `overflow-wrap: break-word` so that post previews are forced to wrap for long words such as URLs - added `-webkit-overflow-scrolling: touch` to the main scrollable pane so that iOS Safari uses momentum scrolling
241 lines
4.5 KiB
CSS
241 lines
4.5 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-mod(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-mod(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;
|
|
}
|
|
|
|
.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-mod(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-mod(var(--darkgrey) l(+3%));
|
|
}
|
|
|
|
.gh-posts-list-item p {
|
|
margin: 0;
|
|
font-size: 1.6rem;
|
|
font-weight: 300;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
|
|
.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);
|
|
}
|
|
|
|
.gh-posts-placeholder {
|
|
width: 145px;
|
|
margin: -30px 0 15px;
|
|
}
|
|
|
|
.gh-pages-placeholder {
|
|
width: 136px;
|
|
margin: -30px 0 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;
|
|
}
|