css 重力形式CSS与隐藏标签

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 重力形式CSS与隐藏标签相关的知识,希望对你有一定的参考价值。

body .gform_wrapper .gform_footer {
  padding-bottom: 0;
}

@media screen and (min-width: 768px) {
  body .gform_wrapper .gform_footer {
    text-align: right;
  }
}

body .gform_wrapper_fields, body .gform_wrapper_fields ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 768px) {
  body .gform_wrapper_ajax_spinner {
    float: left;
    margin-top: 22px;
  }
}

body .gform_wrapper ul.gform_fields {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

body .gform_wrapper ul.gform_fields li.gfield {
  margin-top: 0;
  margin-bottom: 10px;
  padding-right: 0;
  width: 100%;
  list-style: none;
}

body .gform_wrapper ul.gform_fields li.gfield .gfield_label {
  font-weight: normal;
  margin: -1px;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip: rect(0, 0, 0, 0);
  position: absolute;
}

body .gform_wrapper ul.gform_fields li.gfield.gform__two-col {
  clear: both;
}

@media screen and (min-width: 481px) {
  body .gform_wrapper ul.gform_fields li.gfield.gform__two-col {
    padding-right: 15px;
    clear: none;
    float: left;
    width: 50%;
  }

  body .gform_wrapper ul.gform_fields li.gfield.gform__two-col--last {
    padding-left: 15px;
    padding-right: 0;
  }

  body .gform_wrapper ul.gform_fields li.gfield.gform__two-col--last + .gfield {
    clear: both;
  }
}

body .gform_wrapper ul.gform_fields li.gfield.gfield_error {
  border: none;
  padding-top: 0;
  padding-bottom: 0;
  background-color: transparent;
  margin-bottom: 17px !important;
  width: 100% !important;
}

body .gform_wrapper ul.gform_fields li.gfield.gfield_error .ginput_container input, body .gform_wrapper ul.gform_fields li.gfield.gfield_error .ginput_container select, body .gform_wrapper ul.gform_fields li.gfield.gfield_error .ginput_container textarea {
  border-color: #d9534f;
  background-color: #f9e2e2;
}

body .gform_wrapper ul.gform_fields li.gfield.gfield_error:not(.gf_left_half):not(.gf_right_half) {
  width: 100% !important;
  min-width: 100%;
}

body .gform_wrapper ul.gform_fields .gfield_checkbox {
  text-align: left;
  padding-left: 0;
  list-style: none;
}

body .gform_wrapper ul.gform_fields .gfield_checkbox li {
  position: relative;
  padding-left: 25px !important;
}

body .gform_wrapper ul.gform_fields .gfield_checkbox li .ez-checkbox {
  position: absolute;
  left: 0;
  top: 8px;
}

body .gform_wrapper ul.gform_fields .gfield_checkbox li > input {
  position: absolute;
  left: 0;
  top: 0px;
  display: inline-block;
  margin: 0;
  width: auto !important;
}

body .gform_wrapper ul.gform_fields .gfield_checkbox li label {
  font-weight: normal;
}

body .gform_wrapper ul.gform_fields .ginput_container {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin-top: 0 !important;
}

body .gform_wrapper ul.gform_fields .ginput_container input, body .gform_wrapper ul.gform_fields .ginput_container textarea, body .gform_wrapper ul.gform_fields .ginput_container select {
  width: 100% !important;
  padding: 12px !important;
  border: solid 1px #4a7563 !important;
  font-size: 12px !important;
  vertical-align: top;
  color: #254E38;
  font-weight: 500;
  border-radius: 1px;
  background-color: #fff;
  height: auto;
  line-height: 1.166666667;
  transition: 0.15s all;
}

body .gform_wrapper ul.gform_fields .ginput_container input::-webkit-input-placeholder, body .gform_wrapper ul.gform_fields .ginput_container textarea::-webkit-input-placeholder, body .gform_wrapper ul.gform_fields .ginput_container select::-webkit-input-placeholder {
  color: #4a7563;
}

body .gform_wrapper ul.gform_fields .ginput_container input::-moz-placeholder, body .gform_wrapper ul.gform_fields .ginput_container textarea::-moz-placeholder, body .gform_wrapper ul.gform_fields .ginput_container select::-moz-placeholder {
  color: #4a7563;
}

body .gform_wrapper ul.gform_fields .ginput_container input:-moz-placeholder, body .gform_wrapper ul.gform_fields .ginput_container textarea:-moz-placeholder, body .gform_wrapper ul.gform_fields .ginput_container select:-moz-placeholder {
  color: #4a7563;
}

body .gform_wrapper ul.gform_fields .ginput_container input:-ms-input-placeholder, body .gform_wrapper ul.gform_fields .ginput_container textarea:-ms-input-placeholder, body .gform_wrapper ul.gform_fields .ginput_container select:-ms-input-placeholder {
  color: #4a7563;
}

body .gform_wrapper ul.gform_fields .ginput_container input:focus, body .gform_wrapper ul.gform_fields .ginput_container textarea:focus, body .gform_wrapper ul.gform_fields .ginput_container select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(74, 117, 99, 0.3);
}

body .gform_wrapper ul.gform_fields .ginput_container select {
  height: 38px;
  text-indent: 4px;
}

body .gform_wrapper ul.gform_fields .ginput_container textarea {
  min-height: 109px;
  line-height: 1.5 !important;
}

body .gform_wrapper button, body .gform_wrapper input[type="button"], body .gform_wrapper input[type="reset"], body .gform_wrapper input[type="submit"] {
  background-color: #c48370;
  color: #fff;
  max-width: 100%;
  font-size: 12px !important;
  font-weight: bold;
  line-height: 1.33333;
  cursor: pointer;
  padding: 13px 45px 11px;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  border: none;
  margin-right: 0 !important;
  text-transform: uppercase;
}

body .gform_wrapper button:after, body .gform_wrapper input[type="button"]:after, body .gform_wrapper input[type="reset"]:after, body .gform_wrapper input[type="submit"]:after {
  background-color: #9F6C5B;
}

body .gform_wrapper button:hover, body .gform_wrapper button:active, body .gform_wrapper input[type="button"]:hover, body .gform_wrapper input[type="button"]:active, body .gform_wrapper input[type="reset"]:hover, body .gform_wrapper input[type="reset"]:active, body .gform_wrapper input[type="submit"]:hover, body .gform_wrapper input[type="submit"]:active {
  color: #fff;
  background-color: #9F6C5B;
}

@media screen and (max-width: 480px) {
  body .gform_wrapper button, body .gform_wrapper input[type="button"], body .gform_wrapper input[type="reset"], body .gform_wrapper input[type="submit"] {
    width: 100%;
  }
}

.section--bg-dark body .gform_wrapper button, .section--bg-dark body .gform_wrapper input[type="button"], .section--bg-dark body .gform_wrapper input[type="reset"], .section--bg-dark body .gform_wrapper input[type="submit"] {
  padding: 7px 11px;
  background-color: rgba(255, 255, 255, 0.29);
  border: none;
}

@media screen and (min-width: 481px) {
  body .gform_wrapper.gform_validation_error .gform_body ul li.gfield.gfield_error.gform__two-col:not(.gf_left_half):not(.gf_right_half) {
    padding-right: 15px;
    clear: none;
    float: left;
    width: 50% !important;
    min-width: 50% !important;
    max-width: none !important;
  }

  body .gform_wrapper.gform_validation_error .gform_body ul li.gfield.gfield_error.gform__two-col--last:not(.gf_left_half):not(.gf_right_half) {
    padding-left: 15px;
    padding-right: 0;
  }

  body .gform_wrapper.gform_validation_error .gform_body ul li.gfield.gfield_error.gform__two-col--last:not(.gf_left_half):not(.gf_right_half) + .gfield {
    clear: both;
  }
}

body .gform_wrapper div.validation_error {
  background-color: #d9534f;
  color: #fff;
  display: block;
  margin-bottom: 20px;
  padding: 10px 15px;
  border: none;
}

body .gform_wrapper .validation_message {
  display: none !important;
}

body .gform_wrapper.show-labels_wrapper ul.gform_fields li.gfield .gfield_label {
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  position: relative;
  display: block;
  font-weight: bold;
  margin: 0 0 7px;
}

body .gform_wrapper.show-labels_wrapper ul.gform_fields li.gfield .ginput_complex .ginput_full {
  display: block;
  margin-bottom: 15px;
}

body .gform_wrapper.show-labels_wrapper ul.gform_fields li.gfield ul.gfield_radio li {
  display: inline-block;
  margin-right: 10px;
}

body .gform_wrapper.show-labels_wrapper ul.gform_fields li.gfield ul.gfield_radio li input {
  margin-top: 2px !important;
}

以上是关于css 重力形式CSS与隐藏标签的主要内容,如果未能解决你的问题,请参考以下文章

css 重力Wiz //重力形式//水平形式助手样式

css 重力Wiz //重力形式//水平形式助手样式

css 重力表隐藏验证输入

css 重力特权//重力形式多页面导航//样式指南

css 重力特权//重力形式多页面导航//样式指南

css 重力Wiz //重力形式//编号列表字段行