瀏覽代碼

Lodestar: 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 年之前
父節點
當前提交
05061edcfc
共有 1 個文件被更改,包括 38 次插入0 次删除
  1. 38 0
      lodestar/style.css

+ 38 - 0
lodestar/style.css

@@ -2029,6 +2029,44 @@ h2.widget-title {
 	max-width: 100%;
 }
 
+/*--------------------------------------------------------------
+# 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: .4375em;
+  float: none;
+}
+.site-content .contact-form label.checkbox,
+.site-content .contact-form > div {
+  margin-bottom: .875em;
+}
+.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: .4375em;
+  max-width: 100%;
+}
+.site-content .contact-form .grunion-field-label {
+  margin-bottom: .21875em;
+  width: 100%;
+}
+.site-content .contact-form .grunion-field-label.textarea {
+  width: 100%;
+}
+
 /*--------------------------------------------------------------
 # WP.com-specific
 --------------------------------------------------------------*/