///
/// Dimension by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///
/* Main */
#main {
@include vendor('flex-grow', '1');
@include vendor('flex-shrink', '1');
@include vendor('display', 'flex');
@include vendor('align-items', 'center');
@include vendor('justify-content', 'center');
@include vendor('flex-direction', 'column');
position: relative;
max-width: 100%;
z-index: 3;
article {
@include vendor('transform', 'translateY(0.25rem)');
@include vendor('transition', (
'opacity #{_duration(article)} ease-in-out',
'transform #{_duration(article)} ease-in-out'
));
@include padding(2.5rem, 2.5rem, (2rem, 0, 1rem, 0));
position: relative;
width: 40rem;
max-width: 100%;
background-color: transparentize(_palette(bg), 0.15);
border-radius: _size(border-radius);
opacity: 0;
&.active {
@include vendor('transform', 'translateY(0)');
opacity: 1;
}
.close {
display: block;
position: absolute;
top: 0;
right: 0;
width: 4rem;
height: 4rem;
cursor: pointer;
text-indent: 4rem;
overflow: hidden;
white-space: nowrap;
&:before {
@include vendor('transition', 'background-color #{_duration(transition)} ease-in-out');
content: '';
display: block;
position: absolute;
top: 0.75rem;
left: 0.75rem;
width: 2.5rem;
height: 2.5rem;
border-radius: 100%;
background-position: center;
background-image: svg-url('');
background-size: 20px 20px;
background-repeat: no-repeat;
}
&:hover {
&:before {
background-color: _palette(border-bg);
}
}
&:active {
&:before {
background-color: _palette(border-bg-alt);
}
}
}
}
@include breakpoint(small) {
article {
@include padding(2rem, 2rem, (1.5rem, 0, 0.5rem, 0));
.close {
&:before {
top: 0.875rem;
left: 0.875rem;
width: 2.25rem;
height: 2.25rem;
background-size: 14px 14px;
}
}
}
}
@include breakpoint(xsmall) {
article {
@include padding(2rem, 1.5rem, (1rem, 0, 0.5rem, 0));
}
}
}