Template:News feed item: Difference between revisions
From WikiMSK
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<div class="news__item- | <div class="news__item-card"> | ||
<h3 style="margin-bottom:0rem;!important">{{{News title|}}}</h3> | <h3 style="margin-bottom:0rem;!important">{{{News title|}}}</h3> | ||
<small> | <small> | ||
Line 9: | Line 9: | ||
</p> | </p> | ||
</div> | </div> | ||
<noinclude>[[Category:Semantic Templates]]</noinclude> | <noinclude>[[Category:Semantic Templates]]</noinclude> | ||
<html> | |||
<style> | |||
.news__item-card { | |||
margin: 0 0.2rem 0.4rem 0.2rem; | |||
min-width: 240px; | |||
max-width: 100%; | |||
display: flex; | |||
font-size: 0.875rem; | |||
flex-grow: 1; | |||
flex-direction: column; | |||
box-sizing: border-box; | |||
border: 1px solid #eaecf0; | |||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.06); | |||
transition: box-shadow 0.2s ease; | |||
padding:1.2em; | |||
border-radius:0; | |||
height:100%; | |||
} | |||
.news__item-card:hover { | |||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.0475), 0 6px 6px rgba(0, 0, 0, 0.0575); | |||
} | |||
</style> | |||
</html> |
Revision as of 16:09, 1 April 2022
[[| Read more]]