Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
Move to new grid and add tablet-sized responsive layout
Browse files Browse the repository at this point in the history
  • Loading branch information
sgarrity committed Jun 11, 2012
1 parent 7a3032f commit 4d05d2d
Showing 1 changed file with 35 additions and 9 deletions.
44 changes: 35 additions & 9 deletions media/css/tabzilla.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
url('//www.mozilla.org/img/fonts/OpenSans-Regular-webfont.woff') format('woff'),
url('//www.mozilla.org/img/fonts/OpenSans-Regular-webfont.ttf') format('truetype'),
url('//www.mozilla.org/img/fonts/OpenSans-Regular-webfont.svg#OpenSansRegular') format('svg');
font-weight: 400;
font-weight: normal;
font-style: normal;
}

Expand All @@ -18,7 +18,7 @@
url('//www.mozilla.org/img/fonts/OpenSans-Semibold-webfont.woff') format('woff'),
url('//www.mozilla.org/img/fonts/OpenSans-Semibold-webfont.ttf') format('truetype'),
url('//www.mozilla.org/img/fonts/OpenSans-Semibold-webfont.svg#OpenSansSemibold') format('svg');
font-weight: 600;
font-weight: bold;
font-style: normal;
}

Expand Down Expand Up @@ -91,13 +91,15 @@
}

#tabzilla-contents {
width: 992px;
width: 960px;
margin: 0 auto;
padding: 0 10px;
text-align: left;
position: absolute;
bottom: 0;
left: 50%;
margin-left: -486px;
top: 0;
margin-left: -490px;
right: 0;
display:none;
}
Expand All @@ -124,7 +126,7 @@
display: inline;
width: 300px;
height: 210px;
margin-right: 5px;
margin: 0 10px;
background: #f8f8f8;
position: relative;
font-size: 13px;
Expand Down Expand Up @@ -153,15 +155,20 @@
text-transform: uppercase;
}

#tabzilla-panel #tabzilla-nav {
float: left;
margin: 0 10px;
}

#tabzilla-promo .snippet h4 {
line-height: 1.1;
font-size: 13px;
font-weight: 600;
font-weight: bold;
margin-bottom: 0.4em;
}

#tabzilla-panel #tabzilla-nav h2 {
font-weight: 600;
font-weight: bold;
font-size: 13px;
margin: 0 20px 0.4em 20px;
white-space: nowrap;
Expand All @@ -178,7 +185,7 @@
list-style-type: none;
margin: 40px 0 0 0;
padding: 0;
width: 135px;
width: 123px;
height: 95px;
border-right: 1px dotted #d6d6d6;
background: none;
Expand Down Expand Up @@ -212,7 +219,7 @@
}

#tabzilla-panel #tabzilla-nav ul li#tabzilla-search {
border-right: 0;
border-color: #fff;
}

#tabzilla-panel #tabzilla-nav ul li#tabzilla-search a {
Expand Down Expand Up @@ -313,3 +320,22 @@
#tabzilla-promo .snippet#tabzilla-promo-beta a b {
white-space: nowrap;
}

@media only screen and (min-width: 720px) and (max-width: 979px) {


#tabzilla-contents {
width: 720px;
left: 0;
margin-left: 0;
}

#tabzilla-promo {
display: none;
}

#tabzilla-panel #tabzilla-nav ul li {
width: 139px;
}

}

0 comments on commit 4d05d2d

Please sign in to comment.