mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 22:38:55 +08:00
329 lines
5.1 KiB
SCSS
329 lines
5.1 KiB
SCSS
@import "reset";
|
|
@import "variables";
|
|
@import "mixins";
|
|
@import "html";
|
|
@import "text";
|
|
@import "grid";
|
|
@import "blocks";
|
|
@import "buttons";
|
|
@import "forms";
|
|
@import "tinymce";
|
|
|
|
header {
|
|
background-color: #f8f8f8;
|
|
display: block;
|
|
width: 100%;
|
|
position: fixed;
|
|
z-index: 2;
|
|
top: 0;
|
|
border-bottom: 1px solid #DDD;
|
|
.padded {
|
|
padding: $-m;
|
|
}
|
|
}
|
|
|
|
#sidebar {
|
|
position: fixed;
|
|
background-color: #FFF;
|
|
height: 100%;
|
|
top: 0;
|
|
z-index: 1;
|
|
padding-top: 63px + $-m;
|
|
width: 300px;
|
|
border-right: 1px solid #DDD;
|
|
}
|
|
|
|
#content {
|
|
margin-top: 63px;
|
|
margin-left: 300px;
|
|
display: block;
|
|
position: relative;
|
|
}
|
|
|
|
.logo {
|
|
width: 180px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
header hr {
|
|
margin-top: 0;
|
|
}
|
|
|
|
header .menu {
|
|
margin-bottom: 0;
|
|
list-style: none;
|
|
margin-left: 0;
|
|
li {
|
|
display: inline-block;
|
|
margin-right: $-m;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
h1 {
|
|
margin-top: 0.2em;
|
|
}
|
|
}
|
|
|
|
.page-list {
|
|
a {
|
|
display: block;
|
|
padding: $-s 0;
|
|
border-bottom: 2px dotted #CCC;
|
|
&:first-child {
|
|
border-top: 2px dotted #CCC;
|
|
}
|
|
}
|
|
}
|
|
|
|
.page-menu {
|
|
opacity: 0.6;
|
|
transition: opacity ease-in-out 120ms;
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
.buttons a {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.page-nav-list {
|
|
$nav-indent: $-s;
|
|
li {
|
|
//border-left: 1px solid rgba(0, 0, 0, 0.1);
|
|
padding-left: $-xs;
|
|
}
|
|
.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: block;
|
|
z-index: 95536;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-width: 100%;
|
|
min-height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
#image-manager {
|
|
background-color: #EEE;
|
|
max-width: 90%;
|
|
max-height: 90%;
|
|
width: 90%;
|
|
height: 90%;
|
|
margin: 2% 5%;
|
|
//border: 2px solid $primary;
|
|
border-radius: 4px;
|
|
box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.3);
|
|
overflow: hidden;
|
|
.image-manager-display img {
|
|
width: 150px;
|
|
height: 150px;
|
|
display: inline-block;
|
|
margin: $-s 0 0 $-s;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
.image-manager-left {
|
|
background-color: #FFF;
|
|
height: 100%;
|
|
width: 100%;
|
|
text-align: left;
|
|
.image-manager-display {
|
|
height: 75%;
|
|
width: 100%;
|
|
text-align: left;
|
|
overflow-y: scroll;
|
|
}
|
|
}
|
|
|
|
.image-manager-title {
|
|
font-size: 2em;
|
|
text-align: left;
|
|
margin: 0 $-m;
|
|
padding: $-xl $-m;
|
|
color: #666;
|
|
border-bottom: 1px solid #DDD;
|
|
}
|
|
|
|
.image-manager-dropzone {
|
|
background-color: lighten($primary, 40%);
|
|
height: 25%;
|
|
text-align: center;
|
|
font-size: 2em;
|
|
line-height: 2em;
|
|
padding-top: $-xl*1.2;
|
|
color: #666;
|
|
border-top: 2px solid $primary;
|
|
}
|
|
|
|
// Link hooks & popovers
|
|
a.link-hook {
|
|
position: absolute;
|
|
display: inline-block;
|
|
top: $-xs;
|
|
left: -$-xl+2px;
|
|
font-size: 20px;
|
|
line-height: 20px;
|
|
color: #BBB;
|
|
opacity: 0;
|
|
}
|
|
h1, h2, h3, h4, h5, h6 {
|
|
&:hover a.link-hook {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.breadcrumbs {
|
|
margin-top: $-s;
|
|
a, span {
|
|
color: #666;
|
|
font-size: 0.9em;
|
|
}
|
|
i {
|
|
padding-right: 4px;
|
|
}
|
|
span.sep {
|
|
color: #888;
|
|
padding: 0 $-xs;
|
|
}
|
|
}
|
|
|
|
|
|
.nested-page-list {
|
|
list-style: none;
|
|
margin-left: 0;
|
|
li {
|
|
border-top: 3px dotted #BBB;
|
|
padding: $-s 0;
|
|
user-select: none;
|
|
}
|
|
li:last-child {
|
|
border-bottom: 3px dotted #BBB;
|
|
}
|
|
.nested-page-list {
|
|
margin-top: $-xs;
|
|
display: none;
|
|
margin: $-xs 0 $-xs 9px;
|
|
font-size: $fs-m * 0.9;
|
|
border-left: 2px solid #EEE;
|
|
}
|
|
.nested-page-list li {
|
|
border: none;
|
|
padding-right: $-m;
|
|
padding-left: $-m;
|
|
&.expanded.has-children {
|
|
padding-bottom: 0;
|
|
}
|
|
}
|
|
i.arrow {
|
|
font-size: 0.8em;
|
|
padding: $-xs;
|
|
margin-top: -$-xs;
|
|
margin-bottom: -$-xs;
|
|
transform-origin: 50% 50%;
|
|
transition: transform ease-in-out 180ms;
|
|
cursor: pointer;
|
|
}
|
|
li.expanded {
|
|
> i.arrow {
|
|
transform: rotate(90deg);
|
|
}
|
|
>.nested-page-list {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.sortable-page-list, .sortable-page-list ul {
|
|
list-style: none;
|
|
//background-color: rgba(0, 0, 0, 0.04);
|
|
}
|
|
.sortable-page-list {
|
|
margin-left: 0;
|
|
ul {
|
|
margin-bottom: 0;
|
|
margin-top: 0;
|
|
}
|
|
li {
|
|
border-bottom: 1px solid #BBB;
|
|
border-left: 1px solid #BBB;
|
|
border-right: 1px solid #BBB;
|
|
padding: $-xs $-s;
|
|
}
|
|
li:first-child {
|
|
margin-top: $-xs;
|
|
border-top: 1px solid #BBB;
|
|
}
|
|
}
|
|
|
|
// Jquery Sortable Styles
|
|
.dragged {
|
|
position: absolute;
|
|
opacity: 0.5;
|
|
z-index: 2000;
|
|
}
|
|
|
|
body.dragging, body.dragging * {
|
|
cursor: move !important;
|
|
}
|
|
|
|
.sortable-page-list li.placeholder {
|
|
position: relative;
|
|
}
|
|
.sortable-page-list li.placeholder:before {
|
|
position: absolute;
|
|
} |