4

我正在使用 twitter 引导选项卡,我只想加载它们所需的 CSS,我应该加载什么?现在我正在使用

  @import "reset.less";

  // Core variables and mixins
  @import "variables.less"; // Modify this for custom colors, font-sizes, etc

  @import "mixins.less";

  // Grid system and page structure
  //@import "scaffolding.less";
  //@import "grid.less";
  //@import "layouts.less";

  // Base CSS
  @import "type.less";
  //@import "code.less";
  //@import "forms.less";
  //@import "tables.less";

  // Components: common
  //@import "sprites.less";
  //@import "dropdowns.less";
  @import "wells.less";
  //@import "component-animations.less";
  //@import "close.less";

  // Components: Buttons & Alerts
  @import "buttons.less";
  //@import "button-groups.less";
  //@import "alerts.less"; // Note: alerts share common CSS with buttons and thus have styles in buttons.less

  // Components: Nav
  @import "navs.less";
  @import "navbar.less";
  //@import "breadcrumbs.less";
  //@import "pagination.less";
  //@import "pager.less";

  // Components: Popovers
  //@import "modals.less";
  //@import "tooltip.less";
  //@import "popovers.less";

  // Components: Misc
  //@import "thumbnails.less";
  //@import "labels.less";
  //@import "badges.less";
  //@import "progress-bars.less";
  //@import "accordion.less";
  //@import "carousel.less";
  @import "hero-unit.less";

  // Utility classes
  @import "utilities.less"; // Has to be last to override when necessary

我需要更多吗?

4

2 回答 2

2

我认为这就足够了,将这些较少的文件用于所有类型的导航和选项卡

navs.less, mixin.less, 

但这也取决于标签的样式,如果可能的话,请告诉我样式

于 2012-05-04T09:48:55.333 回答
0

即使这是旧的并且已经回答,如果有人偶然发现了一些你真正需要的 google-fu,如果你无论如何都要自己设计它们,那么下面是。

.tab-content {
    > .tab-pane {
        display: none;
        visibility: hidden;
    }
    > .active {
        display: block;
        visibility: visible;
    }
}
于 2015-03-03T12:25:42.080 回答