Compare commits
2 Commits
6a27c1eb9b
...
770d8dfa9a
Author | SHA1 | Date |
---|---|---|
ouidade | 770d8dfa9a | |
ouidade | cfd7503553 |
|
@ -109,11 +109,16 @@
|
|||
.layout-container footer {
|
||||
flex: 0 0 100%; }
|
||||
.layout-container main {
|
||||
width: 100%; }
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(12, 1fr); }
|
||||
.layout-container .content_container {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(12, 1fr); }
|
||||
|
||||
.layout-content {
|
||||
grid-column: 1 / span 12; }
|
||||
|
||||
/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
|
||||
ul {
|
||||
list-style-type: none; }
|
||||
|
@ -284,83 +289,132 @@ header {
|
|||
.footer div {
|
||||
flex-direction: column; } }
|
||||
|
||||
.layout-sidebar-first {
|
||||
display: flex;
|
||||
justify-content: end; }
|
||||
.layout-sidebar-first .sidebar_first_container {
|
||||
width: 80%; }
|
||||
.layout-sidebar-first .sidebar_first_container #block-quartiers-de-demain-views-block-statics-block-1 {
|
||||
text-transform: uppercase; }
|
||||
|
||||
/*pages*/
|
||||
.partenaires .content_container #block-quartiers-de-demain-titredepage {
|
||||
#presentation {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(12, 1fr);
|
||||
grid-gap: 10px; }
|
||||
#presentation .layout-content {
|
||||
grid-column: 3 / 11;
|
||||
order: 2;
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 6rem; }
|
||||
@media (max-width: 891px) {
|
||||
#presentation .layout-content {
|
||||
width: 90%; } }
|
||||
@media (max-width: 500px) {
|
||||
#presentation .layout-content {
|
||||
padding-top: 0; } }
|
||||
#presentation .layout-content .content_container {
|
||||
display: flex; }
|
||||
#presentation .layout-content .content_container #block-quartiers-de-demain-titredepage {
|
||||
display: none; }
|
||||
#presentation .layout-content .content_container article.node-type-static {
|
||||
width: 100%; }
|
||||
#presentation .layout-content .content_container article.node-type-static div.field_body h2 {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0; }
|
||||
#presentation .layout-content .content_container article.node-type-static div.field_body p {
|
||||
margin-top: 0; }
|
||||
#presentation aside {
|
||||
grid-column: 1 /span 2;
|
||||
order: 1;
|
||||
margin-top: 5rem; }
|
||||
@media (max-width: 891px) {
|
||||
#presentation aside {
|
||||
margin-left: 5%;
|
||||
margin-top: 9rem; } }
|
||||
@media (max-width: 500px) {
|
||||
#presentation aside {
|
||||
width: 80%;
|
||||
margin-top: 3rem; } }
|
||||
|
||||
.partenaires .layout-content .content_container #block-quartiers-de-demain-titredepage {
|
||||
grid-column: 3 /span 9;
|
||||
grid-row: 1;
|
||||
margin-top: 3rem; }
|
||||
.partenaires .content_container #block-quartiers-de-demain-titredepage h1 {
|
||||
.partenaires .layout-content .content_container #block-quartiers-de-demain-titredepage h1 {
|
||||
text-transform: uppercase;
|
||||
color: #f7002b;
|
||||
font-size: 1.6rem;
|
||||
font-weight: 300; }
|
||||
|
||||
.partenaires .content_container .views-element-container {
|
||||
.partenaires .layout-content .content_container .views-element-container {
|
||||
grid-column: 3 /span 9;
|
||||
grid-row: 2; }
|
||||
.partenaires .content_container .views-element-container .node-type-partenaire {
|
||||
.partenaires .layout-content .content_container .views-element-container .node-type-partenaire {
|
||||
width: 100%;
|
||||
padding-bottom: 3rem;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(9, 1fr);
|
||||
grid-template-rows: repeat(auto-fill); }
|
||||
@media (max-width: 810px) {
|
||||
.partenaires .content_container .views-element-container .node-type-partenaire {
|
||||
.partenaires .layout-content .content_container .views-element-container .node-type-partenaire {
|
||||
display: flex;
|
||||
flex-direction: column; } }
|
||||
.partenaires .content_container .views-element-container .node-type-partenaire .field_field_logo {
|
||||
.partenaires .layout-content .content_container .views-element-container .node-type-partenaire .field_field_logo {
|
||||
grid-column: 1 /span 2;
|
||||
grid-row: 1 /span 3;
|
||||
padding-right: 1rem;
|
||||
margin: auto; }
|
||||
.partenaires .content_container .views-element-container .node-type-partenaire .field_field_logo img {
|
||||
.partenaires .layout-content .content_container .views-element-container .node-type-partenaire .field_field_logo img {
|
||||
object-fit: contain;
|
||||
max-width: 200px;
|
||||
max-height: 200px; }
|
||||
.partenaires .content_container .views-element-container .node-type-partenaire .field_title {
|
||||
.partenaires .layout-content .content_container .views-element-container .node-type-partenaire .field_title {
|
||||
grid-column: 3 /span 8;
|
||||
grid-row: 1;
|
||||
font-weight: 500;
|
||||
font-size: 0.6rem;
|
||||
margin-left: 1rem; }
|
||||
.partenaires .content_container .views-element-container .node-type-partenaire .field_body {
|
||||
.partenaires .layout-content .content_container .views-element-container .node-type-partenaire .field_body {
|
||||
grid-column: 3 /span 8;
|
||||
grid-row: 2;
|
||||
margin-left: 1rem; }
|
||||
.partenaires .content_container .views-element-container .node-type-partenaire .field_field_lien {
|
||||
.partenaires .layout-content .content_container .views-element-container .node-type-partenaire .field_field_lien {
|
||||
grid-column: 3 /span 8;
|
||||
grid-row: 3;
|
||||
border-bottom: 2px solid #0732c2;
|
||||
width: fit-content;
|
||||
padding-bottom: 0.5rem;
|
||||
margin-left: 1rem; }
|
||||
.partenaires .content_container .views-element-container .node-type-partenaire .field_field_lien a {
|
||||
.partenaires .layout-content .content_container .views-element-container .node-type-partenaire .field_field_lien a {
|
||||
display: inline-flex;
|
||||
align-items: center; }
|
||||
.partenaires .content_container .views-element-container .node-type-partenaire .field_field_lien a svg {
|
||||
.partenaires .layout-content .content_container .views-element-container .node-type-partenaire .field_field_lien a svg {
|
||||
display: none; }
|
||||
.partenaires .content_container .views-element-container .node-type-partenaire .field_field_lien a::before {
|
||||
.partenaires .layout-content .content_container .views-element-container .node-type-partenaire .field_field_lien a::before {
|
||||
display: inline-block;
|
||||
content: url("../images/noun-arrow-to-right.svg");
|
||||
padding-right: 0.5rem;
|
||||
padding-top: 0.2rem; }
|
||||
|
||||
.node-type-static .content_container #block-quartiers-de-demain-titredepage {
|
||||
.node-type-static .layout-content .content_container #block-quartiers-de-demain-titredepage {
|
||||
grid-column: 3 /span 9;
|
||||
grid-row: 1;
|
||||
margin-top: 3rem; }
|
||||
.node-type-static .content_container #block-quartiers-de-demain-titredepage h1 {
|
||||
.node-type-static .layout-content .content_container #block-quartiers-de-demain-titredepage h1 {
|
||||
text-transform: uppercase;
|
||||
color: #f7002b;
|
||||
font-size: 1.6rem;
|
||||
font-weight: 300; }
|
||||
|
||||
.node-type-static .content_container article.node-type-static {
|
||||
.node-type-static .layout-content .content_container article.node-type-static {
|
||||
grid-column: 3 /span 9;
|
||||
grid-row: 2; }
|
||||
.node-type-static .content_container article.node-type-static div.field_body h2 {
|
||||
.node-type-static .layout-content .content_container article.node-type-static div.field_body h2 {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0; }
|
||||
.node-type-static .content_container article.node-type-static div.field_body p {
|
||||
.node-type-static .layout-content .content_container article.node-type-static div.field_body p {
|
||||
margin-top: 0; }
|
||||
|
|
|
@ -12,7 +12,6 @@ $width-menu-slidedown : 550px;
|
|||
font-size: $font-medium;
|
||||
top: 0%;
|
||||
left: 0%;
|
||||
// width: 100%;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
|
@ -20,67 +19,24 @@ $width-menu-slidedown : 550px;
|
|||
header{
|
||||
flex: 0 0 100%;
|
||||
}
|
||||
// main{
|
||||
// // position: relative;
|
||||
// // top: -7rem;
|
||||
// }
|
||||
|
||||
footer{
|
||||
flex: 0 0 100%;
|
||||
}
|
||||
main{
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(12, 1fr);
|
||||
}
|
||||
.content_container{
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: repeat(12, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
// .layout-content{
|
||||
// order: 2;
|
||||
// padding-top: 3rem;
|
||||
// padding-bottom: 6rem;
|
||||
// width: 70%;
|
||||
// margin: auto;
|
||||
// @media(max-width: 891px){
|
||||
// width: 90%;
|
||||
// }
|
||||
// @media (max-width:500px) {
|
||||
// padding-top: 0;
|
||||
// }
|
||||
.layout-content{
|
||||
grid-column: 1 / span 12;
|
||||
|
||||
|
||||
// }
|
||||
|
||||
// aside{
|
||||
// width: 20%;
|
||||
// order: 1;
|
||||
// margin-top: 5rem;
|
||||
// margin-left: 10%;
|
||||
// margin-right: 1rem;
|
||||
// @media(max-width:891px){
|
||||
// margin-left: 5%;
|
||||
// margin-top: 9rem;
|
||||
// }
|
||||
// @media (max-width:500px) {
|
||||
// width: 80%;
|
||||
// margin-top: 3rem;
|
||||
// }
|
||||
// }
|
||||
// main{
|
||||
// width: 100%;
|
||||
// display: flex;
|
||||
// flex-direction: row;
|
||||
// position: relative;
|
||||
// @media (max-width:500px) {
|
||||
// flex-direction: column;
|
||||
// }
|
||||
|
||||
|
||||
// }
|
||||
|
||||
// .main-content{
|
||||
// margin-top: 7rem;
|
||||
// }
|
||||
}
|
||||
|
||||
|
|
|
@ -1,85 +1,90 @@
|
|||
.partenaires{
|
||||
// font-family: $font-family-default;
|
||||
.content_container{
|
||||
// display: grid;
|
||||
// grid-template-columns: repeat(12, 1fr);
|
||||
#block-quartiers-de-demain-titredepage{
|
||||
grid-column: 3 /span 9;
|
||||
grid-row: 1;
|
||||
margin-top: 3rem;
|
||||
.layout-content{
|
||||
// grid-column: 1 / span 12;
|
||||
|
||||
h1{
|
||||
text-transform: uppercase;
|
||||
color: $red_QDD ;
|
||||
font-size: $font-large;
|
||||
font-weight: 300;
|
||||
.content_container{
|
||||
// display: grid;
|
||||
// grid-template-columns: repeat(12, 1fr);
|
||||
#block-quartiers-de-demain-titredepage{
|
||||
grid-column: 3 /span 9;
|
||||
grid-row: 1;
|
||||
margin-top: 3rem;
|
||||
|
||||
h1{
|
||||
text-transform: uppercase;
|
||||
color: $red_QDD ;
|
||||
font-size: $font-large;
|
||||
font-weight: 300;
|
||||
}
|
||||
}
|
||||
.views-element-container{
|
||||
grid-column: 3 /span 9;
|
||||
grid-row: 2;
|
||||
|
||||
.node-type-partenaire{
|
||||
width: 100%;
|
||||
padding-bottom: 3rem;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(9, 1fr);
|
||||
grid-template-rows: repeat(auto-fill);
|
||||
// grid-gap: 10px;
|
||||
@media (max-width: 810px){
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.field_field_logo{
|
||||
grid-column: 1 /span 2;
|
||||
grid-row: 1 /span 3;
|
||||
padding-right: 1rem;
|
||||
margin: auto;
|
||||
img{
|
||||
object-fit: contain;
|
||||
max-width: 200px;
|
||||
max-height: 200px;
|
||||
}
|
||||
}
|
||||
.field_title{
|
||||
grid-column: 3 /span 8;
|
||||
grid-row: 1;
|
||||
font-weight: 500;
|
||||
font-size: $font-normal;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
.field_body{
|
||||
grid-column: 3 /span 8;
|
||||
grid-row: 2;
|
||||
margin-left: 1rem;
|
||||
|
||||
}
|
||||
.field_field_lien{
|
||||
grid-column: 3 /span 8;
|
||||
grid-row: 3;
|
||||
border-bottom: 2px solid $blue_QDD;
|
||||
width: fit-content;
|
||||
padding-bottom: 0.5rem;
|
||||
margin-left: 1rem;
|
||||
|
||||
a{
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
svg{
|
||||
display: none;
|
||||
}
|
||||
&::before{
|
||||
display: inline-block;
|
||||
content: url("../images/noun-arrow-to-right.svg");
|
||||
padding-right: 0.5rem;
|
||||
padding-top: 0.2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
.views-element-container{
|
||||
grid-column: 3 /span 9;
|
||||
grid-row: 2;
|
||||
|
||||
.node-type-partenaire{
|
||||
width: 100%;
|
||||
padding-bottom: 3rem;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(9, 1fr);
|
||||
grid-template-rows: repeat(auto-fill);
|
||||
// grid-gap: 10px;
|
||||
@media (max-width: 810px){
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.field_field_logo{
|
||||
grid-column: 1 /span 2;
|
||||
grid-row: 1 /span 3;
|
||||
padding-right: 1rem;
|
||||
margin: auto;
|
||||
img{
|
||||
object-fit: contain;
|
||||
max-width: 200px;
|
||||
max-height: 200px;
|
||||
}
|
||||
}
|
||||
.field_title{
|
||||
grid-column: 3 /span 8;
|
||||
grid-row: 1;
|
||||
font-weight: 500;
|
||||
font-size: $font-normal;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
.field_body{
|
||||
grid-column: 3 /span 8;
|
||||
grid-row: 2;
|
||||
margin-left: 1rem;
|
||||
|
||||
}
|
||||
.field_field_lien{
|
||||
grid-column: 3 /span 8;
|
||||
grid-row: 3;
|
||||
border-bottom: 2px solid $blue_QDD;
|
||||
width: fit-content;
|
||||
padding-bottom: 0.5rem;
|
||||
margin-left: 1rem;
|
||||
|
||||
a{
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
svg{
|
||||
display: none;
|
||||
}
|
||||
&::before{
|
||||
display: inline-block;
|
||||
content: url("../images/noun-arrow-to-right.svg");
|
||||
padding-right: 0.5rem;
|
||||
padding-top: 0.2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,64 @@
|
|||
|
||||
#presentation{
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(12, 1fr);
|
||||
grid-gap: 10px;
|
||||
.layout-content{
|
||||
grid-column: 3 / 11;
|
||||
order: 2;
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 6rem;
|
||||
// width: 70%;
|
||||
// margin: auto;
|
||||
@media(max-width: 891px){
|
||||
width: 90%;
|
||||
}
|
||||
@media (max-width:500px) {
|
||||
padding-top: 0;
|
||||
}
|
||||
.content_container{
|
||||
display: flex;
|
||||
#block-quartiers-de-demain-titredepage{
|
||||
display: none;
|
||||
}
|
||||
|
||||
article.node-type-static{
|
||||
width: 100%;
|
||||
|
||||
div.field_body{
|
||||
h2{
|
||||
font-size: $font-medium;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
p{
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
aside{
|
||||
grid-column: 1 /span 2;
|
||||
// width: 80%;
|
||||
order: 1;
|
||||
margin-top: 5rem;
|
||||
// margin-left: 10%;
|
||||
// margin-right: 1rem;
|
||||
@media(max-width:891px){
|
||||
margin-left: 5%;
|
||||
margin-top: 9rem;
|
||||
}
|
||||
@media (max-width:500px) {
|
||||
width: 80%;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,34 +1,36 @@
|
|||
.node-type-static{
|
||||
.content_container{
|
||||
.layout-content{
|
||||
// grid-column: 1 / span 12;
|
||||
.content_container{
|
||||
|
||||
#block-quartiers-de-demain-titredepage{
|
||||
grid-column: 3 /span 9;
|
||||
grid-row: 1;
|
||||
margin-top: 3rem;
|
||||
|
||||
h1{
|
||||
text-transform: uppercase;
|
||||
color: $red_QDD ;
|
||||
font-size: $font-large;
|
||||
font-weight: 300;
|
||||
}
|
||||
}
|
||||
article.node-type-static{
|
||||
grid-column: 3 /span 9;
|
||||
grid-row: 2;
|
||||
|
||||
div.field_body{
|
||||
h2{
|
||||
font-size: $font-medium;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0;
|
||||
#block-quartiers-de-demain-titredepage{
|
||||
grid-column: 3 /span 9;
|
||||
grid-row: 1;
|
||||
margin-top: 3rem;
|
||||
|
||||
h1{
|
||||
text-transform: uppercase;
|
||||
color: $red_QDD ;
|
||||
font-size: $font-large;
|
||||
font-weight: 300;
|
||||
}
|
||||
p{
|
||||
margin-top: 0;
|
||||
}
|
||||
article.node-type-static{
|
||||
grid-column: 3 /span 9;
|
||||
grid-row: 2;
|
||||
|
||||
div.field_body{
|
||||
h2{
|
||||
font-size: $font-medium;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
p{
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// html.js body.node-type-static.node-id-2 div.dialog-off-canvas-main-canvas div.layout-container main div.layout-content div.content_container article.node-type-static
|
||||
// html.no-touchevents.js body.node-type-static.node-id-1.toolbar-horizontal.toolbar-fixed.toolbar-tray-open div.dialog-off-canvas-main-canvas div.layout-container main div.layout-content div.content_container article.contextual-region.node-type-static
|
|
@ -1,34 +1,13 @@
|
|||
// .layout-sidebar-first{
|
||||
|
||||
// #block-reha-phase1{
|
||||
// border: solid $yellow-puca 1px;
|
||||
// font-weight: 800;
|
||||
// padding: 1rem;
|
||||
// width: 80%;
|
||||
// @media(max-width:891px){
|
||||
// width: 100%;
|
||||
// }
|
||||
// h2{
|
||||
// margin-top: 0;
|
||||
// margin-bottom: 0;
|
||||
// text-transform: lowercase;
|
||||
// font-weight: 1000;
|
||||
// line-height: 1rem;
|
||||
// font-size:1.5rem ;
|
||||
.layout-sidebar-first{
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
.sidebar_first_container{
|
||||
width: 80%;
|
||||
|
||||
#block-quartiers-de-demain-views-block-statics-block-1{
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
// }
|
||||
|
||||
// p{
|
||||
// font-size: 1.5rem;
|
||||
// line-height: 1.8rem;
|
||||
// margin-top: 0.8rem;
|
||||
// }
|
||||
|
||||
// footer{
|
||||
// @extend %buttonwithborder;
|
||||
// width: fit-content;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
|
@ -26,5 +26,7 @@
|
|||
|
||||
|
||||
/*pages*/
|
||||
@import "pages/partenaires.scss";
|
||||
@import "pages/presentation";
|
||||
@import "pages/partenaires";
|
||||
@import "pages/static";
|
||||
|
||||
|
|
|
@ -0,0 +1,92 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* Claro's theme implementation to display a single Drupal page.
|
||||
*
|
||||
* The doctype, html, head, and body tags are not in this template. Instead
|
||||
* they can be found in the html.html.twig template normally located in the
|
||||
* core/modules/system directory.
|
||||
*
|
||||
* Available variables:
|
||||
*
|
||||
* General utility variables:
|
||||
* - base_path: The base URL path of the Drupal installation. Will usually be
|
||||
* "/" unless you have installed Drupal in a sub-directory.
|
||||
* - is_front: A flag indicating if the current page is the front page.
|
||||
* - logged_in: A flag indicating if the user is registered and signed in.
|
||||
* - is_admin: A flag indicating if the user has permission to access
|
||||
* administration pages.
|
||||
*
|
||||
* Site identity:
|
||||
* - front_page: The URL of the front page. Use this instead of base_path when
|
||||
* linking to the front page. This includes the language domain or prefix.
|
||||
*
|
||||
* Page content (in order of occurrence in the default page.html.twig):
|
||||
* - node: Fully loaded node, if there is an automatically-loaded node
|
||||
* associated with the page and the node ID is the second argument in the
|
||||
* page's path (e.g. node/12345 and node/12345/revisions, but not
|
||||
* comment/reply/12345).
|
||||
*
|
||||
* Regions:
|
||||
* - page.header: Items for the header region.
|
||||
* - page.pre_content: Items for the pre-content region.
|
||||
* - page.breadcrumb: Items for the breadcrumb region.
|
||||
* - page.highlighted: Items for the highlighted region.
|
||||
* - page.help: Dynamic help text, mostly for admin pages.
|
||||
* - page.content: The main content of the current page.
|
||||
*
|
||||
* @see template_preprocess_page()
|
||||
* @see html.html.twig
|
||||
*/
|
||||
#}
|
||||
<div class="layout-container" >
|
||||
|
||||
<header role="banner">
|
||||
{{ page.header_left }}
|
||||
{{ page.header_right }}
|
||||
{{ page.header_nav }}
|
||||
</header>
|
||||
|
||||
{{ page.primary_menu }}
|
||||
{{ page.secondary_menu }}
|
||||
|
||||
{{ page.breadcrumb }}
|
||||
|
||||
{{ page.highlighted }}
|
||||
|
||||
{{ page.help }}
|
||||
|
||||
<main role="main" id="presentation">
|
||||
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
|
||||
|
||||
<div class="layout-content">
|
||||
{{ page.content }}
|
||||
</div>{# /.layout-content #}
|
||||
|
||||
{% if page.sidebar_first %}
|
||||
<aside class="layout-sidebar-first" role="complementary">
|
||||
{{ page.sidebar_first }}
|
||||
</aside>
|
||||
{% endif %}
|
||||
|
||||
{% if page.sidebar_second %}
|
||||
<aside class="layout-sidebar-second" role="complementary">
|
||||
{{ page.sidebar_second }}
|
||||
</aside>
|
||||
{% endif %}
|
||||
|
||||
</main>
|
||||
|
||||
{# {% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %} #}
|
||||
<footer role="contentinfo">
|
||||
{# <section id="footer-top">{{ page.footer_top }}</section> #}
|
||||
<div class="footer">
|
||||
<section id="footer-left">{{ page.footer_left }}</section>
|
||||
<section id="footer-middle">{{ page.footer_middle }}</section>
|
||||
<section id="footer-right">{{ page.footer_right }}</section>
|
||||
</div>
|
||||
{# <section id="footer-bottom">{{ page.footer_bottom }}</section> #}
|
||||
</footer>
|
||||
{# {% endif %} #}
|
||||
|
||||
</div>{# /.layout-container #}
|
|
@ -0,0 +1,61 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display a paragraph.
|
||||
*
|
||||
* Available variables:
|
||||
* - paragraph: Full paragraph entity.
|
||||
* Only method names starting with "get", "has", or "is" and a few common
|
||||
* methods such as "id", "label", and "bundle" are available. For example:
|
||||
* - paragraph.getCreatedTime() will return the paragraph creation timestamp.
|
||||
* - paragraph.id(): The paragraph ID.
|
||||
* - paragraph.bundle(): The type of the paragraph, for example, "image" or "text".
|
||||
* - paragraph.getOwnerId(): The user ID of the paragraph author.
|
||||
* See Drupal\paragraphs\Entity\Paragraph for a full list of public properties
|
||||
* and methods for the paragraph object.
|
||||
* - content: All paragraph items. Use {{ content }} to print them all,
|
||||
* or print a subset such as {{ content.field_example }}. Use
|
||||
* {{ content|without('field_example') }} to temporarily suppress the printing
|
||||
* of a given child element.
|
||||
* - attributes: HTML attributes for the containing element.
|
||||
* The attributes.class element may contain one or more of the following
|
||||
* classes:
|
||||
* - paragraphs: The current template type (also known as a "theming hook").
|
||||
* - paragraphs--type-[type]: The current paragraphs type. For example, if the paragraph is an
|
||||
* "Image" it would result in "paragraphs--type--image". Note that the machine
|
||||
* name will often be in a short form of the human readable label.
|
||||
* - paragraphs--view-mode--[view_mode]: The View Mode of the paragraph; for example, a
|
||||
* preview would result in: "paragraphs--view-mode--preview", and
|
||||
* default: "paragraphs--view-mode--default".
|
||||
* - view_mode: View mode; for example, "preview" or "full".
|
||||
* - logged_in: Flag for authenticated user status. Will be true when the
|
||||
* current user is a logged-in member.
|
||||
* - is_admin: Flag for admin user status. Will be true when the current user
|
||||
* is an administrator.
|
||||
*
|
||||
* @see template_preprocess_paragraph()
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
{%
|
||||
set classes = [
|
||||
'paragraph',
|
||||
'paragraph--type--' ~ paragraph.bundle|clean_class,
|
||||
view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
|
||||
not paragraph.isPublished() ? 'paragraph--unpublished',
|
||||
]
|
||||
%}
|
||||
{%
|
||||
set ancre_href = '#paragraph-id--' ~ paragraph.id()
|
||||
%}
|
||||
{% block paragraph %}
|
||||
{# <div{{ attributes.addClass(classes) }}> #}
|
||||
<div{{ attributes.addClass(classes) }}>
|
||||
<a href="{{ ancre_href }}">
|
||||
{% block content %}
|
||||
{{ content }}
|
||||
{% endblock %}
|
||||
</a>
|
||||
</div>
|
||||
{% endblock paragraph %}
|
|
@ -0,0 +1,56 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display a paragraph.
|
||||
*
|
||||
* Available variables:
|
||||
* - paragraph: Full paragraph entity.
|
||||
* Only method names starting with "get", "has", or "is" and a few common
|
||||
* methods such as "id", "label", and "bundle" are available. For example:
|
||||
* - paragraph.getCreatedTime() will return the paragraph creation timestamp.
|
||||
* - paragraph.id(): The paragraph ID.
|
||||
* - paragraph.bundle(): The type of the paragraph, for example, "image" or "text".
|
||||
* - paragraph.getOwnerId(): The user ID of the paragraph author.
|
||||
* See Drupal\paragraphs\Entity\Paragraph for a full list of public properties
|
||||
* and methods for the paragraph object.
|
||||
* - content: All paragraph items. Use {{ content }} to print them all,
|
||||
* or print a subset such as {{ content.field_example }}. Use
|
||||
* {{ content|without('field_example') }} to temporarily suppress the printing
|
||||
* of a given child element.
|
||||
* - attributes: HTML attributes for the containing element.
|
||||
* The attributes.class element may contain one or more of the following
|
||||
* classes:
|
||||
* - paragraphs: The current template type (also known as a "theming hook").
|
||||
* - paragraphs--type-[type]: The current paragraphs type. For example, if the paragraph is an
|
||||
* "Image" it would result in "paragraphs--type--image". Note that the machine
|
||||
* name will often be in a short form of the human readable label.
|
||||
* - paragraphs--view-mode--[view_mode]: The View Mode of the paragraph; for example, a
|
||||
* preview would result in: "paragraphs--view-mode--preview", and
|
||||
* default: "paragraphs--view-mode--default".
|
||||
* - view_mode: View mode; for example, "preview" or "full".
|
||||
* - logged_in: Flag for authenticated user status. Will be true when the
|
||||
* current user is a logged-in member.
|
||||
* - is_admin: Flag for admin user status. Will be true when the current user
|
||||
* is an administrator.
|
||||
*
|
||||
* @see template_preprocess_paragraph()
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
{%
|
||||
set classes = [
|
||||
'paragraph',
|
||||
'paragraph--type--' ~ paragraph.bundle|clean_class,
|
||||
view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
|
||||
not paragraph.isPublished() ? 'paragraph--unpublished'
|
||||
]
|
||||
%}
|
||||
{% block paragraph %}
|
||||
{# <div{{ attributes.addClass(classes) }}> #}
|
||||
<div{{ attributes.addClass(classes).setAttribute('id', 'paragraph-id--' ~ paragraph.id()) }}>
|
||||
{% block content %}
|
||||
{{ content }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endblock paragraph %}
|
Loading…
Reference in New Issue