fix styles for dcl cms plugin

This commit is contained in:
Arvind Tiwari 2018-02-24 20:22:27 +05:30
parent 2b3e834d21
commit 18ef605e53
2 changed files with 12 additions and 10 deletions

View file

@ -29,6 +29,10 @@
background: rgba(90, 116, 175, 0.85); background: rgba(90, 116, 175, 0.85);
} }
.dcl-cms_page-header .container {
position: relative;
}
#dcl-cms_page-text { #dcl-cms_page-text {
background: #fff; background: #fff;
} }
@ -44,4 +48,5 @@
line-height: 40px; line-height: 40px;
width: 100%; width: 100%;
} }
} }
} }

View file

@ -1,21 +1,18 @@
{% extends "datacenterlight/base.html" %} {% extends "datacenterlight/base.html" %}
{% load staticfiles cms_tags sekizai_tags %} {% load staticfiles cms_tags sekizai_tags %}
{% block css_extra %}
<link href="{% static 'datacenterlight/css/cms.css' %}" media="screen" rel="stylesheet" type="text/css"/>
{% endblock css_extra %}
{% block title %} {% block title %}
{% page_attribute page_title %} {% page_attribute page_title %}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% addtoblock "css" %} <div class="dcl-cms_page-header">
<link href="{% static 'datacenterlight/css/cms.css' %}" media="screen" rel="stylesheet" type="text/css"/> <div class="container">
{% endaddtoblock %} <h1>{% page_attribute page_title %}</h1>
<div class="dcl-cms_page-full-width">
<div class="dcl-cms_page-header">
<div class="container">
<div class="single-heading">
<h2>{% page_attribute page_title %}</h2>
</div>
</div>
</div> </div>
</div> </div>