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: new xl tick- button rnd- table #46

Merged
merged 6 commits into from
Nov 12, 2020
Merged
Show file tree
Hide file tree
Changes from 5 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
5 changes: 5 additions & 0 deletions docs/docs/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,10 @@ sidebar_label: Button
<div class="lil-btn-round lil-text-font-500 lil-mx-4">L</div>
<div class="lil-btn-round lil-text-font-500">R</div>
</div>

<div class="lil-flex lil-pt-5">
<div class="lil-btn-round-white lil-text-font-500 lil-mx-4">L</div>
<div class="lil-btn-round-white lil-text-font-500">R</div>
</div>
</>
```
28 changes: 28 additions & 0 deletions docs/docs/table.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
id: table
title: Table
sidebar_label: Table
---

#### Rounded Corner table
```html live
<>
<table class="lil-table-round lil-border-spacing-0 lil-border-separate">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
</>
```
1 change: 1 addition & 0 deletions docs/docs/tickmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ sidebar_label: Tick Mark
<div class="lil-tick lil-border-white"></div>
</div>

<div class="lil-tick-xl"></div>
</div>
</>
```
5 changes: 5 additions & 0 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ module.exports = {
items: ["promise-h", "promise-v"],
},
"reinforcement",
{
type: "category",
label: "Table",
items: ["table"]
},
{
type: "category",
label: "Tabs",
Expand Down
9 changes: 8 additions & 1 deletion src/components/Button/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
@apply lil-w-16 lil-h-16 lil-rounded-full lil-bg-grey-150 lil-cursor-pointer lil-items-center lil-justify-center lil-flex lil-text-s-24;
}

.lil-btn-round-white {
pritam248 marked this conversation as resolved.
Show resolved Hide resolved
@apply lil-w-16 lil-h-16 lil-rounded-full lil-bg-white lil-cursor-pointer lil-items-center lil-border-sm lil-border-font-500 lil-justify-center lil-flex lil-text-s-24;
}

.lil-btn-round-white:hover,
.lil-btn-round-white:focus,
.lil-btn-round:hover,
.lil-btn-round:focus {
@apply lil-bg-blue-350 lil-text-white lil-outline-none;
@apply lil-bg-blue-350 lil-text-white lil-outline-none lil-border-none;
}

7 changes: 7 additions & 0 deletions src/components/Common/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ select {
@apply lil-rounded-lg lil-p-3;
}

/*
* - border-spacing not supported in tailwind
*/
.lil-border-spacing-0 {
border-spacing: 0;
}

@screen xl {
.lil-container {
@apply lil-w-full;
Expand Down
4 changes: 4 additions & 0 deletions src/components/Icons/tick.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
top: -2px;
@apply lil-relative lil-w-1 lil-h-2 lil-border-b-sm lil-border-r-sm lil-border-font-200 lil-transform lil-rotate-45 lil-inline-block;
}

.lil-tick-xl{
@apply lil-relative lil-w-2 lil-h-4 lil-border-b-md lil-border-r-md lil-border-green-200 lil-transform lil-rotate-45 lil-inline-block
}
anshul-pinto0410 marked this conversation as resolved.
Show resolved Hide resolved
18 changes: 18 additions & 0 deletions src/components/Table/table.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* to make rounded corners by assigning border-radius for each corner cell
*/
.lil-table-round tr:first-child th:first-child {
@apply lil-rounded-tl-xl;
}

.lil-table-round tr:first-child th:last-child {
@apply lil-rounded-tr-xl;
}

.lil-table-round tr:last-child td:first-child {
@apply lil-rounded-bl-xl;
}

.lil-table-round tr:last-child td:last-child {
@apply lil-rounded-br-xl;
}
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@import "./components/Promise/promise.css";
@import "./components/Reinforcement/reinforcement.css";
@import "./components/SideNav/sidenav.css";
@import "./components/Table/table.css";
@import "./components/Tabs/tabs.css";
@import "./components/Tabs/lineTab.css";
@import "./components/Tabs/verticalPromiseTabs.css";
Expand Down