aboutsummaryrefslogtreecommitdiff
path: root/scss/_list-group.scss
AgeCommit message (Collapse)AuthorFilesLines
2023-02-06Fix list group colors by using `*-text-emphasis` CSS vars in Sass loop (#38008)Julien Déramond1-3/+3
2023-01-16Better use of CSS varlouismaximepiton1-14/+7
2022-11-28Add dark mode support (#35857)Mark Otto1-7/+19
* Add dark mode to docs * Minor fix: missing space indentation * Minor fix: revert utilities/z-index added-in modification * Remove prev: and next: from doc because extracted to another PR * Use .bg-body-tertiary in all Utilities > Overflow examples * fix example * Fix up spacing examples * Update box-shadow Sass variables and utilities to auto-adjust to color modes * Remove unused docs class * Refactor form styles to use CSS variable for background images on .form-check and .form-switch * Fix docs selector * Rename shortcut for clarity * Heading consistency * Reintroduce missing 4th grid item in Utilities > Spacing example * Fix bundlewatch * .bd-callout* rendering is OK so removing comments in the code * Update scss/_utilities.scss Co-authored-by: Julien Déramond <[email protected]> * Fix gutters example styling * Fix text colors on background utils docs * redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken * fix some color utils examples * Deprecate mixin notice * Deprecate notice for list-group-item-variant() mixin * Revamp new link CSS vars * Use map-keys in some each Sass files * Remove list-group-item-variant mixin ref in sass loop desc * Display CSS vars scoped to our built-in dark mode * Revert previous commit * Fix list group variant link * Fix typo * Remove imports of alert/list-group mixins in scss/_mixins.scss * Small formatting + comments removal in scss/_content.scss * Fix alert links colors * fix dropdown border-radius mixin * fix link color and underline again, this time using CSS var override for color var and fallback value for the underline * fix colors on docs navbar for dark mode * remove two changes * missing ref * another link underline fix, just use sass vars for link decoration for now * missing color bg docs, plus move dropdown override to scss * more changes from review * fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin * Few fixes around type - Restored CSS variable for color on headings, this time with a fallback value - In conjunction, restored and wrapped the default CSS var with a null value check - Split headings and paragraphs docs in Reboot, elaborated on them * Restyle custom details > summary element in docs * Rewrite some migration docs * fix form checks * Fix up some navbar styling, tweak docs callout * Fix select images, mostly for validation styling * Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs * Update site/content/docs/5.2/components/scrollspy.md Co-authored-by: Julien Déramond <[email protected]> * Apply suggestions from code review Co-authored-by: Julien Déramond <[email protected]> * mention form control css vars in migration guide * Tweak grid and flex docs background examples * clarify some docs * fix some more things Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Julien Déramond <[email protected]>
2022-09-04Add workarounds for postcss values parser errorGeremia Taglialatela1-2/+2
postcss-values-parser returns a syntax error when a negative value is provided in a `calc` function after a CSS variable. This is not an issue with Bootstrap itself, but a workaround to allow projects using postcss-values-parser to keep upgrading and compiling bootstrap Ref: shellscape/postcss-values-parser#138, twbs/bootstrap#35033 Fix: #36851
2022-08-31Fix for horizontal list-group itemlouismaximepiton1-2/+2
2022-08-03fix #36662 List-group-item margin-top is offset when importing sass in a ↵Hadouin1-1/+2
nested class (#36663) * fix #36662 & + .list-group-item * Ignore linter Co-authored-by: Mark Otto <[email protected]>
2022-04-16Minor fixeslouismaxime.piton1-2/+2
2022-04-04Adding CSS var to list-group-item-actionlouismaxime.piton1-5/+10
2022-03-22Convert list group to CSS variables (#35862)Mark Otto1-18/+33
* Convert list-group to CSS vars * bundlewatch
2022-03-17Revert #35759, fixes #35869Mark Otto1-25/+25
2022-03-11Fix some instances of lazy Sass math when multiplying new CSS var based ↵Mark Otto1-2/+2
border-width
2022-02-18Apply list group numbering to all items (#35822)Jann Westermann1-1/+1
2022-02-08Fix overriding styles of `.list-group-item-action`Anton1-27/+24
~~~html <style> .list-group-item-action {color: blue;} .list-group-item {color: red;} </style> <p class="list-group-item">red text!</p> <p class="list-group-item list-group-item-action">still red text!</p> ~~~ because `.list-group-item` declared after `.list-group-item-action` (order in attribute `class` no effect)
2021-05-10Don't redefine $list-group-color in loopMark H. Wilkinson1-5/+5
2021-04-17fix: use list-group variable instead of alert (#33658)Mona Brahmakshatriya1-1/+1
Use $list-group-item-color-scale variable in list-group NOT $alert-color-scale
2021-03-10Change from element selector to the opt-in classMark Otto1-3/+1
2021-03-10Add ol.list-group with psuedo-element numbersMark Otto1-0/+13
2020-12-17Fix: variables collide with globals (#32492)Rafi1-5/+5
Co-authored-by: XhmikosR <[email protected]>
2020-12-04feat(RTL): implement RTLGaël Poupard1-4/+4
Using RTLCSS directives, renaming things to use logical names and following best practices.
2020-11-13Rename scale-color() function to shift-color() to avoid collision with ↵Mark Otto1-2/+2
Sass's own color function (#32149)
2020-11-08Add checks to fix color contrast issues (#32085)Martijn Cuppens1-2/+8
2020-10-13Colors rewrite (#30622)Martijn Cuppens1-1/+1
2020-09-15Remove unnecessary nesting selectorsXhmikosR1-1/+1
2020-04-28Prevent list group style leaks (#30660)Martijn Cuppens1-2/+2
2020-04-06Create `scss-docs` shortcode to get some snippets from the Scs… (#30502)Martijn Cuppens1-1/+3
Co-authored-by: XhmikosR <[email protected]>
2020-04-02Fix card list group borders & radii (#30497)Martijn Cuppens1-12/+7
2020-03-31Require `.form-label` classes on form labels (#30476)Martijn Cuppens1-1/+0
2020-03-31Use variables for list-group-item color levels (#30009)Yannik Hampe1-1/+1
Co-authored-by: Martijn Cuppens <[email protected]>
2020-03-05$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]>
2019-10-02v5: .form-check layout changes (#29322)Mark Otto1-0/+1
* Scope .form-check-input layout to the .form-check parent * Remove margin-bottom from list-group-items in case they are label elements * document .form-check in input groups and list groups, and cleanup the no-label examples in the main .form-check docs
2019-07-25Drop `color()`, `theme-color()` & `gray()` functions (#29083)Martijn Cuppens1-1/+1
Drop `color()`, `theme-color()` & `gray()` functions in favor of variables. The functions just called a `map-get()` of a map where just the variables were defined. Also the `theme-color-level()` now accepts any color you want instead of only `$theme-colors` colors. The first value now is a variable instead of the `$theme-colors` key.
2019-06-26Remove redundant radius properties (#28956)Martijn Cuppens1-2/+2
2019-06-25Remove negative margins for group list items (#28940)Sergey Kovalenko1-19/+28
To fix RGBA borders overlapping issue.
2019-05-08Drop all hover mixinsMark Otto1-1/+2
Previously deprecated in v4.x, this clears out the now unused Sass option and removes some unused mixins. Arguably we could remove more, but I like the hover-focus mixin and we make extensive use of it across the project.
2019-01-20Make component colors configurable (#28035)Martijn Cuppens1-0/+1
2019-01-08remove redundant loop from list-group-horizontal (#28005)wojtask91-18/+16
2019-01-08Move `z-index` to .list-group-item-action and remove redundant ↵Shohei Yoshida1-5/+1
`text-decoration: none` (#27996)
2019-01-07Add horizontal list group modifier (#27970)Mark Otto1-0/+33
Alternate take to #27683 that builds the modifier class based on min-width, such that list groups are stacked until the class's breakpoint is reached. This is less verbose, matches our primary responsive approach, and prevents an extra class. Unfortunately, I believe supporting flush list groups is too much code here, so I've skipped that and made a note in the docs. Also added examples generate from our breakpoints data file with a protip for how to do equal width items.
2018-10-19Fix double border on list-group (#27126)Roy Klutman1-0/+5
2018-09-26Prevent pointer events on disabled list-group-itemHoward Cox1-0/+1
2017-12-22adds hover state to the `button` element for background color utilities (#24813)Andres Galante1-1/+2
* adds a hover state to the button element on the backrgound color utitility * Adjust z-index to fix hover/focus overlaps
2017-10-22Replace some border-radius properties for the mixin, closes #23872Mark Otto1-1/+1
2017-10-20Reduce z-indexes in button-group, input-group, list-group, and pagination to ↵rmacklin1-1/+1
the minimum necessary (#24315) These were using `z-index: 2` to "Place active items above their siblings for proper border styling". However, using `z-index: 1` is sufficient for accomplishing that goal. In input-group, there were also three `z-index: 3` rules for the hover/focus/active states. I reduced these to `z-index: 2` since they just needed to be "one more than normal" (i.e. one more than what is now `z-index: 1` after my changes). These changes can be verified by viewing the documentation pages for Button group, Input group, List group, and Pagination before and after this commit and observing that the active elements are still "above" their siblings, so their borders look correct.
2017-10-17Revert #23108 to restore list group borders (#24411)Mark Otto1-5/+0
* revert #23108, which had no bug but was a problem with the example code * add example to the docs for future proofing * move it up
2017-10-01Fix #23013: Add boder-top:0 in .list-group-flush .list-group-item (#23108)Chirag Modi1-0/+5
2017-06-28move list group variants to be generated from sass mapMark Otto1-4/+3
2017-06-16(#22414) Rename for consistency `$list-group-link-*-*` to ↵Patrick Yeo1-4/+4
`$list-group-action-*-*`
2017-04-16Rename variable $input-border-focus to $input-border-color-focus (#22413)Patrick Yeo1-1/+1
* 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-18fixes #21584Mark Otto1-3/+1
- revert back to display block for list items to prevent unwanted behaviors - fixes a handful of other linked issues (see main thread) - updates docs to include more utilities for the one example