From: Mark Otto Date: Wed, 24 Jul 2013 06:03:57 +0000 (-0700) Subject: Update carousel vars X-Git-Tag: v3.0.0-rc1~78^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5cc1300f60ae2a8a1c21adbc83b5de874155194;p=thirdparty%2Fbootstrap.git Update carousel vars * Remove `@carousel-control-hover-color` since that's just the same as the default control color and all we change is `opacity` (it's required for specificity). * Add vars to customizer * Update customizer nav to include new section * Remove the `li` from the var names * Consolidate and simplify `text-shadow` vars --- diff --git a/_includes/nav-customize.html b/_includes/nav-customize.html index e4b2e14477..c299badc57 100644 --- a/_includes/nav-customize.html +++ b/_includes/nav-customize.html @@ -21,6 +21,7 @@
  • Breadcrumbs
  • Jumbotron
  • Modals
  • +
  • Carousel
  • List group
  • Thumbnails
  • Progress bars
  • diff --git a/customize.html b/customize.html index 8d70d04452..2ba72ba780 100644 --- a/customize.html +++ b/customize.html @@ -976,6 +976,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Jumbotron lead paragraph color

    +

    Modals

    @@ -994,6 +995,19 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

    Modal title line-height

    + + + + + + + + + + + + +

    List group

    Background

    diff --git a/less/carousel.less b/less/carousel.less index d7dfdf9f66..ff540dff75 100644 --- a/less/carousel.less +++ b/less/carousel.less @@ -93,7 +93,7 @@ // Hover/focus state &:hover, &:focus { - color: @carousel-control-hover-color; + color: @carousel-control-color; text-decoration: none; .opacity(.9); } @@ -144,7 +144,7 @@ height: 10px; margin: 1px; text-indent: -999px; - border: 1px solid @carousel-indicators-li-border-color; + border: 1px solid @carousel-indicator-border-color; border-radius: 10px; cursor: pointer; } @@ -152,7 +152,7 @@ margin: 0; width: 12px; height: 12px; - background-color: @carousel-indicators-active-bg; + background-color: @carousel-indicator-active-bg; } } @@ -169,7 +169,7 @@ padding-bottom: 20px; color: @carousel-caption-color; text-align: center; - text-shadow: @carousel-caption-text-shadow; + text-shadow: @carousel-text-shadow; & .btn { text-shadow: none; // No shadow for button elements in carousel-caption } diff --git a/less/variables.less b/less/variables.less index 6d16346b96..885ea1d400 100644 --- a/less/variables.less +++ b/less/variables.less @@ -409,15 +409,14 @@ // Carousel // ------------------------ +@carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6); + @carousel-control-color: #fff; -@carousel-control-hover-color: #fff; -@carousel-control-text-shadow: 0 1px 2px rgba(0,0,0,.6); -@carousel-indicators-active-bg: #fff; -@carousel-indicators-li-border-color: #fff; +@carousel-indicator-border-color: #fff; +@carousel-indicator-active-bg: #fff; @carousel-caption-color: #fff; -@carousel-caption-text-shadow: 0 1px 2px rgba(0,0,0,.6); // Close