mirror of
https://github.com/graphdeco-inria/gaussian-splatting
synced 2025-04-05 21:46:26 +00:00
191 lines
6.5 KiB
CSS
191 lines
6.5 KiB
CSS
.b-dics {
|
|
width : 100%;
|
|
max-width : 100%;
|
|
position : relative;
|
|
overflow : hidden;
|
|
display : flex;
|
|
opacity : 0;
|
|
}
|
|
|
|
.b-dics__section {
|
|
height : 100%;
|
|
}
|
|
|
|
.b-dics__slider:hover :before {
|
|
color : #FFFFFF;
|
|
border-color : #FFFFFF;
|
|
}
|
|
|
|
.b-dics__text {
|
|
position : absolute;
|
|
top : 0;
|
|
left : 50%;
|
|
padding : 5px 25px;
|
|
transform : translateX(-50%);
|
|
background : #FFFFFF;
|
|
z-index : 11;
|
|
font-family : Arial, serif;
|
|
color : #3d3d3d;
|
|
user-select : none;
|
|
font-size : 13px;
|
|
text-align : center;
|
|
margin : 16px 0;
|
|
white-space : nowrap;
|
|
opacity : .7;
|
|
pointer-events : none;
|
|
}
|
|
|
|
.b-dics__image-container {
|
|
width : 100%;
|
|
height : 100%;
|
|
display : block;
|
|
overflow : hidden;
|
|
position : relative;
|
|
}
|
|
|
|
.b-dics__image {
|
|
height : 100%;
|
|
position : absolute;
|
|
left : 0;
|
|
top : 50%;
|
|
transform : translateY(-50%);
|
|
user-select : none;
|
|
max-width : none;
|
|
}
|
|
|
|
.b-dics__slider {
|
|
color : #FFFFFF;
|
|
position : absolute;
|
|
left : 100%;
|
|
top : 0;
|
|
cursor : pointer;
|
|
transform : translateX(-50%);
|
|
height : 100%;
|
|
width : 3px;
|
|
padding : 0 30px;
|
|
z-index : 1;
|
|
touch-action : none;
|
|
line-height : normal;
|
|
opacity : .7;
|
|
}
|
|
|
|
.b-dics__slider:before {
|
|
content : '';
|
|
-webkit-mask : url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3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LjgtNy44LTIwLjQtNy45LTI4LjMtMC4xYy03LjgsNy44LTcuOSwyMC40LTAuMSwyOC4zbDYxLjcsNjIuMmMxMS40LDExLjQsMjYuNSwxNy44LDQyLjUsMTcuOHMzMS4yLTYuMyw0Mi41LTE3LjhsNjEuNy02Mi4yYzcuOC03LjgsNy43LTIwLjUtMC4xLTI4LjNDMzUyLjIsMzk2LDMzOS42LDM5Ni4xLDMzMS44LDQwMy45eiIvPjwvc3ZnPg==) no-repeat 100% 100%;
|
|
mask-size : cover;
|
|
-webkit-mask-size : cover;
|
|
width : 26px;
|
|
height : 26px;
|
|
padding : 0;
|
|
background-color : currentColor;
|
|
position : absolute;
|
|
top : 50%;
|
|
left : 50%;
|
|
transform : translate(-50%, -50%) rotate(90deg);
|
|
z-index : 2;
|
|
font-size : 0;
|
|
}
|
|
|
|
.b-dics__slider:after {
|
|
content : '';
|
|
position : absolute;
|
|
left : 50%;
|
|
top : 0;
|
|
transform : translateX(-50%);
|
|
height : 100%;
|
|
width : 3px;
|
|
background-color : currentColor;
|
|
z-index : 1;
|
|
}
|
|
|
|
.b-dics__image-container:hover .b-dics__text {
|
|
opacity : 1;
|
|
}
|
|
|
|
.b-dics__slider:hover {
|
|
opacity : 1;
|
|
}
|
|
|
|
/* Text Position
|
|
****************************************************************************/
|
|
|
|
.b-dics--tp-center .b-dics__text {
|
|
top : 50%;
|
|
transform : translate(-50%, -50%);
|
|
margin : 0;
|
|
}
|
|
|
|
.b-dics--tp-bottom .b-dics__text {
|
|
top : initial;
|
|
bottom : 0;
|
|
transform : translate(-50%, -50%);
|
|
}
|
|
|
|
.b-dics--tp-left .b-dics__text {
|
|
left : 0;
|
|
top : 50%;
|
|
transform : translateY(-50%);
|
|
margin : 0 16px;
|
|
}
|
|
|
|
.b-dics--tp-right .b-dics__text {
|
|
left : initial;
|
|
right : 0;
|
|
top : 50%;
|
|
transform : translateY(-50%);
|
|
margin : 0 16px;
|
|
}
|
|
|
|
/* Hide texts
|
|
****************************************************************************/
|
|
|
|
.b-dics--hide-texts .b-dics__text {
|
|
background : #ffffff;
|
|
opacity : 0;
|
|
}
|
|
|
|
.b-dics--hide-texts .b-dics__image-container:hover .b-dics__text {
|
|
opacity : 1;
|
|
}
|
|
|
|
/* Vertical Sliders
|
|
****************************************************************************/
|
|
|
|
.b-dics--vertical {
|
|
flex-direction : column;
|
|
}
|
|
|
|
.b-dics--vertical .b-dics__section {
|
|
height : auto;
|
|
width : 100%;
|
|
}
|
|
|
|
.b-dics--vertical .b-dics__image {
|
|
left : 50%;
|
|
transform : translateX(-50%);
|
|
top : 0;
|
|
width : 100%;
|
|
height : auto;
|
|
}
|
|
|
|
.b-dics--vertical .b-dics__slider {
|
|
top : 100%;
|
|
transform : translateY(-50%);
|
|
width : 100%;
|
|
height : 3px;
|
|
padding : 30px 0;
|
|
left : 0;
|
|
}
|
|
|
|
.b-dics--vertical .b-dics__slider:after {
|
|
top : 50%;
|
|
left : 0;
|
|
transform : translateY(-50%);
|
|
width : 100%;
|
|
height : 3px;
|
|
}
|
|
|
|
.b-dics--vertical .b-dics__slider:before {
|
|
transform : translate(-50%, -50%);
|
|
} |