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

439 lines
8.0 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* Global Layout
/* ---------------------------------------------------------- */
2015-04-24 16:44:18 +03:00
2015-05-18 18:37:33 +03:00
/* Main viewport, contains main content, and alerts */
2015-05-19 11:15:16 +03:00
.gh-app {
2015-04-24 16:44:18 +03:00
display: flex;
flex-direction: column;
2015-04-24 16:44:18 +03:00
overflow: hidden;
2015-05-16 14:43:12 +03:00
height: 100vh;
2015-04-24 16:44:18 +03:00
}
2015-05-18 18:37:33 +03:00
/* Content viewport, contains everything else */
2015-05-19 11:15:16 +03:00
.gh-viewport {
flex-grow: 1;
display: flex;
max-height: 100vh;
}
2015-04-24 16:44:18 +03:00
.gh-main {
2015-05-12 17:30:35 +03:00
position: relative;
2015-04-24 16:44:18 +03:00
flex-grow: 1;
2015-05-12 15:55:24 +03:00
display: flex;
2015-05-25 22:13:00 +03:00
background: #fff;
2015-04-24 16:44:18 +03:00
}
2015-05-14 16:45:37 +03:00
/* Global Nav
/* ---------------------------------------------------------- */
2015-04-24 16:44:18 +03:00
.gh-nav {
2015-05-20 19:52:55 +03:00
position: relative;
z-index: 800;
flex: 0 0 235px;
display: flex;
flex-direction: column;
min-width: 0; /* TODO: This is a bullshit Firefox hack */
border-right: #dfe1e3 1px solid;
background: #f5f7f8;
transform: translateX(0);
}
2015-04-24 16:44:18 +03:00
.gh-nav-menu {
flex-shrink: 0;
display: flex;
align-items: center;
2015-05-20 18:37:06 +03:00
padding: 15px;
2015-05-14 16:45:37 +03:00
}
.gh-nav-menu i {
margin-right: 8px;
2015-05-16 14:43:12 +03:00
width: 11px;
height: 11px;
2015-05-14 16:45:37 +03:00
font-size: 11px;
line-height: 11px;
}
2015-04-24 16:44:18 +03:00
2015-05-14 16:45:37 +03:00
.gh-nav-menu:hover {
cursor: pointer;
2015-04-24 16:44:18 +03:00
}
.gh-nav-menu-icon {
flex-shrink: 0;
margin-right: 10px;
width: 34px;
height: 34px;
background-color: #222;
2015-05-16 14:43:12 +03:00
background-size: 34px;
2015-04-24 16:44:18 +03:00
border-radius: 4px;
}
.gh-nav-menu-details {
flex-grow: 1;
padding-right: 10px;
min-width: 0; /* TODO: This is a bullshit Firefox hack */
2015-04-24 16:44:18 +03:00
}
.gh-nav-menu-details-blog {
2015-05-16 14:43:12 +03:00
overflow: hidden;
2015-04-24 16:44:18 +03:00
margin-bottom: 1px;
2015-05-16 14:43:12 +03:00
text-overflow: ellipsis;
white-space: nowrap;
2015-04-24 16:44:18 +03:00
font-size: 1.5rem;
line-height: 1.3em;
font-weight: 600;
}
.gh-nav-menu-details-user {
2015-05-16 14:43:12 +03:00
overflow: hidden;
2015-05-14 16:45:37 +03:00
color: var(--midgrey);
2015-04-24 16:44:18 +03:00
text-overflow: ellipsis;
white-space: nowrap;
2015-05-16 14:43:12 +03:00
font-size: 1.2rem;
line-height: 1.2em;
2015-04-24 16:44:18 +03:00
}
.gh-nav-body {
flex-grow: 1;
overflow-y: auto;
}
.gh-nav-search {
position: relative;
2015-05-20 18:37:06 +03:00
margin: 0 15px 10px;
2015-04-24 16:44:18 +03:00
}
.gh-nav-search-input {
padding: 5px 8px;
border-radius: 4px;
font-size: 1.3rem;
}
.gh-nav-search-button {
position: absolute;
top: 0;
right: 0;
bottom: 0;
2015-05-16 14:43:12 +03:00
display: flex;
align-items: center;
2015-04-24 16:44:18 +03:00
padding: 0 6px 0 5px;
2015-05-14 16:45:37 +03:00
}
2015-04-24 16:44:18 +03:00
2015-05-14 16:45:37 +03:00
.gh-nav-search-button i {
width: 16px;
height: 16px;
color: var(--midgrey);
2015-05-16 14:43:12 +03:00
font-size: 13px;
2015-05-14 16:45:37 +03:00
transition: color 0.2s ease;
2015-05-16 14:43:12 +03:00
transform: rotate(90deg);
2015-05-14 16:45:37 +03:00
}
2015-04-24 16:44:18 +03:00
2015-05-14 16:45:37 +03:00
.gh-nav-search-button:hover i {
color: var(--darkgrey);
2015-04-24 16:44:18 +03:00
}
.gh-nav-list {
margin: 0;
2015-05-20 18:37:06 +03:00
padding: 0 15px 0 0;
2015-05-16 14:43:12 +03:00
list-style: none;
2015-04-24 16:44:18 +03:00
font-size: 1.3rem;
line-height: 1.5em;
}
.gh-nav-list-h {
2015-05-16 14:43:12 +03:00
overflow: hidden;
2015-04-24 16:44:18 +03:00
margin-top: 15px;
padding: 5px 10px 5px 15px;
color: #808284;
2015-04-24 16:44:18 +03:00
text-transform: uppercase;
2015-05-16 14:43:12 +03:00
text-overflow: ellipsis;
white-space: nowrap;
2015-04-24 16:44:18 +03:00
letter-spacing: 1px;
font-size: 1.2rem;
line-height: 1.1em;
}
.gh-nav-list a {
display: flex;
align-items: center;
padding: 5px 10px 5px 15px;
2015-05-12 14:09:45 +03:00
border-radius: 0 4px 4px 0;
2015-05-16 14:43:12 +03:00
color: var(--darkgrey);
2015-04-24 16:44:18 +03:00
transition: none;
}
.gh-nav-list .active {
2015-05-14 16:45:37 +03:00
background: color(var(--blue) lightness(+10%));
2015-05-16 14:43:12 +03:00
color: #fff;
2015-04-24 16:44:18 +03:00
}
.gh-nav-list a:not(.active):hover {
2015-05-20 19:52:55 +03:00
background: color(var(--blue) alpha(-85%));
2015-05-16 14:43:12 +03:00
color: var(--darkgrey);
2015-04-24 16:44:18 +03:00
}
.gh-nav-list i {
2015-05-16 14:43:12 +03:00
margin-right: 8px;
2015-04-24 16:44:18 +03:00
width: 15px;
height: 15px;
text-align: center;
2015-05-16 14:43:12 +03:00
font-size: 15px;
2015-04-24 16:44:18 +03:00
}
.gh-nav-footer {
flex-shrink: 0;
2015-05-12 21:08:55 +03:00
display: flex;
2015-04-24 16:44:18 +03:00
align-items: center;
height: 40px;
border-top: #dfe1e3 1px solid;
2015-05-20 19:52:55 +03:00
color: var(--midgrey);
2015-04-24 16:44:18 +03:00
}
2015-05-12 14:09:45 +03:00
2015-05-12 21:08:55 +03:00
.gh-nav-footer-sitelink {
flex-grow: 1;
padding: 12px;
color: color(var(--midgrey) lightness(-10%));
2015-05-20 18:37:06 +03:00
text-align: center;
2015-06-03 17:44:12 +03:00
text-transform: uppercase;
font-size: 1rem;
2015-05-20 18:37:06 +03:00
line-height: 1;
2015-05-20 19:52:55 +03:00
font-weight: 200;
2015-05-14 16:45:37 +03:00
}
2015-05-12 21:08:55 +03:00
2015-05-14 16:45:37 +03:00
.gh-nav-footer-sitelink i {
margin-left: 5px;
font-size: 1rem;
}
2015-05-12 21:08:55 +03:00
2015-05-14 16:45:37 +03:00
.gh-nav-footer-sitelink:hover {
color: var(--blue);
2015-05-12 21:08:55 +03:00
}
2015-05-14 16:45:37 +03:00
2015-05-25 22:13:00 +03:00
/* Mobile Nav
2015-05-20 18:37:06 +03:00
/* ---------------------------------------------------------- */
2015-05-25 22:13:00 +03:00
.gh-mobilemenu-button {
display: none;
2015-05-20 18:37:06 +03:00
}
2015-05-25 22:13:00 +03:00
@media (max-width: 800px) {
.gh-mobilemenu-button {
flex-shrink: 0;
display: block;
margin: 0 5px 0 -10px;
padding: 10px;
font-size: 18px;
line-height: 18px;
}
2015-05-20 18:37:06 +03:00
2015-05-25 22:13:00 +03:00
.gh-mobilemenu-button .icon-gh {
margin: 0;
}
2015-05-20 18:37:06 +03:00
2015-05-25 22:13:00 +03:00
/* Hide the nav */
.gh-nav {
position: absolute;
top: 0;
left: 0;
width: 235px;
height: 100%;
transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
transform: translate3d(-235px, 0px, 0px);
2015-05-25 22:13:00 +03:00
}
.mobile-menu-expanded .gh-nav {
2015-05-25 22:13:00 +03:00
transform: translate3d(0,0,0);
}
2015-05-20 18:37:06 +03:00
}
2015-05-25 22:13:00 +03:00
@media (max-width: 500px) {
.gh-nav {
width: 75vw;
transform: translate3d(-75vw, 0px, 0px);
2015-05-25 22:13:00 +03:00
}
.mobile-menu-expanded .gh-nav {
transform: translate3d(0,0,0);
2015-05-25 22:13:00 +03:00
}
2015-05-20 18:37:06 +03:00
}
2015-05-25 22:13:00 +03:00
/* Auto Nav - Opens and closes like OSX dock
/* ---------------------------------------------------------- */
.gh-menu-toggle {
display: flex;
justify-content: center;
align-items: center;
padding: 5px 10px;
width: 45px;
height: 27px;
border-right: #dfe1e3 1px solid;
line-height: 1;
cursor: pointer;
}
2015-05-25 22:13:00 +03:00
.gh-menu-toggle:hover {
cursor: pointer;
}
2015-05-25 22:13:00 +03:00
.gh-menu-toggle i {
transition: all 0.2s ease;
}
2015-05-25 22:13:00 +03:00
.gh-menu-toggle:hover i {
color: var(--blue);
}
2015-05-25 22:13:00 +03:00
@media (min-width: 801px) {
2015-05-25 22:13:00 +03:00
/* Hide the nav */
2015-05-20 18:37:06 +03:00
.gh-autonav .gh-nav {
2015-05-25 22:13:00 +03:00
position: absolute;
top: 0;
left: 0;
z-index: 1000;
width: 235px;
height: 100%;
transition: transform 0.20s;
/* translate3d for GPU accelerated animation - http://bit.ly/1EY1Xhx */
transform: translate3d(-220px,0,0);
}
2015-05-20 18:37:06 +03:00
2015-05-25 22:13:00 +03:00
/* THE FUTURE: Super sexy background blur for Webkit - http://cl.ly/b1rG */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
.gh-autonav .gh-nav {
background: rgba(246,246,246, 0.7);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
2015-05-20 18:37:06 +03:00
}
2015-05-25 22:13:00 +03:00
/* Bring it back on hover */
.gh-autonav .gh-nav.open {
transition: transform 0.15s;
transform: translate3d(0,0,0);
}
2015-05-20 18:37:06 +03:00
2015-05-25 22:13:00 +03:00
/* Move main content over for the closed-nav trigger bar */
.gh-autonav .gh-main {
margin-left: 15px;
}
2015-05-20 18:37:06 +03:00
}
2015-05-14 16:45:37 +03:00
/* Help (?) Menu
/* ---------------------------------------------------------- */
2015-05-12 21:08:55 +03:00
.gh-help-menu {
display: flex;
align-items: center;
border-left: #dfe1e3 1px solid;
2015-05-16 14:43:12 +03:00
cursor: pointer;
2015-05-12 21:08:55 +03:00
}
.gh-help-button {
padding: 5px 15px;
2015-05-16 14:43:12 +03:00
color: var(--midgrey);
2015-05-12 21:08:55 +03:00
text-align: center;
font-size: 1.4rem;
line-height: 1.2em;
transition: all 0.5s;
}
2015-05-14 16:45:37 +03:00
.gh-help-menu:hover .gh-help-button {
color: var(--blue);
transition: all 0.3s;
2015-05-12 21:08:55 +03:00
}
.gh-help-menu .dropdown {
right: 112px;
bottom: 215px;
2015-05-14 16:45:37 +03:00
}
2015-05-12 21:08:55 +03:00
2015-05-14 16:45:37 +03:00
.gh-help-menu .dropdown .dropdown-menu {
min-width: 200px;
}
2015-05-12 21:08:55 +03:00
2015-05-14 16:45:37 +03:00
.gh-help-menu .dropdown.fade-in-scale {
animation-duration: 0.1s;
}
2015-05-12 21:08:55 +03:00
2015-05-14 16:45:37 +03:00
.gh-help-menu .dropdown.fade-out {
animation-duration: 0.01s;
2015-05-12 21:08:55 +03:00
}
2015-05-14 16:45:37 +03:00
/* Container for App View
/* ---------------------------------------------------------- */
2015-05-12 15:55:24 +03:00
.gh-view {
flex-grow: 1;
display: flex;
flex-direction: column;
}
2015-05-12 14:09:45 +03:00
.view-header {
2015-05-12 15:55:24 +03:00
flex-shrink: 0;
2015-05-12 14:09:45 +03:00
display: flex;
justify-content: space-between;
2015-05-16 14:43:12 +03:00
align-items: center;
2015-05-12 14:09:45 +03:00
padding: 0 20px;
2015-05-16 14:43:12 +03:00
height: 65px;
border-bottom: #dfe1e3 1px solid;
2015-05-12 14:09:45 +03:00
}
.view-title {
2015-05-12 21:08:55 +03:00
display: flex;
align-items: baseline;
2015-05-16 14:43:12 +03:00
overflow: hidden;
2015-05-12 14:09:45 +03:00
margin: 0;
padding: 0;
2015-05-16 14:43:12 +03:00
text-overflow: ellipsis;
white-space: nowrap;
2015-05-12 14:09:45 +03:00
font-size: 2rem;
line-height: 1.2em;
font-weight: 400;
2015-05-14 16:45:37 +03:00
}
2015-05-12 21:08:55 +03:00
2015-05-14 16:45:37 +03:00
.view-title a {
color: inherit;
}
2015-05-12 21:08:55 +03:00
2015-05-14 16:45:37 +03:00
.view-title a:hover {
color: var(--blue);
}
.view-title i {
margin: 0 10px;
color: #818181;
font-size: 14px;
line-height: 12px;
2015-05-12 14:09:45 +03:00
}
2015-06-03 17:44:12 +03:00
.view-actions {
flex-shrink: 0;
display: flex;
}
.view-actions .btn {
margin-left: 8px;
}
2015-05-12 15:55:24 +03:00
.view-container,
.view-content {
2015-06-03 17:44:12 +03:00
position: relative;
2015-05-12 15:55:24 +03:00
flex-grow: 1;
overflow-x: hidden;
overflow-y: auto;
2015-05-14 16:45:37 +03:00
-webkit-overflow-scrolling: touch;
2015-05-12 15:55:24 +03:00
}
.view-content {
padding: 20px;
}
2015-05-14 23:30:25 +03:00
.view-content p,
.view-content p * {
user-select: text;
}