##// END OF EJS Templates
Adding files that I mised in the last commit.
Brian E. Granger -
Show More
@@ -6,16 +6,28 b' import os'
6
6
7 static_dir = 'static'
7 static_dir = 'static'
8 components_dir = os.path.join(static_dir, 'components')
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 def css(minify=True):
15 def css(minify=True):
12 """generate the css from less files"""
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 if minify not in ['True', 'False', True, False]:
22 if minify not in ['True', 'False', True, False]:
14 abort('minify must be Boolean')
23 abort('minify must be Boolean')
15 minify = (minify in ['True',True])
24 minify = (minify in ['True',True])
16
17 min_flag= '-x' if minify is True else ''
25 min_flag= '-x' if minify is True else ''
18 lessc = os.path.join('components', 'less.js', 'bin', 'lessc')
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 with lcd(static_dir):
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,7 +1,7 b''
1 // Our base less styles. This should be @import'ed by the main .less
1 // Our base less styles. This should be @import'ed by the main .less
2 // files of each page. This file should not itself be compiled to css.
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 @import "variables.less";
5 @import "variables.less";
6 @import "mixins.less";
6 @import "mixins.less";
7 @import "flexbox.less";
7 @import "flexbox.less";
@@ -1,3 +1,7 b''
1 // Our customizations to bootstrap no here.
1 // Our customizations to bootstrap go here.
2
2
3 @textColor: @black;
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,6 +1,8 b''
1 // Bootstrap customizations specific to this page.
1 // Bootstrap customizations specific to this page.
2
2
3 @corner_radius: 4px;
3
4 // Our own global variables for this page
5
4 @notebook_background: white;
6 @notebook_background: white;
5 @cell_selected_background: darken(@notebook_background, 2%);
7 @cell_selected_background: darken(@notebook_background, 2%);
6 @cell_background: darken(@notebook_background, 3.2%);
8 @cell_background: darken(@notebook_background, 3.2%);
@@ -8,4 +10,4 b''
8 @light_border_color: darken(@cell_selected_background, 17%);
10 @light_border_color: darken(@cell_selected_background, 17%);
9 @borderwidth: 1px;
11 @borderwidth: 1px;
10 @fontBaseColor: black;
12 @fontBaseColor: black;
11 @baseFontSize: 30pt;
13
General Comments 0
You need to be logged in to leave comments. Login now