mediawiki-skins-Citizen/resources/skins.citizen.styles/layout.less
alistair3149 4beb15e43d
feat: update layout in different breakpoints (#227)
* feat: update layout in different breakpoints

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

* feat: remove negative margin for namespace and catlinks

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-01-18 15:18:39 -05:00

46 lines
646 B
Plaintext

@width-breakpoint-desktop-wider: @width-breakpoint-desktop + @width-toc * 2;
.firstHeading,
#siteSub,
.mw-body-content {
max-width: var( --width-layout );
margin-right: auto;
margin-left: auto;
}
.mw-body-content {
.mixin-clearfix();
}
.thumb {
margin: 0.6rem 0;
.thumbinner {
max-width: 100%;
margin: 0 auto;
}
}
a.image > img {
max-width: 100%;
height: auto;
}
@media ( min-width: @width-breakpoint-tablet ) {
div.tleft,
div.floatleft,
table.floatleft {
margin-right: 1.4rem;
clear: left;
float: left;
}
div.tright,
div.floatright,
table.floatright {
margin-left: 1.4rem;
clear: right;
float: right;
}
}