From 18ef605e53e358b760e4eb5f76074bc962d8eaa2 Mon Sep 17 00:00:00 2001 From: Arvind Tiwari Date: Sat, 24 Feb 2018 20:22:27 +0530 Subject: [PATCH 1/2] fix styles for dcl cms plugin --- .../static/datacenterlight/css/cms.css | 5 +++++ .../templates/datacenterlight/cms_page.html | 17 +++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/datacenterlight/static/datacenterlight/css/cms.css b/datacenterlight/static/datacenterlight/css/cms.css index abf06501..4854d2d2 100644 --- a/datacenterlight/static/datacenterlight/css/cms.css +++ b/datacenterlight/static/datacenterlight/css/cms.css @@ -29,6 +29,10 @@ background: rgba(90, 116, 175, 0.85); } +.dcl-cms_page-header .container { + position: relative; +} + #dcl-cms_page-text { background: #fff; } @@ -44,4 +48,5 @@ line-height: 40px; width: 100%; } +} } } \ No newline at end of file diff --git a/datacenterlight/templates/datacenterlight/cms_page.html b/datacenterlight/templates/datacenterlight/cms_page.html index 49d217b8..b770773c 100644 --- a/datacenterlight/templates/datacenterlight/cms_page.html +++ b/datacenterlight/templates/datacenterlight/cms_page.html @@ -1,21 +1,18 @@ {% extends "datacenterlight/base.html" %} {% load staticfiles cms_tags sekizai_tags %} +{% block css_extra %} + +{% endblock css_extra %} + {% block title %} {% page_attribute page_title %} {% endblock %} {% block content %} - {% addtoblock "css" %} - - {% endaddtoblock %} -
-
-
-
-

{% page_attribute page_title %}

-
-
+
+
+

{% page_attribute page_title %}

From 8469dd34a565a6288c5761977fd509f5dcc7322c Mon Sep 17 00:00:00 2001 From: Arvind Tiwari Date: Sat, 24 Feb 2018 20:25:14 +0530 Subject: [PATCH 2/2] css style fix --- datacenterlight/static/datacenterlight/css/cms.css | 1 - 1 file changed, 1 deletion(-) diff --git a/datacenterlight/static/datacenterlight/css/cms.css b/datacenterlight/static/datacenterlight/css/cms.css index 4854d2d2..b9a19245 100644 --- a/datacenterlight/static/datacenterlight/css/cms.css +++ b/datacenterlight/static/datacenterlight/css/cms.css @@ -48,5 +48,4 @@ line-height: 40px; width: 100%; } -} } } \ No newline at end of file