mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2025-12-10 09:38:32 +01:00
slider impl (no auto activate)
This commit is contained in:
@@ -220,3 +220,32 @@ body {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.img-comp-container {
|
||||
position: relative;
|
||||
/*height: 100%;*/ /*should be the same height as the images*/
|
||||
}
|
||||
|
||||
.img-comp-img {
|
||||
position: absolute;
|
||||
width: auto;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.img-comp-img img {
|
||||
display: block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.img-comp-slider {
|
||||
position: absolute;
|
||||
z-index: 9;
|
||||
cursor: ew-resize;
|
||||
/*set the appearance of the slider:*/
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background-color: #2196F3;
|
||||
opacity: 0.7;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user