Introduce color variables
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
b34c6860be
commit
6d5d1b9851
35 changed files with 696 additions and 909 deletions
74
assets/styles/components/tables.scss
Normal file
74
assets/styles/components/tables.scss
Normal file
|
@ -0,0 +1,74 @@
|
|||
table {
|
||||
border-radius: 0.1rem;
|
||||
border: 1px solid $border-color;
|
||||
min-width: 10rem;
|
||||
padding: 0.1rem;
|
||||
thead {
|
||||
tr {
|
||||
background: $accent-color;
|
||||
color: $text-over-accent-color;
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
height: 40px !important;
|
||||
color: $text-color;
|
||||
&:nth-child(odd) {
|
||||
background-color: $bg-primary;
|
||||
}
|
||||
&:nth-child(even) {
|
||||
background-color: rgba($accent-color, 0.05);
|
||||
}
|
||||
}
|
||||
}
|
||||
th,
|
||||
td {
|
||||
padding-top: 0.2rem;
|
||||
padding-bottom: 0.2rem;
|
||||
padding-left: 0.5rem;
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.gist {
|
||||
table {
|
||||
border-radius: unset;
|
||||
background: unset;
|
||||
border: unset;
|
||||
padding: unset;
|
||||
|
||||
tr {
|
||||
height: unset !important;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: unset;
|
||||
border-left: unset;
|
||||
border-bottom: unset;
|
||||
}
|
||||
td,
|
||||
tc {
|
||||
border-right: 1px solid $border-color;
|
||||
}
|
||||
|
||||
thead {
|
||||
tr {
|
||||
background: unset;
|
||||
color: unset;
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
&:nth-child(odd) {
|
||||
background-color: unset;
|
||||
}
|
||||
&:hover {
|
||||
background: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue