Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/ca vertical promise #38

Merged
merged 4 commits into from
Oct 30, 2020
Merged
Show file tree
Hide file tree
Changes from 2 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
49 changes: 49 additions & 0 deletions docs/docs/vertical-promise-tabs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
id: vertical-promise-tabs
title: Vertical Promise Tabs
sidebar_label: Vertical Promise Tabs
---

``` html live
<>
<div class="lil-flex">
<div class="lil-w-1/3">
<ul class="lil-vertical-promise-tabs">
<li class="lil-promise-tab">
<a class="lil-flex lil-items-center">
<div class="lil-w-1/5">
<img src="https://assets1.cleartax-cdn.com/cleartax/images/1602839421_security_database_icon.png"/>
</div>
<div class="lil-w-4/5">
<h6 class="sm:lil-text-s-20"> Saving for your clients </h6>
</div>
</a>
</li>
<li class="lil-promise-tab lil-promise-tab-active">
<a class="lil-flex lil-items-center">
<div class="lil-w-1/5">
<img src="https://assets1.cleartax-cdn.com/cleartax/images/1602839421_security_database_icon.png"/>
</div>
<div class="lil-w-4/5">
<h6 class="sm:lil-text-s-20"> Saving for your clients </h6>
</div>
</a>
</li>
<li class="lil-promise-tab">
<a class="lil-flex lil-items-center">
<div class="lil-w-1/5">
<img src="https://assets1.cleartax-cdn.com/cleartax/images/1602839421_security_database_icon.png"/>
</div>
<div class="lil-w-4/5">
<h6 class="sm:lil-text-s-20"> Saving for your clients </h6>
</div>
</a>
</li>
</ul>
</div>
<div class="lil-w-2/3 lil-items-center lil-flex lil-justify-center">
<h1>Content</h1>
</div>
</div>
</>
```
9 changes: 8 additions & 1 deletion docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ module.exports = {
items: ["promise-h", "promise-v"],
},
"reinforcement",
"tabs",
{
type: "category",
label: "Tabs",
items: [
"tabs",
"vertical-promise-tabs"
]
},
{
type: "category",
label: "Typography",
Expand Down
21 changes: 21 additions & 0 deletions src/components/Tabs/verticalPromiseTabs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.lil-vertical-promise-tabs{
@apply lil-list-none lil-overflow-x-auto lil-sticky;
anshul-pinto0410 marked this conversation as resolved.
Show resolved Hide resolved
}
.lil-vertical-promise-tabs > .lil-promise-tab{
min-height:100px;
@apply lil-bg-grey-100 lil-opacity-50 lil-p-5 lil-outline-none lil-flex lil-whitespace-normal lil-rounded-xl lil-cursor-pointer;
}

.lil-vertical-promise-tabs .lil-promise-tab-active{
@apply lil-opacity-100 lil-bg-blue-100 lil-bg-opacity-25;
}

@screen sm {
.lil-vertical-promise-tabs {
@apply lil-flex lil-overflow-x-auto;
}

.lil-vertical-promise-tabs > .lil-promise-tab{
min-width: 300px;
}
}
2 changes: 2 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@
@import "./components/Common/navbar.css";
@import "./components/Common/caret.css";
@import "./components/SideNav/sidenav.css";
@import "./components/Tabs/verticalPromiseTabs.css";