1 // Form elements and layouts
3 // --------------------------------------------------------------------------
5 // --------------------------------------------------------------------------
7 // The FancyCaptcha image CAPTCHA used on WMF wikis drives the width of the
8 // 'VForm' design, the form can't be narrower than this.
9 $captchaContainerWidth: 290px;
10 $defaultFormWidth: $captchaContainerWidth;
12 // Style a compact vertical stacked form ("VForm") and the elements in divs
15 @include box-sizing(border-box);
17 width: $defaultFormWidth;
25 // MW currently doesn't use the type attribute everywhere on inputs.
29 @include box-sizing(border-box);
34 // We exclude these because they'll generally use mw-ui-button.
35 // Otherwise, we'll unintentionally override that.
36 input:not([type=button]):not([type=submit]):not([type=file]), {
37 @include agora-field-styling; // mixins/_forms.scss
42 @include box-sizing(border-box);
43 @include agora-label-styling;
49 // Override input styling just for checkboxes and radio inputs.
50 input[type="checkbox"],
53 @include box-sizing(content-box);
60 // --------------------------------------------------------------------------
62 // --------------------------------------------------------------------------
64 // Apply mw-ui-input to individual input fields to style them.
65 // You generally don't need to use this class if <input> is within an Agora
66 // form container such as mw-ui-vform
68 @include agora-field-styling; // mixins/_forms.scss
71 // Apply mw-ui-label to individual elements to style them.
72 // You generally don't need to use this class if <label> is within an Agora
73 // form container such as mw-ui-vform
75 @include agora-label-styling; // mixins/_forms.scss
78 // Nesting an input checkbox or radio button inside a label with this class
79 // improves alignment, e.g.
80 // <label class="mw-ui-checkbox-label">
81 // <input type="checkbox">The label text
83 .mw-ui-checkbox-label, .mw-ui-radio-label {
84 @include agora-inline-label-styling;