/home/vianto5/heredit.mx/sliders/cercanias
NameSizeModeActions
index-mob.html27340644editdlrm
index.html29260644editdlrm
script.js25130644editdlrm
style-mob.css25400644editdlrm
style.css31320644editdlrm
Edit: /home/vianto5/heredit.mx/sliders/cercanias/style.css (3132B)
* { margin: 0; padding: 0; box-sizing: border-box; } body { display: flex; align-items: center; justify-content: center; overflow: hidden; } .container { max-width: 100%; width: 100%; } .slider-wrapper { position: relative; } .slider-wrapper .slide-button { position: fixed; height: 50px; width: 50px; color: #000; background: #fff; font-size: 2.2rem; cursor: pointer; border: solid 1px #000; border-radius: 3px; top: 2%; transition: all 300ms; } .slider-wrapper .slide-button:hover { background: #B78B1E; color: #fff; border-color: #B78B1E; } .slider-wrapper .slide-button#prev-slide { right: 75px; } .slider-wrapper .slide-button#next-slide { right: 10px; } .slider-wrapper .image-list { display: grid; gap: 20px; font-size: 0; overflow-x: hidden; scrollbar-width: none; grid-template-columns: repeat(5, 1fr); margin-top: 3%; margin-bottom: 30px; } .slider-wrapper .image-list .card { width: 350px; text-align: center; padding: 0 10%; } .slider-wrapper .image-list .image-item{ width: 250px; height: 250px; object-fit: cover; margin-top: 30px; margin-bottom: 30px; border-radius: 50%; } .slider-wrapper .image-list .text-item { color: #000; font-family: 'Gotham'; font-weight: 300; font-size: 22px; line-height: 40px; } .slider-wrapper .image-list .button-redirect{ width: 100%; height: 44px; background: #6f7271; color: #fff; border: none; border-radius: 4px; font-size: 22px; font-weight: 700; transition: all 300ms; } .slider-wrapper .image-list .button-redirect:hover{ background: #B78B1E; cursor: pointer; } .container .slider-scrollbar { height: 24px; width: 100%; display: flex; align-items: center; } .slider-scrollbar .scrollbar-track { height: 4px; width: 100%; background: #d9d9d9; position: relative; border-radius: 4px; } .slider-scrollbar:hover .scrollbar-track { height: 5px; } .slider-scrollbar .scrollbar-thumb { position: absolute; height: 100%; width: 25%; background: #B78B1E; border-radius: 4px; cursor: grab; } .slider-scrollbar .scrollbar-thumb:active { cursor: grabbing; height: 5px; top: -1px; } .slider-scrollbar .scrollbar-thumb::after { content: ""; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; } @media screen and (max-width: 400px) { body { min-height: auto; } .slider-wrapper .slide-button { display: none; } .slider-wrapper .image-list { overflow-x: auto; scrollbar-width: none; margin-bottom: 15px; } .slider-wrapper .image-list .card { width: 230px; padding: 0; } .slider-wrapper .image-list .image-item { width: 200px; height: 200px; } .slider-wrapper .image-list .text-item { font-size: 17px; } .container .slider-scrollbar { width: 70%; margin: 0 15%; } }