2015-05-14 16:45:37 +03:00
|
|
|
/* Global Layout
|
|
|
|
/* ---------------------------------------------------------- */
|
2015-04-24 16:44:18 +03:00
|
|
|
|
2015-10-23 20:18:39 +03:00
|
|
|
/*
|
|
|
|
Ember's app container, set height so that .gh-app and .gh-viewport
|
|
|
|
don't need to use 100vh where bottom of screen gets covered by iOS menus
|
|
|
|
http://nicolas-hoizey.com/2015/02/viewport-height-is-taller-than-the-visible-part-of-the-document-in-some-mobile-browsers.html
|
2015-11-18 13:50:48 +03:00
|
|
|
|
|
|
|
TODO: Once we have routable components it should be possible to remove this
|
|
|
|
by moving the gh-app component functionality into the application component
|
|
|
|
which would remove the extra div that this targets.
|
2015-10-23 20:18:39 +03:00
|
|
|
*/
|
2015-11-18 13:50:48 +03:00
|
|
|
body > .ember-view:not(.liquid-target-container) {
|
2015-10-23 20:18:39 +03:00
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
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;
|
2015-05-18 17:20:43 +03:00
|
|
|
flex-direction: column;
|
2015-04-24 16:44:18 +03:00
|
|
|
overflow: hidden;
|
2015-10-23 20:18:39 +03:00
|
|
|
height: 100%;
|
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 {
|
2015-05-18 17:20:43 +03:00
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
2015-08-25 19:01:26 +03:00
|
|
|
overflow: hidden;
|
2015-10-23 20:18:39 +03:00
|
|
|
max-height: 100%;
|
2015-05-18 17:20:43 +03:00
|
|
|
}
|
|
|
|
|
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-09-22 19:36:27 +03:00
|
|
|
/* Flexbox fix. https://github.com/TryGhost/Ghost/issues/5804#issuecomment-141416812 */
|
|
|
|
.gh-main > section {
|
|
|
|
width: 1px;
|
|
|
|
}
|
|
|
|
|
2015-05-14 16:45:37 +03:00
|
|
|
|
|
|
|
/* Global Nav
|
|
|
|
/* ---------------------------------------------------------- */
|
2015-04-24 16:44:18 +03:00
|
|
|
|
2015-05-20 00:36:33 +03:00
|
|
|
.gh-nav {
|
2015-05-20 19:52:55 +03:00
|
|
|
position: relative;
|
2015-06-09 19:25:45 +03:00
|
|
|
z-index: 800;
|
2015-05-20 00:36:33 +03:00
|
|
|
flex: 0 0 235px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2015-06-24 15:37:37 +03:00
|
|
|
min-width: 0; /* TODO: This is a bullshit Firefox hack */
|
|
|
|
border-right: #dfe1e3 1px solid;
|
|
|
|
background: #f5f7f8;
|
2015-05-20 00:36:33 +03:00
|
|
|
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;
|
2016-01-25 13:55:52 +03:00
|
|
|
cursor: pointer;
|
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;
|
2016-01-25 13:55:52 +03:00
|
|
|
transition: margin-top 0.2s ease;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
2015-04-24 16:44:18 +03:00
|
|
|
|
2016-01-25 13:55:52 +03:00
|
|
|
.gh-nav-menu:hover i {
|
|
|
|
margin-top: 5px;
|
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;
|
2015-06-24 15:37:37 +03:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2015-09-02 10:57:29 +03:00
|
|
|
.gh-nav-search .selectize-control {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2015-08-28 19:35:06 +03:00
|
|
|
.gh-nav-search-input .selectize-input {
|
|
|
|
padding: 4px 8px;
|
|
|
|
padding-right: 30px;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
.gh-nav-search-input .selectize-input,
|
|
|
|
.gh-nav-search-input .selectize-input input,
|
|
|
|
.gh-nav-search-input .selectize-dropdown {
|
2015-04-24 16:44:18 +03:00
|
|
|
font-size: 1.3rem;
|
|
|
|
}
|
|
|
|
|
2015-09-02 10:57:29 +03:00
|
|
|
.gh-nav-search .selectize-input.dropdown-active {
|
2015-09-02 17:13:18 +03:00
|
|
|
border-bottom: #fff 1px solid;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav-search .selectize-input.dropdown-active:before {
|
|
|
|
display: none;
|
2015-09-02 10:57:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav-search .selectize-dropdown-content {
|
|
|
|
max-height: calc(100vh - 150px);
|
|
|
|
}
|
|
|
|
|
2015-04-24 16:44:18 +03:00
|
|
|
.gh-nav-search-button {
|
|
|
|
position: absolute;
|
2015-09-02 10:57:29 +03:00
|
|
|
top: 0;
|
2015-04-24 16:44:18 +03:00
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2015-08-28 19:35:06 +03:00
|
|
|
z-index: 1;
|
2015-09-02 10:57:29 +03:00
|
|
|
padding: 0 8px 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-09-02 10:57:29 +03:00
|
|
|
line-height: 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-06-24 15:37:37 +03:00
|
|
|
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;
|
2015-08-31 09:04:09 +03:00
|
|
|
color: rgba(0,0,0,0.6);
|
2015-04-24 16:44:18 +03:00
|
|
|
text-align: center;
|
2015-05-16 14:43:12 +03:00
|
|
|
font-size: 15px;
|
2015-04-24 16:44:18 +03:00
|
|
|
}
|
|
|
|
|
2015-08-31 09:04:09 +03:00
|
|
|
.gh-nav-list .active i {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav-list a:not(.active):hover i {
|
|
|
|
color: var(--darkgrey);
|
|
|
|
}
|
|
|
|
|
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-06-24 15:37:37 +03:00
|
|
|
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;
|
2015-08-12 11:29:40 +03:00
|
|
|
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) {
|
2015-08-25 19:01:26 +03:00
|
|
|
.view-header {
|
|
|
|
padding-left: 0 !important;
|
|
|
|
}
|
|
|
|
|
2015-05-25 22:13:00 +03:00
|
|
|
.gh-mobilemenu-button {
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: block;
|
2015-08-25 19:01:26 +03:00
|
|
|
margin: 0;
|
|
|
|
padding: 24px;
|
2015-05-25 22:13:00 +03:00
|
|
|
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;
|
2015-08-25 19:01:26 +03:00
|
|
|
width: 270px;
|
2015-05-25 22:13:00 +03:00
|
|
|
height: 100%;
|
2015-06-09 19:25:45 +03:00
|
|
|
transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
|
2015-08-25 19:01:26 +03:00
|
|
|
transform: translate3d(-270px, 0px, 0px);
|
2015-05-25 22:13:00 +03:00
|
|
|
}
|
2015-06-09 19:25:45 +03:00
|
|
|
.mobile-menu-expanded .gh-nav {
|
2015-05-25 22:13:00 +03:00
|
|
|
transform: translate3d(0,0,0);
|
|
|
|
}
|
2015-08-25 19:01:26 +03:00
|
|
|
|
|
|
|
.gh-nav-list a {
|
|
|
|
padding: 7px 10px 7px 15px;
|
|
|
|
border-radius: 0 4px 4px 0;
|
|
|
|
}
|
2015-05-20 18:37:06 +03:00
|
|
|
}
|
|
|
|
|
2015-05-25 22:13:00 +03:00
|
|
|
@media (max-width: 500px) {
|
2015-08-25 19:01:26 +03:00
|
|
|
.gh-mobilemenu-button {
|
|
|
|
padding: 24px 15px 24px 16px;
|
|
|
|
}
|
|
|
|
|
2015-05-25 22:13:00 +03:00
|
|
|
.gh-nav {
|
2015-08-25 19:01:26 +03:00
|
|
|
width: 80vw;
|
|
|
|
transform: translate3d(-80vw, 0px, 0px);
|
2015-05-25 22:13:00 +03:00
|
|
|
}
|
2015-06-09 19:25:45 +03:00
|
|
|
.mobile-menu-expanded .gh-nav {
|
|
|
|
transform: translate3d(0,0,0);
|
2015-05-25 22:13:00 +03:00
|
|
|
}
|
2015-08-25 19:01:26 +03:00
|
|
|
.mobile-menu-expanded .content-cover {
|
|
|
|
transform: translate3d(80vw, 0, 0);
|
|
|
|
}
|
|
|
|
|
2015-09-02 17:13:18 +03:00
|
|
|
.gh-nav-search-input .selectize-input,
|
|
|
|
.gh-nav-search-input .selectize-input input,
|
|
|
|
.gh-nav-search-input .selectize-dropdown {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
}
|
|
|
|
|
2015-08-25 19:01:26 +03:00
|
|
|
.gh-nav-list {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav-list-h {
|
|
|
|
font-size: 1.4rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav-list i {
|
|
|
|
margin-right: 8px;
|
|
|
|
width: 17px;
|
|
|
|
height: 17px;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 17px;
|
|
|
|
}
|
2015-05-20 18:37:06 +03:00
|
|
|
}
|
|
|
|
|
2015-05-25 22:13:00 +03:00
|
|
|
|
|
|
|
/* Auto Nav - Opens and closes like OSX dock
|
|
|
|
/* ---------------------------------------------------------- */
|
|
|
|
|
2015-06-09 19:25:45 +03:00
|
|
|
.gh-menu-toggle {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
padding: 5px 10px;
|
|
|
|
width: 45px;
|
|
|
|
height: 27px;
|
2015-06-24 15:37:37 +03:00
|
|
|
border-right: #dfe1e3 1px solid;
|
2015-06-09 19:25:45 +03:00
|
|
|
line-height: 1;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2015-05-25 22:13:00 +03:00
|
|
|
|
2015-06-09 19:25:45 +03:00
|
|
|
.gh-menu-toggle:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2015-05-25 22:13:00 +03:00
|
|
|
|
2015-06-09 19:25:45 +03:00
|
|
|
.gh-menu-toggle i {
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
}
|
2015-05-25 22:13:00 +03:00
|
|
|
|
2015-06-09 19:25:45 +03:00
|
|
|
.gh-menu-toggle:hover i {
|
|
|
|
color: var(--blue);
|
|
|
|
}
|
2015-05-25 22:13:00 +03:00
|
|
|
|
2015-09-02 15:04:06 +03:00
|
|
|
/* Autonav is tricky, because hit areas of translated elements aren't in sync
|
|
|
|
with the visible element we need to add the hover behaviour to a small,
|
|
|
|
non-moving element. The following code positions our hit area and transitions
|
|
|
|
it in-sync with it's container so it always sticks to the left of the viewport
|
|
|
|
then hides off-canvas when required as display:none breaks transitions. */
|
|
|
|
|
|
|
|
.gh-autonav-toggle {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
display: none;
|
|
|
|
width: 15px;
|
|
|
|
height: 100%;
|
|
|
|
transition: transform 0.20s;
|
|
|
|
transform: translate3d(0,0,0);
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-autonav .gh-autonav-toggle {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav.open .gh-autonav-toggle {
|
|
|
|
transition: transform 0.15s;
|
|
|
|
transform: translate3d(-235px,0,0);
|
|
|
|
}
|
|
|
|
|
2015-06-09 19:25:45 +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;
|
2015-09-02 15:04:06 +03:00
|
|
|
left: 0;
|
2015-05-25 22:13:00 +03:00
|
|
|
z-index: 1000;
|
|
|
|
width: 235px;
|
|
|
|
height: 100%;
|
2015-09-02 15:04:06 +03:00
|
|
|
transition: transform 0.20s;
|
|
|
|
/* translate3d for GPU accelerated animation - http://bit.ly/1EY1Xhx */
|
|
|
|
transform: translate3d(-220px,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
|
|
|
/* 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 {
|
2015-09-02 15:04:06 +03:00
|
|
|
transition: transform 0.15s;
|
|
|
|
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
|
|
|
/* 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;
|
2015-06-24 15:37:37 +03:00
|
|
|
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 {
|
2015-08-12 11:29:40 +03:00
|
|
|
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 {
|
|
|
|
bottom: 215px;
|
2015-08-25 19:01:26 +03:00
|
|
|
left: -180px;
|
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.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-06-24 15:37:37 +03:00
|
|
|
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;
|
2015-08-25 19:01:26 +03:00
|
|
|
align-items: center;
|
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;
|
2015-06-24 14:15:48 +03:00
|
|
|
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;
|
2015-08-26 16:12:04 +03:00
|
|
|
align-items: center;
|
2015-06-03 17:44:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
2015-08-25 19:01:26 +03:00
|
|
|
|
|
|
|
@media (max-width: 400px) {
|
|
|
|
.view-header {
|
|
|
|
padding: 0 7px;
|
|
|
|
height: 50px;
|
|
|
|
}
|
|
|
|
.view-title {
|
|
|
|
font-size: 1.8rem;
|
|
|
|
}
|
|
|
|
.view-content {
|
|
|
|
padding: 15px;
|
|
|
|
}
|
|
|
|
}
|