Pārlūkot izejas kodu

Affinity: 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 gadi atpakaļ
vecāks
revīzija
30b679b250
1 mainītis faili ar 27 papildinājumiem un 0 dzēšanām
  1. 27 0
      affinity/style.css

+ 27 - 0
affinity/style.css

@@ -598,6 +598,33 @@ textarea {
   top: -2px;
 }
 
+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: .2em;
+}
+body .contact-form label.checkbox {
+  margin-bottom: .8em;
+}
+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: .4em;
+}
+
+body .contact-form > div {
+  margin-bottom: .8em;
+}
+
 /*--------------------------------------------------------------
 # Forms
 --------------------------------------------------------------*/