Flash - Marker
To build a marker element add the .flash-marker
class to an element. Wrapp it around an element with the class .flash-marker-content
which contains the content.
<div class="flash-marker">
<div class="flash-marker-content">Flash - Marker</div>
</div>
Colors#
The default variant is the positive one with the primary color as background. To use the negative variant add the class .flash-marker-negative
to the wrapper element.
<div class="flash-marker">
<div class="flash-marker-content">primary (default)</div>
</div>
<br />
<br />
<div class="flash-marker flash-marker-negative">
<div class="flash-marker-content">attention (negative: .flash-marker-negative)</div>
</div>
Content#
The element has a fixed width, so the element cannot grow in width. Therefore, with larger content, the element grows only in height and becomes multiline up to a maximum number of 4 lines. If this space is not enough, the rest of the content is dotted out.
<div class="flash-marker">
<div class="flash-marker-content hyphens">in this example we've put some more content to the
flash marker to show the behavior for such long texts that we do not recommend at all!</div>
</div>
Positioning#
The marker can be freely positioned. The component itself is free of positioning properties. Therefore you have to add positioning porperties on your own either with style
properties or with a self styled class
or id
. Please test it on any device size and try to stick to the mobile first approach.
<div style="height:15rem;position:relative">
<div class="flash-marker" style="position:absolute;top:5rem;left:5rem">
<div class="flash-marker-content">example positioning with style attributes</div>
</div>
</div>
Example#
The marker positioned on a teaser for example purpose.
<article class="card teaser-card " style="position:relative">
<div class="teaser-image-ratio ratio-4-3">
<div class="flash-marker left" style="position:absolute;top:10%;left:10%;z-index:1">
<div class="flash-marker-content">marker on teaser</div>
</div>
<img is="rnd-img"
src="../../../_assets/images/examples/Backen_Weihnachten_CloseUp_v02_USAR.jpg"
alt="A beautiful cake image *_*" class="card-img"
folder="../../../_assets/images/examples"
images="Apfel-Karamell-Kuchen.jpg,Apfel-Lebkuchentorte.jpg,Apfel-Quarkkuchen-mit-Sultaninen.jpg,Aprikosen-Frischkaesetorte.jpg,Aprikosengalette-mit-Rosmarin.jpg,Backen_CloseUp_v01_USAR.jpg,Backen_CloseUp_v14_USAR.jpg,Backen_Ostern_CloseUp_v02_USAR.jpg,Backen_Ostern_CloseUp_v07_USAR.jpg,Backen_Stibi_POS_WT1644_IFLA.jpg,Backen_Weihnachten_CloseUp_v02_USAR.jpg,Backen_Weihnachten_CloseUp_v14_USAR.jpg,Backen_Weihnachten_CloseUp_v16_USAR.jpg,Backen_Weihnachten_Collect_v01_USAR.jpg,Backen_Weihnachten_Recipe_Mini_Apel_Mini_Cinnamon_Cake_v02_USAR.jpg,Bellini-Torte.jpg,Birnen-Haselnuss-Streuselkuchen-mit-Cranberrys.jpg,Crepestorte.jpg,Erdbeer-Quark-Torte.jpg,Espresso-Schuettelkuchen.jpg,Espressotorte-mit-Himbeeren.jpg,Frische-Quarktorte-mit-Smoothie-Guss.jpg,Gefrorene-Brombeercharlotte.jpg,Himbeer-Eis-Guglhupf.jpg,Himbeer-Ombrecake.jpg,Japanischer-Cheesecake-mit-Erdbeeren.jpg,Johannisbeer-Pull-apart-Kuchen.jpg,Kaesekuchen-mit-Brombeeren.jpg,Kirsch-Punsch-Guglhupf.jpg,Kuhflecken-Kaesekuchen.jpg,Mangokuchen-mit-Mojito-Guss.jpg,Marzipan-Kirsch-Streifen.jpg,Orangentarte-mit-Kumquats.jpg,Pfirsichtarte-mit-Quarkcreme.jpg,Pflaumen-Pekan-Tarte.jpg,Ricottatarte-mit-Johannisbeeren.jpg,Rote-Beete-Schoko-Kuchen-mit-Schokoganache.jpg,Schoko-Espresso-Tarte.jpg,Schoko-Nougat-Guglhupf.jpg,Schokoladenkuchen-mit-Mohnsahne-und-Mango.jpg,Stollenrauten.jpg,Streusel-Kaesekuchen-mit-Blaubeeren.jpg,Walnuss-Blondies.jpg,veganer-Cheesecake-mit-Himbeeren.jpg" />
<div class="card-body">
<header class="teaser-header">
<h2 class="teaser-card-title">Teaser</h2>
<h3 class="teaser-card-subhead">with flash marker</h3>
</header>
</div>
</div>
</article>