Adjust social media teaser styles
This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
.socialmedia {}
|
|
||||||
|
|
||||||
.tx-pb-social {
|
|
||||||
|
|
||||||
.socialmedia__items {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: flex-start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.socialmedia__item {
|
|
||||||
float: none;
|
|
||||||
width: 100%;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
|
|
||||||
@include mq($from: tablet) {
|
|
||||||
width: 48%;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include mq($from: desktop) {
|
|
||||||
width: 23%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text {
|
|
||||||
background-color: rgba(black, 0.5);
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 18px;
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -192,7 +192,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&--fixed-height {
|
&--fixed-height {
|
||||||
height: 220px;
|
height: 112px;
|
||||||
|
border-bottom: 12px solid white;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<f:section name="main">
|
<f:section name="main">
|
||||||
<f:for each="{feeds}" as="feed">
|
<f:for each="{feeds}" as="feed">
|
||||||
<f:if condition="{feed.image}">
|
<f:if condition="{feed.image} and {feed.message}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<f:link.typolink class="teaserbox teaserbox--social" parameter="{feed.postUrl}" target="_blank" title="{feed.title}">
|
<f:link.typolink class="teaserbox teaserbox--social" parameter="{feed.postUrl}" target="_blank" title="{feed.title}">
|
||||||
<div class="teaserbox__image teaserbox__image--social-media" style="background-image: url({feed.image})">
|
<div class="teaserbox__image teaserbox__image--social-media" style="background-image: url({feed.image})">
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
</f:switch>
|
</f:switch>
|
||||||
</div>
|
</div>
|
||||||
<div class="teaserbox__main teaserbox__main--fixed-height">
|
<div class="teaserbox__main teaserbox__main--fixed-height">
|
||||||
<p>{feed.postDate -> f:format.date(format: 'd.m.Y')}</p>
|
<p>{feed.postDate -> f:format.date(format: 'd.m.Y')} @{feed.configuration.name}</p>
|
||||||
{feed.message -> f:format.crop(maxCharacters: '120') -> f:format.nl2br()}
|
{feed.message -> f:format.crop(maxCharacters: '120') -> f:format.nl2br()}
|
||||||
</div>
|
</div>
|
||||||
<button class="button button--full teaserbox__button">{f:translate(key: 'tx_eptheme.label.teaserbutton.to_post', extensionName: 'ep_theme')}</button>
|
<button class="button button--full teaserbox__button">{f:translate(key: 'tx_eptheme.label.teaserbutton.to_post', extensionName: 'ep_theme')}</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user