7 Themes
Super class able to modify apparence of some components or elements.
7.1 Block link skin
Description
Add a style on the teaser of a content preview.
Note that the .blockLinkSkin-#
class is applied on a content preview selector which must contain a .teaser
child
Default styling
Modifiers
.blockLinkSkin-communication
Teaser summary background color: native yellow
.blockLinkSkin-brand
Block article background color: native yellow
Markup
- Compiled HTML
- Template
<article class="box ">
<figure class="media">
<div class="media-wrap">
<img src="http://img.20mn.fr/gmiJ0COJRYqUQM6w1jeBlw/648x415_20mn-11765.jpg" alt="This is an image" />
</div>
</figure>
<div class="teaser">
<p class="teaser-headline color-default">Label</p>
<p class="teaser-title">This is the content title</p>
<p class="teaser-summary">This is the summary lorm ipsum sic amet color baba orum.</p>
</div>
<p class="box-footer pa1">Footer line</p>
</article>
<article class="box {{ modifier_class }}">
<figure class="media">
<div class="media-wrap">
<img src="http://img.20mn.fr/gmiJ0COJRYqUQM6w1jeBlw/648x415_20mn-11765.jpg" alt="This is an image" />
</div>
</figure>
<div class="teaser">
<p class="teaser-headline color-default">Label</p>
<p class="teaser-title">This is the content title</p>
<p class="teaser-summary">This is the summary lorm ipsum sic amet color baba orum.</p>
</div>
<p class="box-footer pa1">Footer line</p>
</article>
Source: src/styl/_themes/_blockLinkSkin.styl
, line 1
7.3 Skins
Description
Add a skin over the image of a content block on listing pages, and depending on the skin, modify the teaser text and/or background colors. Note that:
- the
.skin-#
class is applied on a content preview selector (which may contain.media
|.teaser
|.box-footer
children) - the skin is applied on a
<figure class="media">
tag, - the image must be placed within a
<p>
or a<div>
tag for icon skins
Default styling
Modifiers
.skin-blog
Text skin: "blog", text color: community
.skin-bytheweb
Text skin: "by the web", text color: hightech
.skin-chat
Text skin: "chat"
.skin-exclusive
Text skin: "exclusif", text color: highlight
.skin-fakeoff
Text skin: "fake off", text color: default
.skin-alertInfo
Text skin: "alerte info", text color: white, background-color: highlight
.skin-live
Text skin: "live", headline color: highlight
.skin-partner
Text skin: "partenaire"
.skin-people
Text skin: "people"
.skin-quiz
Text skin: "quiz", title and description color: community
.skin-weird
Text skin: "t'as vu"
.skin-summer
Text skin: 'L’info en série'
.skin-community
Icon skin: 'community', text color: community
.skin-gallery
Icon skin: 'images'
.skin-podcast
Icon skin: 'podcast'
.skin-video
Icon skin: 'play'
Markup
- Compiled HTML
- Template
<article class="box ">
<figure class="media">
<div class="media-wrap">
<img src="http://img.20mn.fr/gmiJ0COJRYqUQM6w1jeBlw/648x415_20mn-11765.jpg" alt="This is an image" />
</div>
</figure>
<div class="teaser">
<p class="teaser-headline color-default">Label</p>
<p class="teaser-title">This is the content title</p>
<p class="teaser-summary">This is the summary lorm ipsum sic amet color baba orum.</p>
</div>
<p class="box-footer pa1">Footer line</p>
</article>
<article class="box {{ modifier_class }}">
<figure class="media">
<div class="media-wrap">
<img src="http://img.20mn.fr/gmiJ0COJRYqUQM6w1jeBlw/648x415_20mn-11765.jpg" alt="This is an image" />
</div>
</figure>
<div class="teaser">
<p class="teaser-headline color-default">Label</p>
<p class="teaser-title">This is the content title</p>
<p class="teaser-summary">This is the summary lorm ipsum sic amet color baba orum.</p>
</div>
<p class="box-footer pa1">Footer line</p>
</article>
Source: src/styl/_themes/_skin.styl
, line 1
7.4 Second skin
Description
Add a style on the teaser of a content preview.
Note that the .secondSkin-#
class is applied on a content preview selector which must contain a .teaser
child
Default styling
Modifiers
.secondSkin-live
Teaser summary color: highlight
.secondSkin-community
Teaser summary color: community
.secondSkin-community-all
Teaser title and summary color: community
Markup
- Compiled HTML
- Template
<article class="box ">
<figure class="media">
<div class="media-wrap">
<img src="http://img.20mn.fr/gmiJ0COJRYqUQM6w1jeBlw/648x415_20mn-11765.jpg" alt="This is an image" />
</div>
</figure>
<div class="teaser">
<p class="teaser-headline color-default">Label</p>
<p class="teaser-title">This is the content title</p>
<p class="teaser-summary">This is the summary lorm ipsum sic amet color baba orum.</p>
</div>
<p class="box-footer pa1">Footer line</p>
</article>
<article class="box {{ modifier_class }}">
<figure class="media">
<div class="media-wrap">
<img src="http://img.20mn.fr/gmiJ0COJRYqUQM6w1jeBlw/648x415_20mn-11765.jpg" alt="This is an image" />
</div>
</figure>
<div class="teaser">
<p class="teaser-headline color-default">Label</p>
<p class="teaser-title">This is the content title</p>
<p class="teaser-summary">This is the summary lorm ipsum sic amet color baba orum.</p>
</div>
<p class="box-footer pa1">Footer line</p>
</article>
Source: src/styl/_themes/_secondSkin.styl
, line 1