]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use CSS3 pseudo elements in documentation
authorvsn4ik <vsn4ik@gmail.com>
Fri, 8 Sep 2017 00:06:02 +0000 (03:06 +0300)
committerMark Otto <markd.otto@gmail.com>
Sun, 10 Sep 2017 00:01:48 +0000 (17:01 -0700)
docs/4.0/components/forms.md
docs/4.0/content/reboot.md
docs/4.0/examples/blog/blog.css
docs/4.0/getting-started/introduction.md

index c8e0f2bd77e7ecfcefaea5ea0e27c61fbe59c0e5..1fe14ba1988f0facb8cff082b261e9f0cef0aee4 100644 (file)
@@ -1004,8 +1004,8 @@ Here's how it works:
 
 - We wrap the `<input>` in a `<label>` so the custom control properly triggers the file browser.
 - We hide the default file `<input>` via `opacity`.
-- We use `:after` to generate a custom background and directive (*Choose file...*).
-- We use `:before` to generate and position the *Browse* button.
+- We use `::after` to generate a custom background and directive (*Choose file...*).
+- We use `::before` to generate and position the *Browse* button.
 - We declare a `height` on the `<input>` for proper spacing for surrounding content.
 
 In other words, it's an entirely custom element, all generated via CSS.
index 6fa38a3819faee443de3a53940e306d6f19f8d94..f69d2519ec8667a63f6671fcde0b9901c8b54f2d 100644 (file)
@@ -22,7 +22,7 @@ Here are our guidelines and reasons for choosing what to override in Reboot:
 
 The `<html>` and `<body>` elements are updated to provide better page-wide defaults. More specifically:
 
-- The `box-sizing` is globally set on every element—including `*:before` and `*:after`, to `border-box`. This ensures that the declared width of element is never exceeded due to padding or border.
+- The `box-sizing` is globally set on every element—including `*::before` and `*::after`, to `border-box`. This ensures that the declared width of element is never exceeded due to padding or border.
   - No base `font-size` is declared on the `<html>`, but `16px` is assumed (the browser default). `font-size: 1rem` is applied on the `<body>` for easy responsive type-scaling via media queries while respecting user preferences and ensuring a more accessible approach.
 - The `<body>` also sets a global `font-family`, `line-height`, and `text-align`. This is inherited later by some form elements to prevent font inconsistencies.
 - For safety, the `<body>` has a declared `background-color`, defaulting to `#fff`.
index 5fed564246d89f07aa8f6029af497465f7a3406a..18db4290e27b464432c81937839926b6fb24e487 100644 (file)
@@ -62,7 +62,7 @@ h6, .h6 {
 .nav-link.active {
   color: #fff;
 }
-.nav-link.active:after {
+.nav-link.active::after {
   position: absolute;
   bottom: 0;
   left: 50%;
index 08dd8320997bf8efd222f87b3bd384838fe9c78d..4035ae8f4ae9fc4503e281175176f6edbea40d60 100644 (file)
@@ -97,7 +97,7 @@ On the rare occasion you need to override it, use something like the following:
 }
 {% endhighlight %}
 
-With the above snippet, nested elements—including generated content via `:before` and `:after`—will all inherit the specified `box-sizing` for that `.selector-for-some-widget`.
+With the above snippet, nested elements—including generated content via `::before` and `::after`—will all inherit the specified `box-sizing` for that `.selector-for-some-widget`.
 
 Learn more about [box model and sizing at CSS Tricks](https://css-tricks.com/box-sizing/).