1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 03:24:20 +00:00

🔧 Remove image-freem it's a bad idea

This commit is contained in:
Steffo 2021-07-27 15:04:30 +02:00 committed by Stefano Pigozzi
parent 95245d40cd
commit 3719609881
12 changed files with 26 additions and 31 deletions

View file

@ -312,6 +312,27 @@
</p> </p>
</section> </section>
</div> </div>
<h2>
Images
</h2>
<section>
<h3>
Default images
</h3>
<p>
Bluelib centers and automatically resizes images to fit the panel they are contained in.
</p>
<img src="https://i.imgur.com/tpC5y1N.png" alt="Uno reverse card reverses water"/>
</section>
<section>
<h3>
Limited images
</h3>
<p>
Images can be "limited", so that they never occupy too much screen real estate, especially if they're very tall.
</p>
<img class="image-limited" src="https://i.redd.it/0b2r669b73f41.jpg" alt="USB key in a bottle"/>
</section>
<h2> <h2>
Formatting Formatting
</h2> </h2>

View file

@ -212,7 +212,7 @@
border-color: @bA; border-color: @bA;
} }
/// --- Images --- /// ===== Images =====
/// Images are changed to block elements and are automatically centered. /// Images are changed to block elements and are automatically centered.
@{image} { @{image} {
@ -226,12 +226,6 @@
object-fit: contain; object-fit: contain;
} }
// Allow an image to grow to its real size
@{image-free} {
max-width: unset;
max-height: unset;
}
// Limit even further the size of an image based on the size of the screen // Limit even further the size of an image based on the size of the screen
@{image-limited} { @{image-limited} {
max-height: max(37.5vw, 66.6vh); max-height: max(37.5vw, 66.6vh);

View file

@ -289,10 +289,6 @@
margin-right: auto; margin-right: auto;
object-fit: contain; object-fit: contain;
} }
.bluelib .image-free {
max-width: unset;
max-height: unset;
}
.bluelib .image-limited { .bluelib .image-limited {
max-height: max(37.5vw, 66.6vh); max-height: max(37.5vw, 66.6vh);
} }

File diff suppressed because one or more lines are too long

View file

@ -375,11 +375,6 @@ body .image,
margin-right: auto; margin-right: auto;
object-fit: contain; object-fit: contain;
} }
body .image-free,
.bluelib .image-free {
max-width: unset;
max-height: unset;
}
body .image-limited, body .image-limited,
.bluelib .image-limited { .bluelib .image-limited {
max-height: max(37.5vw, 66.6vh); max-height: max(37.5vw, 66.6vh);

File diff suppressed because one or more lines are too long

View file

@ -289,10 +289,6 @@
margin-right: auto; margin-right: auto;
object-fit: contain; object-fit: contain;
} }
.bluelib .image-free {
max-width: unset;
max-height: unset;
}
.bluelib .image-limited { .bluelib .image-limited {
max-height: max(37.5vw, 66.6vh); max-height: max(37.5vw, 66.6vh);
} }

File diff suppressed because one or more lines are too long

View file

@ -375,11 +375,6 @@ body .image,
margin-right: auto; margin-right: auto;
object-fit: contain; object-fit: contain;
} }
body .image-free,
.bluelib .image-free {
max-width: unset;
max-height: unset;
}
body .image-limited, body .image-limited,
.bluelib .image-limited { .bluelib .image-limited {
max-height: max(37.5vw, 66.6vh); max-height: max(37.5vw, 66.6vh);

File diff suppressed because one or more lines are too long

View file

@ -22,7 +22,6 @@
@separator-heavy: ~".separator-heavy"; @separator-heavy: ~".separator-heavy";
@image: ~"img, .image"; @image: ~"img, .image";
@image-free: ~".image-free";
@image-limited: ~".image-limited"; @image-limited: ~".image-limited";
@status-disabled: ~".status-disabled"; @status-disabled: ~".status-disabled";

View file

@ -22,7 +22,6 @@
@separator-heavy: ~".separator-heavy"; @separator-heavy: ~".separator-heavy";
@image: ~"img, .image"; @image: ~"img, .image";
@image-free: ~".image-free";
@image-limited: ~".image-limited"; @image-limited: ~".image-limited";
@status-disabled: ~"[disabled], .status-disabled"; @status-disabled: ~"[disabled], .status-disabled";