3 #Components Components

src: components/__styleguide_section.scss

3.1 #Components - Drupal fields Drupal Fields

src: components/fields/__styleguide_section.scss

3.3 #Components - Header Header

src: components/header/__styleguide_section.scss

<!-- BEGIN OUTPUT from 'themes/git_repos/donkeymedia_theme/templates/block/block--system-branding-block.html.twig' -->
<div id="block-donkeymedia-theme-branding" class="contextual-region block block-system block-system-branding-block">
<div data-contextual-id="block:block=donkeymedia_theme_branding:langcode=en" class="contextual" role="form">
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'links__contextual' -->
<!-- FILE NAME SUGGESTIONS:
    * links--contextual.html.twig
    x links.html.twig
-->
<!-- BEGIN OUTPUT from 'core/themes/classy/templates/navigation/links.html.twig' -->
<ul class="contextual-links" hidden=""><li class="block-configure"><a href="/admin/structure/block/manage/donkeymedia_theme_branding?destination=node/22">Configure block</a></li><li class="config-translationcontextual-linksentityblockconfig-translation-overview"><a href="/admin/structure/block/manage/donkeymedia_theme_branding/translate?destination=node/22">Translate block</a></li></ul>
<!-- END OUTPUT from 'core/themes/classy/templates/navigation/links.html.twig' -->
</div>
<a href="/" title="Home" rel="home">
<h1>
<div class="site-logo"></div>
<span class="site-name">Donkeymedia</span>
<span class="site-slogan">Photo ∙ Web ∙ Engineering</span>
</h1>
</a>
</div>

3.4 #Components - Libraries Libraries

src: components/libraries/__styleguide_section.scss

Styles defined by Javascript libraries.

3.4.1 #Components - Libraries - Glide (Slider) Glide - Slider

src: components/libraries/_glide.scss.scss

Example
  • slideshow image
  • slideshow image
  • slideshow image
 
<div class="glide">
<div class="glide__arrows">
<div class="glide__arrow prev icon-prev" data-glide-dir="&#x3C;"></div>
<div class="glide__arrow next icon-next" data-glide-dir="&#x3E;"></div>
</div>
<div class="glide__wrapper">
<ul class="glide__track">
<li class="glide__slide"><img style="max-width: 826px; max-height: 471px;" alt="slideshow image" src="/themes/git_repos/donkeymedia_theme/testimage.svg"></li>
<li class="glide__slide"><img style="max-width: 1218px; max-height: 638px;" alt="slideshow image" src="/themes/git_repos/donkeymedia_theme/testimage.svg"></li>
<li class="glide__slide"><img style="max-width: 1193px; max-height: 693px;" alt="slideshow image" src="/themes/git_repos/donkeymedia_theme/testimage.svg"></li>
</ul>
</div>
<div class="glide__bullets">&nbsp;</div>
</div>
Example
function foo($one = NULL, $two = 0, $three = "String") { if (TRUE) { $x = array( 0 => "zero", 123 => "one two three", 25 => "two five" ); } else { return 0; } $t = $one[0]; $u = $one['str']; $v = $one[$x[1]]; return 1; }
<code class="php">function foo($one = NULL, $two = 0, $three = "String") {
 if (TRUE) {
   $x = array(
 0 => "zero",
 123 => "one two three",
 25 => "two five"
 );
 }
 else {
   return 0;
 }
 $t = $one[0];
 $u = $one['str'];
 $v = $one[$x[1]];
 return 1;
 }</code>

3.5 #Components - Viewmode Viewmodes

src: components/viewmode/__styleguide_section.scss

3.5.1 #Components - Viewmode - Teaser view-mode-teaser

src: components/view-mode/_node.scss

view-mode-teaser_large is a derived from view-mode-teaser with bigger images. It will be styled the same way, but can fill a wider space.

Example
<article data-history-node-id="39" data-quickedit-entity-id="node/39" class="contextual-region view-mode-teaser ds-1col clearfix node" onclick="location.href='/node/39'" data-quickedit-entity-instance-id="0">
<div data-contextual-id="node:node=39:changed=1284470192&amp;ds_bundle=project&amp;ds_view_mode=teaser&amp;langcode=en" class="contextual" role="form"><button class="trigger focusable visually-hidden" type="button" aria-pressed="false">Open Redesign: heilen-durch-beruehrung.com configuration options</button>
<!-- BEGIN OUTPUT from 'core/themes/classy/templates/navigation/links.html.twig' -->
<ul class="contextual-links" hidden=""><li class="quickedit"><a href="" role="button" aria-pressed="false">Quick edit</a></li><li class="content-translationcontextual-linksnode"><a href="/node/39/translations?destination=references">Translate</a></li><li class="entitynodeedit-form"><a href="/node/39/edit?destination=references">Edit</a></li><li class="entitynodedelete-form"><a href="/node/39/delete?destination=references">Delete</a></li><li class="manage-display"><a href="/admin/structure/types/manage/project/display/teaser?destination=/contextual/render&amp;destination=references">Manage display</a></li></ul>
<!-- END OUTPUT from 'core/themes/classy/templates/navigation/links.html.twig' -->
</div>
<!-- BEGIN OUTPUT from 'core/themes/classy/templates/field/field.html.twig' -->
<div class="field field--name-node-title field--type-ds field--label-hidden field__item"><h2>Redesign: heilen-durch-beruehrung.com</h2></div>
<!-- END OUTPUT from 'core/themes/classy/templates/field/field.html.twig' -->
<!-- BEGIN OUTPUT from 'core/themes/classy/templates/field/field.html.twig' -->
<div data-quickedit-field-id="node/39/field_image/en/teaser" class="field field--name-field-image field--type-image field--label-hidden field__item quickedit-field">
<!-- BEGIN OUTPUT from 'core/themes/classy/templates/field/image-formatter.html.twig' -->
<!-- BEGIN OUTPUT from 'core/themes/classy/templates/field/image-style.html.twig' -->
<!-- THEME HOOK: 'image' -->
<!-- BEGIN OUTPUT from 'themes/git_repos/guru/templates/image.html.twig' -->
<img style="max-width: 414px; max-height:286px;" property="schema:image" src="http://donkeymedia-d8-refactor.local/sites/default/files/styles/medium/public/2010/09/heilen-durch-ber%C3%BChrung.com_.png?itok=ckiQeYpz" alt="Screenshot of the site: heilen-durch-berührung.com" title="Screenshot der Webseite: heilen-durch-berührung.com" typeof="foaf:Image" class="image-style-medium">
<!-- END OUTPUT from 'themes/git_repos/guru/templates/image.html.twig' -->
<!-- END OUTPUT from 'core/themes/classy/templates/field/image-style.html.twig' -->
<!-- END OUTPUT from 'core/themes/classy/templates/field/image-formatter.html.twig' -->
</div>
<!-- END OUTPUT from 'core/themes/classy/templates/field/field.html.twig' -->
<!-- BEGIN OUTPUT from 'core/themes/classy/templates/field/field--text-with-summary.html.twig' -->
<div property="schema:text" data-quickedit-field-id="node/39/body/en/teaser" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item quickedit-field"><p>Redesign of a Dreamweaver-HTML site into a modern standard compliant Wordpress based Website.</p>
</div>
<!-- END OUTPUT from 'core/themes/classy/templates/field/field--text-with-summary.html.twig' -->
<!-- BEGIN OUTPUT from 'core/themes/classy/templates/field/field.html.twig' -->
<div data-quickedit-field-id="node/39/field_tags/en/teaser" class="field field--name-field-tags field--type-entity-reference field--label-inline quickedit-field">
<div class="field__label">Tags</div>
<div class="field__items">
<div class="field__item"><a href="/taxonomy/term/6" property="schema:about" hreflang="en">Webdevelopment</a></div>
</div>
</div>
<!-- END OUTPUT from 'core/themes/classy/templates/field/field.html.twig' -->
</article>
Example
<article data-history-node-id="52" data-quickedit-entity-id="node/52" class="contextual-region view-mode-teaser--page view-mode-teaser ds-1col clearfix node" data-quickedit-entity-instance-id="0">
<div data-contextual-id="node:node=52:changed=1452615699&amp;ds_bundle=page&amp;ds_view_mode=teaser&amp;langcode=en" class="contextual" role="form"><button class="trigger focusable visually-hidden" type="button" aria-pressed="false">Open Onlineshop for protographers configuration options</button>
<!-- BEGIN OUTPUT from 'core/themes/classy/templates/navigation/links.html.twig' -->
<ul class="contextual-links" hidden=""><li class="quickedit"><a href="" role="button" aria-pressed="false">Quick edit</a></li><li class="content-translationcontextual-linksnode"><a href="/node/52/translations?destination=frontpage">Translate</a></li><li class="entitynodeedit-form"><a href="/node/52/edit?destination=frontpage">Edit</a></li><li class="entitynodedelete-form"><a href="/node/52/delete?destination=frontpage">Delete</a></li><li class="manage-display"><a href="/admin/structure/types/manage/page/display/teaser?destination=/contextual/render&amp;destination=frontpage">Manage display</a></li></ul>
<!-- END OUTPUT from 'core/themes/classy/templates/navigation/links.html.twig' -->
</div>
<!-- BEGIN OUTPUT from 'modules/git_repos/ds/templates/ds-field-reset.html.twig' -->
<h2 class="title">Onlineshop for protographers</h2>
<!-- END OUTPUT from 'modules/git_repos/ds/templates/ds-field-reset.html.twig' -->
<!-- BEGIN OUTPUT from 'core/themes/classy/templates/field/field--text-with-summary.html.twig' -->
<div property="schema:text" data-quickedit-field-id="node/52/body/en/teaser" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item quickedit-field"><p>Online shop for photographers with ftp upload and payment workflows to integrates into reponsive websites.</p>
</div>
<!-- END OUTPUT from 'core/themes/classy/templates/field/field--text-with-summary.html.twig' -->
<!-- BEGIN OUTPUT from 'core/themes/classy/templates/field/field.html.twig' -->
<div class="field field--name-node-link field--type-ds field--label-hidden field__item"><a href="/photographer-onlineshop" hreflang="en">Read more</a></div>
<!-- END OUTPUT from 'core/themes/classy/templates/field/field.html.twig' -->
</article>