Last active
August 29, 2015 14:06
-
-
Save briansteeleca/edcfeebc0aa0e8c31557 to your computer and use it in GitHub Desktop.
Susy Grid - 2 columns for tablet, 3 columns for laptop #susy #grid
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 characters
##Example: | |
`nth-of-type(3n+1)` | |
In that expression, the number `b` represents the ordinal position of the first element that we want to match, and the number `a` represents the ordinal number of every element we want to match after that. So our example expression `3n+1` will match the first element, and every third element after that. | |
For IE8 see: | |
http://stackoverflow.com/questions/8492121/ie8-nth-child-and-before |
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 characters
#usefulinfo { | |
@include clearfix; | |
section { | |
//@media (min-width: $tablet) and (max-width: $laptop) { | |
@include breakpoint($tablet $laptop) { | |
&:nth-of-type(2n+3){ | |
clear: both; | |
} | |
@include span(1 of 2); | |
} | |
//@media (min-width: $laptop) { | |
@include breakpoint($laptop) { | |
&:nth-of-type(4n+4){ | |
clear: both; | |
} | |
@include span(1 of 3); | |
} | |
} | |
} |
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 characters
<article id="usefulinfo"> | |
<section id="arrivalinfo"> | |
<h2>Arrival Information</h2> | |
<ul> | |
<li><strong>Check-in:</strong> 3:00 PM</li> | |
<li><strong>Check-out:</strong> 11:00 AM</li> | |
<li><strong>Parking:</strong> Self-parking in the underground garage is £15 per day and valet-parking is £50 per day.</li> | |
<li><strong>Airport Shuttle:</strong> Our complimentary airport shuttles leave every hour on the hour, and make trips to Heathrow and Gatwick airports.</li> | |
<li><strong>Trains:</strong> The nearest Underground station is at Leicester Square.</li> | |
<li><strong>Pet Policy:</strong> Pets of all sizes and types are allowed in designated pet rooms, and the specified common areas. Service animals are allowed everywhere.</li> | |
</ul> | |
</section> | |
<section class="checklist" id="services"> | |
<h2>Services and Amenities</h2> | |
<p>Our services and amenities are designed to make your travel easy, your stay comfortable, and your experience one-of-a-kind.</p> | |
<ul> | |
<li>Indoor pool</li> | |
<li>24-hour fitness center</li> | |
<li>Massage therapy</li> | |
<li>Full service spa</li> | |
<li>In-room jacuzzi tubs</li> | |
<li>Rooftop café & smoothie bar</li> | |
<li>Coffee bar & pastry shop</li> | |
<li>Traditional continental breakfast</li> | |
<li>24-hour concierge service</li> | |
<li>Business center</li> | |
<li>Complimentary wireless service</li> | |
<li>Laundry & dry cleaning service</li> | |
<li>Daily paper</li> | |
<li>Certified "green" hotel</li> | |
<li>Pet-friendly rooms & common areas</li> | |
</ul> | |
</section> | |
<section class="checklist" id="accessibility"> | |
<h2>Accessibility</h2> | |
<p>We're committed to maintaining the same quality of service for every individual. We offer the following facilities for those with special needs:</p> | |
<ul> | |
<li>Grab bars on tub walls</li> | |
<li>Shower chairs</li> | |
<li>Hand held shower sprayers</li> | |
<li>Higher toilets & toilet modifiers</li> | |
<li>Lower sink faucet handles</li> | |
<li>Wheelchair clearance under sinks & vanity</li> | |
<li>Lower racks in closet</li> | |
<li>TDD machines</li> | |
<li>Telephone light signalers & smoke alarms</li> | |
<li>Telephone amplification handsets</li> | |
<li>Closed captioned television converters</li> | |
<li>Vibrating alarm clocks</li> | |
<li>Telephones with volume control</li> | |
</ul> | |
</section> | |
<section id="arrivalinfo"> | |
<h2>Arrival Information</h2> | |
<ul> | |
<li><strong>Check-in:</strong> 3:00 PM</li> | |
<li><strong>Check-out:</strong> 11:00 AM</li> | |
<li><strong>Parking:</strong> Self-parking in the underground garage is £15 per day and valet-parking is £50 per day.</li> | |
<li><strong>Airport Shuttle:</strong> Our complimentary airport shuttles leave every hour on the hour, and make trips to Heathrow and Gatwick airports.</li> | |
<li><strong>Trains:</strong> The nearest Underground station is at Leicester Square.</li> | |
<li><strong>Pet Policy:</strong> Pets of all sizes and types are allowed in designated pet rooms, and the specified common areas. Service animals are allowed everywhere.</li> | |
</ul> | |
</section> | |
<section class="checklist" id="services"> | |
<h2>Services and Amenities</h2> | |
<p>Our services and amenities are designed to make your travel easy, your stay comfortable, and your experience one-of-a-kind.</p> | |
<ul> | |
<li>Indoor pool</li> | |
<li>24-hour fitness center</li> | |
<li>Massage therapy</li> | |
<li>Full service spa</li> | |
<li>In-room jacuzzi tubs</li> | |
<li>Rooftop café & smoothie bar</li> | |
<li>Coffee bar & pastry shop</li> | |
<li>Traditional continental breakfast</li> | |
<li>24-hour concierge service</li> | |
<li>Business center</li> | |
<li>Complimentary wireless service</li> | |
<li>Laundry & dry cleaning service</li> | |
<li>Daily paper</li> | |
<li>Certified "green" hotel</li> | |
<li>Pet-friendly rooms & common areas</li> | |
</ul> | |
</section> | |
<section class="checklist" id="accessibility"> | |
<h2>Accessibility</h2> | |
<p>We're committed to maintaining the same quality of service for every individual. We offer the following facilities for those with special needs:</p> | |
<ul> | |
<li>Grab bars on tub walls</li> | |
<li>Shower chairs</li> | |
<li>Hand held shower sprayers</li> | |
<li>Higher toilets & toilet modifiers</li> | |
<li>Lower sink faucet handles</li> | |
<li>Wheelchair clearance under sinks & vanity</li> | |
<li>Lower racks in closet</li> | |
<li>TDD machines</li> | |
<li>Telephone light signalers & smoke alarms</li> | |
<li>Telephone amplification handsets</li> | |
<li>Closed captioned television converters</li> | |
<li>Vibrating alarm clocks</li> | |
<li>Telephones with volume control</li> | |
</ul> | |
</section> | |
</article> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment