salvattore_default.css in Salvattore (CSS driven Masonry) 8
/* Check salvattore.com for more information. */
/* You’re free to use and define the classes: */
.slv-column { float: left; }
.size-1of1 { width: 100%; }
.size-1of2 { width: 50%; }
.size-1of3 { width: 33.333%; }
.size-1of4 { width: 25%; }
/* Hide text that defines classes to be used by JS. */
.slv-grid[data-columns]::before {
display: none;
}
@media screen and (max-width: 480px){
.slv-grid[data-columns]::before {
content: '1 .slv-column.size-1of1';
}
}
@media screen and (min-width: 481px) and (max-width:819px) {
.slv-grid[data-columns]::before {
content: '2 .slv-column.size-1of2';
}
}
@media screen and (min-width: 820px) and (max-width: 1299px) {
.slv-grid[data-columns]::before {
content: '3 .slv-column.size-1of3';
}
}
@media screen and (min-width: 1300px){
.slv-grid[data-columns]::before {
content: '4 .slv-column.size-1of4';
}
}
File
css/salvattore_default.css
View source
- /* Check salvattore.com for more information. */
- /* You’re free to use and define the classes: */
- .slv-column { float: left; }
- .size-1of1 { width: 100%; }
- .size-1of2 { width: 50%; }
- .size-1of3 { width: 33.333%; }
- .size-1of4 { width: 25%; }
-
- /* Hide text that defines classes to be used by JS. */
- .slv-grid[data-columns]::before {
- display: none;
- }
-
- @media screen and (max-width: 480px){
- .slv-grid[data-columns]::before {
- content: '1 .slv-column.size-1of1';
- }
- }
- @media screen and (min-width: 481px) and (max-width:819px) {
- .slv-grid[data-columns]::before {
- content: '2 .slv-column.size-1of2';
- }
- }
- @media screen and (min-width: 820px) and (max-width: 1299px) {
- .slv-grid[data-columns]::before {
- content: '3 .slv-column.size-1of3';
- }
- }
- @media screen and (min-width: 1300px){
- .slv-grid[data-columns]::before {
- content: '4 .slv-column.size-1of4';
- }
- }