2018-04-03 22:35:53 +02:00
|
|
|
@import 'variables';
|
|
|
|
|
2018-08-07 01:24:33 +02:00
|
|
|
.projects {
|
2018-10-17 01:24:49 +02:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
grid-gap: $spacer * 6;
|
|
|
|
|
|
|
|
@media (min-width: $screen-md) {
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
grid-gap: $spacer * 3;
|
2018-09-12 18:00:51 +02:00
|
|
|
max-width: calc(#{$projectImageMaxWidth} + #{$spacer * 2});
|
2018-08-07 01:24:33 +02:00
|
|
|
margin: 0 auto;
|
2018-10-17 01:24:49 +02:00
|
|
|
padding: $spacer $spacer * 3;
|
2018-08-07 01:24:33 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-20 18:33:32 +02:00
|
|
|
.title {
|
|
|
|
font-size: $font-size-h4;
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
2018-09-21 22:01:48 +02:00
|
|
|
top: 15%;
|
2018-09-20 18:33:32 +02:00
|
|
|
left: 0;
|
|
|
|
margin: 0;
|
|
|
|
z-index: 2;
|
|
|
|
padding: $spacer / 3 $spacer;
|
|
|
|
background: rgba($brand-cyan, .9);
|
2018-09-21 22:01:48 +02:00
|
|
|
transform: translate3d(0, -1rem, 0);
|
|
|
|
transition: transform .2s ease-out;
|
2018-09-20 18:33:32 +02:00
|
|
|
}
|
|
|
|
|
2018-06-11 19:48:38 +02:00
|
|
|
.project {
|
2018-06-23 14:02:28 +02:00
|
|
|
position: relative;
|
2018-04-03 22:35:53 +02:00
|
|
|
|
2018-05-04 14:00:21 +02:00
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
|
2018-04-03 22:35:53 +02:00
|
|
|
&::after {
|
2018-05-04 14:00:21 +02:00
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 1;
|
|
|
|
background: transparent;
|
2018-09-21 22:01:48 +02:00
|
|
|
transition: background .2s ease-out;
|
2018-05-04 14:00:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
&::after {
|
|
|
|
background: rgba($brand-cyan, .05);
|
|
|
|
}
|
2018-09-20 18:33:32 +02:00
|
|
|
|
|
|
|
.title {
|
|
|
|
opacity: 1;
|
2018-09-21 22:01:48 +02:00
|
|
|
color: #fff;
|
2018-09-20 18:33:32 +02:00
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
}
|
2018-04-03 22:35:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|