Przeglądaj źródła

Radcliffe 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 lat temu
rodzic
commit
44d4df54e6
1 zmienionych plików z 31 dodań i 0 usunięć
  1. 31 0
      radcliffe-2/style.css

+ 31 - 0
radcliffe-2/style.css

@@ -1975,6 +1975,37 @@ form label,
 	transform: translate(-50%, 0);
 }
 
+/*--------------------------------------------------------------
+# Jetpack Contact Forms
+--------------------------------------------------------------*/
+
+.site-content .contact-form input[type="radio"],
+.site-content .contact-form input[type="checkbox"] {
+	margin-bottom: 6px;
+	margin-right: .3em;
+	vertical-align: middle;
+}
+.site-content .contact-form label.checkbox,
+.site-content .contact-form label.checkbox-multiple,
+.site-content .contact-form label.radio {
+	font-weight: normal;
+	font-style: normal;
+	margin-bottom: 0;
+	float: none;
+	line-height: 1.8;
+}
+.site-content .contact-form > div {
+	margin-bottom: 18px;
+}
+.site-content .contact-form textarea,
+.site-content .contact-form input[type='text'],
+.site-content .contact-form input[type='email'],
+.site-content .contact-form input[type='url'],
+.site-content .contact-form select {
+	margin-bottom: 4px;
+	max-width: 100%;
+}
+
 /*--------------------------------------------------------------
 # Media
 --------------------------------------------------------------*/