Skip to content

Commit

Permalink
add responsive grids css rule to cssgrids and update build.json
Browse files Browse the repository at this point in the history
  • Loading branch information
tilomitra committed Dec 14, 2012
1 parent 15e0382 commit 721ba08
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cssgrids/build.json
Expand Up @@ -16,6 +16,13 @@
"cssfiles": [
"cssgrids-base.css"
]
},
"cssgrids-responsive": {
"cssfiles": [
"cssgrids-base.css",
"cssgrids-units.css",
"cssgrids-responsive-base.css"
]
}
}
}
44 changes: 44 additions & 0 deletions src/cssgrids/css/cssgrids-responsive-base.css
@@ -0,0 +1,44 @@
.yui3-g-responsive {
letter-spacing: -0.31em;
*letter-spacing: normal;
word-spacing: -0.43em;
}
.yui3-g-responsive img {
max-width: 100%;
}

@media (min-width:980px) {
.yui3-visible-phone {
display: none;
}
.yui3-visible-tablet {
display: none;
}
.yui3-hidden-desktop {
display: none;
}
}
@media (max-width:480px) {
.yui3-g-responsive > [class ^= "yui3-u"] {
width: 100%;
}
}
@media (max-width:767px) {
.yui3-g-responsive > [class ^= "yui3-u"] {
width: 100%;
}
.yui3-hidden-phone {
display: none;
}
.yui3-visible-desktop {
display: none;
}
}
@media (min-width:768px) and (max-width:979px) {
.yui3-hidden-tablet {
display: none;
}
.yui3-visible-desktop {
display: none;
}
}
13 changes: 13 additions & 0 deletions src/cssgrids/meta/cssgrids.json
Expand Up @@ -19,6 +19,19 @@
"type": "css"
},

"cssgrids-responsive": {
"requires": [
"cssgrids",
"cssgrids-responsive-base"
],

"optional": [
"cssreset",
"cssfonts"
],
"type": "css"
},

"cssgrids": {
"optional": [
"cssreset",
Expand Down

0 comments on commit 721ba08

Please sign in to comment.