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
|
|
|
*/
|
2017-03-01 20:30:46 +03:00
|
|
|
body > .ember-view:not(.default-liquid-destination) {
|
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;
|
2017-02-17 08:50:07 +03:00
|
|
|
overflow-y: auto;
|
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;
|
2017-03-20 15:33:06 +03:00
|
|
|
position: relative; /* for the editor in safari */
|
2015-09-22 19:36:27 +03:00
|
|
|
}
|
|
|
|
|
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;
|
2017-02-15 15:43:49 +03:00
|
|
|
flex: 0 0 280px;
|
2015-05-20 00:36:33 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2015-06-24 15:37:37 +03:00
|
|
|
min-width: 0; /* TODO: This is a bullshit Firefox hack */
|
2017-02-15 15:43:49 +03:00
|
|
|
background: color(var(--lightgrey) l(+4%));
|
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;
|
2017-02-16 22:50:05 +03:00
|
|
|
padding: 25px;
|
2016-01-25 13:55:52 +03:00
|
|
|
cursor: pointer;
|
2017-04-05 17:26:01 +03:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav-menu-dropdown.ember-basic-dropdown--transitioning-in {
|
|
|
|
animation: fade-in-scale 0.2s;
|
|
|
|
animation-fill-mode: forwards;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav-menu-dropdown.ember-basic-dropdown--transitioning-out {
|
|
|
|
animation: fade-out 0.5s;
|
|
|
|
animation-fill-mode: forwards;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
2017-04-07 18:23:45 +03:00
|
|
|
.gh-nav-menu svg {
|
|
|
|
margin-right: 8px;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
transition: margin-top 0.2s ease;
|
|
|
|
fill: color(var(--darkgrey));
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav-menu svg path {
|
|
|
|
stroke-width: 1px;
|
|
|
|
}
|
|
|
|
|
2015-04-24 16:44:18 +03:00
|
|
|
.gh-nav-menu-icon {
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin-right: 10px;
|
2017-05-07 20:14:29 +03:00
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
2017-04-07 16:29:58 +03:00
|
|
|
background-color: transparent;
|
2017-05-07 20:14:29 +03:00
|
|
|
background-size: 32px;
|
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;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2016-08-18 14:42:42 +03:00
|
|
|
font-size: 1.4rem;
|
2015-04-24 16:44:18 +03:00
|
|
|
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;
|
2017-02-16 22:50:05 +03:00
|
|
|
margin: 0 25px 15px;
|
2015-04-24 16:44:18 +03:00
|
|
|
}
|
|
|
|
|
2016-05-25 12:52:21 +03:00
|
|
|
.gh-nav-search .ember-power-select-trigger {
|
|
|
|
outline: 0;
|
2015-09-02 10:57:29 +03:00
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2017-04-07 18:23:45 +03:00
|
|
|
.gh-nav-search-button svg {
|
2017-04-14 19:22:14 +03:00
|
|
|
width: 13px;
|
|
|
|
height: 13px;
|
2017-04-07 18:23:45 +03:00
|
|
|
fill: var(--midgrey);
|
|
|
|
line-height: 13px;
|
|
|
|
transition: color 0.2s ease;
|
|
|
|
transform: rotate(90deg);
|
2017-04-14 19:22:14 +03:00
|
|
|
vertical-align: -1px;
|
2017-04-07 18:23:45 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav-search-button:hover svg {
|
|
|
|
fill: var(--darkgrey);
|
|
|
|
}
|
|
|
|
|
2015-04-24 16:44:18 +03:00
|
|
|
.gh-nav-list {
|
|
|
|
margin: 0;
|
2017-02-16 22:50:05 +03:00
|
|
|
padding: 0 25px 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;
|
|
|
|
}
|
|
|
|
|
2016-11-14 12:55:08 +03:00
|
|
|
.gh-nav-list li {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav-list .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;
|
2017-02-16 22:50:05 +03:00
|
|
|
padding: 10px 10px 10px 25px;
|
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;
|
2016-08-18 14:42:42 +03:00
|
|
|
letter-spacing: 0.05em;
|
|
|
|
font-size: 1.1rem;
|
2015-04-24 16:44:18 +03:00
|
|
|
line-height: 1.1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav-list a {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2017-02-16 22:50:05 +03:00
|
|
|
padding: 7px 10px 7px 25px;
|
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);
|
2016-08-18 14:42:42 +03:00
|
|
|
opacity: 0.9;
|
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;
|
2016-08-18 14:42:42 +03:00
|
|
|
opacity: 1;
|
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);
|
2016-08-18 14:42:42 +03:00
|
|
|
opacity: 1;
|
2015-04-24 16:44:18 +03:00
|
|
|
}
|
|
|
|
|
2017-04-07 18:23:45 +03:00
|
|
|
.gh-nav-list svg {
|
2015-05-16 14:43:12 +03:00
|
|
|
margin-right: 8px;
|
2015-04-24 16:44:18 +03:00
|
|
|
width: 15px;
|
|
|
|
height: 15px;
|
2017-04-07 18:23:45 +03:00
|
|
|
fill: rgba(0,0,0,0.6);
|
2016-03-29 11:40:44 +03:00
|
|
|
line-height: 1;
|
2015-04-24 16:44:18 +03:00
|
|
|
}
|
|
|
|
|
2017-04-07 18:23:45 +03:00
|
|
|
.gh-nav-list svg g {
|
|
|
|
stroke: rgba(0,0,0,0.6);
|
2015-08-31 09:04:09 +03:00
|
|
|
}
|
|
|
|
|
2017-04-07 18:23:45 +03:00
|
|
|
.gh-nav-list .active svg {
|
|
|
|
fill: #fff;
|
2015-08-31 09:04:09 +03:00
|
|
|
}
|
|
|
|
|
2017-04-07 18:23:45 +03:00
|
|
|
.gh-nav-list .active svg g {
|
|
|
|
stroke: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav-list a:not(.active):hover svg {
|
|
|
|
fill: var(--darkgrey);
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-nav-list a:not(.active):hover svg g {
|
|
|
|
stroke: var(--darkgrey);
|
|
|
|
}
|
2015-05-14 16:45:37 +03:00
|
|
|
|
2017-02-17 10:32:29 +03:00
|
|
|
/* Mobile Nav Menu (Slides out)
|
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;
|
2017-04-14 19:22:14 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
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;
|
2017-04-14 19:22:14 +03:00
|
|
|
width: 20px;
|
|
|
|
height: 18px;
|
2015-05-25 22:13:00 +03:00
|
|
|
}
|
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;
|
2016-08-18 18:57:19 +03:00
|
|
|
width: 205px;
|
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);
|
2016-08-18 18:57:19 +03:00
|
|
|
transform: translate3d(-205px, 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-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 {
|
2016-08-18 14:42:42 +03:00
|
|
|
font-size: 1.2rem;
|
2015-08-25 19:01:26 +03:00
|
|
|
}
|
|
|
|
|
2017-04-07 18:23:45 +03:00
|
|
|
.gh-nav-list svg {
|
2015-08-25 19:01:26 +03:00
|
|
|
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 {
|
2017-02-17 08:50:07 +03:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 25px;
|
|
|
|
right: -8px;
|
|
|
|
height: 34px;
|
|
|
|
width: 25px;
|
|
|
|
border: color(var(--lightgrey) l(+4%)) 5px solid;
|
|
|
|
border-radius: 4px;
|
2015-06-09 19:25:45 +03:00
|
|
|
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
|
|
|
|
2017-04-07 18:23:45 +03:00
|
|
|
.gh-menu-toggle svg {
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-menu-toggle:hover svg {
|
|
|
|
fill: var(--blue);
|
|
|
|
}
|
|
|
|
|
2017-02-17 10:32:29 +03:00
|
|
|
.gh-menu-toggle-content {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 800px) {
|
|
|
|
.gh-menu-toggle {
|
|
|
|
position: static;
|
|
|
|
height: auto;
|
|
|
|
width: auto;
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
.gh-menu-toggle-content {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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;
|
2017-02-17 08:50:07 +03:00
|
|
|
transform: translate3d(-240px,0,0);
|
2015-09-02 15:04:06 +03:00
|
|
|
}
|
|
|
|
|
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;
|
2017-02-16 20:12:13 +03:00
|
|
|
width: 250px;
|
2015-05-25 22:13:00 +03:00
|
|
|
height: 100%;
|
2015-09-02 15:04:06 +03:00
|
|
|
transition: transform 0.20s;
|
|
|
|
/* translate3d for GPU accelerated animation - http://bit.ly/1EY1Xhx */
|
2017-02-17 08:50:07 +03:00
|
|
|
transform: translate3d(-240px,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 {
|
2017-02-17 18:58:08 +03:00
|
|
|
margin-left: 10px;
|
2015-05-25 22:13:00 +03:00
|
|
|
}
|
2015-05-20 18:37:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-02-17 10:32:29 +03:00
|
|
|
/* Mobile Nav Bar (Sits at bottom of screen)
|
2015-05-14 16:45:37 +03:00
|
|
|
/* ---------------------------------------------------------- */
|
2015-05-12 21:08:55 +03:00
|
|
|
|
2017-02-17 10:32:29 +03:00
|
|
|
.gh-mobile-nav-bar { display: none; }
|
2015-05-12 21:08:55 +03:00
|
|
|
|
2017-02-17 10:32:29 +03:00
|
|
|
@media (max-width: 800px) {
|
2017-02-21 11:18:15 +03:00
|
|
|
|
|
|
|
/* Make space for the mobile nav bar */
|
|
|
|
.gh-viewport {
|
|
|
|
padding-bottom: 55px;
|
|
|
|
}
|
|
|
|
|
2017-02-17 10:32:29 +03:00
|
|
|
.gh-mobile-nav-bar {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-around;
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
background: #fff;
|
|
|
|
border-top: var(--lightgrey) 1px solid;
|
|
|
|
}
|
2015-05-12 21:08:55 +03:00
|
|
|
|
2017-02-17 10:32:29 +03:00
|
|
|
.gh-mobile-nav-bar a,
|
|
|
|
.gh-mobile-nav-bar-more {
|
|
|
|
height: 55px;
|
|
|
|
padding: 5px 15px;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
2017-04-07 18:23:45 +03:00
|
|
|
color: var(--darkgrey);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-around;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-mobile-nav-bar svg {
|
|
|
|
width: 15px;
|
|
|
|
fill: var(--darkgrey);
|
2017-02-17 10:32:29 +03:00
|
|
|
}
|
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
|
|
|
|
2017-02-15 15:43:49 +03:00
|
|
|
.gh-canvas {
|
|
|
|
flex-grow: 1;
|
|
|
|
padding: 2.9vw 4vw 3vw 4vw;
|
|
|
|
margin: 0 auto;
|
2017-02-16 20:12:13 +03:00
|
|
|
max-width: 1200px;
|
2017-02-15 15:43:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-canvas-header {
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
2017-02-17 08:50:07 +03:00
|
|
|
margin: 0 0 2vw 0;
|
2017-02-15 15:43:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-canvas-title {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
overflow: hidden;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
font-size: 3.4rem;
|
|
|
|
line-height: 1.2em;
|
|
|
|
font-weight: 700;
|
|
|
|
letter-spacing: 0.4px;
|
|
|
|
}
|
|
|
|
|
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;
|
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);
|
|
|
|
}
|
|
|
|
|
2017-04-07 18:23:45 +03:00
|
|
|
.view-title svg {
|
2015-05-14 16:45:37 +03:00
|
|
|
margin: 0 10px;
|
2017-04-07 18:23:45 +03:00
|
|
|
height: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.view-title svg path {
|
|
|
|
fill: #818181;
|
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
|
|
|
}
|
|
|
|
|
2017-02-16 22:50:05 +03:00
|
|
|
.view-actions .gh-btn {
|
2015-06-03 17:44:12 +03:00
|
|
|
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;
|
2017-02-21 11:18:15 +03:00
|
|
|
padding-bottom: 4vw;
|
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;
|
|
|
|
}
|
|
|
|
}
|