Improve edit app

This commit is contained in:
Jonathan Frederic 2014-12-17 14:00:28 -08:00 committed by Jonathan Frederic
parent b81a9f6bc6
commit cda53215ba
8 changed files with 66 additions and 16 deletions

View File

@ -6,7 +6,7 @@
body { body {
background-color: white; background-color: @body-bg;
/* This makes sure that the body covers the entire window and needs to /* This makes sure that the body covers the entire window and needs to
be in a different element than the display: box in wrapper below */ be in a different element than the display: box in wrapper below */
position: absolute; position: absolute;

View File

@ -43,4 +43,10 @@ label {
@global-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); @global-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2);
@global-shadow-dark: 0px 0px 12px 1px rgba(87, 87, 87, 0.4); @global-shadow-dark: 0px 0px 12px 1px rgba(87, 87, 87, 0.4);
@page-header-padding: 20px; @page-header-padding: 20px;
/* Make the page background atleast 100% the height of the view port */
@page-backdrop-height: 100vh;
/* Make the page itself atleast 70% the height of the view port */
@page-min-height: 70vh;
@page-backdrop-color: #EEE;
@page-color: @body-bg;
@page-padding: 15px;

View File

@ -1,9 +1,34 @@
#texteditor-container {
border-bottom: 1px solid #ccc;
}
#filename { #filename {
font-size: 16pt; font-size: 16pt;
display: table; display: table;
padding: 0px 5px; padding: 0px 5px;
} }
#texteditor-backdrop {
padding-top: @page-header-padding;
padding-bottom: @page-header-padding;
@media not print{
min-height: @page-backdrop-height;
background-color: @page-backdrop-color;
}
#texteditor-container {
.CodeMirror-gutter {
@media print {
background-color: @body-bg;
}
@media not print {
background-color: @page-color;
}
}
@media not print{
padding: @page-padding;
background-color : @page-color;
min-height: @page-min-height;
.box-shadow(@global-shadow);
}
}
}

View File

@ -11,4 +11,20 @@
// truncate mode-menu, so it doesn't get longer than the screen // truncate mode-menu, so it doesn't get longer than the screen
overflow: auto; overflow: auto;
max-height: 20em; max-height: 20em;
} }
#current-mode {
margin-right: @padding-large-horizontal;
}
.edit_app {
#header {
.box-shadow(@global-shadow);
}
#menubar .navbar {
/* Use a negative 1 bottom margin, so the border overlaps the border of the
header */
margin-bottom: -1px;
}
}

View File

@ -14,9 +14,10 @@ div#notebook_panel {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
.border-box-sizing(); .border-box-sizing();
background-color: @notebook_dark_background; @media not print {
/* Make the page background atleast 100% the height of the view port */ background-color: @page-backdrop-color;
min-height: 100vh; min-height: @page-backdrop-height;
}
} }
div#notebook { div#notebook {
font-size: @notebook_font_size; font-size: @notebook_font_size;
@ -34,11 +35,9 @@ div#notebook {
#notebook-container{ #notebook-container{
@media not print{ @media not print{
padding: 15px; padding: @page-padding;
border-color: @body-bg; background-color : @page-color;
background-color : @body-bg; min-height: @page-min-height;
/* Make the page itself atleast 70% the height of the view port */
min-height: 70vh;
.box-shadow(@global-shadow); .box-shadow(@global-shadow);
} }
} }

View File

@ -7,7 +7,6 @@
@light_border_color: darken(@cell_selected_background, 17%); @light_border_color: darken(@cell_selected_background, 17%);
@border_width: 1px; @border_width: 1px;
@notebook_font_size: 14px; @notebook_font_size: 14px;
@notebook_dark_background: #EEE;
@notebook_line_height: 20px; @notebook_line_height: 20px;
@code_line_height: 1.21429em; // changed from 1.231 to get 17px even @code_line_height: 1.21429em; // changed from 1.231 to get 17px even
@code_padding: 0.4em; // 5.6 px @code_padding: 0.4em; // 5.6 px

View File

@ -10,6 +10,7 @@
{% block params %} {% block params %}
class="edit_app"
data-base-url="{{base_url}}" data-base-url="{{base_url}}"
data-file-path="{{file_path}}" data-file-path="{{file_path}}"
@ -75,12 +76,15 @@ data-file-path="{{file_path}}"
</div> </div>
</div> </div>
<div class="lower-header-bar"></div>
{% endblock %} {% endblock %}
{% block site %} {% block site %}
<div id="texteditor-backdrop">
<div id="texteditor-container" class="container"></div> <div id="texteditor-container" class="container"></div>
</div>
{% endblock %} {% endblock %}

View File

@ -105,6 +105,7 @@
{% block header %} {% block header %}
{% endblock %} {% endblock %}
</div> </div>
<div id="header-spacer"></div> <div id="header-spacer"></div>
<div id="site"> <div id="site">