Kontakt

Christina Riedl

Telefon: 07223 967-326

Telefax: 07223 967-7326

E-Mail: christina.riedl@schoeck.de

Nadine Seifried

Telefon: 07223 967-128

Telefax: 07223 967-7128

E-Mail: nadine.seifried@schoeck.de

Formularelemente Eingabefelder

Verwendung

Verwendung innerhalb von Formularen und für Suchfelder.

Vorschau

HTML

                
                  <div class="container">
  <div class="form">
    <div class="errors_wrapper">
      <div class="cms_common_errors">
        <div>
          <b>Hinweis:</b> Bitte prüfen Sie das Formular auf Fehler und korrigieren Sie diese.
        </div>
      </div>
    </div>
    <fieldset>
      <h3 class="fieldset_title">Nachricht</h3>
      <div class="fieldset_inner">
        <div class="fields_wrapper row">
          <div class="field_wrapper field_full col-xs-12 field_textarea">
            <div class="field_wrapper_inner">
              <label>Nachricht</label>
              <div class="form_field">
                <textarea name="message" rows="5" cols="50" class="cms_gui_textarea" tabindex="1"></textarea>
              </div>
            </div>
          </div>
        </div>
      </div>
    </fieldset>
    <fieldset>
      <h3 class="fieldset_title">Kontakt</h3>
      <div class="fieldset_inner">
        <div class="fields_wrapper row">
          <div class="field_wrapper field_regular col-xs-12 col-sm-6 field_clear field_textbox">
            <div class="field_wrapper_inner">
              <label class="cms_common_error">Vorname<span class="cms_common_mandatory_asterisk"> *</span></label>
              <div class="form_field">
                <input name="forename" type="text" value="" class="cms_gui_textbox cms_common_error" tabindex="4">
              </div>
              <i class="error" data-toggle="tooltip" data-placement="top" title="" data-original-title="Darf nicht leer sein"></i>
            </div>
          </div>
          <div class="field_wrapper field_regular col-xs-12 col-sm-6 field_textbox">
            <div class="field_wrapper_inner">
              <label>Nachname<span class="cms_common_mandatory_asterisk"> *</span></label>
              <div class="form_field">
                <input name="surname" type="text" value="" class="cms_gui_textbox" tabindex="5">
              </div>
            </div>
          </div>
          <div class="field_wrapper field_middle col-xs-12 col-sm-4 field_clear field_textbox">
            <div class="field_wrapper_inner">
              <label>Firma</label>
              <div class="form_field">
                <input name="company" type="text" value="" class="cms_gui_textbox" tabindex="6">
              </div>
            </div>
          </div>
          <div class="field_wrapper field_small col-xs-12 col-sm-2 field_textbox">
            <div class="field_wrapper_inner">
              <label>Telefon</label>
              <div class="form_field">
                <input name="phone" type="tel" value="" class="cms_gui_textbox" tabindex="7">
              </div>
            </div>
          </div>
          <div class="field_wrapper field_regular col-xs-12 col-sm-6 field_textbox">
            <div class="field_wrapper_inner">
              <label>E-Mail<span class="cms_common_mandatory_asterisk"> *</span></label>
              <div class="form_field form_field_double">
                <div class="row">
                  <div class="col-xs-12 col-sm-6">
                    <input name="email" type="email" value="" class="cms_gui_textbox repeated" tabindex="8">
                  </div>
                  <div class="col-xs-12 col-sm-6">
                    <input name="email_repeat" type="text" value="" class="cms_gui_textbox repeat" tabindex="9" placeholder="E-Mail wiederholen">
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </fieldset>
  </div>
</div>                
              

CSS

              @charset "UTF-8";
.form input[type=text],
.form input[type=email],
.form input[type=url],
.form input[type=tel],
.form input[type=file],
.form textarea {
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  color: #4c4c4c;
  font-size: 14px;
  font-size: 0.875rem;
  padding: 0 10px;
  transition: 0.2s border-color ease;
  width: 100%;
}
.form input[type=text]:focus,
.form input[type=email]:focus,
.form input[type=url]:focus,
.form input[type=tel]:focus,
.form input[type=file]:focus,
.form textarea:focus {
  border-color: #939393;
  outline: none;
}
.form input[type=text],
.form input[type=email],
.form input[type=url],
.form input[type=tel] {
  height: 44px;
  line-height: 44px;
}
.form textarea {
  height: 170px;
  padding: 10px;
  resize: none;
}

input {
  -moz-appearance: none;
  -webkit-appearance: none;
}
input::-webkit-input-placeholder {
  color: #b3b3b3 !important;
}
input:-moz-placeholder {
  color: #b3b3b3 !important;
}
input::-moz-placeholder {
  color: #b3b3b3 !important;
}
input:-ms-input-placeholder {
  color: #b3b3b3 !important;
}

.form .content_wrapper {
  margin-bottom: 50px;
}
@media screen and (max-width: 767px) {
  .form .content_wrapper {
    margin-bottom: 30px;
  }
}
.form .errors_wrapper {
  background-color: #fff2f3;
  border: 1px dashed #d50101;
  color: #d50101;
  font-size: 14px;
  font-size: 0.875rem;
  line-height: 19px;
  line-height: 1.1875rem;
  border-radius: 6px;
  margin-bottom: 55px;
  padding: 10px;
}
.form .errors_wrapper .cms_common_errors > div {
  margin-bottom: 5px;
}
.form .errors_wrapper .cms_common_errors > div.cms_common_errors_title {
  margin-bottom: 15px;
}
.form fieldset {
  position: relative;
}
.form fieldset:before {
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIgLz48L3N2Zz4g);
  background-image: -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(0%, rgba(215, 215, 215, 0)), color-stop(5%, #d7d7d7), color-stop(95%, #d7d7d7), color-stop(100%, rgba(215, 215, 215, 0)));
  background-image: -moz-linear-gradient(left, rgba(215, 215, 215, 0) 0%, #d7d7d7 5%, #d7d7d7 95%, rgba(215, 215, 215, 0) 100%);
  background-image: -webkit-linear-gradient(left, rgba(215, 215, 215, 0) 0%, #d7d7d7 5%, #d7d7d7 95%, rgba(215, 215, 215, 0) 100%);
  background-image: linear-gradient(to right, rgba(215, 215, 215, 0) 0%, #d7d7d7 5%, #d7d7d7 95%, rgba(215, 215, 215, 0) 100%);
  background-size: 100%;
  content: '';
  display: block;
  height: 1px;
  width: 100%;
}
.form fieldset .fieldset_title {
  background-color: #fff;
  display: inline-block;
  padding-right: 10px;
  position: relative;
  text-align: left;
  top: -13px;
  font-size: 20px;
  font-size: 1.25rem;
  line-height: 25px;
  line-height: 1.5625rem;
}
@media screen and (max-width: 767px) {
  .form fieldset .fieldset_title {
    font-size: 18px;
    font-size: 1.125rem;
    line-height: 22px;
    line-height: 1.375rem;
  }
}
@media screen and (max-width: 400px) {
  .form fieldset .fieldset_title {
    font-size: 17px;
    font-size: 1.0625rem;
    line-height: 21px;
    line-height: 1.3125rem;
  }
}
@media screen and (max-width: 350px) {
  .form fieldset .fieldset_title {
    font-size: 16px;
    font-size: 1rem;
    line-height: 20px;
    line-height: 1.25rem;
  }
}
@media screen and (max-width: 767px) {
  .form fieldset .fieldset_title {
    top: -10px;
  }
}
.form fieldset .fieldset_inner {
  margin-top: -24px;
  padding: 55px 0;
}
@media screen and (max-width: 767px) {
  .form fieldset .fieldset_inner {
    margin-top: -19px;
  }
}
.form fieldset.no_title .fieldset_inner {
  margin-top: 0;
}
.form fieldset:last-child .fieldset_inner:not(.keep-space) {
  padding-bottom: 0;
}
.form .fields_wrapper .field_wrapper {
  margin-bottom: 22px;
}
.form .fields_wrapper .field_wrapper:last-child {
  margin-bottom: 0;
}
.form .fields_wrapper .field_wrapper.field_clear {
  clear: both;
}
.form .fields_wrapper .field_wrapper.field_textbox .field_wrapper_inner, .form .fields_wrapper .field_wrapper.field_textarea .field_wrapper_inner {
  position: relative;
}
.form .fields_wrapper .field_wrapper.field_textbox .field_wrapper_inner label, .form .fields_wrapper .field_wrapper.field_textarea .field_wrapper_inner label {
  background-color: #fff;
  color: #7c7c7b;
  left: 15px;
  padding: 0 5px;
  font-size: 12px;
  font-size: 0.75rem;
  line-height: 14px;
  line-height: 0.875rem;
  position: absolute;
  top: -6px;
  z-index: 10;
}
.form .fields_wrapper .field_wrapper.field_textbox .field_wrapper_inner label.cms_common_error, .form .fields_wrapper .field_wrapper.field_textarea .field_wrapper_inner label.cms_common_error {
  color: #d50101;
}
.form .fields_wrapper .field_wrapper.field_textbox .field_wrapper_inner label.cms_common_error .cms_common_mandatory_asterisk, .form .fields_wrapper .field_wrapper.field_textarea .field_wrapper_inner label.cms_common_error .cms_common_mandatory_asterisk {
  color: #d50101;
}
.form .fields_wrapper .field_wrapper .field_wrapper_inner {
  position: relative;
}
.form .fields_wrapper .field_wrapper .field_wrapper_inner i.error {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  right: 15px;
  z-index: 100;
}
.form .fields_wrapper .field_wrapper .field_wrapper_inner i.error:before {
  font-family: 'schoeck';
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "";
}
.form .fields_wrapper .field_wrapper .field_wrapper_inner i.error:before {
  color: #d50101;
}
@media print, screen and (min-width: 768px) {
  .form .fields_wrapper .field_wrapper .field_wrapper_inner .form_field_double + i.error {
    right: calc(30px + 50%);
  }
}
@media screen and (max-width: 767px) {
  .form .fields_wrapper .field_wrapper .field_wrapper_inner .form_field_double + i.error {
    transform: none;
    top: 13px;
  }
}
@media screen and (max-width: 767px) {
  .form .fields_wrapper .field_wrapper .form_field_double .repeated {
    margin-bottom: 22px;
  }
}
@media print, screen and (min-width: 768px) {
  .form .fields_wrapper .field_wrapper .form_field_double .repeated.cms_common_error {
    padding-right: 10px;
  }
}
.form input[type=text],
.form input[type=email],
.form input[type=url],
.form input[type=tel] {
  width: 100%;
}
.form input[type=text].cms_common_error,
.form input[type=email].cms_common_error,
.form input[type=url].cms_common_error,
.form input[type=tel].cms_common_error {
  background-color: #fff2f3;
  border: 1px dashed #d50101;
  color: #d50101;
  padding-right: 44px;
}
.form textarea {
  resize: none;
  width: 100%;
}
.form .cms_common_mandatory_asterisk {
  color: #0069b4;
}

.tooltip {
  padding: 0 !important;
}
.tooltip .tooltip-inner {
  background-color: #fff;
  border: 1px solid #e6e6e6;
  color: #4c4c4c;
  margin-bottom: 15px;
  max-width: 100vw;
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 15px;
}
.tooltip .tooltip-inner img {
  height: auto;
  max-width: 100%;
}
.tooltip .tooltip-arrow {
  background-color: #fff;
  height: 20px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 20px;
}
.tooltip.top .tooltip-arrow {
  border: none;
  border-bottom: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
  bottom: 5px;
  margin: 0;
}
.tooltip.bottom .tooltip-inner {
  margin-bottom: 0;
  margin-top: 15px;
}
.tooltip.bottom .tooltip-arrow {
  border: none;
  border-left: 1px solid #e6e6e6;
  border-top: 1px solid #e6e6e6;
  margin: 0;
  top: 5px;
}

            

SCSS

              @import "../general/_general";

$form-border-grey:#d9d9d9;
$form-border-grey-focus:#939393;
$form-error-background:#fff2f3;
$form-error-text:#d50101;

.form {
  input[type=text],
  input[type=email],
  input[type=url],
  input[type=tel],
  input[type=file],
  textarea {
    background-color:#fff;
    @include border-radius(6px);
    border:1px solid $form-border-grey;
    color:$darkergrey;
    @include rem-font-size(14);
    padding:0 10px;
    @include transition($linkcolor-transition-duration border-color ease);
    width:100%;

    &:focus {
      border-color:$form-border-grey-focus;
      outline:none;
    }
  }

  input[type=text],
  input[type=email],
  input[type=url],
  input[type=tel] {
    height:44px;
    line-height:44px;
  }

  textarea {
    height:170px;
    padding:10px;
    resize:none;
  }
}

input {
  @include placeholder {
    color:$grey !important;
  }

  -moz-appearance:none;
  -webkit-appearance:none;
}

.form {
  .content_wrapper {
    margin-bottom:50px;

    @media screen and (max-width:767px) {
      margin-bottom:30px;
    }
  }

  .errors_wrapper {
    background-color:$form-error-background;
    border:1px dashed $form-error-text;
    color:$form-error-text;
    @include rem-font-size(14);
    @include rem-line-height(19);
    @include border-radius(6px);
    margin-bottom:55px;
    padding:10px;

    .cms_common_errors {
      > div {
        margin-bottom:5px;

        &.cms_common_errors_title {
          margin-bottom:15px;
        }
      }
    }
  }

  fieldset {
    position:relative;

    &:before {
      background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiP…Igd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIgLz48L3N2Zz4g);
      background-image:-webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(0%, rgba(215, 215, 215, 0)), color-stop(5%, #d7d7d7), color-stop(95%, #d7d7d7), color-stop(100%, rgba(215, 215, 215, 0)));
      background-image:-moz-linear-gradient(left, rgba(215, 215, 215, 0) 0%, #d7d7d7 5%, #d7d7d7 95%, rgba(215, 215, 215, 0) 100%);
      background-image:-webkit-linear-gradient(left, rgba(215, 215, 215, 0) 0%, #d7d7d7 5%, #d7d7d7 95%, rgba(215, 215, 215, 0) 100%);
      background-image:linear-gradient(to right, rgba(215, 215, 215, 0) 0%, #d7d7d7 5%, #d7d7d7 95%, rgba(215, 215, 215, 0) 100%);
      background-size:100%;
      content:'';
      display:block;
      height:1px;
      width:100%;
    }

    .fieldset_title {
      background-color:$white;
      display:inline-block;
      padding-right:10px;
      position:relative;
      text-align:left;
      top:-13px;

      @include rem-font-size(20);
      @include rem-line-height(25);

      @media screen and (max-width:767px) {
        @include rem-font-size(18);
        @include rem-line-height(22);
      }

      @media screen and (max-width:400px) {
        @include rem-font-size(17);
        @include rem-line-height(21);
      }

      @media screen and (max-width:350px) {
        @include rem-font-size(16);
        @include rem-line-height(20);
      }

      @media screen and (max-width:767px) {
        top:-10px;
      }
    }

    .fieldset_inner {
      margin-top:-24px;

      padding:55px 0;

      @media screen and (max-width:767px) {
        margin-top:-19px;
      }
    }

    &.no_title {
      .fieldset_inner {
        margin-top:0;
      }
    }

    &:last-child {
      .fieldset_inner:not(.keep-space) {
        padding-bottom:0;
      }
    }
  }

  .fields_wrapper {
    .field_wrapper {
      margin-bottom:22px;

      &:last-child {
        margin-bottom:0;
      }

      &.field_clear {
        clear:both;
      }

      &.field_textbox,
      &.field_textarea {
        .field_wrapper_inner {
          position:relative;

          label {
            background-color:$white;
            color:$darkgrey;
            left:15px;
            padding:0 5px;
            @include rem-font-size(12);
            @include rem-line-height(14);
            position:absolute;
            top:-6px;
            z-index:10;

            &.cms_common_error {
              color:$form-error-text;

              .cms_common_mandatory_asterisk {
                color:$form-error-text;
              }
            }
          }
        }
      }

      .field_wrapper_inner {
        position:relative;

        i {
          &.error {
            @include autocenterY();
            position:absolute;
            right:15px;
            @include schoeck-icon($icon-info);
            z-index:100;

            &:before {
              color:$form-error-text;
            }
          }
        }

        .form_field_double {
          & + i {
            &.error {
              @media print, screen and (min-width:768px) {
                right:calc(30px + 50%);
              }
              @media screen and (max-width:767px) {
                transform:none;
                top:13px;
              }
            }
          }
        }
      }

      .form_field_double {
        .repeated {
          @media screen and (max-width:767px) {
            margin-bottom:22px;
          }

          &.cms_common_error {
            @media print, screen and (min-width:768px) {
              padding-right:10px;
            }
          }
        }
      }
    }
  }

  input[type=text],
  input[type=email],
  input[type=url],
  input[type=tel] {
    width:100%;

    &.cms_common_error {
      background-color:$form-error-background;
      border:1px dashed $form-error-text;
      color:$form-error-text;
      padding-right:44px;
    }
  }

  textarea {
    resize:none;
    width:100%;
  }

  .cms_common_mandatory_asterisk {
    color:$blue;
  }
}

.tooltip {
  padding:0 !important;

  .tooltip-inner {
    background-color:$white;
    border:1px solid $lightgrey;
    color:$darkergrey;
    margin-bottom:15px;
    max-width:100vw;
    @include border-radius(3px);
    @include box-shadow(0 0 20px rgba(0, 0, 0, .1));
    padding:15px;

    img {
      height:auto;
      max-width:100%;
    }
  }

  .tooltip-arrow {
    background-color:$white;
    height:20px;
    left:50%;
    transform:translateX(-50%) rotate(45deg);
    width:20px;
  }

  &.top {
    .tooltip-arrow {
      border:none;
      border-bottom:1px solid $lightgrey;
      border-right:1px solid $lightgrey;
      bottom:5px;
      margin:0;
    }
  }

  &.bottom {
    .tooltip-inner {
      margin-bottom:0;
      margin-top:15px;
    }
    .tooltip-arrow {
      border:none;
      border-left:1px solid $lightgrey;
      border-top:1px solid $lightgrey;
      margin:0;
      top:5px;
    }
  }
}
            

JavaScript

                jQuery(document).ready(function () {
  jQuery('.form [data-toggle="tooltip"]').tooltip({
    container: 'body',
    html: true
  });
});