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

375 lines
6.6 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;
}
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-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: 1000;
flex: 0 0 235px;
display: flex;
flex-direction: column;
2015-05-20 18:37:06 +03:00
border-right: #e1e1e1 1px solid;
background: #f6f6f6;
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;
}
.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;
2015-05-16 14:43:12 +03:00
color: #828282;
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;
2015-05-16 00:28:30 +03:00
border-top: #e1e1e1 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;
2015-05-16 14:43:12 +03:00
color: var(--midgrey);
2015-05-20 18:37:06 +03:00
text-align: center;
2015-05-12 21:08:55 +03:00
font-size: 1.3rem;
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-20 18:37:06 +03:00
/* Auto Nav - Opens and closes like OSX dock
/* ---------------------------------------------------------- */
.gh-autonav-toggle {
display: flex;
justify-content: center;
align-items: center;
padding: 5px 10px;
width: 45px;
height: 27px;
border-right: #e1e1e1 1px solid;
line-height: 1;
cursor: pointer;
}
.gh-autonav-toggle:hover {
cursor: pointer;
}
.gh-autonav-toggle i {
transition: all 0.2s ease;
}
.gh-autonav-toggle:hover i {
color: var(--blue);
}
/* Hide the nav */
.gh-autonav .gh-nav {
position: absolute;
top: 0;
2015-05-20 19:52:55 +03:00
left: 0;
2015-05-20 18:37:06 +03:00
z-index: 1000;
width: 235px;
height: 100%;
2015-05-20 19:52:55 +03:00
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
}
/* 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);
}
}
/* Bring it back on hover */
.gh-autonav .gh-nav.open {
2015-05-20 19:52:55 +03:00
transition: transform 0.15s;
transform: translate3d(0,0,0);
2015-05-20 18:37:06 +03:00
}
/* Move main content over for the closed-nav trigger bar */
.gh-autonav .gh-main {
margin-left: 15px;
}
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;
padding: 5px 10px;
border-left: #e1e1e1 1px solid;
2015-05-16 14:43:12 +03:00
cursor: pointer;
2015-05-12 21:08:55 +03:00
}
.gh-help-button {
padding: 0 5px;
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;
2015-05-16 00:28:30 +03:00
border-bottom: #e1e1e1 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: 1.4rem;
2015-05-12 14:09:45 +03:00
}
2015-05-12 15:55:24 +03:00
.view-container,
.view-content {
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;
}