Skip to content

Instantly share code, notes, and snippets.

@stefansl

stefansl/Reset Subcolums

Last active Aug 29, 2015
Embed
What would you like to do?
contao-mediaquery-reset-subcolums.less
# Taken from the module contao-boilerplate
# Author: Andreas Isaak (Thanks for that!)
# https://github.com/andreasisaak/contao-boilerplate
@media only screen and (max-width: 480px) {
#header > .inside,
#main > .inside,
#footer > .inside {
padding: 1em;
}
#header > .inside { padding-top: 0; }
#header {
height: 100px;
#main-nav { display: none;}
#mobile-trigger { display: block; }
#logo {
width: 200px;
padding: 1.4em 0 0 0;
}
}
.ce_gallery {
li { width: 100%; margin-right: 0 !important; }
}
.ce_gallery > ul li.col_first { clear: none;}
.dlh_googlemap { width: 100% !important; }
.subcolumns .first,
.subcolumns .mod_colsetPart,
.subcolumns .sc_second,
.subcolumns > div {
float:none;
width:100%;
margin:0;
}
.equalize > div {
display:block;
}
.subcolumns .mod_colsetPart,
.subcolumns .ce_colsetPart,
.subcolumns .sc_second {
margin-top:0;
}
.subcolumns .subcl,
.subcolumns .subcr,
.subcolumns .subc {
padding:0 !important;
margin-bottom: 1em;
}
.ym-grid .first,
.ym-grid .ce_colsetStart,
.ym-grid .ce_colsetPart,
.ym-grid > div {
float:none;
width:100%;
margin:0;
}
.ym-grid .ym-gbox-left,
.ym-grid .ym-gbox,
.ym-grid .ym-gbox-right {
padding:0 !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment