From acc4acbcf1d485621fa1663cd34eee3e4a34e4dd Mon Sep 17 00:00:00 2001 From: Silke Pisulla Date: Wed, 11 Jan 2017 15:20:15 +0100 Subject: [PATCH] new var @fix_border-radius for no custom border-radius --- css/area_main-sidebar.less | 3 ++- css/area_sidetools.less | 5 +++-- css/area_togglelink.less | 3 ++- css/base.less | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/css/area_main-sidebar.less b/css/area_main-sidebar.less index fbb3cea..4728b1f 100755 --- a/css/area_main-sidebar.less +++ b/css/area_main-sidebar.less @@ -119,7 +119,7 @@ position: relative; display: block; border: 1px solid transparent; - border-radius: 2px; + border-radius: @fix_border-radius; margin-bottom: -.3rem; padding: .6em 0 .6em (@icon-size + 1); transition: @transition color, @transition background-color, @transition border-color; @@ -181,6 +181,7 @@ &::before { background-color: @color-site-bg; + border-radius: @fix_border-radius 0 0 @fix_border-radius; } &::after { diff --git a/css/area_sidetools.less b/css/area_sidetools.less index 25fdd19..63872f5 100755 --- a/css/area_sidetools.less +++ b/css/area_sidetools.less @@ -129,7 +129,7 @@ position: relative; display: block; border: 1px solid transparent; - border-radius: 2px; + border-radius: @fix_border-radius; padding: .6em 0 .6em (@icon-size + 1); transition: @transition color, @transition background-color, @transition border-color; @@ -190,6 +190,7 @@ &::before { background-color: @color-site-bg; + border-radius: @fix_border-radius 0 0 @fix_border-radius; } &::after { @@ -243,7 +244,7 @@ overflow-y: auto; background-color: @color-content-bg; border: 1px solid @button_background; - border-radius: 2px; + border-radius: @fix_border-radius; font-size: .8rem; margin-top: .1rem; padding: .3rem .6em; diff --git a/css/area_togglelink.less b/css/area_togglelink.less index a344f70..9b10bc3 100644 --- a/css/area_togglelink.less +++ b/css/area_togglelink.less @@ -22,7 +22,7 @@ height: 100%; background-color: @button_background; border: solid 1px @button_background; - border-radius: 2px 0 0 2px; + border-radius: @fix_border-radius 0 0 @fix_border-radius; color: @button_color; text-decoration: none; text-align: center; @@ -51,6 +51,7 @@ a { background-color: @button_background; border-color: @button_background; + border-radius: 0 @fix_border-radius @fix_border-radius 0; &:hover, &:focus, diff --git a/css/base.less b/css/base.less index d5c26de..955cef8 100755 --- a/css/base.less +++ b/css/base.less @@ -12,6 +12,7 @@ @background_page-header: __background_page-header__; @border-radius: __default_border_radius__; +@fix_border-radius: 2px; @font_family_screen: __font_family_screen__;