salvattore_default.css in Salvattore (CSS driven Masonry) 7
/* Check salvattore.com for more information. */
/* You’re free to use and define the classes: */
.salvattore-column { float: left; }
.size-1of1 { width: 100%; }
.size-1of2 { width: 50%; }
.size-1of3 { width: 33.333%; }
.size-1of4 { width: 25%; }
@media screen and (max-width: 480px){
#salvattore-grid[data-columns]::before {
content: '1 .salvattore-column.size-1of1';
}
}
@media screen and (min-width: 481px) and (max-width:819px) {
#salvattore-grid[data-columns]::before {
content: '2 .salvattore-column.size-1of2';
}
}
@media screen and (min-width: 820px) and (max-width: 1299px) {
#salvattore-grid[data-columns]::before {
content: '3 .salvattore-column.size-1of3';
}
}
@media screen and (min-width: 1300px){
#salvattore-grid[data-columns]::before {
content: '4 .salvattore-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: */
- .salvattore-column { float: left; }
- .size-1of1 { width: 100%; }
- .size-1of2 { width: 50%; }
- .size-1of3 { width: 33.333%; }
- .size-1of4 { width: 25%; }
-
- @media screen and (max-width: 480px){
- #salvattore-grid[data-columns]::before {
- content: '1 .salvattore-column.size-1of1';
- }
- }
- @media screen and (min-width: 481px) and (max-width:819px) {
- #salvattore-grid[data-columns]::before {
- content: '2 .salvattore-column.size-1of2';
- }
- }
- @media screen and (min-width: 820px) and (max-width: 1299px) {
- #salvattore-grid[data-columns]::before {
- content: '3 .salvattore-column.size-1of3';
- }
- }
- @media screen and (min-width: 1300px){
- #salvattore-grid[data-columns]::before {
- content: '4 .salvattore-column.size-1of4';
- }
- }