N°4283 - Textarea: Make sure to use monospace font for code

- CSV import is now using monospace font
- Simplify SCSS code

Note: TextArea and all input UIBlocks need to be reworked as they are not properly organized, see comment in _input-text.scss
This commit is contained in:
Molkobain
2021-11-20 18:42:41 +01:00
parent b49fbf1a97
commit 2a2d68e204
9 changed files with 24 additions and 13 deletions

View File

@@ -12,13 +12,17 @@ $ibo-input-text--padding-y: 10px !default;
width: $ibo-input-text--width;
min-height: $ibo-input-text--min-height;
padding: $ibo-input-text--padding-y $ibo-input-text--padding-x;
&.ibo-is-code {
@extend %ibo-font-code-150;
/* Note: There is a mic-mac in the inputs SCSS partials / PHP classes / TWIG templates. All base style should be defined in a common ancestor (AbstractInput) which should have its own BLOCK_CODE and SCSS partial; which is not the case right now.
* We should correct this later as now is too close to the RC to make such changes.
*/
background-color: $ibo-input--background-color;
}
}
.ibo-input-text--export {
width: 100%;
min-height: 15em;
}
.ibo-query-oql, .ibo-query-oql > :not(.ibo-field--label) {
@extend %ibo-font-code-150;
}