mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 14:34:09 +00:00
feat(core): ✨ responsive page padding
This commit is contained in:
parent
d8b2c73e6e
commit
7b33d7e2f1
|
@ -115,8 +115,6 @@
|
|||
|
||||
@media ( min-width: @width-breakpoint-desktop ) {
|
||||
.citizen-footer {
|
||||
padding-right: ~'calc( var(--padding-page ) * 2 )';
|
||||
padding-left: ~'calc( var(--padding-page ) * 2 )';
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -158,10 +158,15 @@ html {
|
|||
--font-size-h3: 1.25rem;
|
||||
--font-size-h4: 1.125rem;
|
||||
}
|
||||
|
||||
html {
|
||||
--padding-page: @padding-page * 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
@media ( min-width: @width-breakpoint-desktop ) {
|
||||
html {
|
||||
--padding-page: @padding-page * 2;
|
||||
--header-card-maxheight: ~'calc( 100vh - var( --space-sm ) * 2 )';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -85,11 +85,6 @@ a.image {
|
|||
margin-left: var( --header-size );
|
||||
}
|
||||
|
||||
.citizen-body-container {
|
||||
padding-right: ~'calc( var( --padding-page ) * 2 )';
|
||||
padding-left: ~'calc( var( --padding-page ) * 2 )';
|
||||
}
|
||||
|
||||
.citizen-toc-enabled {
|
||||
.citizen-body-container {
|
||||
display: grid;
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
@width-toc: 240px;
|
||||
|
||||
/* Paddings */
|
||||
@padding-page: 20px;
|
||||
@padding-page: 16px;
|
||||
|
||||
/* Border */
|
||||
/* Border colors */
|
||||
|
|
Loading…
Reference in a new issue