public-health-ch/publichealth/static/css/modules/_banner.scss

203 lines
3.5 KiB
SCSS
Raw Normal View History

2017-02-06 13:35:58 +00:00
// Carousel
#myCarousel {
2017-02-06 13:50:47 +00:00
// display: none;
2017-02-06 13:35:58 +00:00
background: $gray-lighter;
.item {
background-color: lighten($brand-primary, 10%);
min-height: 300px;
img {
height: 300px;
background-size: cover;
background-position: center;
width: 100%;
}
h3 {
text-transform: uppercase;
font-weight: 300;
}
p {
line-height: 1.2;
width: 80%;
margin: 0 auto;
}
.btn {
margin-top: 20px;
}
}
.nav-thumbs {
2017-01-12 11:15:49 +00:00
2017-02-06 13:35:58 +00:00
list-style: none;
display: flex;
margin: 0;
padding: 0;
text-align: center;
li {
float: left;
width: 25%;
&.active {
background-color: $brand-primary;
a {
color: white;
}
}
.glyphicon {
display: block;
}
}
.title {
text-transform: uppercase;
font-weight: 300;
text-decoration: none;
width: 100%;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
small {
font-weight: 500;
text-transform: none;
display: block;
font-size: .7em;
width: 100%;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}
&.nav-justified > li > a {
border-radius: 0px;
}
}
@include max-screen($screen-xs-max) {
.nav-thumbs {
.title {
font-size: .7em;
}
}
2017-01-18 11:13:36 +00:00
}
}
2017-02-06 13:35:58 +00:00
/* Page header */
$banner-height: 700px;
2017-01-18 11:13:36 +00:00
#banner, #carousel-banner {
2017-02-06 13:35:58 +00:00
2017-01-12 15:08:45 +00:00
padding-top: 0 !important;
2017-01-18 11:13:36 +00:00
padding-bottom: 0em;
2017-01-12 11:15:49 +00:00
2017-01-16 14:46:05 +00:00
.carousel-inner {
padding-bottom: 2.5em;
2017-01-12 15:08:45 +00:00
2017-01-16 14:46:05 +00:00
.item {
2017-01-12 11:15:49 +00:00
height: $banner-height;
2017-01-16 14:46:05 +00:00
position: relative;
background-color: white;
img {
width: 100%;
height: $banner-height;
overflow: hidden;
display: block;
background-size: cover;
background-position: center;
opacity: 1;
2017-01-12 15:08:45 +00:00
2017-01-16 14:46:05 +00:00
}
.carousel-caption {
background-color: white;
padding: 2em;
bottom: -2em;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
h3 {
margin-top: 0;
}
2017-01-18 11:13:36 +00:00
p:last-child {
2017-01-16 14:46:05 +00:00
margin-bottom: 0;
}
}
2017-01-12 11:15:49 +00:00
}
2017-01-18 11:13:36 +00:00
.slick-dots {
bottom: 50px;
li {
margin: 0;
button {
box-shadow: none;
}
}
}
2017-01-12 11:15:49 +00:00
}
2017-01-12 15:08:45 +00:00
h3, p, button {
color: #333;
text-shadow: none;
text-align: left;
}
2017-01-12 11:15:49 +00:00
2017-01-12 15:08:45 +00:00
p {
font-size: 90%;
-webkit-hyphens: manual;
-ms-hyphens: manual;
hyphens: manual;
}
footer p {
color: black;
text-align: left;
font-size: 110%;
2017-01-16 14:46:05 +00:00
margin-top: 2em;
2017-01-12 15:08:45 +00:00
}
2017-01-12 11:15:49 +00:00
}
2017-01-16 14:46:05 +00:00
.arrow {
color: white;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
z-index: 1;
position: absolute;
display: block;
height: 30px;
width: 30px;
line-height: 0px;
font-size: 0px;
cursor: pointer;
background: transparent;
top: 50%;
-webkit-transform: translate(0, -50%);
-ms-transform: translate(0, -50%);
transform: translate(0, -50%);
padding: 0;
border: none;
outline: none;
&.left {
left: 30px;
}
&.right {
right: 30px;
}
&:before {
font-size: 30px;
}
}
.slick-list {
overflow: visible;
}
2017-01-12 11:15:49 +00:00
.slick-prev::before, .slick-next::before {
color: inherit;
}
2017-01-18 11:13:36 +00:00
@include max-screen(1000px) {
.slick-dots { display: none !important; }
}
@include max-screen(480px) {
.navbar-pre .navbar-nav,
2017-05-10 14:49:20 +00:00
#carousel-banner {
.carousel-caption { left: 0px; right: 0px; overflow-x: hidden; }
2017-05-10 14:49:20 +00:00
.carousel-inner { margin-bottom: 0px; }
}
//#banner { margin-top: 100px; }
2017-01-12 11:15:49 +00:00
}