X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fthemes%2Fseven%2Fcss%2Fcomponents%2Fform.css;h=68dedf1745fa278f8363d0228e9822a991faf7f4;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=9f27d310c97eac456c74c27d9e539353a279f8b8;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/web/core/themes/seven/css/components/form.css b/web/core/themes/seven/css/components/form.css index 9f27d310c..68dedf174 100644 --- a/web/core/themes/seven/css/components/form.css +++ b/web/core/themes/seven/css/components/form.css @@ -19,7 +19,7 @@ fieldset:not(.fieldgroup) { * @todo remove once this Mozilla bug is fixed. * See https://bugzilla.mozilla.org/show_bug.cgi?id=504622 */ -@-moz-document url-prefix() { +@media (min--moz-device-pixel-ratio: 0) { fieldset:not(.fieldgroup) { display: table-cell; } @@ -41,7 +41,7 @@ fieldset:not(.fieldgroup) > legend { * @todo remove once this Mozilla bug is fixed. * See https://bugzilla.mozilla.org/show_bug.cgi?id=504622 */ -@-moz-document url-prefix() { +@media (min--moz-device-pixel-ratio: 0) { .fieldgroup { display: table-cell; } @@ -49,6 +49,20 @@ fieldset:not(.fieldgroup) > legend { .form-item { margin: 0.75em 0; } +/** + * When a table row has a single form item, prevent it from adding unnecessary + * extra spacing. If it has multiple form items, allow spacing between them, + * overriding Classy. + */ +tr.odd .form-item, +tr.even .form-item { + margin-top: 0.75em; + margin-bottom: 0.75em; +} +td > .form-item:only-child { + margin-top: 0; + margin-bottom: 0; +} .form-type-checkbox { padding: 0; } @@ -179,8 +193,6 @@ textarea.form-textarea { max-width: 100%; border: 1px solid #b8b8b8; border-top-color: #999; - background: #fff; - color: #333; border-radius: 2px; background: #fcfcfa; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.125);