Make some menus reponsive, some work on book boxes.
[wolnelektury.git] / wolnelektury / settings / static.py
1 from os import path
2 from .paths import PROJECT_DIR
3
4 # Absolute path to the directory that holds media.
5 # Example: "/home/media/media.lawrence.com/"
6 MEDIA_ROOT = path.join(PROJECT_DIR, '../media/')
7 STATIC_ROOT = path.join(PROJECT_DIR, '../static/')
8 SEARCH_INDEX = path.join(PROJECT_DIR, '../search_index/')
9
10 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
11 # trailing slash if there is a path component (optional in other cases).
12 # Examples: "http://media.lawrence.com", "http://example.com/media/"
13 MEDIA_URL = '/media/'
14 STATIC_URL = '/static/'
15
16 # CSS and JavaScript file groups
17
18
19 PIPELINE_CSS = {
20     'main': {
21         # styles both for mobile and for big screen
22         'source_filenames': [
23             'css/jquery.countdown.css', 
24
25             'css/main/*.scss',
26
27             'sponsors/css/sponsors.css',
28             'funding/funding.scss',
29             'polls/polls.scss',
30
31             'css/social/shelf_tags.css',
32             'css/ui-lightness/jquery-ui-1.8.16.custom.css',
33         ],
34         'output_filename': 'css/compressed/main.css',
35     },
36     'ie': {
37         'source_filenames': [
38             'css/ie.css',
39         ],
40         'output_filename': 'css/compressed/ie.css',
41     },
42     'book': {
43         'source_filenames': [
44             'css/master.book.css',
45         ],
46         'output_filename': 'css/compressed/book.css',
47     },
48     'player': {
49         'source_filenames': [
50             'jplayer/jplayer.blue.monday.css', 
51             'player/player.css', 
52         ],
53         'output_filename': 'css/compressed/player.css',
54     },
55     'simple': {
56         'source_filenames': ('css/simple.css',),
57         'output_filename': 'css/compressed/simple.css',
58     },
59 }
60
61 PIPELINE_JS = {
62     'base': {
63         'source_filenames': (
64             'js/jquery.cycle.min.js',
65             'js/jquery.jqmodal.js',
66             'js/jquery.form.js',
67             'js/jquery.countdown.js', 'js/jquery.countdown-pl.js',
68             'js/jquery.countdown-de.js', 'js/jquery.countdown-uk.js',
69             'js/jquery.countdown-es.js', 'js/jquery.countdown-lt.js',
70             'js/jquery.countdown-ru.js', 'js/jquery.countdown-fr.js',
71
72             'js/jquery-ui-1.8.16.custom.min.js',
73
74             'js/locale.js',
75             'js/dialogs.js',
76             'js/base.js',
77             'pdcounter/pdcounter.js',
78             'sponsors/js/sponsors.js',
79             'player/openplayer.js',
80             'js/search.js',
81             'funding/funding.js',
82             ),
83         'output_filename': 'js/base.min.js',
84     },
85     'player': {
86         'source_filenames': [
87             'jplayer/jquery.jplayer.min.js', 
88             'jplayer/jplayer.playlist.min.js', 
89             'player/player.js', 
90         ],
91         'output_filename': 'js/player.min.js',
92     },
93     'book': {
94         'source_filenames': [
95             'js/jquery.eventdelegation.js',
96             'js/jquery.scrollto.js',
97             'js/jquery.highlightfade.js',
98             'js/book.js',
99             'player/openplayer.js',
100         ],
101         'output_filename': 'js/book.min.js',
102     },
103     'book_ie': {
104         'source_filenames': ('js/ierange-m2.js',),
105         'output_filename': 'js/book_ie.min.js',
106     }
107
108 }
109
110 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
111 PIPELINE_CSS_COMPRESSOR = None
112 PIPELINE_JS_COMPRESSOR = None
113
114 PIPELINE_COMPILERS = (
115     'pyscss_compiler.PySCSSCompiler',
116 )
117 PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss'
118 PIPELINE_PYSCSS_ARGUMENTS = ''