Skip to content

Commit

Permalink
[IMP] doc: don't limit width of pages with code column
Browse files Browse the repository at this point in the history
  • Loading branch information
xmo-odoo committed Jul 8, 2015
1 parent c97cb35 commit 5f768ed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 818 deletions.
12 changes: 9 additions & 3 deletions doc/_extensions/odoo/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

{% set classes = [] %}
{% if pagename == master_doc %}
{% set classes = classes + ['index'] %}
{% set classes = classes + ['index'] %}
{% endif %}

{% if 'code-column' in meta %}
{% set classes = classes + ['has_code_col'] %}
{% set classes = classes + ['has_code_col'] %}
{% endif %}

{%- block doctype -%}
Expand Down Expand Up @@ -90,7 +91,12 @@ <h1 id="main_title">{{ meta.get('main-title', title) }}</h1>
{%- endblock -%}

{%- block content -%}
<main class="container {{ ' '.join(classes) }}">
{% if 'code-column' in meta %}
{% set container = 'container-fluid' %}
{% else %}
{% set container = 'container' %}
{% endif %}
<main class="{{ container }} {{ ' '.join(classes) }}">
{% if pagename != master_doc %}
<div class="row">
<aside>
Expand Down
5 changes: 0 additions & 5 deletions doc/_extensions/odoo/static/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ body, header {
// @w-size-large : 1170px;
// @w-size-xlarge : 1440px;


#main_navbar{
.container-fluid {
// @media screen and (min-width: @w-size-medium){
Expand Down Expand Up @@ -62,7 +61,6 @@ header{
margin-bottom: 0;
overflow: hidden;
position: relative;
margin-bottom: 0px;
padding-top: 50%;
padding-bottom: 15%;

Expand Down Expand Up @@ -129,9 +127,6 @@ main{
}

main.has_code_col{

width: 1440px;

@media (max-width:@w-size-xlarge) {
width: 100%;
}
Expand Down
Loading

0 comments on commit 5f768ed

Please sign in to comment.