aboutsummaryrefslogtreecommitdiff
path: root/scss/_buttons.scss
AgeCommit message (Collapse)AuthorFilesLines
2020-03-31Added focus state to .btn-link (#30036)Tim Dujardin1-1/+0
2020-03-09$link-decoration: underline affects some components (#30262)Martijn Cuppens1-0/+1
Co-authored-by: Shohei Yoshida <[email protected]> Co-authored-by: Martijn Cuppens <[email protected]>
2020-02-03Fix disabled `.btn` cursor (#30004)Martijn Cuppens1-6/+9
2019-11-02Add configurable button text wrapping (#29554)Martijn Cuppens1-0/+1
2019-08-17Restore `cursor: pointer` for checkbox/radio buttons (#29239)Martijn Cuppens1-0/+1
2019-07-31Apply `at-mixin-argumentless-call-parentheses: always` stylelint rule for v4 ↵Martijn Cuppens1-2/+2
mixins
2019-02-07Optional btn & input font sizes (#28068)Martijn Cuppens1-0/+1
2019-02-06Add text-decoration to .btn-link. (#28169)Bardi Harborow1-0/+1
2019-01-04Move hand cursor for buttons to rebootMartijn Cuppens1-5/+0
2018-10-17Fix btn focus color (#27178)Martijn Cuppens1-2/+1
2018-09-18Variable .btn and .form-control font sizes (#26908)Martijn Cuppens1-3/+3
2018-09-17#27220: cleanup .btn-link hover/focus properties (#27250)Martijn Cuppens1-4/+0
2018-09-02Set .btn base colorMartijn Cuppens1-0/+2
2018-09-02Move transparent background to .btn and remove background-imageMartijn Cuppens1-0/+1
2018-08-19Remove nowrap from .btnRowan-James Tran1-1/+0
2018-07-20Allow background images for active buttonsMartijn Cuppens1-1/+0
2018-03-12Disable link functionality on disabled `btn-link` (#25645)Peter Etelej1-0/+1
Future-proof disabling of clicks on disabled `btn-link`. Fixes #25639 ensuring consistency between `btn-link` `<button>`s and `<a>`s when disabled.
2018-01-18Outline button hover color (#25339)Mark Otto1-5/+1
2018-01-15Consistently use `:disabled` rather than `[disabled]` selector (#25317)Patrick H. Lauke1-4/+4
Closes https://github.com/twbs/bootstrap/issues/25316
2017-12-27line breakMark Otto1-0/+1
2017-12-27fix mixin includeMark Otto1-2/+2
2017-12-27Only apply the active and focus shadow on the focus state for :activeMark Otto1-1/+5
2017-12-27Opinionated: reintroduce `cursor:pointer`patrickhlauke1-0/+5
Explicitly re-adds the "hand" `cursor:pointer` for non-disabled `.btn`, `.close`, `.navbar-toggler` elements, as well as forcing `page-link` pagination controls to always have the "hand" cursor (even if an author uses it on, say, `<button>` elements for a dynamically updating in-page pagination). Controversial, as everybody jumped on the bandwagon following this article https://medium.com/simple-human/buttons-shouldnt-have-a-hand-cursor-b11e99ca374b - which does have its merits of course, but there are also counter-arguments like http://kizu.ru/en/issues/cursor-pointer/ And seeing the amount of issues we've seen following the change, and the potential complexity needed to consistently address the cursor issue (see https://github.com/twbs/bootstrap/issues/24156 where i explore how the cursor needs to be based on "intent", and how that's tough to determine), I'm favouring an opinionated take here of just reintroducing the `cursor:pointer`.
2017-11-08Adds underline back to `btn-link` on focusAndres Galante1-0/+1
2017-11-06Move hardcoded opacity value in `.btn:disabled` to variable ↵Patrick Yeo1-1/+1
`$btn-disabled-opacity` (#24680)
2017-10-25update new focus and shadow properties to use varsMark Otto1-2/+2
2017-10-22Merge branch 'btn_input_split_variables' of ↵Mark Otto1-4/+4
https://github.com/isychev/bootstrap into isychev-btn_input_split_variables
2017-10-22Merge branch 'v4-dev' into btn_input_split_variablesMark Otto1-2/+2
2017-10-23Refactor a few selectors. (#24404)XhmikosR1-4/+4
1. move a couple of them before the more specific ones. 2. change nesting to be under the same parent selector 3. use the ampersand more
2017-10-19Gradients and shadows (#24429)Mark Otto1-2/+2
* 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-19append btn-* and input-* variables and extends their from input-btn-* variablesi.sychev1-4/+4
2017-10-09Ensure active button styles are not applied to disabled buttonsPrateek Goel1-2/+2
2017-10-02Switch to stylelint. (#23572)XhmikosR1-1/+1
2017-10-02removes border radius from btn-link (#24128)Andres Galante1-1/+0
2017-08-22replaced basic line-heights variable with button's line-heights variable for ↵Svyatoslav Polishchuk1-2/+2
button size classes
2017-08-14Fix .btn-outline-light hover colorMark Otto1-1/+5
Uses some if/else action to ensure there's readable text on hover. Swapped out a hex value to a variable while I was in there. Fixes #23398, fixes #23351.
2017-08-13Button code cleanup (#22951)Mark Otto1-20/+12
* use a mixin there * revamp .btn-link to match default and outline variants * remove unnecessary properties
2017-07-05Remove box-shadow from .btn-link:focus (#22998)Patrick H. Lauke1-0/+1
When focused, these buttons styled as links still give good visible focus indication through the underline, so this should not be a concern. Closes #22655
2017-06-18remove - vars, update docs to generate from data yml files, update mixins, ↵Mark Otto1-35/+8
and generate card, button, bg, and color classes from the sass map
2017-04-16Rename variable $input-border-focus to $input-border-color-focus (#22413)Patrick Yeo1-7/+7
* Rename variable $input-border-focus to $input-border-color-focus * Rename variables $pagination-hover-border, $pagination-active-border, $pagination-disabled-border to $pagination-hover-border-color, $pagination-active-border-color, $pagination-disabled-border-color, respectively * Rename variables $state-*-border to $state-*-border-color, respectively * Rename variables $alert-*-border to $alert-*-border-color * Rename $list-group-active-border to $list-group-active-border-color * Rename $table-inverse-border to $table-inverse-border-color * Rename $btn-*-border to $btn-*-border-color * Rename $navbar-*-toggler-border to $navbar-*-toggler-border-color
2017-04-10Remove `cursor: not-allowed` stylesPatrick H. Lauke1-1/+0
2017-03-28Revamp button and input vars while fixing #21587 (#22287)Mark Otto1-6/+4
2017-03-12Use btn-$variant-color variables for outlined btns (#22164)Dominic Watson1-6/+6
Despite now having the ability to override outline-variant color, it's not actually being used so each are still #fff Related: https://github.com/twbs/bootstrap/pull/20734
2016-12-28create a variable for the focus box-shadow, use it in the button base classMark Otto1-2/+2
also be sure to apply it for the active state when shadows are enabled
2016-12-28remove cursor: pointerMark Otto1-1/+0
shoutout https://medium.com/simple-human/buttons-shouldnt-have-a-hand-cursor-b11e99ca374b#.riy12ck0m
2016-12-28redo outlinesMark Otto1-7/+3
- removes original outline removal (hah) - replaces it with an explicit `outline: 0` on `.btn` - instead of replicating `:hover` for `:focus`, uses custom and themed `box-shadow` for an "outline" - not mapped to the `$enable-shadows` variable because accessibility
2016-12-28Redo button statesMark Otto1-14/+12
Trying to simplify our output here by revamping these selectors. We overcomplicated things by setting hover styles for nearly every state (disabled and active included), and we set them in the wrong order. This commit does the following: - Reorders states so disabled comes before active, thereby removing the need to set disabled-active styles. - Removes all focus and hover styles from disabled states as those will naturally inherit from the default button state. - Renamed `.open` to `.show` to fix dropdown toggle highlighting. - Tweaked some indendation in the Sass.
2016-12-28fixes #21415 by moving disabled .btn-link color to the default stateMark Otto1-1/+2
2016-12-19Add variables for transitions (#21345)Tom Lutzenberger1-1/+1
* Add variables for transitions * Add variables for transitions
2016-10-19Use a variable for the default font weights. Fixes #20741Simon Bächler1-1/+1
Websites might use different weights such as medium or thin or use light as default weight instead of normal. Also referenced: #18605 and #16170.