joyce/src/stylesheets/editor.scss

181 lines
3.4 KiB
SCSS

@import "custom";
@import "node_modules/bootstrap/scss/bootstrap";
$bg_gradient1: #ede9de;
$bg_gradient2: #e0dbb5;
$nav_gradient1: #152e3a;
$nav_gradient2: #181b21;
$border_color: rgba(120,120,120,0.7);
html {
height: 100%;
}
html body {
height: 100%;
margin: 0;
background-color: rgba(211,211,211,1);
background-repeat: no-repeat;
background-attachment: fixed;
background: -webkit-linear-gradient(-15deg, $bg_gradient1, $bg_gradient2); /* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(-15deg, $bg_gradient1, $bg_gradient2); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(-15deg, $bg_gradient1, $bg_gradient2); /* For Firefox 3.6 to 15 */
background: linear-gradient(-15deg, $bg_gradient1, $bg_gradient2); /* Standard syntax */
}
nav.navbar {
background-color: rgba(10,10,10,1);
background: -webkit-linear-gradient(0, $nav_gradient1, $nav_gradient2); /* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(0, $nav_gradient1, $nav_gradient2); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(0, $nav_gradient1, $nav_gradient2); /* For Firefox 3.6 to 15 */
background: linear-gradient(0, $nav_gradient1, $nav_gradient2); /* Standard syntax */
box-shadow: 0px 4px 4px 1px rgba(0, 0, 0, 0.4);
}
a.navbar-brand {
margin-left: 2%;
font-size: 1.8em;
color: #ffffff;
}
nav a:hover {
color: #b7b7b7;
}
#wrapper {
height: 100%;
}
#wrapper > div {
height: 100%;
overflow: hidden;
}
#joyce_reader {
overflow: hidden;
width: 95%;
height: 100%;
background-color: rgba(256,256,256,0.5);
border-left: 1px solid $border_color;
border-right: 1px solid $border_color;
}
#joyce_editor {
overflow: hidden;
width: 95%;
height: 100%;
background-color: rgba(256,256,256,0.5);
border-left: 1px solid $border_color;
border-right: 1px solid $border_color;
}
#joyce_reader > div {
margin-top: 20px;
}
#joyce_editor > div {
margin-top: 20px;
}
#sidebar {
height: 100%;
background-color: rgba(250,250,250,.8);
margin: -2.5% 2% 1.5% 2%;
padding: 1%;
border: 1px solid $border_color;
border-radius: 0 0 5px 5px;
box-shadow: 2px 5px 10px 1px rgba(0, 0, 0, 0.3);
}
#content_window {
height: 44em;
background-color: rgba(250,250,250,.8);
margin: 0 2% 1.5% 2%;
padding: 2% 2%;
border: 1px solid $border_color;
border-radius: 5px;
box-shadow: 2px 5px 10px 1px rgba(0, 0, 0, 0.3);
}
#page {
height: 100%;
background-color: rgba(256,256,256,.8);
box-shadow: 2px 5px 10px 1px rgba(0, 0, 0, 0.3);
padding: 3% 8%;
border: 1px solid $border_color;
border-radius: 5px;
}
#editor_topbar {
margin: 0.8% 0;
}
#editor_topbar input {
width: 100%;
}
#editor_topbar button img {
width: 100%;
height: 100%;
}
#editor_content {
height: 100%;
background-color: rgba(256,256,256,.8);
box-shadow: 2px 5px 10px 1px rgba(0, 0, 0, 0.3);
margin: 0.8% 0;
border: 1px solid $border_color;
border-radius: 5px;
padding: 3% 8%;
}
#editor_content div {
height: 100%;
overflow: scroll;
}
#editor_topbar button img {
width: 60%;
}
#editor_bottombar {
margin: 0.8% 0;
}
#editor_delete {
float: left;
width: 100%;
}
#editor_save {
float: right;
width: 100%;
}
#page {
h2 {
text-align: center;
}
h3 {
text-align: center;
}
}
#highlight_button > button {
width: 100%;
}
.sidebar_spacer {
margin: 3% 0;
border: 1px solid $border_color;
}
.chapter_button > button {
width: 100%;
margin: 1% 0 1% 0;
}