From: Chris Rebert Date: Mon, 16 Dec 2013 02:13:50 +0000 (-0800) Subject: copyediting X-Git-Tag: v3.1.0~148^2^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be508e043c2a5f53b352066a1628693adfa7755e;p=thirdparty%2Fbootstrap.git copyediting --- diff --git a/css.html b/css.html index 4220b998cc..7f813df57b 100644 --- a/css.html +++ b/css.html @@ -3006,7 +3006,7 @@ a { {% endhighlight %}

Box (Drop) shadows

-

If your target audience is using the latest and greatest browsers and devices, be sure to just use the box-shadow property on it's own. If you need support for older Android (pre-v4) and iOS devices (pre-iOS 5), use of the mixin to pick up the required -webkit prefix.

+

If your target audience is using the latest and greatest browsers and devices, be sure to just use the box-shadow property on its own. If you need support for older Android (pre-v4) and iOS devices (pre-iOS 5), use the mixin to pick up the required -webkit prefix.

Be sure to use rgba() colors in your box shadows so they blend as seamlessly as possible with backgrounds.

{% highlight css %} .box-shadow(@shadow: 0 1px 3px rgba(0,0,0,.25)) { diff --git a/javascript.html b/javascript.html index d83358a397..9dcef28f83 100644 --- a/javascript.html +++ b/javascript.html @@ -2053,7 +2053,7 @@ $('#myCarousel').on('slide.bs.carousel', function () {

The affix plugin toggles between three classes, each representing a particular state: .affix, .affix-top, and .affix-bottom. You must provide the styles for these classes yourself (independent of this plugin) to handle the actual positions.

Here's how the affix plugin works:

    -
  1. To start, the plugin adds .affix-top to indicate the element is in it's top-most position. At this point no CSS positioning is required.
  2. +
  3. To start, the plugin adds .affix-top to indicate the element is in its top-most position. At this point no CSS positioning is required.
  4. Scrolling past the element you want affixed should trigger the actual affixing. This is where .affix replaces .affix-top and sets position: fixed; (provided by Bootstrap's code CSS).
  5. If a bottom offset is defined, scrolling past that should replace .affix with .affix-bottom. Since offsets are optional, setting one requires you to set the appropriate CSS. In this case, add position: absolute; when necessary. The plugin uses the data attribute or JavaScript option to determine where to position the element from there.
diff --git a/less/forms.less b/less/forms.less index 530257499f..aefa5a462c 100644 --- a/less/forms.less +++ b/less/forms.less @@ -265,7 +265,7 @@ input[type="checkbox"], // Feedback icon (requires .glyphicon classes) .form-control-feedback { position: absolute; - top: (@line-height-computed + 5); // Height of the `label` and it's margin + top: (@line-height-computed + 5); // Height of the `label` and its margin right: 0; display: block; width: @input-height-base; diff --git a/less/navbar.less b/less/navbar.less index d96f85e306..621772fbbf 100644 --- a/less/navbar.less +++ b/less/navbar.less @@ -212,7 +212,7 @@ // Navbar nav links // -// Builds on top of the `.nav` components with it's own modifier class to make +// Builds on top of the `.nav` components with its own modifier class to make // the nav the full height of the horizontal nav (above 768px). .navbar-nav { diff --git a/less/navs.less b/less/navs.less index e4ac144595..9e729b39fe 100644 --- a/less/navs.less +++ b/less/navs.less @@ -91,7 +91,7 @@ } } - // Active state, and it's :hover to override normal :hover + // Active state, and its :hover to override normal :hover &.active > a { &, &:hover, diff --git a/less/panels.less b/less/panels.less index 1b72cebd16..eefaf2e871 100644 --- a/less/panels.less +++ b/less/panels.less @@ -120,7 +120,7 @@ } } -// Within heading, strip any `h*` tag of it's default margins for spacing. +// Within heading, strip any `h*` tag of its default margins for spacing. .panel-title { margin-top: 0; margin-bottom: 0; diff --git a/less/type.less b/less/type.less index 9d032b2681..5373975d2f 100644 --- a/less/type.less +++ b/less/type.less @@ -126,7 +126,7 @@ cite { font-style: normal; } // For now we'll leave these alongside the text classes until v4 when we can // safely shift things around (per SemVer rules). .bg-primary { - // Given the contrast here, this is the only class to have it's color inverted + // Given the contrast here, this is the only class to have its color inverted // automatically. color: #fff; background-color: @brand-primary;