cartodb-4.42/app/assets/stylesheets/map/slides.css.scss
2024-04-06 05:25:13 +00:00

311 lines
5.9 KiB
SCSS

@import "compass/css3/box-shadow";
@import "compass/css3/inline-block";
@import "compass/css3/images";
@import "compass/css3/transform";
@import "../old_common/fonts";
@import "../old_common/vars";
@import "../old_common/mixins";
@import "../map/map-sprite";
@import "../old_elements/elements-sprite";
$width: 140px;
.slides_panel {
position: absolute;
z-index: 1;
top: 62px;
bottom: 0;
left: -$width;
width: $width;
transition: left 100ms ease-in;
background: #333 image-url('layout/noise.png') repeat 0 0;
&.active {
left: 0;
}
.scrollpane {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
padding-top: 20px;
outline: none;
&:hover .jspVerticalBar {
opacity: 1;
}
.jspContainer {
position: relative;
}
.jspPane {
position: absolute;
}
.jspVerticalBar {
position: absolute;
z-index: 20;
top: 0;
right: 7px;
width: 5px;
height: 100%;
transition: opacity 150ms ease-in;
opacity: 0;
background: none;
}
.jspVerticalBar * {
margin: 0;
padding: 0;
}
.jspCap {
display: none;
}
.jspTrack {
position: relative;
background: none;
}
.jspDrag {
position: relative;
top: 0;
left: 0;
border-radius: 5px;
background: rgba(#BBB, 0.5);
cursor: pointer;
}
.jspArrow {
display: block;
background: none;
text-indent: -20000px;
cursor: pointer;
}
.jspVerticalBar .jspArrow {
height: 10px;
}
.jspVerticalBar .jspArrow:focus {
outline: none;
}
.jspCorner {
height: 100%;
float: left;
background: #EEEEF4;
}
}
.slide_view {
display: block;
position: relative;
box-sizing: border-box;
width: 104px;
height: 63px;
margin: 0 auto 29px;
padding: 11px;
border-radius: 2px;
background: #EEE;
background: -moz-linear-gradient(top, #EEE 0%, #E5E5E5 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #EEE), color-stop(100%, #E5E5E5));
background: -webkit-linear-gradient(top, #EEE 0%, #E5E5E5 100%);
background: -o-linear-gradient(top, #EEE 0%, #E5E5E5 100%);
background: -ms-linear-gradient(top, #EEE 0%, #E5E5E5 100%);
background: linear-gradient(to bottom, #EEE 0%, #E5E5E5 100%);
text-align: center;
text-decoration: none;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#EEE', endColorstr='#E5E5E5', GradientType=0);
&.ui-sortable-helper {
width: 104px !important;
height: 63px !important;
margin-left: 20px;
cursor: move;
}
&.fake {
margin: 0 auto 15px;
cursor: default;
pointer-events: none;
}
&.fake a.close,
&.fake a.info {
display: none;
}
&.fake:hover .count {
background: rgba(#000, 0.1);
}
&.active:hover .count {
background: #AAC6DF;
}
&:hover .count {
background: #BBB;
}
&:hover .close {
opacity: 1;
}
&.active {
.count {
background: #BECFDE;
}
&::before {
content: '';
position: absolute;
top: -3px;
left: -3px;
width: 109px;
height: 69px;
background: transparent image-url('sprites/map/slide_frame.png') repeat 0 0;
}
}
&.add {
margin-bottom: 70px;
transition: background 150ms ease-in;
background: rgba(#E8E8E8, 0.1);
&.loading .count .spinner {
display: block;
}
&.loading .count .icon {
display: none;
}
&:hover {
background: rgba(#E8E8E8, 0.08);
}
.count {
padding: 0;
background: rgba(#000, 0.1);
}
.count .spinner {
display: none;
position: absolute;
top: 50%;
left: 50%;
width: 30px;
height: 30px;
margin-top: -15px;
margin-left: -15px;
background: image-url('layout/tail-spin.svg') no-repeat 50% 50%;
background-size: 30px;
}
}
.close {
position: absolute;
top: -12px;
right: -11px;
width: 17px;
height: 16px;
padding: 3px;
transition: opacity 0.1s ease-in-out;
border: 1px solid #FFF;
border-radius: 90px;
opacity: 0;
background: #333;
box-shadow: 1px 1px 5px rgba(#000, 0.5);
color: #FFF;
font-family: "helvetica neue", "helvetica", arial;
font-size: 10px;
line-height: 16px;
text-align: center;
text-transform: uppercase;
cursor: pointer;
&:hover {
text-decoration: none;
}
}
.info {
position: relative;
top: 14px;
box-sizing: border-box;
height: 16px;
margin: auto;
padding: 4px 6px;
border-radius: 2px;
background: #333;
color: #9CA0A3;
font-size: 9px;
line-height: 80%;
text-align: center;
text-decoration: none;
text-transform: uppercase;
&:hover {
color: #666;
}
}
.count {
box-sizing: border-box;
width: 43px;
height: 43px;
margin: auto;
padding: 3px;
transition: background 150ms ease-in;
border-radius: 200px;
background: #D1D1D1;
color: #FFF;
font-size: 31px;
font-weight: bold;
line-height: normal;
text-align: center;
vertical-align: middle;
}
}
.dropdown.slide_transition_dropdown {
width: 150px;
ul li {
padding: 10px;
text-align: left;
a {
padding: 0;
}
a.radiobutton span.radio {
margin: 1px 7px 0 0 !important;
}
&.seconds {
.form {
text-align: center;
}
a.radiobutton {
margin: 0 3px 0 0;
}
a.radiobutton,
.form {
display: inline-block;
vertical-align: top;
}
}
}
}
}