Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'grids' of https://github.com/tilomitra/yui3 into grids
- Loading branch information
Showing
10 changed files
with
593 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.yui3-g-r { | ||
letter-spacing: -0.31em; | ||
*letter-spacing: normal; | ||
word-spacing: -0.43em; | ||
} | ||
.yui3-g-r 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-r > [class ^= "yui3-u"] { | ||
width: 100%; | ||
} | ||
} | ||
@media (max-width:767px) { | ||
.yui3-g-r > [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; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
YUI.add('cssgrids-magazine-tests', function(Y) { | ||
|
||
var suite = new Y.Test.Suite('cssgrids-magazine example test suite'), | ||
Assert = Y.Assert; | ||
|
||
suite.add(new Y.Test.Case({ | ||
name: 'Responsive tests', | ||
'images have max-widths defined': function() { | ||
var headlineImg = Y.one('.left-bar .article img'); | ||
Assert.isNotUndefined(headlineImg.getComputedStyle('maxWidth'), 'maxWidth undefined on images'); | ||
} | ||
})); | ||
|
||
Y.Test.Runner.add(suite); | ||
|
||
}, '', { requires: [ 'node', 'node-event-simulate' ] }); |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{{>cssgrids-magazine-source}} | ||
{{>test-runner}} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div class="intro"> | ||
<p>The HTML for this example uses YUI3 Responsive Grids syntax to look great on different screen sizes (resize this page or view it on a smartphone). On larger screens, there are three columns. However, if viewed on a screen that is smaller than 767px, the columns stack vertically. The right-most column, which shows a stack of content on larger widths, changes to show a grid on smaller widths.</p> | ||
</div> | ||
|
||
<div class="example newwindow"> | ||
<a href="cssgrids-magazine-example.html" target="_blank" class="button"> | ||
View Example in New Window | ||
</a> | ||
</div> | ||
|
This file contains 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
Oops, something went wrong.