From 9c42d3133e3bd36cccfd7f05cb9ff91e7d8075ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Th=C3=A9r=C3=A8se=20Godefroy?= Date: Thu, 5 Aug 2021 11:19:37 +0200 Subject: [PATCH] main.css: define classes for floating images; reorganize recent defs. --- static/css/main.css | 63 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 50 insertions(+), 13 deletions(-) diff --git a/static/css/main.css b/static/css/main.css index cb27f829..8e3f3528 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -177,6 +177,23 @@ small { font-size: 0.85em; } +code, +kbd, +samp { + font-family: monospace; + padding: 0 .2em; +} +code, +kbd { + display: inline-block; +} + +/* Prevent wrapping within anchor links. */ +a[href^="#section"], +a[href^="#step"] { + white-space: nowrap; +} + #header #fsf-intro { font-size: .7em; } @@ -185,6 +202,7 @@ small { font-size: 125%; } + /* Colours */ @@ -208,23 +226,10 @@ b, i, em { color: #905300; } -/* Commands and options */ code, kbd, samp { color: #905300; - font-family: monospace; - padding: 0 .2em; -} -code, -kbd { - display: inline-block; -} - -/* Prevent wrapping within anchor links. */ -a[href^="#section"], -a[href^="#step"] { - white-space: nowrap; } /* Guide Sections Background */ @@ -447,6 +452,22 @@ ul.images li > img { margin-bottom: 6px; } +.float-medium, +.float-small { + display: block; + margin: 0 auto 20px; + max-width: 100%; + height: auto; +} + +.float-medium { + width: 400px; +} + +.float-small { + width: 250px; +} + /* Troubleshooting panel and dropdown */ .troubleshooting { @@ -787,6 +808,15 @@ input[type='reset']:hover { } +@media (min-width:800px) { + + .float-small { + float:right; + margin:0 0 20px 30px; + } + +} + @media only screen and (min-width: 950px) { .row > div, @@ -876,4 +906,11 @@ input[type='reset']:hover { #workshops-image { width: 100%; } + + .float-medium { + float: right; + max-width: 50%; + margin: 0 0 20px 30px; + } + } -- 2.25.1