X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/dd44be00b6482eb698d73f7f666c020d72d21212..e6148fff016bf85c5e4b559a4d69f2deaac0e7ed:/personal/_sass/_layout.scss?ds=sidebyside diff --git a/personal/_sass/_layout.scss b/personal/_sass/_layout.scss index 8859ce1..0054a61 100644 --- a/personal/_sass/_layout.scss +++ b/personal/_sass/_layout.scss @@ -192,3 +192,17 @@ body { /* This centers us in the page, and handles the "too wide" case */ margin-top: 0.8em; } } + +/* Images (~350px wide) floating to the right but only if there is enough space */ +.float-right-350 { + float: right; + margin-left: 0.8em; + margin-bottom: 0.3em; +} +@media screen and (max-width:600px) { + .float-right-350 { + max-width: 300px; + float: none; + margin: auto; + } +}