Browse Source

adding field

adding input
master
HerrHase 6 years ago
parent
commit
3b4d1c13ef
8 changed files with 582 additions and 451 deletions
  1. +34
    -1
      dest/css/styles.css
  2. +1
    -1
      dest/css/styles.min.css
  3. +485
    -448
      dest/index.html
  4. +2
    -0
      src/scss/_crispy.scss
  5. +2
    -1
      src/scss/example.scss
  6. +0
    -0
      src/scss/form/_field.scss
  7. +2
    -0
      src/scss/form/_form.scss
  8. +56
    -0
      src/scss/form/_text.scss

+ 34
- 1
dest/css/styles.css
File diff suppressed because it is too large
View File


+ 1
- 1
dest/css/styles.min.css
File diff suppressed because it is too large
View File


+ 485
- 448
dest/index.html
File diff suppressed because it is too large
View File


+ 2
- 0
src/scss/_crispy.scss View File

@ -14,5 +14,7 @@
'components/modal', 'components/modal',
'components/panel', 'components/panel',
'components/table', 'components/table',
'form/form',
'helpers/helpers'; 'helpers/helpers';

+ 2
- 1
src/scss/example.scss View File

@ -12,6 +12,8 @@
@include crispy__panel(); @include crispy__panel();
@include crispy__table(); @include crispy__table();
@include crispy__form__text();
.button { .button {
border: 1px solid $crispy__color-primary; border: 1px solid $crispy__color-primary;
background-color: $crispy__color-primary; background-color: $crispy__color-primary;
@ -27,7 +29,6 @@
background-color: lighten($crispy__color-secondary, 25%); background-color: lighten($crispy__color-secondary, 25%);
} }
.sm, .md, .md-only, .lg-only { .sm, .md, .md-only, .lg-only {
display: none; display: none;
} }


+ 0
- 0
src/scss/form/_field.scss View File


+ 2
- 0
src/scss/form/_form.scss View File

@ -0,0 +1,2 @@
@import
'text';

+ 56
- 0
src/scss/form/_text.scss View File

@ -0,0 +1,56 @@
/**
* input text
*
*
* @author Björn Hase
*
*/
$crispy__form__font-size: $crispy__body__font-size !default;
$crispy__form__padding: toEm(6px 8px) !default;
$crispy__form__text__color: $crispy__color-text !default;
$crispy__form__border: 1px solid $crispy__color-secondary !default;
$crispy__form__border-color--focus: $crispy__color-primary !default;
$crispy__form__border-color--valid: $crispy__color-success !default;
$crispy__form__border-color--error: $crispy__color-danger !default;
@mixin crispy__form__text() {
input:not([type="submit"]),
textarea {
display: block;
width: 100%;
line-height: $crispy__golden-ratio;
padding: $crispy__form__padding;
color: $crispy__form__text__color;
border: $crispy__form__border;
appearance: none;
@include crispy__font-size($crispy__form__font-size);
}
.field {
&--valid {
input:not([type="submit"]),
textarea {
border-color: $crispy__form__border-color--valid;
}
}
&--error {
input:not([type="submit"]),
textarea {
border-color: $crispy__form__border-color--error;
}
}
}
input:not([type="submit"]),
textarea {
&:focus {
border-color: $crispy__form__border-color--focus;
}
}
}

Loading…
Cancel
Save