From 733d82e99be2ae6295a6da388b734e0cb7563151 Mon Sep 17 00:00:00 2001 From: masterpmi Date: Thu, 23 Jul 2026 10:46:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20static/css/custom.css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/custom.css | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 static/css/custom.css diff --git a/static/css/custom.css b/static/css/custom.css new file mode 100644 index 0000000..4c0aeb8 --- /dev/null +++ b/static/css/custom.css @@ -0,0 +1,32 @@ +/* Ограничение максимального размера всех изображений */ +main img { + max-width: 100%; + height: auto; + display: block; + margin: 20px auto; + border-radius: 4px; + box-shadow: 0 2px 8px rgba(0,0,0,0.1); +} + +/* Специальные классы для управления размером */ +.img-left { + float: left; + max-width: 300px; + margin: 0 20px 20px 0; +} + +.img-right { + float: right; + max-width: 300px; + margin: 0 0 20px 20px; +} + +.img-center { + max-width: 500px; + margin: 20px auto; +} + +.img-thumbnail { + max-width: 150px; + border: 2px solid #ddd; +} \ No newline at end of file