diff --git a/docs/material-design/list-groups.md b/docs/material-design/list-groups.md index fff7c66a..c50ad3e0 100644 --- a/docs/material-design/list-groups.md +++ b/docs/material-design/list-groups.md @@ -7,71 +7,12 @@ group: material-design Material design list groups are specialized versions of their bootstrap counterparts, opting for the flexbox layout to achieve the varieties specified. ([Specification](https://www.google.com/design/spec/components/lists.html#lists-specs)) -The material classes introduced are: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ClassesBS EquivalentDifferences
- .mdb-list-group-item - - .list-group-item - - {% markdown %}Flexbox layout, including conveniences for icon and label layout.{% endmarkdown %} -
- .mdb-list-group-col - - {% markdown %}None{% endmarkdown %} - - {% markdown %}Flexbox column - additional class to use within an `.mdb-list-group-item` for layout, such as a multi-line content section.{% endmarkdown %} -
- .right - - {% markdown %}None{% endmarkdown %} - - {% markdown %}Flex layout marker - additional class needed when only one icon/label is present and it should be right aligned. Only valid as a child of `.mdb-list-group-item`{% endmarkdown %} -
- .mdb-list-group-sm - - {% markdown %}None{% endmarkdown %} - - {% markdown %}Use on `.mdb-list-group` for the dense list display{% endmarkdown %} -
## Contents * Will be replaced with the ToC, excluding the "Contents" header {:toc} - ## Single line ### Text @@ -266,3 +207,89 @@ The material classes introduced are: {% endexample %} +## Classes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ClassesBS EquivalentDifferences
+ .mdb-list-group-item + + .list-group-item + + {% markdown %}Flexbox layout, including conveniences for icon and label layout.{% endmarkdown %} +
+ .mdb-list-group-col + + {% markdown %}None{% endmarkdown %} + + {% markdown %}Flexbox column - additional class to use within an `.mdb-list-group-item` for layout, such as a multi-line content section.{% endmarkdown %} +
+ .right + + {% markdown %}None{% endmarkdown %} + + {% markdown %}Flex layout marker - additional class needed when only one icon/label is present and it should be right aligned. Only valid as a child of `.mdb-list-group-item`{% endmarkdown %} +
+ .mdb-list-group-sm + + {% markdown %}None{% endmarkdown %} + + {% markdown %}Use on `.mdb-list-group` for the dense list display{% endmarkdown %} +
+ + +## Variables + +See `variables/_list-group.scss` for a complete list of variables. Key variables are below: + + + + + + + + + + + + + + + + +
VariableValueComment
+ $list-group-bg + + inherit + + {% markdown %}Original value was `#fff`, but it seemed that too often list-groups needed the background to be inherited from the underlying container.{% endmarkdown %} +
diff --git a/scss/variables/bootstrap/_list-group.scss b/scss/variables/bootstrap/_list-group.scss index 1e3af63c..b8e1ed8c 100644 --- a/scss/variables/bootstrap/_list-group.scss +++ b/scss/variables/bootstrap/_list-group.scss @@ -1,6 +1,6 @@ // List group -//$list-group-bg: #fff !default; +$list-group-bg: inherit !default; // #fff //$list-group-border-color: #ddd !default; $list-group-border-width: 0 !default; // $border-width $list-group-border-radius: 0 !default; // $border-radius