File tree 6 files changed +156
-7
lines changed
6 files changed +156
-7
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,10 @@ flake8 = "*"
9
9
10
10
[packages ]
11
11
django = " ~=3.0"
12
+ django_compressor = " *"
12
13
django-countries = " *"
13
14
django-heroku = " *"
15
+ django-libsass = " *"
14
16
gunicorn = " *"
15
17
psycopg2 = " *"
16
18
django-ordered-model = " *"
Original file line number Diff line number Diff line change 24
24
SECRET_KEY = os .environ .get ("DJANGO_SECRET_KEY" )
25
25
26
26
# SECURITY WARNING: don't run with debug turned on in production!
27
- DEBUG = os .environ .get ("DJANGO_DEBUG_ENABLED" , default = False )
27
+ DEBUG = os .environ .get ("DJANGO_DEBUG_ENABLED" , default = False ) in [ "True" , True ]
28
28
29
29
ALLOWED_HOSTS = ["localhost" , "127.0.0.1" ]
30
30
31
31
32
32
# Application definition
33
33
34
34
INSTALLED_APPS = [
35
+ "compressor" ,
35
36
"django.contrib.admin" ,
36
37
"django.contrib.auth" ,
37
38
"django.contrib.contenttypes" ,
122
123
123
124
STATIC_URL = "/static/"
124
125
126
+ STATICFILES_FINDERS = [
127
+ "django.contrib.staticfiles.finders.FileSystemFinder" ,
128
+ "django.contrib.staticfiles.finders.AppDirectoriesFinder" ,
129
+ "compressor.finders.CompressorFinder" ,
130
+ ]
131
+
132
+ COMPRESS_PRECOMPILERS = (("text/x-scss" , "django_libsass.SassCompiler" ),)
125
133
126
134
# See https://devcenter.heroku.com/articles/deploying-python#python-deployment-flow
127
135
django_heroku .settings (locals ())
Original file line number Diff line number Diff line change
1
+ $color-tomato : rgb (237 , 89 , 47 );
2
+ $color-dark-turquoise : rgb (5 , 181 , 218 );
3
+ $color-dark-slate-blue : rgb (60 , 92 , 153 );
4
+ $color-dark-slate-gray : rgb (51 , 51 , 51 );
5
+ $color-lighter-gray : rgb (245 , 245 , 245 );
6
+
7
+ body {
8
+ color : $color-dark-slate-gray ;
9
+ }
10
+
11
+ .breadcrumb {
12
+ a , a :hover {
13
+ color : $color-dark-slate-blue ;
14
+ }
15
+ }
16
+
17
+ .button.tag {
18
+ & .case {
19
+ & :hover , & .tag-selected {
20
+ color : white ;
21
+ background-color : $color-tomato ;
22
+ border-color : $color-tomato ;
23
+ }
24
+ }
25
+ & .scholarship {
26
+ & :hover , & .tag-selected {
27
+ color : white ;
28
+ background-color : $color-dark-turquoise ;
29
+ border-color : $color-dark-turquoise ;
30
+ }
31
+ }
32
+ }
33
+
34
+ .card.entry-post.link a .card-content.has-bottom-link {
35
+ padding : 0 0 3rem 0 ;
36
+ }
37
+
38
+ .hero {
39
+ background-color : $color-lighter-gray ;
40
+
41
+ & .case {
42
+ box-shadow : inset 0px 6px 0px $color-tomato ;
43
+ }
44
+
45
+ & .scholarship {
46
+ box-shadow : inset 0px 6px 0px $color-dark-turquoise ;
47
+ }
48
+
49
+ p {
50
+ max-width : 708px ;
51
+ }
52
+ }
53
+
54
+ .contribute {
55
+ float : right ;
56
+ max-width : 380px ;
57
+ }
58
+
59
+ .tags-filter {
60
+ color : $color-dark-slate-blue ;
61
+ cursor : pointer ;
62
+ }
Original file line number Diff line number Diff line change
1
+ {% load compress %}
1
2
{% load static %}
2
3
3
4
<!DOCTYPE html>
8
9
< meta name ="description " content =""/>
9
10
< title > CC Legal Database</ title >
10
11
< link rel ="icon " href ="{% static 'favicon.ico' %} "/>
11
- < link rel ="stylesheet " href ="https://unpkg.com/@creativecommons/vocabulary/css/vocabulary.css ">
12
+ < link rel ="stylesheet " type ="text/css " href ="https://unpkg.com/@creativecommons/vocabulary/css/vocabulary.css ">
13
+ {% compress css %}
14
+ < link rel ="stylesheet " type ="text/x-scss " href ="{% static 'style.scss' %} ">
15
+ {% endcompress %}
12
16
{% block styles %}{% endblock %}
13
17
</ head >
14
18
< body >
Original file line number Diff line number Diff line change 1
1
{% extends 'legal_db/base.html' %}
2
2
3
3
{% block body_content %}
4
- < div class ="padding-horizontal-xxl padding-vertical-large " style =" background-color: #E5E5E5; ">
4
+ < div class ="hero padding-horizontal-xxl padding-vertical-large ">
5
5
< h1 > Creative Commons Legal Database</ h1 >
6
6
</ div >
7
7
{% endblock %}
You can’t perform that action at this time.
0 commit comments