Jelajahi Sumber

Button 2: Adds cleaner styles and spacing to Jetpack contact forms; better alignment for radio and checkbox labels with their form elements; removes bold font face from radio and checkbox labels. All styles prefaced with the body tag to override Jetpack's styles. See #2

Caroline Moore 7 tahun lalu
induk
melakukan
13ac2133a7
1 mengubah file dengan 28 tambahan dan 0 penghapusan
  1. 28 0
      button-2/style.css

+ 28 - 0
button-2/style.css

@@ -1846,6 +1846,34 @@ div#respond {
 	background-color: #ddd;
 }
 
+/*--------------------------------------------------------------
+# Jetpack Contact Forms
+--------------------------------------------------------------*/
+
+body .contact-form input[type="radio"],
+body .contact-form input[type="checkbox"] {
+  margin-bottom: 6px;
+  margin-right: .3em;
+  vertical-align: middle;
+}
+body .contact-form label.checkbox,
+body .contact-form label.checkbox-multiple,
+body .contact-form label.radio {
+  font-weight: normal;
+  margin-bottom: .1875em;
+}
+body .contact-form label.checkbox,
+body .contact-form > div {
+  margin-bottom: .75em;
+}
+body .contact-form textarea,
+body .contact-form input[type='text'],
+body .contact-form input[type='email'],
+body .contact-form input[type='url'],
+body .contact-form select {
+  margin-bottom: .375em;
+}
+
 /*--------------------------------------------------------------
 # Media
 --------------------------------------------------------------*/