UNPKG

zui

Version:

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

60 lines (52 loc) 1.6 kB
/// ======================================================================== /// Bootstrap: panels.fix.less /// https://github.com/twbs/bootstrap/blob/master/less/panels.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 /// ======================================================================== // List groups in panels // // By default, space out list group content from panel headings to account for // any kind of custom content between the two. .panel { > .list-group, > .panel-collapse > .list-group { margin-bottom: 0; .list-group-item { border-width: 1px 0; border-radius: 0; } // Add border top radius for first one &:first-child { .list-group-item:first-child { border-top: 0; .border-top-radius((@panel-border-radius - 1)); } } // Add border bottom radius for last one &:last-child { .list-group-item:last-child { border-bottom: 0; .border-bottom-radius((@panel-border-radius - 1)); } } } > .panel-heading + .panel-collapse > .list-group { .list-group-item:first-child { .border-top-radius(0); } } } // Collapse space between when there's no additional content. .panel-heading + .list-group { .list-group-item:first-child { border-top-width: 0; } } .list-group + .panel-footer { border-top-width: 0; }