more specific image widths

This commit is contained in:
2025-04-06 21:46:51 +03:00
parent 48f68c53b7
commit 97b0f98beb
2 changed files with 47 additions and 37 deletions

View File

@@ -1,6 +1,12 @@
$bodyText: #333;
$border: #999;
$headerHover: #f80;
$bodyWidth: 940px;
$contentWidth: $bodyWidth - 220px;
// image widths:
// half: 324px
// full: 648px
* {
-webkit-box-sizing: border-box;
@@ -20,7 +26,7 @@ table {
body {
margin: 0 auto;
max-width: 960px;
max-width: $bodyWidth;
padding: 10px;
color: $bodyText;
}
@@ -84,16 +90,16 @@ figure.left {
float: left;
}
img,figcaption {
figure.half {
width: 50%;
}
img, figcaption {
width: 90%;
margin: 0 auto;
display: block;
}
figure.half {
width: 50%;
}
@media (max-width:600px) {
img,figcaption, figure.half {
width: 100%;
@@ -258,7 +264,7 @@ nav#TableOfContents ul {
}
.content-with-toc {
width: calc(100% - 220px);
width: $contentWidth;
margin: 0;
}