瀏覽代碼

Fixed a header bug

Fixed a bug where header.row would not display properly, should now work as expected, enabling layout customization and responsiveness inside the header.
Angelos Chalaris 8 年之前
父節點
當前提交
f9e94474ee

+ 4 - 0
dist/mini-dark.css

@@ -1094,6 +1094,10 @@ header .logo, header a.button, header a[role="button"] {
   text-decoration: none;
   text-decoration: none;
 }
 }
 
 
+header.row {
+  box-sizing: content-box;
+}
+
 nav {
 nav {
   display: block;
   display: block;
   background: #37474f;
   background: #37474f;

文件差異過大導致無法顯示
+ 0 - 0
dist/mini-dark.min.css


+ 4 - 0
dist/mini-default.css

@@ -1093,6 +1093,10 @@ header .logo, header a.button, header a[role="button"] {
   text-decoration: none;
   text-decoration: none;
 }
 }
 
 
+header.row {
+  box-sizing: content-box;
+}
+
 nav {
 nav {
   display: block;
   display: block;
   background: #eceff1;
   background: #eceff1;

文件差異過大導致無法顯示
+ 0 - 0
dist/mini-default.min.css


+ 4 - 0
dist/mini-lite.css

@@ -997,6 +997,10 @@ header .logo, header a.button, header a[role="button"] {
   text-decoration: none;
   text-decoration: none;
 }
 }
 
 
+header.row {
+  box-sizing: content-box;
+}
+
 footer {
 footer {
   display: block;
   display: block;
   background: #192024;
   background: #192024;

文件差異過大導致無法顯示
+ 0 - 0
dist/mini-lite.min.css


+ 4 - 0
dist/mini-nord.css

@@ -1092,6 +1092,10 @@ header .logo, header a.button, header a[role="button"] {
   text-decoration: none;
   text-decoration: none;
 }
 }
 
 
+header.row {
+  box-sizing: content-box;
+}
+
 nav {
 nav {
   display: block;
   display: block;
   border: 1px solid #D8DEE9;
   border: 1px solid #D8DEE9;

文件差異過大導致無法顯示
+ 0 - 0
dist/mini-nord.min.css


+ 4 - 0
dist/mini-sucroa.css

@@ -1099,6 +1099,10 @@ header .logo, header a.button, header a[role="button"] {
   text-decoration: none;
   text-decoration: none;
 }
 }
 
 
+header.row {
+  box-sizing: content-box;
+}
+
 nav {
 nav {
   display: block;
   display: block;
   background: #e8deff;
   background: #e8deff;

文件差異過大導致無法顯示
+ 0 - 0
dist/mini-sucroa.min.css


文件差異過大導致無法顯示
+ 0 - 0
docs/mini-default.min.css


+ 0 - 1
docs/modules.html

@@ -114,7 +114,6 @@
           <div class="card fluid">
           <div class="card fluid">
             <h2 class="section"><mark class="primary"><i class="fa fa-compass fa-fw" aria-hidden="true"></i></mark>&nbsp;Navigation</h2>
             <h2 class="section"><mark class="primary"><i class="fa fa-compass fa-fw" aria-hidden="true"></i></mark>&nbsp;Navigation</h2>
             <div class="section box-left"><p>The <strong>navigation</strong> module seeks to remedy the problems of vertical and horizontal navigation design paradigms, by combining the two for a better presentational effect. HTML5 navigational elements are at the heart of the module, allowing you to quickly build your navigation without complicated structures and hacks. More specifically, the <strong>navigation</strong> module contains:</p><ul>
             <div class="section box-left"><p>The <strong>navigation</strong> module seeks to remedy the problems of vertical and horizontal navigation design paradigms, by combining the two for a better presentational effect. HTML5 navigational elements are at the heart of the module, allowing you to quickly build your navigation without complicated structures and hacks. More specifically, the <strong>navigation</strong> module contains:</p><ul>
-							<li><a href="navigation.html#navigation-title">Navigation</a>
 							<li><a href="navigation.html#header" class="sublink-1">Styling for headers, logos and header links</a></li>
 							<li><a href="navigation.html#header" class="sublink-1">Styling for headers, logos and header links</a></li>
 							<li><a href="navigation.html#navigation-bar" class="sublink-1">Styling for navigation bars</a></li>
 							<li><a href="navigation.html#navigation-bar" class="sublink-1">Styling for navigation bars</a></li>
 							<li><a href="navigation.html#footer" class="sublink-1">Styling for footers</a></li>
 							<li><a href="navigation.html#footer" class="sublink-1">Styling for footers</a></li>

+ 1 - 0
docs/v2/DEVLOG.md

@@ -1140,3 +1140,4 @@
 - Thoroughly tested fluid typography and updated the `core` module with the required variables and flags. This added a little bit of extra size to the framework, but it seems worthwhile as it scales a bit better on smaller screens, so that there is slightly more real estate for content.
 - Thoroughly tested fluid typography and updated the `core` module with the required variables and flags. This added a little bit of extra size to the framework, but it seems worthwhile as it scales a bit better on smaller screens, so that there is slightly more real estate for content.
 - Updated all flavors for fluid typography (basically only `default` and `dark` actually use it for now).
 - Updated all flavors for fluid typography (basically only `default` and `dark` actually use it for now).
 - Updated `core` module documentation and customization documentation to explain fluid typography.
 - Updated `core` module documentation and customization documentation to explain fluid typography.
+- Fixed the `header` element bug that didn't allow them to work well with the `.row` class for responsive layouts. They should now display as expected.

+ 6 - 0
src/mini/_navigation.scss

@@ -20,6 +20,8 @@ $fore-color:							black !default;						// [External variable - core] Foreground
 // Policy for below external flag is `ALWAYS_TRUE`. This is done due to links being underlined by default and as a safeguard from ugly branding.
 // Policy for below external flag is `ALWAYS_TRUE`. This is done due to links being underlined by default and as a safeguard from ugly branding.
 $apply-link-underline:		true !default;						// [External flag - core] Should underlining be applied to <a> elements? (`true`/`false`)
 $apply-link-underline:		true !default;						// [External flag - core] Should underlining be applied to <a> elements? (`true`/`false`)
 $style-link-active-state:		false !default;					// [External flag - core] Should the :active state of <a> elements be stylized, same as the :hover state (`true`/`false`).
 $style-link-active-state:		false !default;					// [External flag - core] Should the :active state of <a> elements be stylized, same as the :hover state (`true`/`false`).
+// The below variable is used to fix the display problem of the <header> element when used as a responsive row
+$grid-row-name:								'row' !default;				// [External flag - grid] Class name for the grid system rows.
 $button-class-name:				'button' !default;				// [External variable - input_control] Name of the button-like element styling class.
 $button-class-name:				'button' !default;				// [External variable - input_control] Name of the button-like element styling class.
 $button-box-shadow:0 1px 3px rgba(0,0,0, 0.1) !default;// [External variable - input_control] Value of button's box-shadow.
 $button-box-shadow:0 1px 3px rgba(0,0,0, 0.1) !default;// [External variable - input_control] Value of button's box-shadow.
 $button-border-style: 1px solid transparent !default;	// [External variable - input_control] Value of button's border-style.
 $button-border-style: 1px solid transparent !default;	// [External variable - input_control] Value of button's border-style.
@@ -102,6 +104,10 @@ header {
 			text-decoration: none;
 			text-decoration: none;
 		}
 		}
 	}
 	}
+	// Fix for responsive header, using the grid system's row and column alignment.
+	&.#{$grid-row-name} {
+		box-sizing: content-box;
+	}
 }
 }
 // Navigation sidebar styling.
 // Navigation sidebar styling.
 @if $include-nav-styles {						// Unless you want unstylized <nav> elements, keep this flag on.
 @if $include-nav-styles {						// Unless you want unstylized <nav> elements, keep this flag on.

部分文件因文件數量過多而無法顯示