fixed sidebar sticky

This commit is contained in:
unknown committed 2020-11-18 10:22:24 +08:00
1 parent 025f60903b
commit 55ccde3929
1 file changed
+7 -121
+7 -121
View File
@@ -251,7 +251,7 @@
}
</style>
</head>
<body class="text-gray-900 antialiased font-body overflow-hidden">
<body class="text-gray-900 antialiased font-body ">
<nav class="sticky top-0 absolute z-50 w-full flex flex-wrap items-center justify-between py-1 navbar-expand-lg bg-indigo-900">
<div class="container px-4 sm:pb-2 sm:px-16 md:px-10 lg:px-12 xl:pl-24 xl:pr-20 xxl:pl-34 xxl:pr-25 mx-auto mt-1 flex flex-wrap items-center justify-between">
<div class="relative flex justify-between w-auto static block justify-start">
@@ -543,129 +543,13 @@
</nav>
<main>
<!-- overlay -->
<span class="z-30 w-full h-full absolute opacity-75 bg-indigo-800 hidden"
<span class="z-30 w-full h-screen fixed opacity-75 bg-indigo-800 hidden overflow-hidden"
id="example-collapse-overlay"></span>
<!-- end overlay -->
<!-- card sidebar section -->
<aside class="sticky h-full z-50 top-0 flex justify-center xl:justify-center transform ease-in-out transition-all duration-300 hidden"
id="example-collapse-sidebar1">
<div class="h-full mt-0 max-w-lg absolute sm:mt-16 md:mt-32 lg:mt-0 lg:right-0 xxl:mt-20 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">
<a href="#">
<div class="flex absolute h-10 ml-4 mt-5 px-4 py-2 text-md md:mt-3 md:text-md lg:text-md lg:h-10 lg:mt-5 xl:h-10 xl:mt-5 xl:text-md xxl:mt-4 bg-indigo-700 text-white font-light md:tracking-normal font-sans">
P 1,299 / month
<div class="tooltip">
<img alt=""
class=" flex absolute top-0 right-0 h-10 px-3 p-2 pt-2 -mr-10 bg-white text-xs"
src="svg/icon_call.svg">
<div class="tooltip-text flex absolute top-0 right-0 px-3 py-3 bg-white rounded-md -mr-24 mt-14">
<img src="svg/icon_phone.svg" alt="">
<p class="ml-1 text-gray-600">0912345678</p>
</div>
</div>
</div>
<div class="flex absolute h-10 w-auto mt-5 md:mt-3 lg:mt-5 xxl:mt-4 right-0 top-0">
<div class="pr-4 pl-3 mx-2 flex bg-indigo-900">
<img class="flex" src="svg/icon_back.svg" alt="">
</div>
<div class="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 class="px-4 py-1 flex hidden md:py-3 md:block text-gray-500">
<img class="flex" src="svg/icon_close.svg" alt=""
onclick="toggleSidebar('example-collapse-sidebar1');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">
<img alt="" class=""
onclick="toggleNavbar('collapse-tool-tip10')"
src="svg/icon_ellipsis.svg">
</div>
<div class="absolute right-0 bottom-0 bg-indigo-900 hidden rounded-lg -mb-18 font-sans"
id="collapse-tool-tip10">
<a class="flex px-4 py-2" href="#">
<p class="flex text-sm xl:text-md text-gray-700 hover:text-gray-400 hover:font-semibold">
<img class="mr-2 mt-1" src="svg/icon_pin.svg" alt=""
onclick="toggleMap('example-collapse-map')">
Directions
</p>
</a>
<a class="flex px-4 py-2" href="#">
<p class="flex text-sm xl:text-md text-gray-700 hover:text-gray-400 hover:font-semibold">
<img class="mr-2 mt-1" src="svg/icon_link.svg" alt="">
Copy link
</p>
</a>
<a class="flex px-4 py-2" href="#">
<p class="flex text-sm xl:text-md text-gray-700 hover:text-gray-400 hover:font-semibold">
<img class="mr-2 mt-1" src="svg/icon_report.svg" alt="">
Report this
</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 ">
<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 hidden"
id="example-collapse-map">
<div class="z-10 absolute py-3 px-3 right-0 bottom-0 bg-indigo-900">
<img alt="" class=""
onclick="toggleSidebar('example-collapse-sidebar');toggleOverlay('example-collapse-overlay')"
src="svg/icon_close.svg">
</div>
</div>
</a>
</div>
<div class="h-auto sm:h-full px-3 mt-2 md:px-7 md:mt-1 lg:h-80 lg:px-7 xl:h-auto xl:mt-2 xxl:mt-4 overflow-y-auto">
<div class="flex justify-between">
<a href="#">
<p class="font-bold w-4/5 md:w-3/4 text-lg leading-5 md:leading-7 tracking-normal break-words">
Cozy
coworking space in the heart of the south</p>
</a>
<img alt="" class="ml-6 mr-2 lg:ml-0 lg:mr-3 xl:mr-3 xxl:mr-1" src="svg/icon_heart.svg">
</div>
<div class=" flex justify-between">
<p class="flex w-9/12 md:w-3/5 text-xs text-gray-600 capitalize font-sans tracking-normal break-words">
incub8 space, centennial
road, brgy.
batong dalig, kawit, cavite</p>
<p class="mr-1 mt-4 flex-none text-xs text-gray-600 tracking-wider font-sans">5 hrs ago</p>
</div>
<div class="mt-8 md:mt-3 lg:mt-8 xxl:mt-6">
<div class="w-full">
<input class="w-full px-3 py-2 rounded-md focus:outline-none" type="text"
placeholder="Full Name">
</div>
<div class="flex mt-2 md:mt-1 lg:mt-2 xxl:mt-1">
<input class="mr-2 md:mr-1 lg:mr-2 xxl:mr-1 w-full px-3 py-2 rounded-md focus:outline-none"
type="text" placeholder="Contact #">
<input class="w-full px-3 py-2 rounded-md focus:outline-none" type="text"
placeholder="Email Address">
</div>
<div class="w-full mt-2 md:mt-1 lg:mt-2 xxl:mt-1">
<textarea class="w-full px-3 py-1 xxl:py-3 text-gray-500 rounded-md focus:outline-none"
rows="3">Optional Message</textarea>
</div>
<div class="w-full mt-4 md:mt-5 lg:mt-12 xl:mt-12 xxl:mt-2 mb-3">
<button class="py-2 w-full text-md lg:text-lg xxl:text-md font-bold bg-green-300 rounded-none border-none focus:outline-none">
SEND INQUIRY
</button>
<p class="mt-1 text-xs xl:text-sm text-gray-600 font-thin tracking-tight">By Submitting your
agree to the
<b>Terms and Conditions</b></p>
</div>
</div>
</div>
</div>
</div>
</aside>
<!-- end card sidebar section -->
<aside class="sticky h-full z-50 top-0 flex justify-center xl:justify-center transform ease-in-out transition-all duration-300 hidden"
<!--sidebar section-->
<aside class="lg:fixed lg:right-0 lg:w-full lg:mt-16 h-full z-50 top-0 flex justify-center xl:justify-center transform ease-in-out transition-all duration-300 hidden"
id="example-collapse-sidebar2">
<div class="h-full mt-0 max-w-lg absolute sm:mt-16 md:mt-32 lg:mt-0 lg:right-0 xxl:mt-20 xxl:right-auto">
<div class="pb-3 lg:h-screen rounded-none md:rounded-lg lg:rounded-none xxl:rounded-lg xxl:h-auto hover:shadow-xl tracking-wide bg-gray-200">
<!--location modal-->
@@ -1030,6 +914,8 @@
</div>
</div>
</aside>
<!--end sidebar section-->
<section class="bg-gray-100 shadow-md">
<div class="container mx-auto pt-2 pb-2 px-4 md:pt-6 md:pb-3 sm:px-16 md:px-10 lg:px-12 xl:pt-5 xl:pb-5 xl:pl-24 xl:pr-20">
<div class="grid xl:flex grid-cols grid-cols-3 gap-8 xl:justify-center">