Compare commits

...

4 Commits

Author SHA1 Message Date
Gregory Trolliet 4e4e64d5b2 [THEME] Fix logo width 2021-02-26 16:59:11 +01:00
Gregory Trolliet 0d0b4cabbd [THEME] Fix figure width
Better way to fix figure width.
Also solve the link width.
2021-02-26 14:40:05 +01:00
Gregory Trolliet 49c3cd386b [THEME] Make link only on image size
Don't allow to clic outside of the image to follow link when the image
is smaller than the page.
2021-02-26 14:26:00 +01:00
Gregory Trolliet 31286f5f0b [THEME] Fix inline figures 2021-02-25 14:31:47 +01:00
1 changed files with 9 additions and 3 deletions

View File

@ -13,6 +13,8 @@
--color02_bright: #b88a5b;
--image-margin-side: 2.5em;
--content-width: 900px;
}
/******************* Page *******************/
@ -278,7 +280,7 @@ a:focus {
}
@media only screen and (min-width: 1000px) {
.container {
max-width: 900px;
max-width: var(--content-width);
}
}
.page-icon {
@ -504,8 +506,8 @@ a:focus {
.article-body figure {
margin: 1em 0;
max-width: 100%;
width: fit-content;
overflow: visible;
min-width: calc(50% - 2 * var(--image-margin-side));
}
.article-body figure picture,
.article-body figure figcaption {
@ -515,6 +517,7 @@ a:focus {
.article-body figure img {
vertical-align: middle;
padding-bottom: 0.3em;
min-width: calc(50% - 2 * var(--image-margin-side));
}
@media only screen and (min-width: 768px) {
.article-body figure {
@ -538,6 +541,9 @@ a:focus {
}
.article-body figure.inline {
display: inline-block;
min-width: auto;
margin-left: 1em;
margin-right: 1em;
}
.article-body figure.half {
width: 100%;
@ -548,7 +554,7 @@ a:focus {
max-width: 33.33%;
}
.article-body figure.logo img {
width: 100%;
width: 100px;
max-width: 100px;
min-width: auto;
vertical-align: bottom;