Skip to content

Commit

Permalink
fix(table): changed hex to variable and removed after
Browse files Browse the repository at this point in the history
  • Loading branch information
guastallaigor committed Dec 7, 2018
2 parents dee32ff + 0b5287c commit 5c25c91
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 35 deletions.
15 changes: 2 additions & 13 deletions css/nes.css

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

2 changes: 1 addition & 1 deletion css/nes.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/nes.min.css

Large diffs are not rendered by default.

28 changes: 8 additions & 20 deletions scss/elements/tables.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.table {
table-layout: fixed;
background-color: #fff;
background-color: $background-color;
@mixin thsAndTdsBoxShadow($color) {
th,
td {
Expand Down Expand Up @@ -34,33 +34,21 @@
box-shadow: 4px -4px $base-color, -4px -4px $base-color, -4px 4px $base-color,
4px 4px $base-color;

&::before,
&::after {
position: absolute;
content: "";
}

&::after {
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
}

&::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: linear-gradient(to left, transparent 4px, #fff 4px) no-repeat,
linear-gradient(to bottom, transparent 4px, #fff 4px) no-repeat,
linear-gradient(to right, transparent 4px, #fff 4px) no-repeat,
linear-gradient(to top, transparent 4px, #fff 4px) no-repeat;
content: "";
background: linear-gradient(to left, transparent 4px, $background-color 4px) no-repeat,
linear-gradient(to bottom, transparent 4px, $background-color 4px) no-repeat,
linear-gradient(to right, transparent 4px, $background-color 4px) no-repeat,
linear-gradient(to top, transparent 4px, $background-color 4px) no-repeat;
background-position: 100% 0, 100% 0, 0 100%, 0 100%;
background-size: calc(100% - 4px) 4px, 4px calc(100% - 4px);
}

@include thsAndTdsBoxShadow(#fff);
@include thsAndTdsBoxShadow($background-color);
}
}

0 comments on commit 5c25c91

Please sign in to comment.