Last active
January 22, 2018 10:39
-
-
Save csswizardry/a91bcbb366e7ce7892aa to your computer and use it in GitHub Desktop.
Revisions
-
csswizardry revised this gist
Jul 7, 2015 . 2 changed files with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,23 +32,23 @@ display: block; } // Tell the project that `list-fit` has been loaded. $has-list-fit: true; // _components.nav-primary.scss // This component depends on `.o-list-fit`. Check if it’s loaded. @if (variable-exists(has-list-fit)) { } @else { @warn "Oops! It looks like you haven’t included the `.o-list-fit` object."; } /** * Site’s primary nav. Extends `.o-list-fit`. * * 1. Crop gradient’s overflow beyond round corners. */ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,7 @@ } /** * Site’s primary nav. Extends `.o-list-fit`. * * 1. Crop gradient’s overflow beyond round corners. */ -
csswizardry revised this gist
Jul 7, 2015 . 4 changed files with 39 additions and 39 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,14 @@ <ul class="o-list-fit c-nav-primary"> <li class="o-list-fit__item c-nav-primary__item"> <a href="#" class="o-list-fit__link c-nav-primary__link">The workshop</a> </li> <li class="o-list-fit__item c-nav-primary__item"> <a href="#" class="o-list-fit__link c-nav-primary__link">2013 Schedule</a> </li> <li class="o-list-fit__item c-nav-primary__item"> <a href="#" class="o-list-fit__link c-nav-primary__link is-current">About CSS Wizardry</a> </li> <li class="o-list-fit__item c-nav-primary__item"> <a href="#" class="o-list-fit__link c-nav-primary__link">Contact</a> </li> </ul> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ // ---- // Sass (v3.4.14) // Compass (v1.0.3) // ---- @@ -12,7 +12,7 @@ * 2. Use `table` to make children pack up side-by-side. * 3. Use `fixed` to ensure that all children occupy an equal width. */ .o-list-fit { margin: 0; padding: 0; list-style: none; @@ -24,11 +24,11 @@ /** * Cause each item to fit into packed structure. */ .o-list-fit__item { display: table-cell; } .o-list-fit__link { display: block; } @@ -40,19 +40,19 @@ $has-list-fit: true; // _components.nav-primary.scss // This component depends on `.list-fit`. Check if it’s loaded. @if (variable-exists(has-list-fit)) { } @else { @warn "Oops! It looks like you haven’t included the `.o-list-fit` object."; } /** * Site’s primary nav. Extends `.list-fit`. * * 1. Crop gradient’s overflow beyond round corners. */ .c-nav-primary { font: 0.75rem/1.5 sans-serif; text-transform: uppercase; text-align: center; @@ -62,7 +62,7 @@ $has-list-fit: false !default; overflow: hidden; /* [1] */ } .c-nav-primary__item {} /** * Each link inside the nav has a large hit area. @@ -71,7 +71,7 @@ $has-list-fit: false !default; * 2. Enable the border on the sides of the links. * 3. Override its gray color on the left side of the links. */ .c-nav-primary__link { color: #333; padding: 10px; text-decoration: none; @@ -93,14 +93,14 @@ $has-list-fit: false !default; /** * Remove redundant border from the left of the first link. */ .c-nav-primary__item:first-child > & { border-left: none; } /** * Remove redundant border from the right of the last link. */ .c-nav-primary__item:last-child > & { border-right: none; } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ * 2. Use `table` to make children pack up side-by-side. * 3. Use `fixed` to ensure that all children occupy an equal width. */ .o-list-fit { margin: 0; padding: 0; list-style: none; @@ -22,11 +22,11 @@ /** * Cause each item to fit into packed structure. */ .o-list-fit__item { display: table-cell; } .o-list-fit__link { display: block; } @@ -35,7 +35,7 @@ * * 1. Crop gradient’s overflow beyond round corners. */ .c-nav-primary { font: 0.75rem/1.5 sans-serif; text-transform: uppercase; text-align: center; @@ -53,7 +53,7 @@ * 2. Enable the border on the sides of the links. * 3. Override its gray color on the left side of the links. */ .c-nav-primary__link { color: #333; padding: 10px; text-decoration: none; @@ -76,12 +76,12 @@ * Remove redundant border from the right of the last link. */ } .c-nav-primary__link.is-current { text-decoration: underline; } .c-nav-primary__item:first-child > .c-nav-primary__link { border-left: none; } .c-nav-primary__item:last-child > .c-nav-primary__link { border-right: none; } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,14 @@ <ul class="o-list-fit c-nav-primary"> <li class="o-list-fit__item c-nav-primary__item"> <a href="#" class="o-list-fit__link c-nav-primary__link">The workshop</a> </li> <li class="o-list-fit__item c-nav-primary__item"> <a href="#" class="o-list-fit__link c-nav-primary__link">2013 Schedule</a> </li> <li class="o-list-fit__item c-nav-primary__item"> <a href="#" class="o-list-fit__link c-nav-primary__link is-current">About CSS Wizardry</a> </li> <li class="o-list-fit__item c-nav-primary__item"> <a href="#" class="o-list-fit__link c-nav-primary__link">Contact</a> </li> </ul> -
csswizardry revised this gist
Apr 8, 2015 . 4 changed files with 12 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,14 @@ <ul class="list-fit Nav-Primary"> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">The workshop</a> </li> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">2013 Schedule</a> </li> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link is-current">About CSS Wizardry</a> </li> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">Contact</a> </li> </ul> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -94,14 +94,14 @@ $has-list-fit: false !default; * Remove redundant border from the left of the first link. */ .Nav-Primary__item:first-child > & { border-left: none; } /** * Remove redundant border from the right of the last link. */ .Nav-Primary__item:last-child > & { border-right: none; } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -80,8 +80,8 @@ text-decoration: underline; } .Nav-Primary__item:first-child > .Nav-Primary__link { border-left: none; } .Nav-Primary__item:last-child > .Nav-Primary__link { border-right: none; } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,14 @@ <ul class="list-fit Nav-Primary"> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">The workshop</a> </li> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">2013 Schedule</a> </li> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link is-current">About CSS Wizardry</a> </li> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">Contact</a> </li> </ul> -
csswizardry revised this gist
Mar 3, 2015 . 1 changed file with 5 additions and 14 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,17 +3,6 @@ // Compass (v1.0.3) // ---- // _objects.list-fit.scss /** * A simple object to cause lists to fit into all @@ -24,7 +13,9 @@ * 3. Use `fixed` to ensure that all children occupy an equal width. */ .list-fit { margin: 0; padding: 0; list-style: none; width: 100%; /* [1] */ display: table; /* [2] */ table-layout: fixed; /* [3] */ @@ -49,11 +40,11 @@ $has-list-fit: true; // _components.nav-primary.scss // This component depends on `.list-fit`. Check if it is loaded. $has-list-fit: false !default; @if($has-list-fit == false) { @warn "Oops! It looks like you haven’t included the `.list-fit` object."; } /** -
csswizardry revised this gist
Mar 3, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ // Compass (v1.0.3) // ---- // _tools.mixins.scss @mixin reset-list() { margin: 0; padding: 0; -
csswizardry revised this gist
Mar 3, 2015 . 1 changed file with 10 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,13 +3,18 @@ // Compass (v1.0.3) // ---- // _tools.misinx.scss @mixin reset-list() { margin: 0; padding: 0; list-style: none; } // _objects.list-fit.scss /** * A simple object to cause lists to fit into all * available horizontal space. Extend in Components layer. @@ -36,17 +41,21 @@ display: block; } // Tell the project that `list-fit` has loaded. $has-list-fit: true; // _components.nav-primary.scss // This component depends on `list-fit`. Check if it is loaded. $has-list-fit: false !default; @if($has-list-fit == false) { @warn "Oops! It looks like you haven’t included the `list-fit` object."; } /** * Site’s primary nav. Extends `.list-fit`. * -
csswizardry revised this gist
Mar 3, 2015 . 4 changed files with 9 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ <a href="#" class="list-fit__link Nav-Primary__link">2013 Schedule</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link is-current">About CSS Wizardry</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">Contact</a> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -86,6 +86,10 @@ $has-list-fit: false !default; background-image: -o-linear-gradient(rgba(255,255,255,1) 0%, rgba(238,238,238,1) 100%); background-image: linear-gradient(rgba(255,255,255,1) 0%, rgba(238,238,238,1) 100%); &.is-current { text-decoration: underline; } /** * Remove redundant border from the left of the first link. */ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -76,6 +76,9 @@ * Remove redundant border from the right of the last link. */ } .Nav-Primary__link.is-current { text-decoration: underline; } .Nav-Primary__item:first-child > .Nav-Primary__link { border-left: 0; } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ <a href="#" class="list-fit__link Nav-Primary__link">2013 Schedule</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link is-current">About CSS Wizardry</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">Contact</a> -
csswizardry revised this gist
Feb 24, 2015 . 3 changed files with 41 additions and 36 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,14 @@ <ul class="list-fit Nav-Primary"> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">The workshop</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">2013 Schedule</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">About CSS Wizardry</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">Contact</a> </li> </ul> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,13 @@ // Compass (v1.0.3) // ---- @mixin reset-list() { margin: 0; padding: 0; list-style: none; } /** * A simple object to cause lists to fit into all * available horizontal space. Extend in Components layer. @@ -12,9 +19,7 @@ * 3. Use `fixed` to ensure that all children occupy an equal width. */ .list-fit { @include reset-list(); width: 100%; /* [1] */ display: table; /* [2] */ table-layout: fixed; /* [3] */ @@ -35,18 +40,18 @@ $has-list-fit: true; $has-list-fit: false !default; @if($has-list-fit == false) { @warn "Oops! It looks like you haven’t included the `list-fit` object."; } /** * Site’s primary nav. Extends `.list-fit`. * * 1. Crop gradient’s overflow beyond round corners. */ .Nav-Primary { font: 0.75rem/1.5 sans-serif; text-transform: uppercase; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,14 @@ <ul class="list-fit Nav-Primary"> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">The workshop</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">2013 Schedule</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">About CSS Wizardry</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">Contact</a> </li> </ul> -
csswizardry revised this gist
Feb 24, 2015 . 2 changed files with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,14 @@ <ul class="list-fit Nav-Primary"> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">The workshop</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">2013 Schedule</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">About CSS Wizardry</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">Contact</a> </li> </ul> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,14 @@ <ul class="list-fit Nav-Primary"> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">The workshop</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">2013 Schedule</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">About CSS Wizardry</a> </li> <li class="list-fit__item"> <a href="#" class="list-fit__link Nav-Primary__link">Contact</a> </li> </ul> -
csswizardry revised this gist
Feb 24, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -84,14 +84,14 @@ $has-list-fit: false !default; /** * Remove redundant border from the left of the first link. */ .Nav-Primary__item:first-child > & { border-left: 0; } /** * Remove redundant border from the right of the last link. */ .Nav-Primary__item:last-child > & { border-right: 0; } -
csswizardry revised this gist
Feb 24, 2015 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,13 +31,22 @@ display: block; } $has-list-fit: true; /** * Site’s primary nav. Extends `.list-fit`. * * 1. Crop gradient’s overflow beyond round corners. */ $has-list-fit: false !default; @if($has-list-fit == false) { @warn "Oops! It looks like you haven’t included the `list-fit` object."; } .Nav-Primary { font: 0.75rem/1.5 sans-serif; text-transform: uppercase; -
csswizardry created this gist
Feb 24, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ <ul class="list-fit Nav-Primary"> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">The workshop</a> </li> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">2013 Schedule</a> </li> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">About CSS Wizardry</a> </li> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">Contact</a> </li> </ul> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,89 @@ // ---- // Sass (v3.4.12) // Compass (v1.0.3) // ---- /** * A simple object to cause lists to fit into all * available horizontal space. Extend in Components layer. * * 1. Cause list to take up all available space. * 2. Use `table` to make children pack up side-by-side. * 3. Use `fixed` to ensure that all children occupy an equal width. */ .list-fit { margin: 0; padding: 0; list-style: none; width: 100%; /* [1] */ display: table; /* [2] */ table-layout: fixed; /* [3] */ } /** * Cause each item to fit into packed structure. */ .list-fit__item { display: table-cell; } .list-fit__link { display: block; } /** * Site’s primary nav. Extends `.list-fit`. * * 1. Crop gradient’s overflow beyond round corners. */ .Nav-Primary { font: 0.75rem/1.5 sans-serif; text-transform: uppercase; text-align: center; font-weight: bold; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; /* [1] */ } .Nav-Primary__item {} /** * Each link inside the nav has a large hit area. * * 1. Set up an invisible, 1px, gray border. * 2. Enable the border on the sides of the links. * 3. Override its gray color on the left side of the links. */ .Nav-Primary__link { color: #333; padding: 10px; text-decoration: none; border: 0 dashed #ccc; /* [1] */ border-width: 0 1px; /* [2] */ border-left-color: #fff; /* [3] */ background-color: rgb(255,255,255); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,1)), to(rgba(238,238,238,1))); background-image: -webkit-linear-gradient(rgba(255,255,255,1) 0%, rgba(238,238,238,1) 100%); background-image: -moz-linear-gradient(rgba(255,255,255,1) 0%, rgba(238,238,238,1) 100%); background-image: -o-linear-gradient(rgba(255,255,255,1) 0%, rgba(238,238,238,1) 100%); background-image: linear-gradient(rgba(255,255,255,1) 0%, rgba(238,238,238,1) 100%); /** * Remove redundant border from the left of the first link. */ .Nav-Primary__item:first-child > &{ border-left: 0; } /** * Remove redundant border from the right of the last link. */ .Nav-Primary__item:last-child > &{ border-right: 0; } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,84 @@ @charset "UTF-8"; /** * A simple object to cause lists to fit into all * available horizontal space. Extend in Components layer. * * 1. Cause list to take up all available space. * 2. Use `table` to make children pack up side-by-side. * 3. Use `fixed` to ensure that all children occupy an equal width. */ .list-fit { margin: 0; padding: 0; list-style: none; width: 100%; /* [1] */ display: table; /* [2] */ table-layout: fixed; /* [3] */ } /** * Cause each item to fit into packed structure. */ .list-fit__item { display: table-cell; } .list-fit__link { display: block; } /** * Site’s primary nav. Extends `.list-fit`. * * 1. Crop gradient’s overflow beyond round corners. */ .Nav-Primary { font: 0.75rem/1.5 sans-serif; text-transform: uppercase; text-align: center; font-weight: bold; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; /* [1] */ } /** * Each link inside the nav has a large hit area. * * 1. Set up an invisible, 1px, gray border. * 2. Enable the border on the sides of the links. * 3. Override its gray color on the left side of the links. */ .Nav-Primary__link { color: #333; padding: 10px; text-decoration: none; border: 0 dashed #ccc; /* [1] */ border-width: 0 1px; /* [2] */ border-left-color: #fff; /* [3] */ background-color: white; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(white), to(#eeeeee)); background-image: -webkit-linear-gradient(white 0%, #eeeeee 100%); background-image: -moz-linear-gradient(white 0%, #eeeeee 100%); background-image: -o-linear-gradient(white 0%, #eeeeee 100%); background-image: linear-gradient(white 0%, #eeeeee 100%); /** * Remove redundant border from the left of the first link. */ /** * Remove redundant border from the right of the last link. */ } .Nav-Primary__item:first-child > .Nav-Primary__link { border-left: 0; } .Nav-Primary__item:last-child > .Nav-Primary__link { border-right: 0; } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ <ul class="list-fit Nav-Primary"> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">The workshop</a> </li> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">2013 Schedule</a> </li> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">About CSS Wizardry</a> </li> <li class="list-fit__item Nav-Primary__item"> <a href="#" class="list-fit__link Nav-Primary__link">Contact</a> </li> </ul>