scss: use negative margins for $cell-title-cover-border (#36582)

This commit is contained in:
Thomas JUND 2019-10-01 15:40:27 +02:00
parent 92fb1e0d58
commit 23ea0cb0e6
2 changed files with 7 additions and 5 deletions

View File

@ -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;

View File

@ -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;
}