Skip to content

Commit

Permalink
fix(table): added background-linear and box-shadow again like requested
Browse files Browse the repository at this point in the history
  • Loading branch information
guastallaigor committed Dec 7, 2018
1 parent 65ba0c3 commit 203a49e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 24 deletions.
22 changes: 11 additions & 11 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.

27 changes: 16 additions & 11 deletions scss/elements/tables.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.table {
display: block;
table-layout: fixed;
background-color: #fff;
@mixin thsAndTdsBoxShadow($color) {
Expand Down Expand Up @@ -32,30 +31,36 @@
position: relative;
color: $background-color;
background-color: $base-color;
box-shadow: 4px -4px $base-color, -4px -4px $base-color, -4px 4px $base-color,
4px 4px $base-color;

&::before,
&::after {
position: absolute;
z-index: -1;
content: "";
}

&::before {
top: 2px;
right: 2px;
bottom: 2px;
left: 2px;
background-color: $base-color;
}

&::after {
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
border: 4px solid #fff;
}

&::before {
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;
background-position: 100% 0, 100% 0, 0 100%, 0 100%;
background-size: calc(100% - 4px) 4px, 4px calc(100% - 4px);
}

@include thsAndTdsBoxShadow(#fff);
}
}

0 comments on commit 203a49e

Please sign in to comment.