N°4628 - Upgrade bulma lib to v0.9.4 to avoid hack from N°4481

This commit is contained in:
Molkobain
2022-05-11 11:40:25 +02:00
parent 891dd31290
commit bb2c9dedeb
70 changed files with 742 additions and 385 deletions

View File

@@ -1,3 +1,4 @@
/* Bulma Form */
@import "shared";
@import "input-textarea";
@import "checkbox-radio";

View File

@@ -13,7 +13,8 @@
}
&[disabled],
fieldset[disabled] & {
fieldset[disabled] &,
input[disabled] {
color: $input-disabled-color;
cursor: not-allowed;
}

View File

@@ -11,6 +11,8 @@ $file-name-border-style: solid !default;
$file-name-border-width: 1px 1px 1px 0 !default;
$file-name-max-width: 16em !default;
$file-colors: $form-colors !default;
.file {
@extend %unselectable;
@@ -20,7 +22,7 @@ $file-name-max-width: 16em !default;
position: relative;
// Colors
@each $name, $pair in $colors {
@each $name, $pair in $file-colors {
$color: nth($pair, 1);
$color-invert: nth($pair, 2);
@@ -65,6 +67,10 @@ $file-name-max-width: 16em !default;
font-size: $size-small;
}
&.is-normal {
font-size: $size-normal;
}
&.is-medium {
font-size: $size-medium;

View File

@@ -2,6 +2,8 @@ $textarea-padding: $control-padding-horizontal !default;
$textarea-max-height: 40em !default;
$textarea-min-height: 8em !default;
$textarea-colors: $form-colors !default;
%input-textarea {
@extend %input;
@@ -14,7 +16,7 @@ $textarea-min-height: 8em !default;
}
// Colors
@each $name, $pair in $colors {
@each $name, $pair in $textarea-colors {
$color: nth($pair, 1);
&.is-#{$name} {

View File

@@ -1,3 +1,5 @@
$select-colors: $form-colors !default;
.select {
display: inline-block;
max-width: 100%;
@@ -68,7 +70,7 @@
}
// Colors
@each $name, $pair in $colors {
@each $name, $pair in $select-colors {
$color: nth($pair, 1);
&.is-#{$name} {
@@ -110,7 +112,8 @@
// Modifiers
&.is-disabled {
&::after {
border-color: $input-disabled-color;
border-color: $input-disabled-color !important;
opacity: 0.5;
}
}

View File

@@ -1,3 +1,8 @@
@import "../utilities/controls";
@import "../utilities/mixins";
$form-colors: $colors !default;
$input-color: $text-strong !default;
$input-background-color: $scheme-main !default;
$input-border-color: $border !default;

View File

@@ -3,6 +3,8 @@ $label-weight: $weight-bold !default;
$help-size: $size-small !default;
$label-colors: $form-colors !default;
.label {
color: $label-color;
display: block;
@@ -32,7 +34,7 @@ $help-size: $size-small !default;
font-size: $help-size;
margin-top: 0.25rem;
@each $name, $pair in $colors {
@each $name, $pair in $label-colors {
$color: nth($pair, 1);
&.is-#{$name} {