-
-header {
- display: block;
- z-index: 2;
- top: 0;
- background-color: $primary-dark;
- color: #fff;
- .padded {
- padding: $-m;
- }
- border-bottom: 1px solid #DDD;
- //margin-bottom: $-l;
- .links {
- display: inline-block;
- vertical-align: top;
- margin-right: $-xl;
- }
- .links a {
- display: inline-block;
- padding: $-l;
- color: #FFF;
- &:last-child {
- padding-right: 0;
- }
- }
- .avatar, .user-name {
- display: inline-block;
- }
- .avatar {
- margin-top: (45px/2);
- width: 30px;
- height: 30px;
- }
- .user-name {
- vertical-align: top;
- padding-top: 25.5px;
- padding-left: $-m;
- display: inline-block;
- cursor: pointer;
- i {
- padding-left: $-xs;
- }
- }
-}
-
-form.search-box {
- margin-top: $-l *0.9;
- display: inline-block;
- position: relative;
- input {
- background-color: transparent;
- border-radius: 0;
- border: none;
- border-bottom: 2px solid #EEE;
- color: #EEE;
- padding-right: $-l;
- outline: 0;
- }
- a {
- vertical-align: top;
- margin-left: -$-l;
- color: #FFF;
- top: 0;
- display: inline-block;
- position: absolute;
- }
-}
-
-#content {
- display: block;
- position: relative;
-}
-
-body.flexbox {
- display: flex;
- flex-direction: column;
- align-items: stretch;
- height: 100%;
- min-height: 100%;
- max-height: 100%;
- overflow: hidden;
- #content {
- flex: 1;
- display: flex;
- }
-}
-
-.flex-fill {
- display: flex;
- align-items: stretch;
- .flex, &.flex {
- flex: 1;
- }
-}
-
-.page-editor {
- display: flex;
- flex-direction: column;
- align-items: stretch;
- .faded-small {
- height: auto;
- }
- .edit-area {
- flex: 1;
- flex-direction: column;
- }
-}
-
-.logo {
- display: inline-block;
- font-size: 1.8em;
- color: #fff;
- font-weight: 400;
- padding: $-l $-l $-l 0;
- vertical-align: top;
- line-height: 1;
- &:hover {
- color: #FFF;
- text-decoration: none;
- }
-}
-
-.page-title input {
- display: block;
- width: 100%;
- font-size: 1.4em;
-}
-
-.page-style {
- padding: $-s $-xxl $-xxl $-xxl;
- margin-bottom: $-xxl;
- max-width: 100%;
-}
-
-.page-style.editor {
- padding: 0 !important;
-}
-
-.page-content {
- @extend .page-style;
- min-height: 70vh;
- max-width: 840px;
- margin-left: auto;
- margin-right: auto;
- &.right {
- float: right;
- }
- &.left {
- float: left;
- }
- img {
- max-width: 100%;
- height:auto;
- }
-}
-
-.page-list {
- h3 {
- margin: $-l 0 $-m 0;
- }
- a.chapter {
- color: $color-chapter;
- }
- .inset-list {
- display: block;
- overflow: hidden;
- // padding-left: $-m;
- margin-bottom: $-l;
- }
- h4 {
- display: block;
- margin: $-s 0 0 0;
- border-left: 5px solid $color-page;
- padding: $-xs 0 $-xs $-m;
- }
- hr {
- margin-top: 0;
- }
- .book-child {
- padding-left: $-l;
- &.page {
- border-left: 5px solid $color-page;
- }
- &.chapter {
- border-left: 5px solid $color-chapter;
- }
- }
-}
-.chapter-toggle {
- cursor: pointer;
- margin: 0 0 $-l 0;
- transition: all ease-in-out 180ms;
- i {
- transition: all ease-in-out 180ms;
- transform: rotate(0deg);
- transform-origin: 25% 50%;
- }
- &.open {
- margin-bottom: 0;
- }
- &.open i {
- transform: rotate(90deg);
- }
-}
-
-.side-nav {
- position: fixed;
- padding-left: $-m;
- opacity: 0.8;
- margin-top: $-xxl;
- margin-left: 0;
- max-width: 240px;
- display: none;
-}
-
-.page-nav-list {
- $nav-indent: $-s;
- margin-left: 2px;
- list-style: none;
- li {
- //border-left: 1px solid rgba(0, 0, 0, 0.1);
- padding-left: $-xs;
- border-left: 2px solid #888;
- margin-bottom: 4px;
- }
- li a {
- color: #555;
- }
- .nav-H2 {
- margin-left: $nav-indent;
- font-size: 0.95em;
- }
- .nav-H3 {
- margin-left: $nav-indent*2;
- font-size: 0.90em
- }
- .nav-H4 {
- margin-left: $nav-indent*3;
- font-size: 0.85em
- }
- .nav-H5 {
- margin-left: $nav-indent*4;
- font-size: 0.80em
- }
- .nav-H6 {
- margin-left: $nav-indent*5;
- font-size: 0.75em
- }
-}
-
-
-
-.overlay {
- background-color: rgba(0, 0, 0, 0.2);
- position: fixed;
- display: none;
- z-index: 95536;
- width: 100%;
- height: 100%;
- min-width: 100%;
- min-height: 100%;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
-}
-
-// Link hooks & popovers
-a.link-hook {
- position: absolute;
- display: inline-block;
- top: $-xs;
- left: -$-l;
- padding-bottom: 30px;
- font-size: 20px;
- line-height: 20px;
- color: #BBB;
- opacity: 0;
- transform: translate3d(10px, 0, 0);
- transition: all ease-in-out 240ms;
- background-color: transparent;
- &:hover {
- color: $primary;
- }
-}
-h1, h2, h3, h4, h5, h6 {
- &:hover a.link-hook {
- opacity: 1;
- transform: translate3d(0, 0, 0);
- }
-}
-
-.breadcrumbs span.sep {
- color: #aaa;
- padding: 0 $-xs;
-}
-
-.faded {
- a, button, span {
- color: #666;
- }
- .text-button {
- opacity: 0.5;
- transition: all ease-in-out 120ms;
- &:hover {
- opacity: 1;
- text-decoration: none;
- }
- }
-}
-
-.faded-small {
- color: #000;
- font-size: 0.9em;
- background-color: rgba(21, 101, 192, 0.15);
-}
-
-.breadcrumbs .text-button, .action-buttons .text-button {
- display: inline-block;
- padding: $-s;
- &:last-child {
- padding-right: 0;
- }
-}
-.action-buttons {
- text-align: right;
- &.text-left {
- text-align: left;
- .text-button {
- padding-right: $-m;
- padding-left: 0;
- }
- }
-}
-
-.book-tree {
- margin-top: $-xl;
-}
-.book-tree h4 {
- padding: $-m $-s 0 $-s;
- i {
- padding-right: $-s;
- }
-}
-
-
-// Sidebar list
-.book-tree .sidebar-page-list {
- list-style: none;
- margin: 0;
- margin-top: $-xs;
- border-left: 5px solid $color-book;
- li a {
- display: block;
- border-bottom: none;
- padding-left: $-s;
- padding: $-xs 0 $-xs $-s;
- &:hover {
- background-color: rgba(255, 255, 255, 0.2);
- text-decoration: none;
- }
- }
- li, a {
- display: block;
- }
- a.bold {
- color: #EEE !important;
- }
- ul {
- list-style: none;
- margin: 0;
- }
- .book {
- color: $color-book !important;
- &.selected {
- background-color: rgba($color-book, 0.29);
- }
- }
- .chapter {
- color: $color-chapter !important;
- &.selected {
- background-color: rgba($color-chapter, 0.12);
- }
- }
- .list-item-chapter {
- border-left: 5px solid $color-chapter;
- margin: 10px 10px;
- display: block;
- }
- .list-item-page {
- border-bottom: none;
- }
- .page {
- color: $color-page !important;
- border-left: 5px solid $color-page;
- margin: 10px 10px;
- border-bottom: none;
- &.selected {
- background-color: rgba($color-page, 0.1);
- }
- }
-}
-
-// Sortable Lists
-.sortable-page-list, .sortable-page-list ul {
- list-style: none;
-}
-.sortable-page-list {
- margin-left: 0;
- box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.1);
- ul {
- margin-bottom: 0;
- margin-top: 0;
- box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.1);
- }
- li {
- border: 1px solid #DDD;
- padding: $-xs $-s;
- margin-top: -1px;
- min-height: 38px;
- &.text-chapter {
- border-left: 2px solid $color-chapter;
- }
- &.text-page {
- border-left: 2px solid $color-page;
- }
- }
- li:first-child {
- margin-top: $-xs;
- }
-}