Move some utility classes into a shared location

This commit is contained in:
Anna Sidwell 2018-10-12 20:00:55 -04:00
parent b0aea72c12
commit a784ddad4f
4 changed files with 16 additions and 11 deletions

View File

@ -7,8 +7,6 @@
{% block stylesheets %} {% block stylesheets %}
{{ block.super }} {{ block.super }}
<style> <style>
.container { min-height: 60vh; }
.form-selector { .form-selector {
max-width: 50em; max-width: 50em;
margin: auto; margin: auto;
@ -50,11 +48,6 @@
display: block; display: block;
text-align: center; text-align: center;
} }
.ojuso-red { color: #ea4639; }
.ojuso-green { color: #4ac95d; }
.ojuso-yellow { color: #f9db3c; }
.ojuso-blue { color: #008ad5; }
</style> </style>
{% endblock %} {% endblock %}

8
assets/css/ojuso.css Normal file
View File

@ -0,0 +1,8 @@
/* Make sure that the footer doesn't have space after it */
.container { min-height: 60vh; }
/* Colour utility classes */
.ojuso-red { color: #ea4639; }
.ojuso-green { color: #4ac95d; }
.ojuso-yellow { color: #f9db3c; }
.ojuso-blue { color: #008ad5; }

View File

@ -206,6 +206,9 @@ AWS_SECRET_ACCESS_KEY = "pTZAnmtvGzFBdI/jwtwRoFW5eK7eJ8FLFxr1/Jb+Yq4"
STATIC_ROOT = os.path.join(BASE_DIR, 'static/') STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
STATIC_URL = os.getenv("STATIC_URL", '/static/') STATIC_URL = os.getenv("STATIC_URL", '/static/')
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "assets")
]
STATICFILES_FINDERS = [ STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder',

View File

@ -7,10 +7,11 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Sans" /> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Sans">
<link rel="stylesheet" href="{% static 'map/bootstrap/css/bootstrap.min.css' %}" /> <link rel="stylesheet" href="{% static 'map/bootstrap/css/bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'map/bootstrap/css/bootstrap-theme.min.css' %}" /> <link rel="stylesheet" href="{% static 'css/ojuso.css' %}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"/> <link rel="stylesheet" href="{% static 'map/bootstrap/css/bootstrap-theme.min.css' %}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<title>{% block page_title %}Ojuso{% endblock %}</title> <title>{% block page_title %}Ojuso{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">