Ghost/core/client/app/styles/layouts/main.scss
John O'Nolan 2fffb4f0d2 Much fix
2015-05-22 19:02:08 +01:00

291 lines
4.6 KiB
SCSS

// 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;
}
//GH-NAV
.gh-nav-menu {
flex-shrink: 0;
display: flex;
align-items: center;
padding: 15px;
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: $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;
i {
width: 16px;
height: 16px;
font-size: 13px;
color: $midgrey;
transform: rotate(90deg);
transition: color 0.2s ease;
}
&:hover i {
color: $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: $darkgrey;
border-radius: 0 4px 4px 0;
transition: none;
}
.gh-nav-list .active {
color: #fff;
background: lighten($blue, 10%);
}
.gh-nav-list a:not(.active):hover {
color: $darkgrey;
background: lighten($blue, 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: $midgrey;
i {
margin-left: 5px;
font-size: 1rem;
}
&:hover {
color: $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: $midgrey;
transition: all 0.5s;
}
.gh-help-menu:hover {
.gh-help-button {
color: $blue;
transition: all 0.3s;
}
}
.gh-help-menu .dropdown {
right: 112px;
bottom: 215px;
.dropdown-menu {
min-width: 200px;
}
&.fade-in-scale {
animation-duration: 0.1s;
}
&.fade-out {
animation-duration: 0.01s;
}
}
//--------------------------------------------------------------
.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;
a {
color: inherit;
&:hover { color: $blue; }
}
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;
}
.view-content {
padding: 20px;
}