-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CONCOREL-78: Basic styles for tables
- Loading branch information
Marta Pieczynska
committed
Dec 21, 2016
1 parent
8987c80
commit 028fbd3
Showing
5 changed files
with
135 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,48 @@ | ||
<table class="sg_table_demo"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th>Default</th> | ||
<th>With animated hover</th> | ||
<th>Disabled</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Button</td> | ||
<td> | ||
<button class="{{variant}}"> Button </button> | ||
</td> | ||
<td> | ||
<button class="button--animated-right {{variant}}"> Button </button> | ||
</td> | ||
<td> | ||
<button class="{{variant}}"disabled> Button </button> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>CTA</td> | ||
<td> | ||
<a href="#" class="button {{variant}}"> Call to action! </a> | ||
</td> | ||
<td> | ||
<a href="#" class="button button--animated-right {{variant}}"> Call to action! </a> | ||
</td> | ||
<td> | ||
<a href="#" class="button button--disabled {{variant}}"> Call to action! </a> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Button-like input</td> | ||
<td> | ||
<input type="button" value="Input: type button" class="{{variant}}"> | ||
</td> | ||
<td>-</td> | ||
<td> | ||
<input type="button" value="Input: type button" class="{{variant}}" disabled> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div class="table__wrapper"> | ||
<table class="sg_table_demo"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th>Default</th> | ||
<th>With animated hover</th> | ||
<th>Disabled</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Button</td> | ||
<td> | ||
<button class="{{variant}}"> Button </button> | ||
</td> | ||
<td> | ||
<button class="button--animated-right {{variant}}"> Button </button> | ||
</td> | ||
<td> | ||
<button class="{{variant}}"disabled> Button </button> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>CTA</td> | ||
<td> | ||
<a href="#" class="button {{variant}}"> Call to action! </a> | ||
</td> | ||
<td> | ||
<a href="#" class="button button--animated-right {{variant}}"> Call to action! </a> | ||
</td> | ||
<td> | ||
<a href="#" class="button button--disabled {{variant}}"> Call to action! </a> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Button-like input</td> | ||
<td> | ||
<input type="button" value="Input: type button" class="{{variant}}"> | ||
</td> | ||
<td>-</td> | ||
<td> | ||
<input type="button" value="Input: type button" class="{{variant}}" disabled> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.table__wrapper { | ||
width: 100%; | ||
overflow: auto; | ||
} | ||
|
||
table { | ||
text-align: left; | ||
width: 100%; | ||
min-width: $sizeBreakpointSmall; | ||
} | ||
|
||
th { | ||
color: $colorMetallicBlue; | ||
font-weight: $fontWeightBlack; | ||
} | ||
|
||
th, | ||
td { | ||
padding: 16px 16px 16px 0; | ||
} | ||
|
||
thead { | ||
border-bottom: 4px solid $colorMetallicBlue; | ||
} | ||
|
||
tr { | ||
border-bottom: 2px solid $colorPaleGrey; | ||
|
||
&:last-child { | ||
border: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
@import '_headings'; | ||
@import '_text'; | ||
@import '_table'; | ||
|
||
|
||
*:focus { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters