fixed sidebar sticky

This commit is contained in:
unknown committed 2020-11-18 11:16:42 +08:00
1 parent 7c0303d22a
commit b3457398a9
1 file changed
+7 -5
+7 -5
View File
@@ -252,7 +252,7 @@
</style> </style>
</head> </head>
<body class="text-gray-900 antialiased font-body"> <body class="text-gray-900 antialiased font-body overflow-hidden">
<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"> <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="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"> <div class="relative flex justify-between w-auto static block justify-start">
@@ -544,15 +544,15 @@
</nav> </nav>
<main> <main>
<!-- overlay --> <!-- overlay -->
<span class="z-50 w-full h-screen fixed opacity-75 bg-indigo-800 hidden overflow-hidden" <span class="z-50 w-full h-full fixed opacity-75 bg-indigo-800 hidden overflow-hidden"
id="example-collapse-overlay"></span> id="example-collapse-overlay"></span>
<!-- end overlay --> <!-- end overlay -->
<!--sidebar section--> <!--sidebar section-->
<aside class=" h-full z-50 top-0 flex justify-center lg:fixed lg:right-0 lg:w-full lg:mt-16 xl:justify-center transform ease-in-out transition-all duration-300 hidden" <aside class="fixed z-50 w-full h-full top-0 flex justify-center mt-11 lg:right-0 lg:w-full lg:mt-16 xl:justify-center transform ease-in-out transition-all duration-300 hidden"
id="example-collapse-sidebar2"> 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="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"> <div class="pb-3 rounded-none md:rounded-lg lg:h-screen lg:rounded-none xxl:rounded-lg xxl:h-auto hover:shadow-xl tracking-wide bg-gray-200">
<!--location modal--> <!--location modal-->
<div class="relative"> <div class="relative">
<div class="z-10 absolute w-11/12 mx-4 lg:mx-6 my-5 pt-14 pb-10 px-5 h-auto bg-indigo-900 rounded-lg hidden" <div class="z-10 absolute w-11/12 mx-4 lg:mx-6 my-5 pt-14 pb-10 px-5 h-auto bg-indigo-900 rounded-lg hidden"
@@ -679,7 +679,8 @@
</div> </div>
<!--end availability upload progress bar--> <!--end availability upload progress bar-->
</div> </div>
<div class="h-auto sm:h-full lg:h-80 xl:h-auto lg:overflow-y-auto" id="tabs-id"> <div class="fie h-68 overflow-y-auto sm:h-full lg:h-80 xl:h-auto lg:overflow-y-auto" id="tabs-id">
<!--sidebar tab-->
<ul class="flex flex-wrap"> <ul class="flex flex-wrap">
<li class="w-1/3"> <li class="w-1/3">
<a class="w-full h-10 text-center inline-block border-l border-t rounded-t py-2 px-4" <a class="w-full h-10 text-center inline-block border-l border-t rounded-t py-2 px-4"
@@ -694,6 +695,7 @@
onclick="changeAtiveTab(event,'tab-contact')">Contact Info</a> onclick="changeAtiveTab(event,'tab-contact')">Contact Info</a>
</li> </li>
</ul> </ul>
<!--end sidebar tab-->
<div class="tab-content tab-space"> <div class="tab-content tab-space">
<!-- post space description section--> <!-- post space description section-->
<div class="mt-8 px-3 md:mt-3 lg:mt-8 lg:px-7 xxl:mt-6 block" id="tab-description"> <div class="mt-8 px-3 md:mt-3 lg:mt-8 lg:px-7 xxl:mt-6 block" id="tab-description">