added changes sidebar

This commit is contained in:
unknown committed 2020-10-25 21:20:39 +08:00
1 parent 2ac53c55a4
commit fb930c35cf
1 file changed
+20 -8
+20 -8
View File
@@ -25,7 +25,8 @@
.map-overlay {
font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
position: absolute;
width: 200px;
width: auto;
height: auto;
top: 0;
left: 0;
padding: 10px;
@@ -536,9 +537,11 @@
</div>
</nav>
<main>
<!-- overlay -->
<span class="z-30 w-full h-full absolute opacity-75 bg-indigo-800 hidden"
id="example-collapse-overlay"></span>
<section class="sticky z-50 top-0 flex justify-center xl:justify-center">
<!-- card sidebar section -->
<section class="sticky z-50 top-0 flex justify-center xl:justify-center hidden" id="example-collapse-sidebar">
<div class="mt-0 max-w-lg absolute sm:mt-16 md:mt-32 lg:mt-0 lg:right-0 xxl:mt-32 xxl:right-auto">
<div class="pb-3 rounded-none md:rounded-lg lg:rounded-none xxl:rounded-lg hover:shadow-xl tracking-wide bg-gray-200">
<div class="relative">
@@ -562,7 +565,7 @@
<img class="flex" src="svg/icon_next.svg" alt="">
</div>
<div class="px-4 py-1 flex hidden md:py-3 md:block text-gray-500">
<img class="flex" src="svg/icon_close.svg" alt="">
<img class="flex" src="svg/icon_close.svg" alt="" onclick="toggleSidebar('example-collapse-sidebar');toggleOverlay('example-collapse-overlay')">
</div>
</div>
<div class="absolute py-4 px-3 md:pb-4 md:pt-4 md:px-2 xxl:px-3 right-0 bottom-0 bg-indigo-900">
@@ -592,7 +595,12 @@
</p>
</a>
</div>
<img alt="" class="h-65 md:h-66 lg:h-auto xl:h-58 xxl:h-62 w-full object-cover md:rounded-t-lg lg:rounded-none xxl:rounded-t-lg" src="img/SAMPLE3.jpg ">
<!-- <img alt="" class="h-65 md:h-66 lg:h-auto xl:h-58 xxl:h-62 w-full object-cover md:rounded-t-lg lg:rounded-none xxl:rounded-t-lg" src="img/SAMPLE3.jpg ">-->
<div class="h-65 md:h-66 lg:h-auto xl:h-58 xxl:h-62 w-full object-cover md:rounded-t-lg lg:rounded-none xxl:rounded-t-lg relative" id="map">
<div class=" absolute pl-4 pr-3 ml-2 mr-4 md:mr-1 flex bg-indigo-900">
<img class="flex" src="svg/icon_next.svg" alt="">
</div>
</div>
</a>
</div>
<div class="px-3 mt-2 md:px-7 md:mt-1 lg:px-7 xl:mt-2 xxl:mt-4">
@@ -646,7 +654,6 @@
</a>
</button>
</div>
</div>
</section>
@@ -704,7 +711,7 @@
</p>
</a>
</div>
<img alt="" class="h-full w-full object-cover" src="img/img2.jpg">
<img alt="" class="h-full w-full object-cover cursor-pointer" src="img/img2.jpg" onclick="toggleSidebar('example-collapse-sidebar');toggleOverlay('example-collapse-overlay')">
</a>
</div>
<div class="flex px-3 mt-2 md:mt-3 xl:mt-1">
@@ -773,7 +780,7 @@
</p>
</a>
</div>
<img alt=" " class="h-full w-full object-cover " src="img/SAMPLE7.jpg ">
<img alt=" " class="h-full w-full object-cover cursor-pointer" src="img/SAMPLE7.jpg ">
</a>
</div>
<div class="flex px-3 mt-2 md:mt-3 xl:mt-1">
@@ -1061,7 +1068,7 @@
<img alt=""
class="absolute py-4 px-3 md:pb-3 md:pt-4 md:px-2 right-0 bottom-0 bg-indigo-900"
src="svg/icon_ellipsis.svg">
<div class="h-full w-full object-cover " id="map"></div>
<div class="h-full w-full object-cover " id="map1"></div>
</a>
</div>
<div class="flex px-3 mt-2 md:mt-3 xl:mt-1">
@@ -1105,6 +1112,11 @@
document.getElementById(collapseID).classList.toggle("block");
}
function toggleSidebar(collapseID) {
document.getElementById(collapseID).classList.toggle("hidden");
document.getElementById(collapseID).classList.toggle("block");
}
function toggleDropdown(collapseID) {
document.getElementById(collapseID).classList.toggle("hidden");
document.getElementById(collapseID).classList.toggle("block");