Well, just the navigation part.
A Pen by Justin Perry on CodePen.
| @function get-item-by-name( $name, $names-list, $items ){ | |
| @return #{ nth( $items, index( $names-list, $name ) ) }; | |
| } | |
| $font-stack-ids: proxima-light, proxima-regular, proxima-semibold | |
| $font-stacks: "'Proxima Nova Light', Tahoma, Arial, Helvetica, sans-serif", | |
| "'Proxima Nova Regular', Tahoma, Arial, Helvetica, sans-serif", | |
| "'Proxima Nova Semibold', Tahoma, Arial, Helvetica, sans-serif"; | |
| @function font-stack( $name ){ |
| <a[^>]*? (href=\")(.*)(") |
| /** | |
| * convert_color() | |
| * Converts a HEX to RGB and vice versa | |
| * @param {String or Integer} color Takes a full 6 character HEX "ff5500" / RGB colour value 167 (< 255) | |
| * @return {str} returns a HEX or RGB (space delimited), depending on input | |
| * | |
| */ | |
| function convert_color(color) { | |
| var tmp = ""; | |
| ^filter:.[a-z]+=\([^)]+\); |
| (^<[^a-z]+|)+(href=\".+?") | |
| Returns href attr from... | |
| <a href="http://www.google.com">Google</a> | |
| <a class="myclass" href="http://www.bbc.co.uk">BBC</a> | |
| <a id="myid" href="http://www.yahoo.com" class="myclass">Yahoo</a> | |
| <div><a href="http://www.google.com">Google</a></div> |
| (^<[a-z]+.)[a-z\"=\s:/.\<]+[>]+([^\<]+) | |
| <a href="http://www.google.com">Google</a> | |
| <a class="myclass" href="http://www.bbc.co.uk">BBC</a> | |
| <a id="myid" href="http://www.yahoo.com" class="myclass">Yahoo</a> | |
| <div><a href="http://www.google.com">Google</a></div> |
| (^<[a-z]+.[a-z\"=\s:/.\<]+[>])+(?=[^\<])(?=Yahoo).+?$ |
| Setup waypoints for each block | |
| $('.js-block').each(function(){ | |
| addWaypoint( $(this), 'down' ); | |
| addWaypoint( $(this), 'up' ); | |
| }); | |
| function addWaypoint( $elem, direction ){ | |
| var thisID = that.formatID( $elem.attr('id') ), | |
| nextID = $elem.next('.js-block').attr('id') || null; |
| <div class="flex"> | |
| <!--div*6>table>tr*8>tr*8>td*7>{Eius facere reprehenderit esse praesentium eligendi.}--> | |
| <div> | |
| <table> | |
| <col style="width: auto" /> | |
| <col style="width: 20%" /> | |
| <col style="width: 30%" /> | |
| <col style="width: 20%" /> | |
| <col style="width: 10%" /> | |
| <col style="width: 10%" /> |