From eba124fc368b83e4e6c0373f18f72af0d410af14 Mon Sep 17 00:00:00 2001 From: escuriola <escuriola@gmail.com> Date: Wed, 16 Feb 2022 18:24:03 +0100 Subject: [PATCH] OEL-1160: Remove header pattern. --- .../patterns/header/header.ui_patterns.yml | 34 -------------- .../pattern-header--variant-ec.html.twig | 11 ----- .../pattern-header--variant-eu.html.twig | 11 ----- .../patterns/header/pattern-header.html.twig | 46 ------------------- 4 files changed, 102 deletions(-) delete mode 100644 templates/patterns/header/header.ui_patterns.yml delete mode 100644 templates/patterns/header/pattern-header--variant-ec.html.twig delete mode 100644 templates/patterns/header/pattern-header--variant-eu.html.twig delete mode 100644 templates/patterns/header/pattern-header.html.twig diff --git a/templates/patterns/header/header.ui_patterns.yml b/templates/patterns/header/header.ui_patterns.yml deleted file mode 100644 index 00e2ab0f..00000000 --- a/templates/patterns/header/header.ui_patterns.yml +++ /dev/null @@ -1,34 +0,0 @@ -header: - label: Header - description: A navigation section for the header - variants: - ec: - label: European Commission - eu: - label: European Union - fields: - navbar_branding: - type: array - label: "Brand title" - description: "Your company, product, or project name." - preview: - - type: html_tag - tag: span - value: "Brand" - navbar_right: - type: array - label: Text - description: "Vertically centered strings of text." - preview: "Navbar text with an inline element" - header_top: - type: array - label: 'Header Top' - header_left: - type: array - label: 'Header Left' - header_right: - type: array - label: 'Header Right' - breadcrumbs: - type: array - label: 'Breadcrumbs' diff --git a/templates/patterns/header/pattern-header--variant-ec.html.twig b/templates/patterns/header/pattern-header--variant-ec.html.twig deleted file mode 100644 index 1873aab3..00000000 --- a/templates/patterns/header/pattern-header--variant-ec.html.twig +++ /dev/null @@ -1,11 +0,0 @@ -{# -/** - * @file - * Template override for pattern header variant EC. - */ -#} -{% extends "pattern-header.html.twig" %} -{% block header %} - {% set _header_attributes = create_attribute().addClass(['bcl-header--ec', 'bcl-header']) %} - {{ parent() }} -{% endblock %} diff --git a/templates/patterns/header/pattern-header--variant-eu.html.twig b/templates/patterns/header/pattern-header--variant-eu.html.twig deleted file mode 100644 index d39c1b06..00000000 --- a/templates/patterns/header/pattern-header--variant-eu.html.twig +++ /dev/null @@ -1,11 +0,0 @@ -{# -/** - * @file - * Template override for pattern header variant EU. - */ -#} -{% extends "pattern-header.html.twig" %} -{% block header %} - {% set _header_attributes = create_attribute().addClass(['bcl-header--eu', 'bcl-header']) %} - {{ parent() }} -{% endblock %} diff --git a/templates/patterns/header/pattern-header.html.twig b/templates/patterns/header/pattern-header.html.twig deleted file mode 100644 index 8562e3ed..00000000 --- a/templates/patterns/header/pattern-header.html.twig +++ /dev/null @@ -1,46 +0,0 @@ -{# -/** - * @file - * Template for header pattern. - */ -#} -{% set _nav_attributes = create_attribute().addClass([ - 'w-100', - 'shadow-sm', - 'navbar', - 'navbar-expand-lg', - 'navbar-light', -]) %} -{% set navbar_attributes = create_attribute().addClass(['bcl-header__navbar']) %} -{% set _header_attributes = create_attribute() %} -{% set _project_attributes = create_attribute().addClass([ - 'bcl-header__project', - bcl_header_style == 'light' ? bcl_header_style, -]) %} -{% block header %} -<header {{ _header_attributes }}> -{% endblock %} - <nav {{ _nav_attributes }}> - <div class="container"> - {{ navbar_branding }} - <ul class="nav"> - {{ navbar_right }} - </ul> - </div> - </nav> - <div {{ _project_attributes }}> - <div class="container"> - {{ header_top }} - </div> - </div> - {{ pattern('navbar', { - navigation: header_left, - right: header_right, - color_scheme: 'dark', - background: false, - attributes: navbar_attributes, - }) }} - <div class="container"> - {{ breadcrumbs }} - </div> -</header> -- GitLab