Skip to content

Commit

Permalink
Added tables.scss. Changed nes.css, map and min. Added tables.scss to…
Browse files Browse the repository at this point in the history
… _index.scss.
  • Loading branch information
guastallaigor committed Nov 29, 2018
1 parent 66bd33a commit 3277cae
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 34 deletions.
59 changes: 30 additions & 29 deletions css/nes.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion css/nes.css.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions css/nes.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ <h2 class="title">Balloons</h2>
</div>
</section>

<section class="table container with-title">
<section class="container with-title">
<h2 class="title">Table</h2>
<table class="is-bordered is-centered" style="margin:15px 4px 5px 4px">
<table class="table is-bordered is-centered" style="margin:15px 4px 5px 4px">
<thead>
<tr>
<th>Table.is-bordered</th>
Expand Down
1 change: 1 addition & 0 deletions scss/elements/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
@import "radios.scss";
@import "checkboxes.scss";
@import "balloons.scss";
@import "tables.scss";
36 changes: 36 additions & 0 deletions scss/elements/tables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.table {
&.is-centered th {
text-align: center;
}
&.is-bordered {
box-shadow: 0 -4px #212529, 0 -8px #fff, 4px 0 #212529, 4px -4px #fff, 8px 0 #fff, 0 4px #212529,
0 8px #fff, -4px 0 #212529, -4px 4px #fff, -8px 0 #fff, -4px -4px #fff, 4px 4px #fff;

th,
td {
padding: 8.5px;
}

tr th {
box-shadow: 0 -4px #212529, 0 -8px #fff, 0 0 #212529, 4px -4px #fff, 8px 0 #fff, 0 4px #212529,
0 8px #fff, -4px 0 #212529, -4px 4px #fff, -8px 0 #fff, -4px -4px #fff, 4px 4px #fff;
}

tr th:last-child {
box-shadow: 0 -4px #212529, 0 -8px #fff, 4px 0 #212529, 4px -4px #fff, 8px 0 #fff,
0 4px #212529, 0 8px #fff, -4px 0 #212529, -4px 4px #fff, -8px 0 #fff, -4px -4px #fff,
4px 4px #fff;
}

tr td {
box-shadow: 0 4px #212529, 4px 6px #fff, 1px 0 #212529, 4px 4px #fff, 1px 0 #fff,
-4px 4px #212529, 4px 4px #fff, -4px 0 #212529, -2px 8px #fff, 0 4px #fff, 1px 0 #fff,
0 0 #fff;
}

tr td:last-child {
box-shadow: 0 0 #212529, 0 -8px #fff, 4px 0 #212527, 4px 0 #fff, 8px 0 #fff, 0 4px #212529,
0 -8px #fff, -4px 0 #212529, 0 4px #fff, -4px 0 #fff, 8px 0 #fff, -4px 0 #fff;
}
}
}

0 comments on commit 3277cae

Please sign in to comment.