UNPKG

zui

Version:

一个基于 Bootstrap 深度定制开源前端实践方案,帮助你快速构建现代跨屏应用。

70 lines (62 loc) 1.79 kB
/// ======================================================================== /// Bootstrap: buttons.vertical.less /// https://github.com/twbs/bootstrap/blob/master/less/button-groups.less /// /// ZUI: The file has been changed in ZUI. It will not keep update with the /// Bootsrap version in the future. /// http://openzui.com /// ======================================================================== /// Bootrap: Copyright 2011-2016 Twitter, Inc. Licensed under MIT /// ======================================================================== // Vertical button groups .btn-group-vertical { &:extend(.btn-group all); > .btn, > .btn-group, > .btn-group > .btn { display: block; float: none; width: 100%; max-width: 100%; } // Clear floats so dropdown menus can be properly placed > .btn-group { &:extend(.clearfix all); > .btn { float: none; } } > .btn + .btn, > .btn + .btn-group, > .btn-group + .btn, > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } } .btn-group-vertical > .btn { &:not(:first-child):not(:last-child) { border-radius: 0; } &:first-child:not(:last-child), &:first-child:not(:last-child):not(.dropdown-toggle) { .border-top-radius(@btn-border-radius-base); .border-bottom-radius(0); } &:last-child:not(:first-child) { .border-top-radius(0); .border-bottom-radius(@btn-border-radius-base); } } .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group-vertical > .btn-group:first-child:not(:last-child) { > .btn:last-child, > .dropdown-toggle { .border-bottom-radius(0); } } .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { .border-top-radius(0); }