Fix table border-radius, resolve #154
This commit is contained in:
parent
a33fcb5e59
commit
7379e6332f
1 changed files with 36 additions and 0 deletions
|
@ -160,6 +160,22 @@ table {
|
|||
tbody tr:first-child td {
|
||||
border-top: 0;
|
||||
}
|
||||
thead tr:first-child th {
|
||||
&:first-child{
|
||||
border-top-left-radius: var(--universal-border-radius);
|
||||
}
|
||||
&:last-child{
|
||||
border-top-right-radius: var(--universal-border-radius);
|
||||
}
|
||||
}
|
||||
tbody tr:last-child td {
|
||||
&:first-child{
|
||||
border-bottom-left-radius: var(--universal-border-radius);
|
||||
}
|
||||
&:last-child{
|
||||
border-bottom-right-radius: var(--universal-border-radius);
|
||||
}
|
||||
}
|
||||
}
|
||||
table.#{$table-horizontal-name} {
|
||||
border: 0;
|
||||
|
@ -219,6 +235,26 @@ table {
|
|||
}
|
||||
}
|
||||
}
|
||||
@else {
|
||||
table {
|
||||
thead tr:first-child th {
|
||||
&:first-child{
|
||||
border-top-left-radius: var(--universal-border-radius);
|
||||
}
|
||||
&:last-child{
|
||||
border-top-right-radius: var(--universal-border-radius);
|
||||
}
|
||||
}
|
||||
tbody tr:last-child td {
|
||||
&:first-child{
|
||||
border-bottom-left-radius: var(--universal-border-radius);
|
||||
}
|
||||
&:last-child{
|
||||
border-bottom-right-radius: var(--universal-border-radius);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Mobile
|
||||
@media screen and (max-width: #{$table-mobile-breakpoint - 1px}){
|
||||
@if $_include-horizontal-table {
|
||||
|
|
Loading…
Reference in a new issue