Skip to content

Commit

Permalink
Add border-bottom to panel heading.
Browse files Browse the repository at this point in the history
  • Loading branch information
srph committed Nov 8, 2015
1 parent 6106c03 commit 5bab465
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
9 changes: 7 additions & 2 deletions docs/dist/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -29161,11 +29161,16 @@
),
_react2["default"].createElement(
"div",
{ className: "panel -default" },
{ className: "panel" },
_react2["default"].createElement(
"div",
{ className: "heading" },
"Heading"
),
_react2["default"].createElement(
"div",
{ className: "body" },
"Basic Panel Example"
"I'm the body!"
)
)
),
Expand Down
3 changes: 2 additions & 1 deletion docs/dist/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions docs/sections/Docs-Panels/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ export default class Panels extends React.Component {

<section className="doc-bottom-space-large">
<h3 className="doc-heading">Basic Panel</h3>
<div className="panel -default">
<div className="body">Basic Panel Example</div>
<div className="panel">
<div className="heading">Heading</div>
<div className="body">I'm the body!</div>
</div>
</section>

<section className="doc-bottom-space-large">
<h3 className="doc-heading"> Panel With Consecutive Body </h3>
<div className="panel -default">
<div className="body"> Basic Panel Example </div>
<div className="body"> Basic Panel Example </div>
</div>
<div className="body"> Basic Panel Example </div>
<div className="body"> Basic Panel Example </div>
</div>
</section>

<section className="doc-bottom-space-large">
Expand Down
5 changes: 3 additions & 2 deletions styles/components/_panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
padding: 10px 15px;
border-top-left-radius: $border-radius-base;
border-top-right-radius: $border-radius-base;
border-bottom: 1px solid $brand-gray;
}

> .heading > * {
Expand All @@ -48,12 +49,12 @@
// in the discussion, it wasn't decided whether to
// include the .-bordered modifier here (meaning, we're only dealing with .table)
// refactor soon.
> .table.-bordered > thead > tr > th:first-child,
> .table.-bordered > thead > tr > th:first-child,
> .table.-bordered > tbody > tr > td:first-child {
border-left: 0;
}

> .table.-bordered > thead > tr > th:last-child,
> .table.-bordered > thead > tr > th:last-child,
> .table.-bordered > tbody > tr > td:last-child {
border-right: 0;
}
Expand Down

0 comments on commit 5bab465

Please sign in to comment.