0.0.136 scroll search route results
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
.b_search_routes {
|
||||
|
||||
--button-font-size: 18px;
|
||||
|
||||
padding: 16px 10px;
|
||||
background: #FFF;
|
||||
border-radius: 10px;
|
||||
form{
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, calc(33.3% - 72px)) 215px;
|
||||
/* +5px in grid for padding */
|
||||
grid-template-columns: repeat(3, calc(33.3% - 77px)) 215px;
|
||||
align-items: end;
|
||||
gap: 5px;
|
||||
[data-type="location"] {
|
||||
|
||||
@@ -1,16 +1,3 @@
|
||||
function attachElementWhenScroll(el, options){
|
||||
let attach_top = options.attach_top;
|
||||
let top = options.top;
|
||||
let left = options.left;
|
||||
|
||||
if (el.getBoundingClientRect().top <= attach_top){
|
||||
el.style.top = top + 'px';
|
||||
el.style.position = "fixed";
|
||||
} else if (el.getBoundingClientRect().top >= attach_top){
|
||||
el.style.position = "unset";
|
||||
}
|
||||
}
|
||||
|
||||
class scroll{
|
||||
constructor(props){
|
||||
this.attach_top = props.attach_top;
|
||||
|
||||
Reference in New Issue
Block a user