垂直形式字段表现奇怪

时间:2017-05-08 08:41:52

标签: html css wordpress forms shortcode

我使用以下代码创建了一个包含Contact Form 7的垂直表单:

input[type="phone"]::-webkit-input-placeholder {
    -webkit-transition: opacity 0.3s linear;
    color: black;
  }
  
  input[type="phone"]:focus::-webkit-input-placeholder {
    opacity: 0;
  }
}
input[type="text"]::-webkit-input-placeholder {
  -webkit-transition: opacity 0.3s linear;
  color: black;
}
input[type="text"]:focus::-webkit-input-placeholder {
  opacity: 0;
}

.wpcf7-form-control.wpcf7-submit {
  width: 40% !important;
  text-align: center !important;
  background-color: #ff6600 !important;
  color: #0E1428 !important;
  font-family: open sans hebrew condensed;
  font-size: 20px;
  font-style: normal !important;
  font-weight: 900;
  border: 0;
  border-radius: 100em;
  display: inline-block;
  left: auto;
  right: auto;
  overflow: hidden;
  min-width: 250px;
}

@keyframes bounce {
  0%,
  20%,
  60%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
  }
  80% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
}

input[type="submit"]:hover {
  width: 40% !important;
  text-align: center !important;
  letter-spacing: 4px;
  background-color: #0E1428 !important;
  color: #ff6600 !important;
  font-family: open sans hebrew condensed;
  font-size: 20px;
  font-style: normal !important;
  font-weight: 900;
  animation: bounce 1s;
  border: 0;
  border-radius: 100em;
  display: inline-block;
  left: auto;
  right: auto;
  overflow: hidden;
  min-width: 250px;
}

body .cf7-style input[type=”text”]:focus,
body .cf7-style input[type=”email”]:focus,
body .cf7-style textarea:focus {
  transition: opacity 0.5s 0.5s ease !important;
  opacity: 0 !important;
}

[placeholder]:focus::-webkit-input-placeholder {
  transition: opacity 0.5s 0.5s ease;
  opacity: 0;
}

[placeholder] {
  width: 25% !important;
  background-color: rgba(255, 255, 255, 0.8) !important;
  height: 40px !important;
  color: black !important;
  margin: 0 auto;
  text-align: center !important;
  border-radius: 10px !important;
  display: inline-block;
  left: auto;
  right: auto;
  font-family: open sans hebrew condensed !important;
  font-style: italic;
  border: 2px solid #0E1428 !important;
  min-width: 164px;
}

[placeholder]:focus {
  background-color: rgba(221, 221, 221, 0.8) !important;
  transition: opacity 0.5s 0.5s ease !important;
  font-family: open sans hebrew condensed !important;
  font-style: italic !important;
  border: 2px solid #ff6600 !important;
  box-shadow: 0 0 10px #719ECE !important;
  min-width: 164px;
}
<center>

  <label for=".elementor-6 .elementor-element.elementor-element-5m0lukt .wpcf7 input[type=" text "]"><input type=text textarea name="your-name" placeholder="שם" required id:name </input></label> <label for=".wpcf7-form-control.wpcf7-text.wpcf7-tel.wpcf7-validates-as-required.wpcf7-validates-as-tel* your-email"> <input type="phone" textarea name="your-phone" input placeholder="טלפון" id:phone required</input></label>  [submit "!אני רוצה עוד פרטים"]
</center>

0 个答案:

没有答案
相关问题