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

231 lines
4.3 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: 2vw 0 1vw;
2017-03-13 13:48:21 +03:00
padding: 10px 0 0 0;
border-top: color(var(--lightgrey)) 1px solid;
list-style: none;
2015-05-14 16:45:37 +03:00
}
2017-03-13 13:48:21 +03:00
.gh-contentfilter-left {
display: flex;
align-items: center;
}
.gh-contentfilter-left .gh-contentfilter-menu {
2017-04-10 14:16:19 +03:00
margin-right: 30px;
2017-03-13 13:48:21 +03:00
}
.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);
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 {
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 {
min-width: 150px;
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;
}
2015-05-14 16:45:37 +03:00
/* Content List
2015-05-14 16:45:37 +03:00
/* ---------------------------------------------------------- */
.content-list {
position: relative;
overflow-y: auto;
2015-05-14 16:45:37 +03:00
}
.content-list ol {
margin: 0;
padding: 0;
list-style: none;
2015-05-14 16:45:37 +03:00
}
.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;
2015-05-14 16:45:37 +03:00
}
.gh-content-entry-title a {
color: color(var(--darkgrey) l(+3%));
2015-05-14 16:45:37 +03:00
}
.gh-posts-list-item p {
margin: 0;
font-size: 1.6rem;
2015-05-14 16:45:37 +03:00
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;
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-status-published {
color: var(--darkgrey);
2015-05-14 16:45:37 +03:00
}
.gh-content-entry-author {
color: var(--darkgrey);
2015-05-14 16:45:37 +03:00
}
@media (max-width: 400px) {
.gh-posts-list-item a {
2015-05-14 16:45:37 +03:00
padding: 15px;
}
}
@media (max-width: 900px) {
.gh-posts-list-item a {
2015-05-14 16:45:37 +03:00
padding-right: 40px;
}
}
@media (min-width: 901px) {
.gh-posts-list-item a:after {
2015-05-14 16:45:37 +03:00
display: none;
}
}
@media (min-width: 901px) {
.content-list .active a {
2016-11-14 12:55:08 +03:00
box-shadow: var(--blue) 3px 0 0 inset;
2015-05-14 16:45:37 +03:00
}
}
/* Empty State
/* ---------------------------------------------------------- */
.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;
padding: 0;
2017-04-10 14:16:19 +03:00
height: 70vh;
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;
2015-05-16 14:43:12 +03:00
font-weight: 200;
2017-04-10 14:16:19 +03:00
letter-spacing: 1px;
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
}