Merge branch '2-style-license' into 'master'
Resolve "Style license" Closes #2 See merge request agaric/patternlibrary!9
This commit is contained in:
commit
51a4d6082c
3 changed files with 35 additions and 1 deletions
|
@ -24,3 +24,8 @@
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: $dark;
|
color: $dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.license img {
|
||||||
|
float: left;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
{#
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Override of default theme implementation to display a one-column layout.
|
||||||
|
*
|
||||||
|
* Available variables:
|
||||||
|
* - content: The content for this layout.
|
||||||
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
|
*
|
||||||
|
* @ingroup themeable
|
||||||
|
*/
|
||||||
|
#}
|
||||||
|
{%
|
||||||
|
set classes = [
|
||||||
|
'layout',
|
||||||
|
'layout--onecol',
|
||||||
|
]
|
||||||
|
%}
|
||||||
|
{% if content %}
|
||||||
|
<div{{ attributes.addClass(classes) }}>
|
||||||
|
<div {{ region_attributes.content.addClass('layout__region', 'layout__region--content', 'license') }}>
|
||||||
|
{{ content.field_license_icon }}
|
||||||
|
<em>{{ content.description}}</em>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
|
@ -111,6 +111,9 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# No, i do not understand why content doesn't print the paragraphs but only
|
{# No, i do not understand why content doesn't print the paragraphs but only
|
||||||
content.content does that #}
|
content.content does that #}
|
||||||
|
{% if content.field_license %}
|
||||||
|
{{ content.field_license }}
|
||||||
|
{% endif %}
|
||||||
<div class="flow_full">
|
<div class="flow_full">
|
||||||
<div class="titlebar titlebar-bigborder content">
|
<div class="titlebar titlebar-bigborder content">
|
||||||
<div class="titlebar_title">
|
<div class="titlebar_title">
|
||||||
|
@ -136,7 +139,7 @@
|
||||||
{{ content|without('content', 'field_body_paragraph',
|
{{ content|without('content', 'field_body_paragraph',
|
||||||
'field_case_study_client', 'field_case_study_partners', 'field_case_study_status',
|
'field_case_study_client', 'field_case_study_partners', 'field_case_study_status',
|
||||||
'field_case_study_team', 'field_case_study_year', 'field_technologies',
|
'field_case_study_team', 'field_case_study_year', 'field_technologies',
|
||||||
'field_services', 'uid', 'created'
|
'field_services', 'uid', 'created', 'field_license'
|
||||||
) }}
|
) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue