Skip to content

Commit

Permalink
feat(textarea): add textarea class to inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
guastallaigor committed Dec 9, 2018
1 parent b29f88a commit 2297d78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ <h2 class="title">Form</h2>
<label for="error_field">.input.is-error</label>
<input type="text" id="error_field" class="input is-error" placeholder="awesome.css">
</div>
<div class="field">
<label for="textarea_field">Textarea</label>
<textarea id="textarea_field" class="textarea">
</div>
</section>

<section class="balloon container with-title">
Expand Down
9 changes: 6 additions & 3 deletions scss/form/inputs.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.input {
.input,
.textarea {
@mixin border-style($border, $outline) {
outline-color: $outline;
// prettier-ignore
Expand Down Expand Up @@ -31,7 +32,8 @@
> label {
display: block;
}
.input {
.input,
.textarea {
display: block;
}

Expand All @@ -47,7 +49,8 @@
text-align: right;
}

.input {
.input,
.textarea {
flex-basis: 0;
flex-grow: 5;
}
Expand Down

0 comments on commit 2297d78

Please sign in to comment.