diff options
| author | Chris Rebert <[email protected]> | 2014-03-27 13:57:50 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-03-27 13:57:50 -0700 |
| commit | b57396944a39b21571848728b6ad479cd50537cd (patch) | |
| tree | b4b9f3064d9e403044d0cc2ee85f35a0cb2f1a6a /docs/examples/equal-height-columns/equal-height-columns.css | |
| parent | 98bddd8904f2d745ad16d8bd591a0771577bf414 (diff) | |
| download | bootstrap-b57396944a39b21571848728b6ad479cd50537cd.tar.xz bootstrap-b57396944a39b21571848728b6ad479cd50537cd.zip | |
Add equal-height grid columns as an experimental example.
Based on @pete-otaqui's work from #11851
Diffstat (limited to 'docs/examples/equal-height-columns/equal-height-columns.css')
| -rw-r--r-- | docs/examples/equal-height-columns/equal-height-columns.css | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/docs/examples/equal-height-columns/equal-height-columns.css b/docs/examples/equal-height-columns/equal-height-columns.css new file mode 100644 index 000000000..050467719 --- /dev/null +++ b/docs/examples/equal-height-columns/equal-height-columns.css @@ -0,0 +1,80 @@ +/* + * Row with equal height columns + * -------------------------------------------------- + */ +.row-eq-height { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; +} + +/* + * Styles copied from the Grid example to make grid rows & columns visible. + */ +.container { + padding-right: 15px; + padding-left: 15px; +} + +h4 { + margin-top: 25px; +} +.row { + margin-bottom: 20px; +} +.row .row { + margin-top: 10px; + margin-bottom: 0; +} +[class*="col-"] { + padding-top: 15px; + padding-bottom: 15px; + background-color: #eee; + background-color: rgba(86,61,124,.15); + border: 1px solid #ddd; + border: 1px solid rgba(86,61,124,.2); +} + +/* + * Callout styles copied from Bootstrap's main docs. + */ +/* Common styles for all types */ +.bs-callout { + padding: 20px; + margin: 20px 0; + border-left: 3px solid #eee; +} +.bs-callout h4 { + margin-top: 0; + margin-bottom: 5px; +} +.bs-callout p:last-child { + margin-bottom: 0; +} +.bs-callout code { + background-color: #fff; + border-radius: 3px; +} +/* Variations */ +.bs-callout-danger { + background-color: #fdf7f7; + border-color: #d9534f; +} +.bs-callout-danger h4 { + color: #d9534f; +} +.bs-callout-warning { + background-color: #fcf8f2; + border-color: #f0ad4e; +} +.bs-callout-warning h4 { + color: #f0ad4e; +} +.bs-callout-info { + background-color: #f4f8fa; + border-color: #5bc0de; +} +.bs-callout-info h4 { + color: #5bc0de; +} |
