scss: use negative margins for $cell-title-cover-border (#36582)
This commit is contained in:
parent
92fb1e0d58
commit
23ea0cb0e6
|
@ -115,11 +115,7 @@ div#services > ul > li > strong > a,
|
|||
@extend %title;
|
||||
position: relative;
|
||||
@if $cell-title-cover-border == true {
|
||||
top: -1px;
|
||||
left: -1px;
|
||||
width: calc(100% + 2px);
|
||||
} else {
|
||||
width: 100%;
|
||||
margin: #{extract-width($cell-border) * -1};
|
||||
}
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
|
|
|
@ -27,3 +27,9 @@ $black: #000000 !default;
|
|||
@each $part in $border { @if type-of($part) == color { @return $part; } }
|
||||
@return null;
|
||||
}
|
||||
|
||||
@function extract-width($border){
|
||||
@each $part in $border {
|
||||
@if type-of($part) == number { @return $part; } }
|
||||
@return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue