##// END OF EJS Templates
Adding files that I mised in the last commit.
Brian E. Granger -
Show More
@@ -1,21 +1,33 b''
1 1 """ fabfile to prepare the notebook """
2 2
3 3 from fabric.api import local,lcd
4 4 from fabric.utils import abort
5 5 import os
6 6
7 7 static_dir = 'static'
8 8 components_dir = os.path.join(static_dir, 'components')
9
9 to_compile = [
10 ('notebooks', 'style.less'),
11 ('tree', 'style.less'),
12 ('auth', 'style.less')
13 ]
10 14
11 15 def css(minify=True):
12 16 """generate the css from less files"""
17 for subdir, filename in to_compile:
18 _compile_less(subdir, filename, minify=minify)
19
20
21 def _compile_less(subdir, filename, minify=True):
13 22 if minify not in ['True', 'False', True, False]:
14 23 abort('minify must be Boolean')
15 24 minify = (minify in ['True',True])
16
17 25 min_flag= '-x' if minify is True else ''
18 26 lessc = os.path.join('components', 'less.js', 'bin', 'lessc')
27
28 source = os.path.join(subdir, 'less', filename)
29 target = os.path.join(subdir, 'css', filename.replace('.less','.min.css'))
30 subdir = os.path.join(static_dir, subdir)
19 31 with lcd(static_dir):
20 local('{lessc} {min_flag} less/style.less css/style.min.css'.format(**locals()))
32 local('{lessc} {min_flag} {source} {target}'.format(**locals()))
21 33
@@ -1,1 +1,1 b''
1 // Bootstrap customizations specific to this page.
1 // Our global less variables for this page go here
@@ -1,9 +1,9 b''
1 1 // Our base less styles. This should be @import'ed by the main .less
2 2 // files of each page. This file should not itself be compiled to css.
3 3
4 @import "../../../components/bootstrap/less/bootstrap.less";
4 @import "../../components/bootstrap/less/bootstrap.less";
5 5 @import "variables.less";
6 6 @import "mixins.less";
7 7 @import "flexbox.less";
8 8 @import "page.less";
9 9
@@ -1,3 +1,7 b''
1 // Our customizations to bootstrap no here.
1 // Our customizations to bootstrap go here.
2 2
3 3 @textColor: @black;
4
5 // Our own global variables for all pages go here
6
7 @corner_radius: 4px; No newline at end of file
@@ -1,11 +1,13 b''
1 1 // Bootstrap customizations specific to this page.
2 2
3 @corner_radius: 4px;
3
4 // Our own global variables for this page
5
4 6 @notebook_background: white;
5 7 @cell_selected_background: darken(@notebook_background, 2%);
6 8 @cell_background: darken(@notebook_background, 3.2%);
7 9 @border_color: darken(@cell_selected_background, 31%);
8 10 @light_border_color: darken(@cell_selected_background, 17%);
9 11 @borderwidth: 1px;
10 12 @fontBaseColor: black;
11 @baseFontSize: 30pt;
13
General Comments 0
You need to be logged in to leave comments. Login now