Ero sivun ”Widget:JwFloatStyle” versioiden välillä
Järvi-meriwikistä
Rivi 1: | Rivi 1: | ||
− | <includeonly><!--{$1|escape:'html'}--> | + | <includeonly><!--{$float|escape:'html'}--> |
− | </includeonly> | + | |
+ | <style scoped> | ||
+ | |||
+ | .jw-float-<!--{$float|escape:'html'}-->-width-<!--{$width|escape:'html'}--> { | ||
+ | float: none; | ||
+ | width: calc( 100% + 2.5rem ); | ||
+ | margin: 0 -1.25rem; | ||
+ | } | ||
+ | |||
+ | @media ( min-width: 500p x) { | ||
+ | |||
+ | .jw-float-<!--{$float|escape:'html'}-->-width-<!--{$width|escape:'html'}--> { | ||
+ | float: <!--{$float|escape:'html'}-->; | ||
+ | width: calc( <!--{$width|escape:'html'}-->% + 1rem ); | ||
+ | margin-<!--{$float|escape:'html'}-->: -1.25rem; | ||
+ | } | ||
+ | |||
+ | } | ||
+ | </style></includeonly> |