aboutsummaryrefslogtreecommitdiff
path: root/scss/_custom-forms.scss
AgeCommit message (Collapse)AuthorFilesLines
2017-10-19Gradients and shadows (#24429)Mark Otto1-3/+3
* Update the form focus mixin to use a manual `$enable-shadows` check so we can always ensure a focus state for accessibility and consistency * - Add new `$input-btn-focus-width` and `$input-btn-focus-color` variables. - Replace separate `$btn-focus-box-shadow` and `$input-focus-box-shadow` variables with unified `$input-btn-focus-box-shadow` to match our combined variables approach elsewhere. * Put new focus width var to use in buttons mixins * use new button input-box shadow var * Add a new mixin for quickly adding linear gradient to components when $enable-gradients is set to true * use correct var * fix focus shadows in button mixins * Add opt-in gradients to alerts, buttons, carousel, custom radios and checkboxes, custom file input, and dropdown items * Generate .bg-gradient- utilities * add headings to colors page and document bg-gradient utils * update the button color for active status, check with yiq as it's done for basic state and hover state
2017-10-02Fix custom-select with "multiple" attribute (#23055)Lodder1-0/+5
2017-10-02Switch to stylelint. (#23572)XhmikosR1-2/+0
2017-10-02Revert input group border changes (#24197)Mark Otto1-6/+5
Turns out #22612 is a bad idea and it makes all sorts of weird visual glitches when working with form controls and transparent borders.
2017-08-10Custom File padding-x and padding-y values are reversed (#23067)Patrick Yeo1-3/+3
Custom File `$custom-file-focus-box-shadow` should show even if box shadows are disabled Custom File variables should inherit from inputs
2017-08-10Fix border on input group elements and custom form inputsNathan Woltman1-5/+6
c3e4cbd changed the border of input elements to be translucent. This commit makes input group elements and custom form inputs follow the same pattern.
2017-07-16(#22414) Rename for consistency `$custom-checkbox-border-radius`, ↵Patrick Yeo1-7/+7
`$custom-checkbox-icon-checked`, `$custom-checkbox-indeterminate-bg`, `$custom-checkbox-icon-indeterminate`, `$custom-checkbox-indeterminate-box-shadow`, `$custom-radio-border-radius`, `$custom-radio-icon-checked` to `$custom-checkbox-indicator-border-radius`, `$custom-checkbox-indicator-icon-checked`, `$custom-checkbox-indicator-indeterminate-bg`, `$custom-checkbox-indicator-icon-indeterminate`, `$custom-checkbox-indicator-indeterminate-box-shadow`, `$custom-radio-indicator-border-radius`, `$custom-radio-indicator-icon-checked`, respectively
2017-06-13Merge branch 'v4-dev' into form-tweaksMark Otto1-14/+14
2017-06-13(Fixes #22414) Rename for consistency `$custom-checkbox-radius`, ↵Patrick Yeo1-6/+6
`$custom-checkbox-checked-icon`, `$custom-checkbox-indeterminate-indicator-color`, `$custom-checkbox-indeterminate-icon`, `$custom-radio-radius`, `$custom-radio-checked-icon`, `$custom-select-sm-font-size`, to `$custom-checkbox-border-radius`, `$custom-checkbox-icon-checked`, `$custom-checkbox-indicator-indeterminate-color`, `$custom-checkbox-icon-indeterminate`, `$custom-radio-border-radius`, `$custom-radio-icon-checked`, `$custom-select-font-size-sm` respectively
2017-06-13(#22414) Rename for consistency `$custom-control-disabled-indicator-bg`, ↵Patrick Yeo1-9/+9
`$custom-control-disabled-description-color`, `$custom-control-checked-indicator-color`, `$custom-control-checked-indicator-bg`, `$custom-control-checked-indicator-box-shadow`, `$custom-control-focus-indicator-box-shadow`, `$custom-control-active-indicator-color`, `$custom-control-active-indicator-bg`, `$custom-control-active-indicator-box-shadow` to `$custom-control-indicator-disabled-bg`, `$custom-control-description-disabled-color`, `$custom-control-indicator-checked-color`, `$custom-control-indicator-checked-bg`, `$custom-control-indicator-checked-box-shadow`, `$custom-control-indicator-focus-box-shadow`, `$custom-control-indicator-active-color`, `$custom-control-indicator-active-bg`, `$custom-control-indicator-active-box-shadow`, respectively
2017-04-22Redo the small custom select varsMark Otto1-6/+2
— Sizing shorthand comes last — Add height var and put it to use
2017-04-22Change how input and select height is computedMark Otto1-2/+1
— Previously we weren't including the border-width on the computed height, leading to alignment issues. — New system utilizes three variables (not ideal, but straightforward) for computing these heights. One for the vertical border, one for the line-height/font-size/padding dance, and one to add those together. — Updates CSS across forms and custom forms to use new sizing. Special note here: form validation icon sizing uses the inner variables because background-image doesn't bleed into borders unless explicit background-clip.
2017-04-21Merge branch 'v4-dev' into form-tweaksMark Otto1-3/+0
2017-04-10Remove `cursor: not-allowed` stylesPatrick H. Lauke1-3/+0
2017-04-08fixes #21922: set border-radius to 0 when global radius is disabledMark Otto1-1/+5
2017-03-18Add :empty to .custom-file-control selector (#22176)Theriault1-1/+1
<label class="custom-file"><input type="file" class="custom-file-input" /><span class="custom-file-control"></span></label> VS <label class="custom-file"><input type="file" class="custom-file-input" /><span class="custom-file-control">test.txt</span></label>
2017-03-18Update scss mixins to comply with scss-linting rules (#22151)naicko1-1/+1
* Fixed some linting issues * Run npm tasks after scss cleanup * Revert "Run npm tasks after scss cleanup" This reverts commit 1103a0da68d1846ad592eb4a105046a939557830. * Property sort order for grid * Let's respest the property order in the mixins * Respect property sort order in reboot file * ::-ms-expand is a vendor-prefix, add it to the scss-lint disable * Revert hover mixin comment * Fixed missing mixin hover-focus
2017-03-03Fix border width calculation for custom-select (#22068)Rutger Laurman1-1/+1
In addition to #22011 and #21994
2017-02-21Remove vendor prefixes from appearance: none.Bardi Harborow1-3/+1
2017-01-23Remove `cursor: pointer;` (#21812)Mark Otto1-2/+0
* Remove most of custom cursor: pointer; implementations * turns out that's not so much of a thing
2017-01-15Remove filter: alpha(opacity = 0);Christian Oliff1-1/+0
Not needed (and all other old IE filter attributes have been removed from the CSS. This was the only one remaining
2017-01-03Custom Forms: Allow Chrome/Firefox feature that lets the user drag and drop ↵Phillip Marshall1-0/+2
into file inputs (#20033) * Restored functionality of dragging files into .custom-file inputs. * Replaced padding with height on .custom-file-input
2016-12-25use flex and direction to do the stacked controls instead of float hacksMark Otto1-2/+3
This also fixes #21280. Previously, we were using float and clear on the individual controls, but that meant a computer height of `0` for the parent `.custom-controls-stacked`. No more problem after using flexbox though.
2016-12-25move custom checks/radios to inline-flexMark Otto1-1/+1
2016-12-24Undo #21171 (which closed #20977)Mark Otto1-1/+2
Turns out we did have the correct height calculation with our custom selects. The problem was we lacked a shared line-height with our buttons and inputs. This restores the previous `calc` math and adds a line-height that reuses the input line-height.
2016-12-22Remove IE9 browser hacks. (#21393)Bardi Harborow1-4/+0
2016-12-10linting property orderMark Otto1-1/+1
2016-12-10put the custom control spacer var to useMark Otto1-0/+1
2016-12-04Move margin from adjacent selector to right on the .custom-control for ↵Mark Otto1-4/+1
better responsive rendering (#21295)
2016-11-26Update comment for use of IE9 hack to fix #18082Mark Otto1-1/+2
2016-10-27Merge pull request #19915 from zalog/patch-9Mark Otto1-0/+1
Zero out the default margin-bottom on label.custom-file
2016-10-27Merge pull request #21033 from twbs/label-less-custom-controlsMark Otto1-0/+1
Add a min-height: 1.5rem; to custom controls
2016-10-27Calculcate the top offset for custom control indicatorsMark Otto1-1/+1
Fixes #21023. Uses some math functions to determine what the offset should be. This is helpful for those who customize the size of their indicators and still want them vertically centered.
2016-10-27Add a min-height: 1.5rem; to custom controlsMark Otto1-0/+1
Fixes #20730. This change computes the minimum needed height of what a single line of text would be for the custom checkboxes/radios. This is required because our custom control indicators are positioned absolutely, meaning they cannot be clearfixed or anything like that. Using a computed value means it should scale nicely in case of customization
2016-10-09Set height on custom selectMark Otto1-0/+2
Matches the changes from #20874 to the regular select element. This is really only necessary for IE and Edge near as I can tell. Fixes #20810.
2016-10-03Fix broken/redirected links, moving to HTTPS where possible. (#20557)Bardi Harborow1-1/+1
2016-09-08v4: Custom checkbox and radio alignment (#20671)Mark Otto1-9/+4
* Allow text of custom form labels to wrap like the default ones * Switch from using after to force line breaks to float/clear combo in stacked custom forms
2016-05-16Update _custom-forms.scssCatalin Zalog1-0/+1
2016-05-08Merge pull request #19735 from MatthewRayfield/v4-custom-select-disabled-stylingMark Otto1-0/+6
Add disabled styling for .custom-select
2016-04-14Add disabled styling for .custom-selectMatthew Rayfield1-0/+6
2016-04-12Suppress IE/Edge additional white/blue colors for focused <select>Patrick H. Lauke1-0/+10
2016-02-16Fixes #19142 (follow-up to #18771): Restore cursor: pointer to custom ↵Mark Otto1-0/+1
radio/checkbox components
2016-02-09Merge pull request #18925 from twbs/fixes-18922Chris Rebert1-3/+10
Make translation of custom file input text easier
2016-02-06move the url to the variable valueMark Otto1-3/+3
2016-02-06Merge branch 'patch-1' of https://github.com/thekondrashov/bootstrap into ↵Mark Otto1-1/+1
thekondrashov-patch-1
2016-01-19Add pointer-events:none to custom indicatorPatrick H. Lauke1-0/+1
Closes #18887
2016-01-17Make translation of custom file input text easier; fixes #18922Chris Rebert1-3/+10
[skip sauce]
2016-01-17Missing ;Mark Otto1-1/+1
2016-01-17add custom file vars, fix up custom select varMark Otto1-23/+23
2016-01-16Hella vars for custom checkboxes and radios and selectsMark Otto1-48/+43