Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion components/doc-sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,33 @@
border-bottom-color: var(--primary-color);
}

.toggle-list {
display: none;
}

@media screen and (max-width: 768px) {
.sidebar-hidden{
display: none;
}
.sidebar {
position: sticky;
top: 10px;
z-index: 5;
}
.sidebar-heading {
padding-top: 1rem;
}
.sidebar-components {
flex-flow: row wrap;
flex-direction: column;
align-items: start;
height: 200vh;
overflow-y: auto;
}
.rotation {
transform: rotate(180deg);
}
.toggle-list {
display: block;
transition: 0.4s;
}
}
4 changes: 3 additions & 1 deletion components/modals.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
align-items: center;
justify-content: center;
}

.demo-modal{
visibility: hidden;
}
.gentle-modal-container.active-modal {
display: flex;
}
Expand Down
10 changes: 8 additions & 2 deletions documentation/alerts.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ <h5><a href="../index.html" class="link-none">Gentle UI</a></h5>
</ul>
</div>
<div class="sidebar p-6">
<h4 class="text-bold">COMPONENTS</h4>
<ul class="sidebar-components">
<h4 class="text-bold g-flex-row g-flex-space-between">
<span class="sidebar-heading">COMPONENTS</span>
<span class="toggle-list">
<i class="fas fa-chevron-up"></i>
</span>
</h4>
<ul class="sidebar-components sidebar-hidden">
<li class="p-2 my-2">
<h6><a class="link-none" href="alerts.html">ALERT</a></h6>
</li>
Expand Down Expand Up @@ -237,6 +242,7 @@ <h5 class="mb-4">COMPONENT DEMO</h5>

</div>
<script src="scripts/alerts.js"></script>
<script src="scripts/docSidebar.js"></script>
</body>

</html>
10 changes: 8 additions & 2 deletions documentation/avatars.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ <h5><a href="../index.html" class="link-none">Gentle UI</a></h5>
</ul>
</div>
<div class="sidebar p-6">
<h4 class="text-bold">COMPONENTS</h4>
<ul class="sidebar-components">
<h4 class="text-bold g-flex-row g-flex-space-between">
<span class="sidebar-heading">COMPONENTS</span>
<span class="toggle-list">
<i class="fas fa-chevron-up"></i>
</span>
</h4>
<ul class="sidebar-components sidebar-hidden">
<li class="p-2 my-2">
<h6><a class="link-none" href="alerts.html">ALERT</a></h6>
</li>
Expand Down Expand Up @@ -218,6 +223,7 @@ <h5 class="mb-4">COMPONENT DEMO</h5>
</div>
</div>
</div>
<script src="scripts/docSidebar.js"></script>
</body>

</html>
10 changes: 8 additions & 2 deletions documentation/badges.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ <h5><a href="../index.html" class="link-none">Gentle UI</a></h5>
</ul>
</div>
<div class="sidebar p-6">
<h4 class="text-bold">COMPONENTS</h4>
<ul class="sidebar-components">
<h4 class="text-bold g-flex-row g-flex-space-between">
<span class="sidebar-heading">COMPONENTS</span>
<span class="toggle-list">
<i class="fas fa-chevron-up"></i>
</span>
</h4>
<ul class="sidebar-components sidebar-hidden">
<li class="p-2 my-2">
<h6><a class="link-none" href="alerts.html">ALERT</a></h6>
</li>
Expand Down Expand Up @@ -154,6 +159,7 @@ <h5 class="mb-4">COMPONENT DEMO</h5>
</div>
</div>
</div>
<script src="scripts/docSidebar.js"></script>
</body>

</html>
10 changes: 8 additions & 2 deletions documentation/buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ <h5><a href="../index.html" class="link-none">Gentle UI</a></h5>
</ul>
</div>
<div class="sidebar p-6">
<h4 class="text-bold">COMPONENTS</h4>
<ul class="sidebar-components">
<h4 class="text-bold g-flex-row g-flex-space-between">
<span class="sidebar-heading">COMPONENTS</span>
<span class="toggle-list">
<i class="fas fa-chevron-up"></i>
</span>
</h4>
<ul class="sidebar-components sidebar-hidden">
<li class="p-2 my-2">
<h6><a class="link-none" href="alerts.html">ALERT</a></h6>
</li>
Expand Down Expand Up @@ -354,6 +359,7 @@ <h5 class="mb-4">COMPONENT DEMO</h5>
</div>
</div>
</div>
<script src="scripts/docSidebar.js"></script>
</body>

</html>
12 changes: 9 additions & 3 deletions documentation/cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ <h5><a href="../index.html" class="link-none">Gentle UI</a></h5>
</ul>
</div>
<div class="sidebar p-6">
<h4 class="text-bold">COMPONENTS</h4>
<ul class="sidebar-components">
<h4 class="text-bold g-flex-row g-flex-space-between">
<span class="sidebar-heading">COMPONENTS</span>
<span class="toggle-list">
<i class="fas fa-chevron-up"></i>
</span>
</h4>
<ul class="sidebar-components sidebar-hidden">
<li class="p-2 my-2">
<h6><a class="link-none" href="alerts.html">ALERT</a></h6>
</li>
Expand Down Expand Up @@ -66,7 +71,7 @@ <h6><a class="link-none" href="inputs.html">INPUT</a></h6>
<h6><a class="link-none" href="lists.html">LISTS</a></h6>
</li>
<li class="p-2 my-2">
<h6><a href="modals.html" class="link-none"></a></h6>
<h6><a href="modals.html" class="link-none">MODALS</a></h6>
</li>
<li class="p-2 my-2">
<h6><a class="link-none" href="navigation.html">NAVIGATION</a></h6>
Expand Down Expand Up @@ -521,6 +526,7 @@ <h4 class="txt-bold card-details-title">Proteinated Milk</h4>
</div>
</div>
</div>
<script src="scripts/docSidebar.js"></script>
</body>

</html>
10 changes: 8 additions & 2 deletions documentation/grids.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ <h5><a href="../index.html" class="link-none">Gentle UI</a></h5>
</ul>
</div>
<div class="sidebar p-6">
<h4 class="text-bold">COMPONENTS</h4>
<ul class="sidebar-components">
<h4 class="text-bold g-flex-row g-flex-space-between">
<span class="sidebar-heading">COMPONENTS</span>
<span class="toggle-list">
<i class="fas fa-chevron-up"></i>
</span>
</h4>
<ul class="sidebar-components sidebar-hidden">
<li class="p-2 my-2">
<h6><a class="link-none" href="alerts.html">ALERT</a></h6>
</li>
Expand Down Expand Up @@ -333,6 +338,7 @@ <h4 class="txt-bold card-details-title">Proteinated Milk</h4>
</div>
</div>
</div>
<script src="scripts/docSidebar.js"></script>
</body>

</html>
12 changes: 9 additions & 3 deletions documentation/images.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ <h5><a href="../index.html" class="link-none">Gentle UI</a></h5>
</ul>
</div>
<div class="sidebar p-6">
<h4 class="text-bold">COMPONENTS</h4>
<ul class="sidebar-components">
<h4 class="text-bold g-flex-row g-flex-space-between">
<span class="sidebar-heading">COMPONENTS</span>
<span class="toggle-list">
<i class="fas fa-chevron-up"></i>
</span>
</h4>
<ul class="sidebar-components sidebar-hidden">
<li class="p-2 my-2">
<h6><a class="link-none" href="alerts.html">ALERT</a></h6>
</li>
Expand Down Expand Up @@ -65,7 +70,7 @@ <h6><a class="link-none" href="inputs.html">INPUT</a></h6>
<h6><a class="link-none" href="lists.html">LISTS</a></h6>
</li>
<li class="p-2 my-2">
<h6><a class="link-none" href="modals.html">NAVIGATION</a></h6>
<h6><a class="link-none" href="modals.html">MODALS</a></h6>
</li>
<li class="p-2 my-2">
<h6><a class="link-none" href="navigation.html">NAVIGATION</a></h6>
Expand Down Expand Up @@ -129,6 +134,7 @@ <h5 class="mb-4">COMPONENT DEMO</h5>
</div>
</div>
</div>
<script src="scripts/docSidebar.js"></script>
</body>

</html>
10 changes: 8 additions & 2 deletions documentation/inputs.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ <h5><a href="../index.html" class="link-none">Gentle UI</a></h5>
</ul>
</div>
<div class="sidebar p-6">
<h4 class="text-bold">COMPONENTS</h4>
<ul class="sidebar-components">
<h4 class="text-bold g-flex-row g-flex-space-between">
<span class="sidebar-heading">COMPONENTS</span>
<span class="toggle-list">
<i class="fas fa-chevron-up"></i>
</span>
</h4>
<ul class="sidebar-components sidebar-hidden">
<li class="p-2 my-2">
<h6><a class="link-none" href="alerts.html">ALERT</a></h6>
</li>
Expand Down Expand Up @@ -226,6 +231,7 @@ <h5 class="mb-4">COMPONENT-DEMO</h5>
</div>
</div>
</div>
<script src="scripts/docSidebar.js"></script>
</body>

</html>
10 changes: 8 additions & 2 deletions documentation/lists.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ <h5><a href="../index.html" class="link-none">Gentle UI</a></h5>
</ul>
</div>
<div class="sidebar p-6">
<h4 class="text-bold">COMPONENTS</h4>
<ul class="sidebar-components">
<h4 class="text-bold g-flex-row g-flex-space-between">
<span class="sidebar-heading">COMPONENTS</span>
<span class="toggle-list">
<i class="fas fa-chevron-up"></i>
</span>
</h4>
<ul class="sidebar-components sidebar-hidden">
<li class="p-2 my-2">
<h6><a class="link-none" href="alerts.html">ALERT</a></h6>
</li>
Expand Down Expand Up @@ -328,6 +333,7 @@ <h5 class="mb-4">COMPONENT DEMO</h5>
</div>
</div>
</div>
<script src="scripts/docSidebar.js"></script>
</body>

</html>
10 changes: 8 additions & 2 deletions documentation/modals.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ <h5><a href="../index.html" class="link-none">Gentle UI</a></h5>
</ul>
</div>
<div class="sidebar p-6">
<h4 class="text-bold">COMPONENTS</h4>
<ul class="sidebar-components">
<h4 class="text-bold g-flex-row g-flex-space-between">
<span class="sidebar-heading">COMPONENTS</span>
<span class="toggle-list">
<i class="fas fa-chevron-up"></i>
</span>
</h4>
<ul class="sidebar-components sidebar-hidden">
<li class="p-2 my-2">
<h6><a class="link-none" href="alerts.html">ALERT</a></h6>
</li>
Expand Down Expand Up @@ -142,6 +147,7 @@ <h5 class="mb-4">COMPONENT DEMO</h5>
</div>
</div>
<script src="scripts/modals.js"></script>
<script src="scripts/docSidebar.js"></script>
</body>

</html>
10 changes: 8 additions & 2 deletions documentation/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ <h5><a href="../index.html" class="link-none">Gentle UI</a></h5>
</ul>
</div>
<div class="sidebar p-6">
<h4 class="text-bold">COMPONENTS</h4>
<ul class="sidebar-components">
<h4 class="text-bold g-flex-row g-flex-space-between">
<span class="sidebar-heading">COMPONENTS</span>
<span class="toggle-list">
<i class="fas fa-chevron-up"></i>
</span>
</h4>
<ul class="sidebar-components sidebar-hidden">
<li class="p-2 my-2">
<h6><a class="link-none" href="alerts.html">ALERT</a></h6>
</li>
Expand Down Expand Up @@ -170,6 +175,7 @@ <h6 class="txt-highlight">BRAND</h6>
</div>
</div>
<script src="scripts/navigation.js"></script>
<script src="scripts/docSidebar.js"></script>
</body>

</html>
10 changes: 8 additions & 2 deletions documentation/ratings.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ <h5><a href="../index.html" class="link-none">Gentle UI</a></h5>
</ul>
</div>
<div class="sidebar p-6">
<h4 class="text-bold">COMPONENTS</h4>
<ul class="sidebar-components">
<h4 class="text-bold g-flex-row g-flex-space-between">
<span class="sidebar-heading">COMPONENTS</span>
<span class="toggle-list">
<i class="fas fa-chevron-up"></i>
</span>
</h4>
<ul class="sidebar-components sidebar-hidden">
<li class="p-2 my-2">
<h6><a class="link-none" href="alerts.html">ALERT</a></h6>
</li>
Expand Down Expand Up @@ -126,6 +131,7 @@ <h5 class="my-4">COMPONENT DEMO</h5>
</div>
</div>
</div>
<script src="scripts/docSidebar.js"></script>
</body>

</html>
6 changes: 6 additions & 0 deletions documentation/scripts/docSidebar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const toggleHeading = document.querySelector(".toggle-list");
const sidebarList = document.querySelector(".sidebar-components");
toggleHeading.addEventListener("click", () => {
sidebarList.classList.toggle("sidebar-hidden");
toggleHeading.classList.toggle("rotation");
});
10 changes: 8 additions & 2 deletions documentation/sliders.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ <h5><a href="../index.html" class="link-none">Gentle UI</a></h5>
</ul>
</div>
<div class="sidebar p-6">
<h4 class="text-bold">COMPONENTS</h4>
<ul class="sidebar-components">
<h4 class="text-bold g-flex-row g-flex-space-between">
<span class="sidebar-heading">COMPONENTS</span>
<span class="toggle-list">
<i class="fas fa-chevron-up"></i>
</span>
</h4>
<ul class="sidebar-components sidebar-hidden">
<li class="p-2 my-2">
<h6><a class="link-none" href="alerts.html">ALERT</a></h6>
</li>
Expand Down Expand Up @@ -117,6 +122,7 @@ <h5 class="my-4">COMPONENT DEMO</h5>
</div>
</div>
</div>
<script src="scripts/docSidebar.js"></script>
</body>

</html>
Loading