tiptap/examples/Components/Ad/style.scss

43 lines
703 B
SCSS
Raw Normal View History

2018-08-23 01:13:14 +08:00
@import "~variables";
.ad {
2018-11-09 05:03:10 +08:00
display: block;
padding: 1rem;
transition: 0.2s transform;
margin: 3rem auto 0 auto;
width: 15rem;
2018-08-23 01:13:14 +08:00
2018-11-09 05:03:10 +08:00
@media (min-width: 1020px) {
position: fixed;
left: 0;
bottom: 0;
margin-top: 0;
}
2018-08-23 01:13:14 +08:00
2018-11-09 05:03:10 +08:00
&__image {
display: block;
width: 100%;
height: auto;
border-radius: 5px;
overflow: hidden;
transition: 0.2s box-shadow;
box-shadow:
0 2px 4px 0 rgba(black, 0.05),
0 2px 10px 0 rgba(black, 0.07)
;
}
2018-08-23 01:13:14 +08:00
2018-11-09 05:03:10 +08:00
&:hover {
transform: translateY(-5px);
}
2018-08-23 01:13:14 +08:00
2018-11-09 05:03:10 +08:00
&:hover &__image {
box-shadow:
0 2px 1px 0 rgba(black, 0.07),
0 5px 20px 0 rgba(black, 0.06),
0 8px 40px 0 rgba(black, 0.04)
;
}
2018-08-23 01:13:14 +08:00
2018-11-09 05:03:10 +08:00
}