Skip to content

Commit

Permalink
Feat/ca vertical promise (#38)
Browse files Browse the repository at this point in the history
* feat: vertical promise tabs

* feat: cherry pick

* feat: resolved commit added blue color for tab

Co-authored-by: anshul-pinto0410 <[email protected]>
Co-authored-by: Pritam Sinha <[email protected]>
  • Loading branch information
3 people authored Oct 30, 2020
1 parent be40531 commit 853d9a4
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 1 deletion.
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-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-50;
}

@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";

1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
colors: {
transparent: "transparent",
blue: {
50: "#F1F7FF",
100: "#D0E4FE",
150: "#CFE4FF",
200: "#8ABBFD",
Expand Down

0 comments on commit 853d9a4

Please sign in to comment.