1
0
Fork 0
blog/src/components/Search/Search.module.scss

43 lines
667 B
SCSS
Raw Normal View History

2018-08-25 11:15:40 +02:00
@import 'variables';
.search {
position: absolute;
left: $spacer / 2;
right: $spacer / 2;
top: 0;
z-index: 10;
input {
width: 100%;
}
2018-08-27 19:42:09 +02:00
@media (min-width: $screen-md) {
left: 0;
right: 0;
}
2018-08-25 11:15:40 +02:00
}
2018-08-27 19:42:09 +02:00
.appear,
.enter {
opacity: .01;
transform: translate3d(0, -100px, 0);
&.appearActive,
&.enterActive {
opacity: 1;
2018-09-23 23:03:56 +02:00
transition: .2s ease-out;
2018-08-27 19:42:09 +02:00
transform: translate3d(0, 0, 0);
}
}
.exit {
opacity: 1;
transform: translate3d(0, 0, 0);
&.exitActive {
opacity: .01;
2018-09-23 23:03:56 +02:00
transition: .2s ease-in;
2018-08-27 19:42:09 +02:00
transform: translate3d(0, -100px, 0);
}
}