cartodb/assets/stylesheets/editor-3/_scroll-view.scss

82 lines
1.3 KiB
SCSS
Raw Normal View History

2020-06-15 10:58:47 +08:00
@import '~cartoassets/src/scss/cdb-variables/colors';
.ScrollView {
display: flex;
flex-direction: column;
margin-top: -19px;
&,
.ScrollView-wrapper {
display: flex;
position: relative;
flex: 1;
flex-direction: column;
min-height: 0;
margin-right: -24px;
margin-left: -24px;
padding-right: 24px;
padding-left: 24px;
}
.ScrollView-content {
flex: 1;
width: 100%;
max-width: 940px;
padding: 18px 0;
}
}
.ScrollView--with-navigation {
margin-top: 0;
}
.ScrollView--horizontal {
&,
& .ScrollView-wrapper {
margin: 0;
padding: 0;
}
.ScrollView-content {
padding: 0 0 18px;
}
}
.ScrollView--withoutMargins,
.ScrollView--withoutMargins .ScrollView-wrapper {
margin-right: 0;
margin-left: 0;
padding-right: 0;
padding-left: 0;
}
.ScrollView-shadow {
display: block;
position: absolute;
z-index: 100;
transition: opacity 400ms;
opacity: 0;
pointer-events: none;
}
.ScrollView-shadow--top,
.ScrollView-shadow--bottom {
right: -1px;
left: -1px;
height: 18px;
}
.ScrollView-shadow--top {
top: 0;
background-image: linear-gradient(-180deg, rgba(#000, 0.08), rgba(#000, 0) 88%);
}
.ScrollView-shadow--bottom {
bottom: 0;
background-image: linear-gradient(0deg, rgba(#000, 0.08), rgba(#000, 0) 88%);
}
.ScrollView-shadow.is-visible {
opacity: 1;
}