From 4e3dcd61aba1c103927c0d40f71a15f4b4d61b46 Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 16 Dec 2021 23:03:34 +0100 Subject: [PATCH] fixed taxonomy term page display (lieux, topologie, structure) --- .../themes/gui/perfarttimeline/css/styles.css | 104 ++++++++++++++---- .../gui/perfarttimeline/less/styles.less | 53 ++++++++- .../field--field-images--teaser.tpl.php | 59 ++++++++++ .../field--field-performances--teaser.tpl.php | 50 +++++++++ .../templates/node--teaser.tpl.php | 36 ++++++ 5 files changed, 278 insertions(+), 24 deletions(-) create mode 100644 sites/all/themes/gui/perfarttimeline/templates/field--field-images--teaser.tpl.php create mode 100644 sites/all/themes/gui/perfarttimeline/templates/field--field-performances--teaser.tpl.php create mode 100644 sites/all/themes/gui/perfarttimeline/templates/node--teaser.tpl.php diff --git a/sites/all/themes/gui/perfarttimeline/css/styles.css b/sites/all/themes/gui/perfarttimeline/css/styles.css index b3e93e4..23b9308 100644 --- a/sites/all/themes/gui/perfarttimeline/css/styles.css +++ b/sites/all/themes/gui/perfarttimeline/css/styles.css @@ -2337,83 +2337,141 @@ html.classic-nav body.node-type-performance #block-perfart-perf-prevnext-bottom font-size: 12px; } } +body.page-taxonomy-term #main { + overflow-x: hidden; + overflow-y: auto; +} +body.page-taxonomy-term #main { + background-color: #D3D3D3; + height: 100%; +} +body.page-taxonomy-term #main #center { + height: 100%; +} +body.page-taxonomy-term #main #center .page-title { + margin-left: 2.5em; +} +body.page-taxonomy-term #main #center #content { + padding: 2%; + display: block; +} +body.page-taxonomy-term #main #center #content a, +body.page-taxonomy-term #main #center #content a:visited { + font-size: 12px; + font-weight: 500; + text-decoration: none; +} +body.page-taxonomy-term #main #center #content a:hover { + font-size: 12px; + font-weight: 700; + text-decoration: none; +} +body.page-taxonomy-term #block-system-main > .content { + display: flex; + flex-flow: row wrap; + justify-content: space-between; + align-items: flex-start; +} +body.page-taxonomy-term #block-system-main > .content .term-listing-heading { + display: none; +} +body.page-taxonomy-term #block-system-main > .content > * { + flex: 1 1 auto; + margin: 0 0.5em 0.5em 0; +} +body.page-taxonomy-term #block-system-main > .content > *.item-list { + flex: 0 0 100%; + width: 100%; +} +body.page-taxonomy-term .node.type-performance { + color: #A5A5A5; + background-color: #fff; + display: inline-block; + vertical-align: top; + line-height: 1; + margin-bottom: 1em; + padding-right: 1em; + padding-left: 0.5em; +} +body.page-taxonomy-term .node.type-performance h1 { + margin: 0.7em 0; +} +body.page-taxonomy-term .node.type-performance figure { + position: relative; + height: auto!important; +} +body.page-taxonomy-term .node.type-performance figure .blank { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} body.node-type-document #main, .node-type-document-sonor #main, -.node-type-object #main, -.page-taxonomy-term #main { +.node-type-object #main { background-color: #D3D3D3; height: 100%; } body.node-type-document #main #center, .node-type-document-sonor #main #center, -.node-type-object #main #center, -.page-taxonomy-term #main #center { +.node-type-object #main #center { height: 100%; } body.node-type-document #main #center .page-title, .node-type-document-sonor #main #center .page-title, -.node-type-object #main #center .page-title, -.page-taxonomy-term #main #center .page-title { +.node-type-object #main #center .page-title { margin-left: 2.5em; } body.node-type-document #main #center #content, .node-type-document-sonor #main #center #content, -.node-type-object #main #center #content, -.page-taxonomy-term #main #center #content { +.node-type-object #main #center #content { padding: 2%; display: block; } body.node-type-document #main #center #content a, .node-type-document-sonor #main #center #content a, .node-type-object #main #center #content a, -.page-taxonomy-term #main #center #content a, body.node-type-document #main #center #content a:visited, .node-type-document-sonor #main #center #content a:visited, -.node-type-object #main #center #content a:visited, -.page-taxonomy-term #main #center #content a:visited { +.node-type-object #main #center #content a:visited { font-size: 12px; font-weight: 500; text-decoration: none; } body.node-type-document #main #center #content a:hover, .node-type-document-sonor #main #center #content a:hover, -.node-type-object #main #center #content a:hover, -.page-taxonomy-term #main #center #content a:hover { +.node-type-object #main #center #content a:hover { font-size: 12px; font-weight: 700; text-decoration: none; } body.node-type-document #center #content, .node-type-document-sonor #center #content, -.node-type-object #center #content, -.page-taxonomy-term #center #content { +.node-type-object #center #content { width: 720px; font-size: 12px; } body.node-type-document #center #content img, .node-type-document-sonor #center #content img, -.node-type-object #center #content img, -.page-taxonomy-term #center #content img { +.node-type-object #center #content img { margin: 1em 0 1em 0; } body.node-type-document #center #content figure, .node-type-document-sonor #center #content figure, -.node-type-object #center #content figure, -.page-taxonomy-term #center #content figure { +.node-type-object #center #content figure { position: relative; } body.node-type-document #center #content img.blank, .node-type-document-sonor #center #content img.blank, -.node-type-object #center #content img.blank, -.page-taxonomy-term #center #content img.blank { +.node-type-object #center #content img.blank { position: absolute; top: 0; left: 0; } body.node-type-document #center #content figcaption, .node-type-document-sonor #center #content figcaption, -.node-type-object #center #content figcaption, -.page-taxonomy-term #center #content figcaption { +.node-type-object #center #content figcaption { font-weight: 300; font-size: 11px; width: 250px; diff --git a/sites/all/themes/gui/perfarttimeline/less/styles.less b/sites/all/themes/gui/perfarttimeline/less/styles.less index ea93d27..eab2643 100644 --- a/sites/all/themes/gui/perfarttimeline/less/styles.less +++ b/sites/all/themes/gui/perfarttimeline/less/styles.less @@ -1105,8 +1105,59 @@ html.no-js, html.classic-nav{ } +body.page-taxonomy-term{ + #main{ + overflow-x: hidden; + overflow-y: auto; + } + .generale-design; + #block-system-main{ + >.content{ + display: flex; + flex-flow: row wrap; + justify-content: space-between; + align-items: flex-start; + .term-listing-heading{ + display: none; + } + >*{ + flex: 1 1 auto; + margin: 0 0.5em 0.5em 0; + &.item-list{ + flex: 0 0 100%; + width:100%; + } + } + >article.node{ + } + } + } + .node.type-performance{ + color:#A5A5A5; + background-color:#fff; + display:inline-block; + vertical-align:top; + line-height:1; + margin-bottom:1em; + padding-right:1em; + padding-left:0.5em; + h1{ + margin: 0.7em 0; + } + figure{ + position: relative; + // width:auto!important; + height: auto!important; + // margin: 0.5em; + .blank{ position:absolute; top:0; left:0; width:100%; height:100%;} + // &:hover{figcaption{.opacity(1);}} + } + + } +} + //EFFECTUATIONS, DOCUMENTS, OBJETS, ETC.// -body.node-type-document, .node-type-document-sonor, .node-type-object, .page-taxonomy-term { +body.node-type-document, .node-type-document-sonor, .node-type-object{ .generale-design; #center #content { width: 720px; diff --git a/sites/all/themes/gui/perfarttimeline/templates/field--field-images--teaser.tpl.php b/sites/all/themes/gui/perfarttimeline/templates/field--field-images--teaser.tpl.php new file mode 100644 index 0000000..1a94589 --- /dev/null +++ b/sites/all/themes/gui/perfarttimeline/templates/field--field-images--teaser.tpl.php @@ -0,0 +1,59 @@ + + + +
> + +
>
+ + + + $item): ?> + +
>
+ + +
+ \ No newline at end of file diff --git a/sites/all/themes/gui/perfarttimeline/templates/field--field-performances--teaser.tpl.php b/sites/all/themes/gui/perfarttimeline/templates/field--field-performances--teaser.tpl.php new file mode 100644 index 0000000..9ae00ef --- /dev/null +++ b/sites/all/themes/gui/perfarttimeline/templates/field--field-performances--teaser.tpl.php @@ -0,0 +1,50 @@ + + + + $item): ?> +
>
+ + \ No newline at end of file diff --git a/sites/all/themes/gui/perfarttimeline/templates/node--teaser.tpl.php b/sites/all/themes/gui/perfarttimeline/templates/node--teaser.tpl.php new file mode 100644 index 0000000..fb85b10 --- /dev/null +++ b/sites/all/themes/gui/perfarttimeline/templates/node--teaser.tpl.php @@ -0,0 +1,36 @@ + +
"> + + +

+ + type, $types)) : ?> + + + + +

+ + +
+ +
+ + + + + + + + + +
+