mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-31 17:51:46 +02:00
Changes requested made like adding table-layout property, usage of the $base-color variable, added word-wrap property and removed the box-shadow unused values.
This commit is contained in:
@@ -1,23 +1,29 @@
|
||||
.table {
|
||||
table-layout: fixed;
|
||||
background-color: #fff;
|
||||
|
||||
&.is-centered th {
|
||||
text-align: center;
|
||||
}
|
||||
&.is-bordered {
|
||||
box-shadow: 4px 0 #212529, 0 -4px #212529, -4px 0 #212529, 0 4px #212529;
|
||||
box-shadow: 4px 0 $base-color, 0 -4px $base-color, -4px 0 $base-color, 0 4px $base-color;
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: 8.5px;
|
||||
padding: 0.5rem;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
tr th {
|
||||
box-shadow: 0 0 #212529, 0 0 #212529, -4px 0 #212529, 0 0 #212529;
|
||||
}
|
||||
|
||||
tr td {
|
||||
box-shadow: 0 0 #212529, 0 -4px #212529, 0 0 #212529, -4px 0 #212529;
|
||||
tr {
|
||||
th + th {
|
||||
box-shadow: -4px 0 $base-color;
|
||||
}
|
||||
td {
|
||||
box-shadow: 0 -4px $base-color;
|
||||
}
|
||||
td:not(:first-child) {
|
||||
box-shadow: -4px 0 $base-color, 0 -4px $base-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user