]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Upgrade to normalize.css v4.2.0 and fix Hound exclusion. 20428/head
authorBardi Harborow <bardi.harborow@gmail.com>
Tue, 2 Aug 2016 05:17:24 +0000 (15:17 +1000)
committerBardi Harborow <bardi@bardiharborow.com>
Fri, 23 Sep 2016 06:16:51 +0000 (16:16 +1000)
.hound.yml
scss/.scss-lint.yml
scss/_normalize.scss

index 4589de64bc1784be1288fc25aae520e8e0bd9e76..934a9a130709f00c4e93576400202a907d77c625 100644 (file)
@@ -3,7 +3,6 @@ fail_on_violations: true
 scss:
   config_file: scss/.scss-lint.yml
   enabled: true
-  ignore_file: scss/_normalize.scss
 
 javascript:
   enabled: false
index 65c365ddbca1f9e328ccbd678fb9a54d62fde1bf..9c6ac66ab98ac7007335aee01d2f77a5f32186ef 100644 (file)
@@ -3,6 +3,9 @@ scss_files:
   - "**/*.scss"
   - "docs/assets/scss/**/*.scss"
 
+exclude:
+  - "scss/_normalize.scss"
+
 plugin_directories: ['.scss-linters']
 
 # List of gem names to load custom linters from (make sure they are already
index 8a74836b09aa97a4f72b4773de84e211e6be17ba..827b7f31a26bdf92c0af4c50ce4544b1422df58d 100644 (file)
@@ -1,14 +1,16 @@
-/*! normalize.css v4.0.0 | MIT License | github.com/necolas/normalize.css */
+/*! normalize.css v4.2.0 | MIT License | github.com/necolas/normalize.css */
 
 //
 // 1. Change the default font family in all browsers (opinionated).
-// 2. Prevent adjustments of font size after orientation changes in IE and iOS.
+// 2. Correct the line height in all browsers.
+// 3. Prevent adjustments of font size after orientation changes in IE and iOS.
 //
 
 html {
   font-family: sans-serif; // 1
-  -ms-text-size-adjust: 100%; // 2
-  -webkit-text-size-adjust: 100%; // 2
+  line-height: 1.15; // 2
+  -ms-text-size-adjust: 100%; // 3
+  -webkit-text-size-adjust: 100%; // 3
 }
 
 //
@@ -76,7 +78,7 @@ progress {
 // 1. Add the correct display in IE.
 //
 
-template, // 2
+template, // 1
 [hidden] {
   display: none;
 }
@@ -85,11 +87,13 @@ template, // 2
 // ==========================================================================
 
 //
-// Remove the gray background on active links in IE 10.
+// 1. Remove the gray background on active links in IE 10.
+// 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 //
 
 a {
-  background-color: transparent;
+  background-color: transparent; // 1
+  -webkit-text-decoration-skip: objects; // 2
 }
 
 //
@@ -248,14 +252,17 @@ hr {
 // ==========================================================================
 
 //
-// Change font properties to `inherit` in all browsers (opinionated).
+// 1. Change font properties to `inherit` in all browsers (opinionated).
+// 2. Remove the margin in Firefox and Safari.
 //
 
 button,
 input,
+optgroup,
 select,
 textarea {
-  font: inherit;
+  font: inherit; // 1
+  margin: 0; // 2
 }
 
 //
@@ -269,30 +276,16 @@ optgroup {
 //
 // Show the overflow in IE.
 // 1. Show the overflow in Edge.
-// 2. Show the overflow in Edge, Firefox, and IE.
 //
 
 button,
-input, // 1
-select { // 2
+input { // 1
   overflow: visible;
 }
 
 //
-// Remove the margin in Safari.
-// 1. Remove the margin in Firefox and Safari.
-//
-
-button,
-input,
-select,
-textarea { // 1
-  margin: 0;
-}
-
-//
-// Remove the inheritence of text transform in Edge, Firefox, and IE.
-// 1. Remove the inheritence of text transform in Firefox.
+// Remove the inheritance of text transform in Edge, Firefox, and IE.
+// 1. Remove the inheritance of text transform in Firefox.
 //
 
 button,
@@ -300,29 +293,10 @@ select { // 1
   text-transform: none;
 }
 
-//
-// Change the cursor in all browsers (opinionated).
-//
-
-button,
-[type="button"],
-[type="reset"],
-[type="submit"] {
-  cursor: pointer;
-}
-
-//
-// Restore the default cursor to disabled elements unset by the previous rule.
-//
-
-[disabled] {
-  cursor: default;
-}
-
 //
 // 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 //    controls in Android 4.
-// 2. Correct the inability to style clickable types in iOS.
+// 2. Correct the inability to style clickable types in iOS and Safari.
 //
 
 button,
@@ -337,8 +311,10 @@ html [type="button"], // 1
 //
 
 button::-moz-focus-inner,
-input::-moz-focus-inner {
-  border: 0;
+[type="button"]::-moz-focus-inner,
+[type="reset"]::-moz-focus-inner,
+[type="submit"]::-moz-focus-inner {
+  border-style: none;
   padding: 0;
 }
 
@@ -347,7 +323,9 @@ input::-moz-focus-inner {
 //
 
 button:-moz-focusring,
-input:-moz-focusring {
+[type="button"]:-moz-focusring,
+[type="reset"]:-moz-focusring,
+[type="submit"]:-moz-focusring {
   outline: 1px dotted ButtonText;
 }
 
@@ -406,19 +384,39 @@ textarea {
 }
 
 //
-// Correct the odd appearance of search inputs in Chrome and Safari.
+// 1. Correct the odd appearance in Chrome and Safari.
+// 2. Correct the outline style in Safari.
 //
 
 [type="search"] {
-  -webkit-appearance: textfield;
+  -webkit-appearance: textfield; // 1
+  outline-offset: -2px; // 2
 }
 
 //
-// Remove the inner padding and cancel buttons in Chrome on OS X and
-// Safari on OS X.
+// Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
 //
 
 [type="search"]::-webkit-search-cancel-button,
 [type="search"]::-webkit-search-decoration {
   -webkit-appearance: none;
 }
+
+//
+// Correct the text style of placeholders in Chrome, Edge, and Safari.
+//
+
+::-webkit-input-placeholder {
+  color: inherit;
+  opacity: 0.54;
+}
+
+//
+// 1. Correct the inability to style clickable types in iOS and Safari.
+// 2. Change font properties to `inherit` in Safari.
+//
+
+::-webkit-file-upload-button {
+  -webkit-appearance: button; // 1
+  font: inherit; // 2
+}