Debian Codegraph @

vendor/static/bulma/sass/form/input-textarea.sass

raw
1 $textarea-padding: $control-padding-horizontal !default
2 $textarea-max-height: 40em !default
3 $textarea-min-height: 8em !default
4
5 $textarea-colors: $form-colors !default
6
7 %input-textarea
8 @extend %input
9 box-shadow: $input-shadow
10 max-width: 100%
11 width: 100%
12 &[readonly]
13 box-shadow: none
14 // Colors
15 @each $name, $pair in $textarea-colors
16 $color: nth($pair, 1)
17 &.is-#{$name}
18 border-color: $color
19 &:focus,
20 &.is-focused,
21 &:active,
22 &.is-active
23 box-shadow: $input-focus-box-shadow-size bulmaRgba($color, 0.25)
24 // Sizes
25 &.is-small
26 +control-small
27 &.is-medium
28 +control-medium
29 &.is-large
30 +control-large
31 // Modifiers
32 &.is-fullwidth
33 display: block
34 width: 100%
35 &.is-inline
36 display: inline
37 width: auto
38
39 .input
40 @extend %input-textarea
41 &.is-rounded
42 border-radius: $radius-rounded
43 padding-left: calc(#{$control-padding-horizontal} + 0.375em)
44 padding-right: calc(#{$control-padding-horizontal} + 0.375em)
45 &.is-static
46 background-color: transparent
47 border-color: transparent
48 box-shadow: none
49 padding-left: 0
50 padding-right: 0
51
52 .textarea
53 @extend %input-textarea
54 display: block
55 max-width: 100%
56 min-width: 100%
57 padding: $textarea-padding
58 resize: vertical
59 &:not([rows])
60 max-height: $textarea-max-height
61 min-height: $textarea-min-height
62 &[rows]
63 height: initial
64 // Modifiers
65 &.has-fixed-size
66 resize: none