Ghost/ghost/admin/app/styles/layouts/main.css
2015-05-22 19:05:09 +01:00

304 lines
5.0 KiB
CSS

/* Global Layout
/* ---------------------------------------------------------- */
.gh-viewport {
display: flex;
height: 100vh;
overflow: hidden;
}
.gh-nav {
flex: 0 0 220px;
display: flex;
flex-direction: column;
border-right: #E1E1E1 1px solid;
background: #F6F6F6;
}
.gh-main {
position: relative;
flex-grow: 1;
display: flex;
}
/* Global Nav
/* ---------------------------------------------------------- */
.gh-nav-menu {
flex-shrink: 0;
display: flex;
align-items: center;
padding: 15px;
}
.gh-nav-menu i {
height: 11px;
width: 11px;
margin-right: 8px;
font-size: 11px;
line-height: 11px;
}
.gh-nav-menu:hover {
cursor: pointer;
}
.gh-nav-menu-icon {
flex-shrink: 0;
margin-right: 10px;
width: 34px;
height: 34px;
background-size: 34px;
background-color: #222;
border-radius: 4px;
}
.gh-nav-menu-details {
flex-grow: 1;
padding-right: 10px;
}
.gh-nav-menu-details-blog {
margin-bottom: 1px;
font-size: 1.5rem;
line-height: 1.3em;
font-weight: 600;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.gh-nav-menu-details-user {
font-size: 1.2rem;
line-height: 1.2em;
color: var(--midgrey);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.gh-nav-body {
flex-grow: 1;
overflow-y: auto;
}
.gh-nav-search {
position: relative;
margin: 0 15px 10px;
}
.gh-nav-search-input {
padding: 5px 8px;
border-radius: 4px;
font-size: 1.3rem;
}
.gh-nav-search-button {
display: flex;
align-items: center;
position: absolute;
top: 0;
right: 0;
bottom: 0;
padding: 0 6px 0 5px;
}
.gh-nav-search-button i {
width: 16px;
height: 16px;
font-size: 13px;
color: var(--midgrey);
transform: rotate(90deg);
transition: color 0.2s ease;
}
.gh-nav-search-button:hover i {
color: var(--darkgrey);
}
.gh-nav-list {
list-style: none;
margin: 0;
padding: 0 15px 0 0;
font-size: 1.3rem;
line-height: 1.5em;
}
.gh-nav-list-h {
margin-top: 15px;
padding: 5px 10px 5px 15px;
text-transform: uppercase;
letter-spacing: 1px;
color: #828282;
font-size: 1.2rem;
line-height: 1.1em;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.gh-nav-list a {
display: flex;
align-items: center;
padding: 5px 10px 5px 15px;
color: var(--darkgrey);
border-radius: 0 4px 4px 0;
transition: none;
}
.gh-nav-list .active {
color: #fff;
background: color(var(--blue) lightness(+10%));
}
.gh-nav-list a:not(.active):hover {
color: var(--darkgrey);
background: color(var(--blue) lightness(+30%));
}
.gh-nav-list i {
width: 15px;
height: 15px;
margin-right: 8px;
font-size: 15px;
text-align: center;
}
.gh-nav-footer {
flex-shrink: 0;
display: flex;
align-items: center;
height: 40px;
border-top: #E1E1E1 1px solid;
}
.gh-nav-footer-sitelink {
flex-grow: 1;
display: flex;
padding: 12px;
font-size: 1.3rem;
line-height: 1.2em;
color: var(--midgrey);
}
.gh-nav-footer-sitelink i {
margin-left: 5px;
font-size: 1rem;
}
.gh-nav-footer-sitelink:hover {
color: var(--blue);
}
/* Help (?) Menu
/* ---------------------------------------------------------- */
.gh-help-menu {
display: flex;
align-items: center;
padding: 5px 10px;
cursor: pointer;
border-left: #e1e1e1 1px solid;
}
.gh-help-button {
padding: 0 5px;
text-align: center;
font-size: 1.4rem;
line-height: 1.2em;
color: var(--midgrey);
transition: all 0.5s;
}
.gh-help-menu:hover .gh-help-button {
color: var(--blue);
transition: all 0.3s;
}
.gh-help-menu .dropdown {
right: 112px;
bottom: 215px;
}
.gh-help-menu .dropdown .dropdown-menu {
min-width: 200px;
}
.gh-help-menu .dropdown.fade-in-scale {
animation-duration: 0.1s;
}
.gh-help-menu .dropdown.fade-out {
animation-duration: 0.01s;
}
/* Container for App View
/* ---------------------------------------------------------- */
.gh-view {
flex-grow: 1;
display: flex;
flex-direction: column;
}
.view-header {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: space-between;
height: 65px;
padding: 0 20px;
border-bottom: #E1E1E1 1px solid;
}
.view-title {
display: flex;
align-items: baseline;
margin: 0;
padding: 0;
font-size: 2rem;
line-height: 1.2em;
font-weight: 400;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.view-title a {
color: inherit;
}
.view-title a:hover {
color: var(--blue);
}
.view-title i {
margin: 0 10px;
color: #818181;
font-size: 1.4rem;
}
.view-actions {
display: flex;
}
.view-container,
.view-content {
flex-grow: 1;
overflow-x: hidden;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.view-content {
padding: 20px;
}
.view-content p,
.view-content p * {
user-select: text;
}