forked from mirrors/bookwyrm
6daaffeaa7
* Compiles css framework from sass * Adds watch commands * Copies existing css to sass file * Moves sass out of static path * Removes global linter I wasn't sure how to customize this, and it's not providing a lot of additional value on top of the domain-specific linters * Reverts invalid change to dockerfile * Changes stylelint path * Remove unused bulma files * Properly minifies generated css * Fixes regression in thread display * rgba function only works with percents for whatever reason * Hush stylelint * Removes trailing zeros * Compile sass in Django Co-authored-by: Joachim <joachim.robert@protonmail.com> * Python formatting * Updates linter * Updates commands * Adds css-config file Co-authored-by: Joachim <joachim.robert@protonmail.com> * Stylelint fix * Removes unused compiled bulma files Co-authored-by: Joachim <joachim.robert@protonmail.com>
67 lines
1.4 KiB
Sass
67 lines
1.4 KiB
Sass
$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
|
|
box-shadow: $input-shadow
|
|
max-width: 100%
|
|
width: 100%
|
|
&[readonly]
|
|
box-shadow: none
|
|
// Colors
|
|
@each $name, $pair in $textarea-colors
|
|
$color: nth($pair, 1)
|
|
&.is-#{$name}
|
|
border-color: $color
|
|
&:focus,
|
|
&.is-focused,
|
|
&:active,
|
|
&.is-active
|
|
box-shadow: $input-focus-box-shadow-size bulmaRgba($color, 0.25)
|
|
// Sizes
|
|
&.is-small
|
|
+control-small
|
|
&.is-medium
|
|
+control-medium
|
|
&.is-large
|
|
+control-large
|
|
// Modifiers
|
|
&.is-fullwidth
|
|
display: block
|
|
width: 100%
|
|
&.is-inline
|
|
display: inline
|
|
width: auto
|
|
|
|
.input
|
|
@extend %input-textarea
|
|
&.is-rounded
|
|
border-radius: $radius-rounded
|
|
padding-left: calc(#{$control-padding-horizontal} + 0.375em)
|
|
padding-right: calc(#{$control-padding-horizontal} + 0.375em)
|
|
&.is-static
|
|
background-color: transparent
|
|
border-color: transparent
|
|
box-shadow: none
|
|
padding-left: 0
|
|
padding-right: 0
|
|
|
|
.textarea
|
|
@extend %input-textarea
|
|
display: block
|
|
max-width: 100%
|
|
min-width: 100%
|
|
padding: $textarea-padding
|
|
resize: vertical
|
|
&:not([rows])
|
|
max-height: $textarea-max-height
|
|
min-height: $textarea-min-height
|
|
&[rows]
|
|
height: initial
|
|
// Modifiers
|
|
&.has-fixed-size
|
|
resize: none
|