Skip to content

Commit

Permalink
Add more Sass and CSS variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jgthms committed Jul 7, 2024
1 parent ab4a7b7 commit 05f898d
Show file tree
Hide file tree
Showing 22 changed files with 163 additions and 81 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@
- Add `is-max-tablet` modifier to the Container element
- Add `currentColor` and `inherit` as possible values for the color and background helpers
- The Section can now have a minimum height of `100vh` with the `is-fullheight` modifier
- Add more SCSS variables:
- `$input-border-style`
- `$input-border-width`
- `$label-spacing`
- `$field-block-spacing`
- Add more CSS variables:
- `--bulma-input-border-style`
- `--bulma-input-border-width`
- `--bulma-label-color`
- `--bulma-label-spacing`
- `--bulma-label-weight`
- `--bulma-help-size`
- `--bulma-field-block-spacing`

### Bug fixes

Expand Down
27 changes: 18 additions & 9 deletions css/bulma.css
Original file line number Diff line number Diff line change
Expand Up @@ -4025,6 +4025,8 @@ a.box:active {
.content ol {
list-style-position: outside;
margin-inline-start: 2em;
}
.content ol:not(:first-child) {
margin-top: 1em;
}
.content ol:not([type]) {
Expand All @@ -4045,6 +4047,8 @@ a.box:active {
.content ul {
list-style: disc outside;
margin-inline-start: 2em;
}
.content ul:not(:first-child) {
margin-top: 1em;
}
.content ul ul {
Expand Down Expand Up @@ -5433,6 +5437,8 @@ button.tag:active,
--bulma-input-h: var(--bulma-scheme-h);
--bulma-input-s: var(--bulma-scheme-s);
--bulma-input-l: var(--bulma-scheme-main-l);
--bulma-input-border-style: solid;
--bulma-input-border-width: var(--bulma-control-border-width);
--bulma-input-border-l: var(--bulma-border-l);
--bulma-input-border-l-delta: 0%;
--bulma-input-hover-border-l-delta: var(--bulma-hover-border-l-delta);
Expand Down Expand Up @@ -5508,11 +5514,6 @@ button.tag:active,

/* Bulma Form */
.textarea, .input {
--bulma-input-h: var(--bulma-scheme-h);
--bulma-input-s: var(--bulma-scheme-s);
--bulma-input-border-style: solid;
--bulma-input-border-width: 1px;
--bulma-input-border-l: var(--bulma-border-l);
box-shadow: inset 0 0.0625em 0.125em hsla(var(--bulma-scheme-h), var(--bulma-scheme-s), var(--bulma-scheme-invert-l), 0.05);
max-width: 100%;
width: 100%;
Expand Down Expand Up @@ -6168,14 +6169,22 @@ button.tag:active,
}

/* Bulma Form */
:root {
--bulma-label-color: var(--bulma-text-strong);
--bulma-label-spacing: 0.5em;
--bulma-label-weight: var(--bulma-weight-semibold);
--bulma-help-size: var(--bulma-size-small);
--bulma-field-block-spacing: 0.75rem;
}

.label {
color: var(--bulma-text-strong);
color: var(--bulma-label-color);
display: block;
font-size: var(--bulma-size-normal);
font-weight: var(--bulma-weight-semibold);
}
.label:not(:last-child) {
margin-bottom: 0.5em;
margin-bottom: var(--bulma-label-spacing);
}
.label.is-small {
font-size: var(--bulma-size-small);
Expand All @@ -6189,7 +6198,7 @@ button.tag:active,

.help {
display: block;
font-size: var(--bulma-size-small);
font-size: var(--bulma-help-size);
margin-top: 0.25rem;
}
.help.is-white {
Expand Down Expand Up @@ -6227,7 +6236,7 @@ button.tag:active,
}

.field {
--bulma-block-spacing: 0.75rem;
--bulma-block-spacing: var(--bulma-field-block-spacing);
}
.field.has-addons {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion css/bulma.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bulma.min.css

Large diffs are not rendered by default.

27 changes: 18 additions & 9 deletions css/versions/bulma-no-dark-mode.css
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,8 @@ a.box:active {
.content ol {
list-style-position: outside;
margin-inline-start: 2em;
}
.content ol:not(:first-child) {
margin-top: 1em;
}
.content ol:not([type]) {
Expand All @@ -1242,6 +1244,8 @@ a.box:active {
.content ul {
list-style: disc outside;
margin-inline-start: 2em;
}
.content ul:not(:first-child) {
margin-top: 1em;
}
.content ul ul {
Expand Down Expand Up @@ -2630,6 +2634,8 @@ button.tag:active,
--bulma-input-h: var(--bulma-scheme-h);
--bulma-input-s: var(--bulma-scheme-s);
--bulma-input-l: var(--bulma-scheme-main-l);
--bulma-input-border-style: solid;
--bulma-input-border-width: var(--bulma-control-border-width);
--bulma-input-border-l: var(--bulma-border-l);
--bulma-input-border-l-delta: 0%;
--bulma-input-hover-border-l-delta: var(--bulma-hover-border-l-delta);
Expand Down Expand Up @@ -2705,11 +2711,6 @@ button.tag:active,

/* Bulma Form */
.textarea, .input {
--bulma-input-h: var(--bulma-scheme-h);
--bulma-input-s: var(--bulma-scheme-s);
--bulma-input-border-style: solid;
--bulma-input-border-width: 1px;
--bulma-input-border-l: var(--bulma-border-l);
box-shadow: inset 0 0.0625em 0.125em hsla(var(--bulma-scheme-h), var(--bulma-scheme-s), var(--bulma-scheme-invert-l), 0.05);
max-width: 100%;
width: 100%;
Expand Down Expand Up @@ -3365,14 +3366,22 @@ button.tag:active,
}

/* Bulma Form */
:root {
--bulma-label-color: var(--bulma-text-strong);
--bulma-label-spacing: 0.5em;
--bulma-label-weight: var(--bulma-weight-semibold);
--bulma-help-size: var(--bulma-size-small);
--bulma-field-block-spacing: 0.75rem;
}

.label {
color: var(--bulma-text-strong);
color: var(--bulma-label-color);
display: block;
font-size: var(--bulma-size-normal);
font-weight: var(--bulma-weight-semibold);
}
.label:not(:last-child) {
margin-bottom: 0.5em;
margin-bottom: var(--bulma-label-spacing);
}
.label.is-small {
font-size: var(--bulma-size-small);
Expand All @@ -3386,7 +3395,7 @@ button.tag:active,

.help {
display: block;
font-size: var(--bulma-size-small);
font-size: var(--bulma-help-size);
margin-top: 0.25rem;
}
.help.is-white {
Expand Down Expand Up @@ -3424,7 +3433,7 @@ button.tag:active,
}

.field {
--bulma-block-spacing: 0.75rem;
--bulma-block-spacing: var(--bulma-field-block-spacing);
}
.field.has-addons {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion css/versions/bulma-no-dark-mode.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/versions/bulma-no-dark-mode.min.css

Large diffs are not rendered by default.

27 changes: 18 additions & 9 deletions css/versions/bulma-no-helpers-prefixed.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/versions/bulma-no-helpers-prefixed.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/versions/bulma-no-helpers-prefixed.min.css

Large diffs are not rendered by default.

27 changes: 18 additions & 9 deletions css/versions/bulma-no-helpers.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/versions/bulma-no-helpers.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/versions/bulma-no-helpers.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 05f898d

Please sign in to comment.