Browse Source

Penscratch 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 years ago
parent
commit
f280a7b141
1 changed files with 33 additions and 0 deletions
  1. 33 0
      penscratch-2/style.css

+ 33 - 0
penscratch-2/style.css

@@ -1825,6 +1825,39 @@ object {
 			transition: all .3s ease-in-out;
 }
 
+/* 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: 4px;
+  float: none;
+}
+.site-content .contact-form label.checkbox,
+.site-content .contact-form > div {
+  margin-bottom: 14px;
+}
+.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: 7px;
+  max-width: 100%;
+}
+.site-content .contact-form .grunion-field-label {
+  margin-bottom: 4px;
+  width: 100%;
+}
+
 div.sharedaddy div.sd-block {
 	padding: 14px 0 14px !important;
 }