mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 11:34:21 +00:00
✨ Add .image
, .image-limited
, .image-free
(#15)
This commit is contained in:
parent
325c2698c5
commit
a5d22dce06
12 changed files with 99 additions and 5 deletions
|
@ -31,7 +31,7 @@
|
||||||
<p>
|
<p>
|
||||||
To see how something is done, <kbd>Right Click</kbd> on it and then press <kbd>Inspect Element</kbd>.
|
To see how something is done, <kbd>Right Click</kbd> on it and then press <kbd>Inspect Element</kbd>.
|
||||||
</p>
|
</p>
|
||||||
<img src="https://i.imgur.com/M8sFJeO.png" alt="How to Inspect Element">
|
<img class="image-limited" src="https://i.imgur.com/M8sFJeO.png" alt="How to Inspect Element">
|
||||||
</section>
|
</section>
|
||||||
<h2>
|
<h2>
|
||||||
Panels
|
Panels
|
||||||
|
|
22
src/rules/skeleton.less
vendored
22
src/rules/skeleton.less
vendored
|
@ -88,6 +88,28 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// --- Images ---
|
||||||
|
|
||||||
|
@{image} {
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
max-width: 100%;
|
||||||
|
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
@{image-free} {
|
||||||
|
max-width: unset;
|
||||||
|
max-height: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
@{image-limited} {
|
||||||
|
max-height: max(37.5vw, 66.6vh);
|
||||||
|
}
|
||||||
|
|
||||||
// --- Forms ---
|
// --- Forms ---
|
||||||
|
|
||||||
@{form} {
|
@{form} {
|
||||||
|
|
|
@ -199,6 +199,20 @@
|
||||||
.bluelib .panel-split > .panel {
|
.bluelib .panel-split > .panel {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
.bluelib .image {
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
.bluelib .image-free {
|
||||||
|
max-width: unset;
|
||||||
|
max-height: unset;
|
||||||
|
}
|
||||||
|
.bluelib .image-limited {
|
||||||
|
max-height: max(37.5vw, 66.6vh);
|
||||||
|
}
|
||||||
.bluelib .form {
|
.bluelib .form {
|
||||||
display: grid;
|
display: grid;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -792,6 +792,25 @@ body .panel-split aside,
|
||||||
body .panel-split .panel-split {
|
body .panel-split .panel-split {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
.base-skeleton img,
|
||||||
|
body img,
|
||||||
|
.base-skeleton .image,
|
||||||
|
body .image {
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
.base-skeleton .image-free,
|
||||||
|
body .image-free {
|
||||||
|
max-width: unset;
|
||||||
|
max-height: unset;
|
||||||
|
}
|
||||||
|
.base-skeleton .image-limited,
|
||||||
|
body .image-limited {
|
||||||
|
max-height: max(37.5vw, 66.6vh);
|
||||||
|
}
|
||||||
.base-skeleton form,
|
.base-skeleton form,
|
||||||
body form,
|
body form,
|
||||||
.base-skeleton .form,
|
.base-skeleton .form,
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -199,6 +199,20 @@
|
||||||
.bluelib .panel-split > .panel {
|
.bluelib .panel-split > .panel {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
.bluelib .image {
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
.bluelib .image-free {
|
||||||
|
max-width: unset;
|
||||||
|
max-height: unset;
|
||||||
|
}
|
||||||
|
.bluelib .image-limited {
|
||||||
|
max-height: max(37.5vw, 66.6vh);
|
||||||
|
}
|
||||||
.bluelib .form {
|
.bluelib .form {
|
||||||
display: grid;
|
display: grid;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -792,6 +792,25 @@ body .panel-split aside,
|
||||||
body .panel-split .panel-split {
|
body .panel-split .panel-split {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
.base-skeleton img,
|
||||||
|
body img,
|
||||||
|
.base-skeleton .image,
|
||||||
|
body .image {
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
.base-skeleton .image-free,
|
||||||
|
body .image-free {
|
||||||
|
max-width: unset;
|
||||||
|
max-height: unset;
|
||||||
|
}
|
||||||
|
.base-skeleton .image-limited,
|
||||||
|
body .image-limited {
|
||||||
|
max-height: max(37.5vw, 66.6vh);
|
||||||
|
}
|
||||||
.base-skeleton form,
|
.base-skeleton form,
|
||||||
body form,
|
body form,
|
||||||
.base-skeleton .form,
|
.base-skeleton .form,
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -9,6 +9,9 @@
|
||||||
@status-disabled: ~".status-disabled";
|
@status-disabled: ~".status-disabled";
|
||||||
@status-hoverable: ~".status-hoverable";
|
@status-hoverable: ~".status-hoverable";
|
||||||
@status-clickable: ~".status-clickable";
|
@status-clickable: ~".status-clickable";
|
||||||
|
@image: ~".image";
|
||||||
|
@image-free: ~".image-free";
|
||||||
|
@image-limited: ~".image-limited";
|
||||||
@form: ~".form";
|
@form: ~".form";
|
||||||
@form-label: ~".form-label";
|
@form-label: ~".form-label";
|
||||||
@form-field: ~".form-field";
|
@form-field: ~".form-field";
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
@status-disabled: ~"[disabled], .status-disabled";
|
@status-disabled: ~"[disabled], .status-disabled";
|
||||||
@status-hoverable: ~"[title], .status-hoverable";
|
@status-hoverable: ~"[title], .status-hoverable";
|
||||||
@status-clickable: ~"[onclick], .status-clickable";
|
@status-clickable: ~"[onclick], .status-clickable";
|
||||||
|
@image: ~"img, .image";
|
||||||
|
@image-free: ~".image-free";
|
||||||
|
@image-limited: ~".image-limited";
|
||||||
@form: ~"form, .form";
|
@form: ~"form, .form";
|
||||||
@form-label: ~"form label, .form-label";
|
@form-label: ~"form label, .form-label";
|
||||||
@form-field: ~"form @{input-field}, .form-field";
|
@form-field: ~"form @{input-field}, .form-field";
|
||||||
|
|
Loading…
Reference in a new issue