scrollbar with snap for result items
This commit is contained in:
parent
42f589d0aa
commit
f546aa0d06
|
@ -14,6 +14,41 @@
|
|||
background-attachment: fixed;
|
||||
background-size: cover;
|
||||
}
|
||||
.holster {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-flow: column nowrap;
|
||||
font-family: monospace;
|
||||
}
|
||||
.container {
|
||||
display: flex;
|
||||
overflow: auto;
|
||||
outline: 1px dashed lightgray;
|
||||
flex: none;
|
||||
}
|
||||
.container.y {
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
flex-flow: column nowrap;
|
||||
}
|
||||
.y.mandatory-scroll-snapping {
|
||||
scroll-snap-type: y mandatory;
|
||||
}
|
||||
.y.proximity-scroll-snapping {
|
||||
scroll-snap-type: y proximity;
|
||||
}
|
||||
.container > .result_scroll_element {
|
||||
text-align: center;
|
||||
scroll-snap-align: center;
|
||||
flex: none;
|
||||
}
|
||||
.y.container > .result_scroll_element {
|
||||
/*line-height: 256px;*/
|
||||
font-size: 128px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -49,38 +84,39 @@
|
|||
</a>
|
||||
</div>
|
||||
<h3 class="w3-text-white">Competitor results:</h3>
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
<a class="w3-hover" style="text-decoration: none" href="https://www.ebay.de/itm/165508291809" target="_blank">
|
||||
<div class="holster">
|
||||
<div class="container y mandatory-scroll-snapping" dir="ltr">
|
||||
<div class="result_scroll_element w3-text-white">
|
||||
<a class="w3-hover" style="text-decoration: none" href="https://www.ebay.de/itm/325181063137" target="_blank">
|
||||
<div class="w3-container">
|
||||
<div class="w3-panel w3-indigo">
|
||||
<h6 class="w3-text-white">#1</h6>
|
||||
<div class="w3-container w3-cell">
|
||||
<img src="https://i.ebayimg.com/images/g/X9EAAOSweZtilMu-/s-l500.png" class="w3-card-4" alt="TODO" style="float:left">
|
||||
<img src="https://i.ebayimg.com/images/g/7lAAAOSw~ixieBVP/s-l500.jpg" class="w3-card-4" alt="TODO" style="float:left">
|
||||
</div>
|
||||
<div class="w3-container w3-cell">
|
||||
<h1 class="w3-monospace w3-xxlarge">Lenovo ThinkPad L430 WLAN Karte Wireless Lan</h1>
|
||||
<h2 class="w3-monospace w3-jumbo">9.99 €</h2>
|
||||
<h1 class="w3-monospace w3-xxlarge">Lenovo ThinkPad T420 WLAN Karte Wireless Lan</h1>
|
||||
<h2 class="w3-monospace w3-jumbo">8.90 €</h2>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="w3-hover" style="text-decoration: none" href="https://www.ebay.de/itm/165508291809" target="_blank">
|
||||
</div>
|
||||
<div class="result_scroll_element w3-text-white">
|
||||
<a class="w3-hover" style="text-decoration: none" href="https://www.ebay.de/itm/254640853979" target="_blank">
|
||||
<div class="w3-container">
|
||||
<div class="w3-panel w3-indigo">
|
||||
<h6 class="w3-text-white">#2</h6>
|
||||
<div class="w3-container w3-cell">
|
||||
<img src="https://i.ebayimg.com/images/g/X9EAAOSweZtilMu-/s-l500.png" class="w3-card-4" alt="TODO" style="float:left">
|
||||
<img src="https://i.ebayimg.com/images/g/6egAAOSwfA5e~JHU/s-l500.jpg" class="w3-card-4" alt="TODO" style="float:left">
|
||||
</div>
|
||||
<div class="w3-container w3-cell">
|
||||
<h1 class="w3-monospace w3-xxlarge">Lenovo ThinkPad L430 WLAN Karte Wireless Lan</h1>
|
||||
<h2 class="w3-monospace w3-jumbo">9.99 €</h2>
|
||||
<h2 class="w3-monospace w3-jumbo">9.90 €</h2>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue