diff --git a/config/settings.py b/config/settings.py index 1d6b4d2..d9d5803 100644 --- a/config/settings.py +++ b/config/settings.py @@ -78,6 +78,7 @@ SOCIAL_AUTH_STORAGE = 'social_django.models.DjangoStorage' INSTALLED_APPS = [ 'news.apps.NewsConfig', 'users.apps.UsersConfig', + 'spectrum.apps.SpectrumConfig', 'crispy_forms', 'django.contrib.admin', 'django.contrib.auth', diff --git a/config/urls.py b/config/urls.py index 2f27212..4c647ad 100644 --- a/config/urls.py +++ b/config/urls.py @@ -25,6 +25,7 @@ from users import views as user_views urlpatterns = [ path('', include('news.urls')), + path('spectrum/', include('spectrum.urls')), path('admin/', admin.site.urls), diff --git a/news/static/news/css/styles.css b/news/static/news/css/styles.css index 9fd5d56..76d3cc3 100644 --- a/news/static/news/css/styles.css +++ b/news/static/news/css/styles.css @@ -22,8 +22,8 @@ ul { background: #0F2027; /* fallback for old browsers */ /*background: -webkit-linear-gradient(to right, #2C5364, #203A43, #0F2027); */ /* Chrome 10-25, Safari 5.1-6 */ /*background: linear-gradient(to right, #2C5364, #203A43, #0F2027); */ /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ - background: -webkit-linear-gradient(to right, #E42D2D, #2460E9); - background: linear-gradient(to right, #E42D2D, #2460E9); + background: -webkit-linear-gradient(to left, #E42D2D, #2460E9); + background: linear-gradient(to left, #E42D2D, #2460E9); /* border-bottom: 3px #111 solid; */ } @@ -164,5 +164,14 @@ a.article-title:hover { } } +.left { + color: #2460E9!important; +} +.center { + color: #84478B!important; +} +.right { + color: #E42D2D!important; +} diff --git a/news/templates/news/base.html b/news/templates/news/base.html index 70c2686..807281c 100644 --- a/news/templates/news/base.html +++ b/news/templates/news/base.html @@ -40,6 +40,7 @@