nunta/scss/_portfolio.scss

153 lines
3.7 KiB
SCSS
Raw Normal View History

// Styling for the portfolio section
#portfolio {
.portfolio-item {
right: 0;
2017-05-08 20:57:42 +02:00
margin: 0 0 15px;
.portfolio-link {
position: relative;
2017-05-08 20:57:42 +02:00
display: block;
max-width: 400px;
margin: 0 auto;
2017-05-08 20:57:42 +02:00
cursor: pointer;
.portfolio-hover {
position: absolute;
width: 100%;
height: 100%;
2017-05-08 20:57:42 +02:00
-webkit-transition: all ease .5s;
-moz-transition: all ease .5s;
transition: all ease .5s;
opacity: 0;
2017-05-08 20:57:42 +02:00
background: fade-out($theme-primary, .1);
&:hover {
opacity: 1;
}
.portfolio-hover-content {
2017-05-08 20:57:42 +02:00
font-size: 20px;
position: absolute;
2017-05-08 20:57:42 +02:00
top: 50%;
width: 100%;
height: 20px;
margin-top: -12px;
2017-05-08 20:57:42 +02:00
text-align: center;
color: white;
i {
margin-top: -12px;
}
h3,
h4 {
margin: 0;
}
}
}
}
.portfolio-caption {
max-width: 400px;
margin: 0 auto;
padding: 25px;
2017-05-08 20:57:42 +02:00
text-align: center;
background-color: white;
h4 {
margin: 0;
2017-05-08 20:57:42 +02:00
text-transform: none;
}
p {
font-size: 16px;
2017-05-08 20:57:42 +02:00
font-style: italic;
margin: 0;
2017-05-08 20:57:42 +02:00
@include serif-font;
}
}
}
* {
z-index: 2;
}
}
@media(min-width:767px) {
#portfolio {
.portfolio-item {
margin: 0 0 30px;
}
}
}
.portfolio-modal {
.modal-dialog {
max-width: none;
2017-05-08 20:57:42 +02:00
height: 100%;
margin: 0;
}
.modal-content {
2017-05-08 20:57:42 +02:00
min-height: 100%;
padding: 100px 0;
text-align: center;
border: none;
border-radius: 0;
background-clip: border-box;
-webkit-box-shadow: none;
box-shadow: none;
h2 {
font-size: 3em;
2017-05-08 20:57:42 +02:00
margin-bottom: 15px;
}
p {
margin-bottom: 30px;
}
p.item-intro {
2017-05-08 20:57:42 +02:00
font-size: 16px;
font-style: italic;
margin: 20px 0 30px;
@include serif-font;
}
ul.list-inline {
margin-top: 0;
2017-05-08 20:57:42 +02:00
margin-bottom: 30px;
}
img {
margin-bottom: 30px;
}
button {
cursor: pointer;
}
}
.close-modal {
position: absolute;
top: 25px;
right: 25px;
2017-05-08 20:57:42 +02:00
width: 75px;
height: 75px;
cursor: pointer;
2017-05-08 20:57:42 +02:00
background-color: transparent;
&:hover {
2017-05-08 20:57:42 +02:00
opacity: .3;
}
.lr {
2017-05-08 20:57:42 +02:00
/* Safari and Chrome */
z-index: 1051;
width: 1px;
2017-05-08 20:57:42 +02:00
height: 75px;
margin-left: 35px;
/* IE 9 */
-webkit-transform: rotate(45deg);
2017-05-08 20:57:42 +02:00
-ms-transform: rotate(45deg);
transform: rotate(45deg);
background-color: $gray-darker;
.rl {
2017-05-08 20:57:42 +02:00
/* Safari and Chrome */
z-index: 1052;
width: 1px;
2017-05-08 20:57:42 +02:00
height: 75px;
/* IE 9 */
-webkit-transform: rotate(90deg);
2017-05-08 20:57:42 +02:00
-ms-transform: rotate(90deg);
transform: rotate(90deg);
background-color: $gray-darker;
}
}
}
.modal-backdrop {
display: none;
2017-05-08 20:57:42 +02:00
opacity: 0;
}
}