diff options
author | Jouni Koivuviita <jouni@vaadin.com> | 2014-08-15 12:23:49 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2014-08-15 13:33:41 +0000 |
commit | e75aa11368629324e0f06708cce12a4d7d4e8d9c (patch) | |
tree | 5c9ee16b8e146506317be08fcd04fabc8573c0d6 /WebContent/VAADIN | |
parent | 12a588b53e53bc883be08298554a6adeedc5946b (diff) | |
download | vaadin-framework-e75aa11368629324e0f06708cce12a4d7d4e8d9c.tar.gz vaadin-framework-e75aa11368629324e0f06708cce12a4d7d4e8d9c.zip |
Remove unnecessary negative border radius declarations from menu bar (Valo)
Change-Id: I3739cdacf6a117cd0d75cab3566a82ee0fedd6bd
Diffstat (limited to 'WebContent/VAADIN')
-rw-r--r-- | WebContent/VAADIN/themes/valo/components/_menubar.scss | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/WebContent/VAADIN/themes/valo/components/_menubar.scss b/WebContent/VAADIN/themes/valo/components/_menubar.scss index 7d7e854989..f03bc3d022 100644 --- a/WebContent/VAADIN/themes/valo/components/_menubar.scss +++ b/WebContent/VAADIN/themes/valo/components/_menubar.scss @@ -126,21 +126,25 @@ margin-right: 1px; } - $br: $v-border-radius - $border-width - 1px; + $br: max(0, $v-border-radius - $border-width); &:first-child { border-left-width: 0; - border-radius: $br 0 0 $br; + @if $v-border-radius > 0 { + border-radius: $br 0 0 $br; + } } &:last-child { - border-radius: 0 $br $br 0; - margin-right: -$border-width; + @if $v-border-radius > 0 { + border-radius: 0 $br $br 0; + } + border-right-width: 0; } &:first-child:last-child { - border-radius: $br; - border-right-width: 0; - margin-right: 0; + @if $v-border-radius > 0 { + border-radius: $br; + } } &:before { |