24 |
25 | {{ attach_library('mdl/mdl.searchblock') }}
26 |
--------------------------------------------------------------------------------
/mdl.breakpoints.yml:
--------------------------------------------------------------------------------
1 | mdl.xsmall:
2 | label: xsmall
3 | mediaQuery: 'screen and (max-width: 479px)'
4 | weight: 0
5 | multipliers:
6 | - 1x
7 | mdl.small:
8 | label: small
9 | mediaQuery: 'screen and (min-width: 480px)'
10 | weight: 1
11 | multipliers:
12 | - 1x
13 | mdl.medium:
14 | label: medium
15 | mediaQuery: 'screen and (min-width: 840px)'
16 | weight: 2
17 | multipliers:
18 | - 1x
19 | mdl.large:
20 | label: large
21 | mediaQuery: 'screen and (min-width: 1024px)'
22 | weight: 3
23 | multipliers:
24 | - 1x
25 | mdl.xlarge:
26 | label: xlarge
27 | mediaQuery: 'screen and (min-width: 1920px)'
28 | weight: 4
29 | multipliers:
30 | - 1x
31 | mdl.xxlarge:
32 | label: xxlarge
33 | mediaQuery: 'screen and (min-width: 3840px)'
34 | weight: 5
35 | multipliers:
36 | - 1x
37 | mdl.print:
38 | label: print
39 | mediaQuery: 'print'
40 | weight: 6
41 | multipliers:
42 | - 1x
--------------------------------------------------------------------------------
/templates/form-element-label.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a form element label.
5 | *
6 | * Available variables:
7 | * - title: The label's text.
8 | * - title_display: Elements title_display setting.
9 | * - required: An indicator for whether the associated form element is required.
10 | * - attributes: A list of HTML attributes for the label.
11 | *
12 | * @see template_preprocess_form_element_label()
13 | */
14 | #}
15 | {%
16 | set classes = [
17 | title_display == 'after' ? 'option',
18 | title_display == 'invisible' ? 'visually-hidden',
19 | required ? 'js-form-required',
20 | required ? 'form-required',
21 | ]
22 | %}
23 | {% if title is not empty or required -%}
24 | {%- if icon -%}
25 |
{{ icon }}
26 | {%- endif -%}
27 |
28 |
29 | {%- endif %}
30 |
--------------------------------------------------------------------------------
/mdl.libraries.yml:
--------------------------------------------------------------------------------
1 | mdl:
2 | css:
3 | theme:
4 | //storage.googleapis.com/code.getmdl.io/VERSION/material.PRIMARY-ACCENT.min.css: { type: external }
5 | js:
6 | //storage.googleapis.com/code.getmdl.io/VERSION/material.min.js: { type: external }
7 | dependencies:
8 | - mdl/materialIcons
9 | - mdl/roboto
10 |
11 | mdl.selectfield:
12 | css:
13 | component:
14 | /libraries/mdl-selectfield/mdl-selectfield.min.css: {}
15 | js:
16 | /libraries/mdl-selectfield/mdl-selectfield.min.js: {}
17 |
18 | mdl.searchblock:
19 | css:
20 | component:
21 | css/header.block--search.css: {}
22 |
23 | mdl.breadcrumb:
24 | css:
25 | component:
26 | css/breadcrumb.css: {}
27 |
28 | materialIcons:
29 | css:
30 | theme:
31 | //fonts.googleapis.com/icon?family=Material+Icons: { type: external }
32 | roboto:
33 | css:
34 | theme:
35 | //fonts.googleapis.com/css?family=Roboto:300,400,500,700: { type: external }
36 | mdltheme:
37 | css:
38 | theme:
39 | style.css: {}
40 | js:
41 | script.js: {}
42 | dependencies:
43 | - mdl/mdl
44 |
45 | waterfall-panels:
46 | css:
47 | theme:
48 | css/waterfall-panels.css: {}
49 |
--------------------------------------------------------------------------------
/templates/menu--main.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Default theme implementation to display a menu.
5 | *
6 | * Available variables:
7 | * - menu_name: The machine name of the menu.
8 | * - items: A nested list of menu items. Each menu item contains:
9 | * - attributes: HTML attributes for the menu item.
10 | * - below: The menu item child items.
11 | * - title: The menu link title.
12 | * - url: The menu link url, instance of \Drupal\Core\Url
13 | * - localized_options: Menu link localized options.
14 | * - is_expanded: TRUE if the link has visible children within the current
15 | * menu tree.
16 | * - is_collapsed: TRUE if the link has children within the current menu tree
17 | * that are not currently visible.
18 | * - in_active_trail: TRUE if the link is in the active trail.
19 | *
20 | * @ingroup themeable
21 | */
22 | #}
23 | {% import _self as menus %}
24 |
25 | {#
26 | We call a macro which calls itself to render the full tree.
27 | @see http://twig.sensiolabs.org/doc/tags/macro.html
28 | #}
29 | {{ menus.menu_links(items, attributes, 0) }}
30 |
31 | {% macro menu_links(items, attributes, menu_level) %}
32 | {% import _self as menus %}
33 | {% if items %}
34 | {% if menu_level == 0 %}
35 | {% else %}
36 | {% endif %}
37 | {% for item in items %}
38 | {{ link(item.title, item.url, item.attributes) }}
39 | {% endfor %}
40 | {% endif %}
41 | {% endmacro %}
42 |
--------------------------------------------------------------------------------
/templates/block--system-menu-block.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Default theme implementation for a menu block.
5 | *
6 | * Available variables:
7 | * - plugin_id: The ID of the block implementation.
8 | * - label: The configured label of the block if visible.
9 | * - configuration: A list of the block's configuration values.
10 | * - label: The configured label for the block.
11 | * - label_display: The display settings for the label.
12 | * - provider: The module or other provider that provided this block plugin.
13 | * - Block plugin specific settings will also be stored here.
14 | * - content: The content of this block.
15 | * - attributes: HTML attributes for the containing element.
16 | * - id: A valid HTML ID and guaranteed unique.
17 | * - title_attributes: HTML attributes for the title element.
18 | * - content_attributes: HTML attributes for the content element.
19 | * - title_prefix: Additional output populated by modules, intended to be
20 | * displayed in front of the main title tag that appears in the template.
21 | * - title_suffix: Additional output populated by modules, intended to be
22 | * displayed after the main title tag that appears in the template.
23 | *
24 | * Headings should be used on navigation menus that consistently appear on
25 | * multiple pages. When this menu block's label is configured to not be
26 | * displayed, it is automatically made invisible using the 'visually-hidden' CSS
27 | * class, which still keeps it visible for screen-readers and assistive
28 | * technology. Headings allow screen-reader and keyboard only users to navigate
29 | * to or skip the links.
30 | * See http://juicystudio.com/article/screen-readers-display-none.php and
31 | * http://www.w3.org/TR/WCAG-TECHS/H42.html for more information.
32 | *
33 | * @ingroup themeable
34 | */
35 | #}
36 | {% set heading_id = attributes.id ~ '-menu'|clean_id %}
37 | {% set attributes = attributes.addClass('mdl-navigation') %}
38 |
47 |
--------------------------------------------------------------------------------
/templates/status-messages.html.twig:
--------------------------------------------------------------------------------
1 | {# core/themes/stable/templates/misc/status-messages.html.twig#}
2 | {% if message_list|length > 0 %}
{% endif %}
3 |
4 | {% for type, messages in message_list %}
5 |
37 | {% if message_list|length > 0 %}
38 |
71 | {% endif %}
72 |
--------------------------------------------------------------------------------
/logo.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/templates/page.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Default theme implementation to display a single page.
5 | *
6 | * The doctype, html, head and body tags are not in this template. Instead they
7 | * can be found in the html.html.twig template in this directory.
8 | *
9 | * Available variables:
10 | *
11 | * General utility variables:
12 | * - base_path: The base URL path of the Drupal installation. Will usually be
13 | * "/" unless you have installed Drupal in a sub-directory.
14 | * - is_front: A flag indicating if the current page is the front page.
15 | * - logged_in: A flag indicating if the user is registered and signed in.
16 | * - is_admin: A flag indicating if the user has permission to access
17 | * administration pages.
18 | *
19 | * Site identity:
20 | * - front_page: The URL of the front page. Use this instead of base_path when
21 | * linking to the front page. This includes the language domain or prefix.
22 | * - logo: The url of the logo image, as defined in theme settings.
23 | * - site_name: The name of the site. This is empty when displaying the site
24 | * name has been disabled in the theme settings.
25 | * - site_slogan: The slogan of the site. This is empty when displaying the site
26 | * slogan has been disabled in theme settings.
27 | *
28 | * Page content (in order of occurrence in the default page.html.twig):
29 | * - messages: Status and error messages. Should be displayed prominently.
30 | * - node: Fully loaded node, if there is an automatically-loaded node
31 | * associated with the page and the node ID is the second argument in the
32 | * page's path (e.g. node/12345 and node/12345/revisions, but not
33 | * comment/reply/12345).
34 | *
35 | * Regions:
36 | * - page.header: Items for the header region.
37 | * - page.primary_menu: Items for the primary menu region.
38 | * - page.secondary_menu: Items for the secondary menu region.
39 | * - page.highlighted: Items for the highlighted content region.
40 | * - page.help: Dynamic help text, mostly for admin pages.
41 | * - page.content: The main content of the current page.
42 | * - page.sidebar_first: Items for the first sidebar.
43 | * - page.sidebar_second: Items for the second sidebar.
44 | * - page.footer: Items for the footer region.
45 | * - page.breadcrumb: Items for the breadcrumb region.
46 | *
47 | * @see template_preprocess_page()
48 | * @see html.html.twig
49 | *
50 | * @ingroup themeable
51 | */
52 | #}
53 |
54 |