128 lines
2.2 KiB
SCSS
128 lines
2.2 KiB
SCSS
|
|
// News overview
|
|
#news {
|
|
|
|
.panel-default, .panel-fulltext {
|
|
font-size: 90%;
|
|
padding-top: 75%; /* 1:1 Aspect Ratio */
|
|
position: relative; /* If you want text inside of it */
|
|
overflow: hidden;
|
|
background: lighten($brand-primary, 10%);
|
|
|
|
.panel-body {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
background-color: rgba($brand-primary, .8);
|
|
h3, p {
|
|
color: white;
|
|
}
|
|
h3 {
|
|
padding: 15px;
|
|
font-size: 1.2em;
|
|
margin: 0;
|
|
height: 40%;
|
|
display: table;
|
|
|
|
span {
|
|
display: table-cell;
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
}
|
|
p, a {
|
|
font-size: .8em;
|
|
|
|
}
|
|
p {
|
|
padding: 0 15px;
|
|
line-height: 1.2;
|
|
margin: 0;
|
|
}
|
|
a {
|
|
margin: 10px 0 0 15px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
// expand link over the thumbnail
|
|
a.fill {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
font-size: 0;
|
|
}
|
|
}
|
|
|
|
.panel-default {
|
|
img {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
.panel-body {
|
|
transform: translateY(60%);
|
|
transition: transform .65s;
|
|
}
|
|
&:hover .panel-body {
|
|
transform: rotateY(0);
|
|
}
|
|
}
|
|
}
|
|
|
|
// News detail article
|
|
#news-details {
|
|
background: white;
|
|
padding-top: 0;
|
|
|
|
.category {
|
|
margin-top: 2em;
|
|
display: inline-block;
|
|
text-transform: uppercase;
|
|
font-size: 80%;
|
|
letter-spacing: 2px;
|
|
span {
|
|
border-bottom: 1px solid $text-color;
|
|
}
|
|
}
|
|
.date {
|
|
color: lighten($text-color, 20%);
|
|
font-size: 90%;
|
|
text-transform: uppercase;
|
|
margin-bottom: .5em;
|
|
}
|
|
hr {
|
|
margin-left: 0;
|
|
width: 100px;
|
|
}
|
|
.author {
|
|
color: lighten($text-color, 20%);
|
|
font-size: 90%;
|
|
text-transform: uppercase;
|
|
font-style: italic;
|
|
}
|
|
.backlink {
|
|
margin-top: 3em;
|
|
}
|
|
|
|
.img-responsive {
|
|
width: 100%;
|
|
}
|
|
|
|
.links {
|
|
display: inline-block;
|
|
border-bottom: 1px solid #999;
|
|
padding: 1em;
|
|
margin: 0em;
|
|
list-style-type: none;
|
|
|
|
li:first-child { display: none; }
|
|
}
|
|
}
|