0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/app/styles/layouts/main.css

366 lines
6.1 KiB
CSS
Raw Normal View History

2015-05-14 14:45:37 +01:00
/* Global Layout
/* ---------------------------------------------------------- */
2015-04-24 16:44:18 +03:00
2015-05-18 16:37:33 +01:00
/* Main viewport, contains main content, and alerts */
2015-05-19 09:15:16 +01: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 12:43:12 +01:00
height: 100vh;
2015-04-24 16:44:18 +03:00
}
2015-05-18 16:37:33 +01:00
/* Content viewport, contains everything else */
2015-05-19 09:15:16 +01:00
.gh-viewport {
flex-grow: 1;
display: flex;
}
2015-04-24 16:44:18 +03:00
.gh-main {
2015-05-12 15:30:35 +01:00
position: relative;
2015-04-24 16:44:18 +03:00
flex-grow: 1;
2015-05-12 13:55:24 +01:00
display: flex;
margin-left: 15px;
}
.open-nav .gh-main {
margin-left: 0;
2015-04-24 16:44:18 +03:00
}
2015-05-14 14:45:37 +01:00
/* Global Nav
/* ---------------------------------------------------------- */
2015-04-24 16:44:18 +03:00
.gh-nav {
position: absolute;
top: 0;
left: -220px;
z-index: 10;
display: block;
width: 235px;
height: 100%;
border-right: #e1e1e1 1px solid;
background: #f6f6f6;
transition: transform 0.2s;
transform: translateX(0);
}
.gh-nav:hover {
transform: translateX(220px);
}
.open-nav .gh-nav {
position: static;
flex: 0 0 235px;
display: flex;
flex-direction: column;
width: auto;
height: auto;
transform: translateX(0);
}
.gh-nav-toggle {
position: absolute;
top: 0;
right: 0;
z-index: 5;
width: 15px;
height: 100%;
text-align: center;
cursor: pointer;
}
.gh-nav-toggle:hover {
background-color: rgb(224, 238, 250);
}
.gh-nav-toggle:after {
content: ">";
position: absolute;
top: 50%;
left: 50%;
font-size: 14px;
opacity: 0.25;
transform: translateX(-50%) translateY(-50%);
}
.open-nav .gh-nav-toggle:after {
content: "<";
}
2015-04-24 16:44:18 +03:00
.gh-nav-menu {
flex-shrink: 0;
display: flex;
align-items: center;
padding: 15px 30px 15px 15px;
2015-05-14 14:45:37 +01:00
}
.gh-nav-menu i {
margin-right: 8px;
2015-05-16 12:43:12 +01:00
width: 11px;
height: 11px;
2015-05-14 14:45:37 +01:00
font-size: 11px;
line-height: 11px;
}
2015-04-24 16:44:18 +03:00
2015-05-14 14:45:37 +01: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 12:43:12 +01: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 12:43:12 +01:00
overflow: hidden;
2015-04-24 16:44:18 +03:00
margin-bottom: 1px;
2015-05-16 12:43:12 +01: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 12:43:12 +01:00
overflow: hidden;
2015-05-14 14:45:37 +01:00
color: var(--midgrey);
2015-04-24 16:44:18 +03:00
text-overflow: ellipsis;
white-space: nowrap;
2015-05-16 12:43:12 +01: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;
margin: 0 30px 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 12:43:12 +01:00
display: flex;
align-items: center;
2015-04-24 16:44:18 +03:00
padding: 0 6px 0 5px;
2015-05-14 14:45:37 +01:00
}
2015-04-24 16:44:18 +03:00
2015-05-14 14:45:37 +01:00
.gh-nav-search-button i {
width: 16px;
height: 16px;
color: var(--midgrey);
2015-05-16 12:43:12 +01:00
font-size: 13px;
2015-05-14 14:45:37 +01:00
transition: color 0.2s ease;
2015-05-16 12:43:12 +01:00
transform: rotate(90deg);
2015-05-14 14:45:37 +01:00
}
2015-04-24 16:44:18 +03:00
2015-05-14 14:45:37 +01:00
.gh-nav-search-button:hover i {
color: var(--darkgrey);
2015-04-24 16:44:18 +03:00
}
.gh-nav-list {
margin: 0;
padding: 0 30px 0 0;
2015-05-16 12:43:12 +01: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 12:43:12 +01:00
overflow: hidden;
2015-04-24 16:44:18 +03:00
margin-top: 15px;
padding: 5px 10px 5px 15px;
2015-05-16 12:43:12 +01:00
color: #828282;
2015-04-24 16:44:18 +03:00
text-transform: uppercase;
2015-05-16 12:43:12 +01: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 12:09:45 +01:00
border-radius: 0 4px 4px 0;
2015-05-16 12:43:12 +01:00
color: var(--darkgrey);
2015-04-24 16:44:18 +03:00
transition: none;
}
.gh-nav-list .active {
2015-05-14 14:45:37 +01:00
background: color(var(--blue) lightness(+10%));
2015-05-16 12:43:12 +01:00
color: #fff;
2015-04-24 16:44:18 +03:00
}
.gh-nav-list a:not(.active):hover {
2015-05-14 14:45:37 +01:00
background: color(var(--blue) lightness(+30%));
2015-05-16 12:43:12 +01:00
color: var(--darkgrey);
2015-04-24 16:44:18 +03:00
}
.gh-nav-list i {
2015-05-16 12:43:12 +01:00
margin-right: 8px;
2015-04-24 16:44:18 +03:00
width: 15px;
height: 15px;
text-align: center;
2015-05-16 12:43:12 +01:00
font-size: 15px;
2015-04-24 16:44:18 +03:00
}
.gh-nav-footer {
position: absolute;
bottom: 0;
2015-04-24 16:44:18 +03:00
flex-shrink: 0;
2015-05-12 19:08:55 +01:00
display: flex;
2015-04-24 16:44:18 +03:00
align-items: center;
padding-right: 15px;
width: 100%;
2015-04-24 16:44:18 +03:00
height: 40px;
2015-05-15 22:28:30 +01:00
border-top: #e1e1e1 1px solid;
2015-04-24 16:44:18 +03:00
}
2015-05-12 12:09:45 +01:00
2015-05-12 19:08:55 +01:00
.gh-nav-footer-sitelink {
flex-grow: 1;
display: flex;
padding: 12px;
2015-05-16 12:43:12 +01:00
color: var(--midgrey);
2015-05-12 19:08:55 +01:00
font-size: 1.3rem;
line-height: 1.2em;
2015-05-14 14:45:37 +01:00
}
2015-05-12 19:08:55 +01:00
2015-05-14 14:45:37 +01:00
.gh-nav-footer-sitelink i {
margin-left: 5px;
font-size: 1rem;
}
2015-05-12 19:08:55 +01:00
2015-05-14 14:45:37 +01:00
.gh-nav-footer-sitelink:hover {
color: var(--blue);
2015-05-12 19:08:55 +01:00
}
2015-05-14 14:45:37 +01:00
/* Help (?) Menu
/* ---------------------------------------------------------- */
2015-05-12 19:08:55 +01:00
.gh-help-menu {
display: flex;
align-items: center;
padding: 5px 10px;
border-left: #e1e1e1 1px solid;
2015-05-16 12:43:12 +01:00
cursor: pointer;
2015-05-12 19:08:55 +01:00
}
.gh-help-button {
padding: 0 5px;
2015-05-16 12:43:12 +01:00
color: var(--midgrey);
2015-05-12 19:08:55 +01:00
text-align: center;
font-size: 1.4rem;
line-height: 1.2em;
transition: all 0.5s;
}
2015-05-14 14:45:37 +01:00
.gh-help-menu:hover .gh-help-button {
color: var(--blue);
transition: all 0.3s;
2015-05-12 19:08:55 +01:00
}
.gh-help-menu .dropdown {
right: 112px;
bottom: 215px;
2015-05-14 14:45:37 +01:00
}
2015-05-12 19:08:55 +01:00
2015-05-14 14:45:37 +01:00
.gh-help-menu .dropdown .dropdown-menu {
min-width: 200px;
}
2015-05-12 19:08:55 +01:00
2015-05-14 14:45:37 +01:00
.gh-help-menu .dropdown.fade-in-scale {
animation-duration: 0.1s;
}
2015-05-12 19:08:55 +01:00
2015-05-14 14:45:37 +01:00
.gh-help-menu .dropdown.fade-out {
animation-duration: 0.01s;
2015-05-12 19:08:55 +01:00
}
2015-05-14 14:45:37 +01:00
/* Container for App View
/* ---------------------------------------------------------- */
2015-05-12 13:55:24 +01:00
.gh-view {
flex-grow: 1;
display: flex;
flex-direction: column;
}
2015-05-12 12:09:45 +01:00
.view-header {
2015-05-12 13:55:24 +01:00
flex-shrink: 0;
2015-05-12 12:09:45 +01:00
display: flex;
justify-content: space-between;
2015-05-16 12:43:12 +01:00
align-items: center;
2015-05-12 12:09:45 +01:00
padding: 0 20px;
2015-05-16 12:43:12 +01:00
height: 65px;
2015-05-15 22:28:30 +01:00
border-bottom: #e1e1e1 1px solid;
2015-05-12 12:09:45 +01:00
}
.view-title {
2015-05-12 19:08:55 +01:00
display: flex;
align-items: baseline;
2015-05-16 12:43:12 +01:00
overflow: hidden;
2015-05-12 12:09:45 +01:00
margin: 0;
padding: 0;
2015-05-16 12:43:12 +01:00
text-overflow: ellipsis;
white-space: nowrap;
2015-05-12 12:09:45 +01:00
font-size: 2rem;
line-height: 1.2em;
font-weight: 400;
2015-05-14 14:45:37 +01:00
}
2015-05-12 19:08:55 +01:00
2015-05-14 14:45:37 +01:00
.view-title a {
color: inherit;
}
2015-05-12 19:08:55 +01:00
2015-05-14 14:45:37 +01:00
.view-title a:hover {
color: var(--blue);
}
.view-title i {
margin: 0 10px;
color: #818181;
font-size: 1.4rem;
2015-05-12 12:09:45 +01:00
}
2015-05-12 13:55:24 +01:00
.view-container,
.view-content {
flex-grow: 1;
overflow-x: hidden;
overflow-y: auto;
2015-05-14 14:45:37 +01:00
-webkit-overflow-scrolling: touch;
2015-05-12 13:55:24 +01:00
}
.view-content {
padding: 20px;
}
2015-05-14 21:30:25 +01:00
.view-content p,
.view-content p * {
user-select: text;
}