From 78747fb2b42b94faebddfb86f2e717e9a579c2f0 Mon Sep 17 00:00:00 2001 From: Vladimir Lugovsky Date: Tue, 5 Jan 2016 17:37:42 +0300 Subject: [PATCH] feat(panel): sample panels page --- src/app/pages/panels/panels.html | 86 +++++++++++++++++-- .../components/baPanel/baPanel.directive.js | 2 +- .../baPanel/baPanelSelf.directive.js | 2 +- src/sass/app/_typography.scss | 8 +- src/sass/common.scss | 2 +- src/sass/theme/_layout.scss | 2 +- .../theme/bootstrap-overrides/_panel.scss | 61 +++++++++++-- src/sass/theme/components/_accordion.scss | 3 +- src/sass/theme/conf/_mixins.scss | 18 ++++ src/sass/theme/conf/_variables.scss | 16 ++-- 10 files changed, 169 insertions(+), 31 deletions(-) diff --git a/src/app/pages/panels/panels.html b/src/app/pages/panels/panels.html index c192d8f..a2a23ab 100644 --- a/src/app/pages/panels/panels.html +++ b/src/app/pages/panels/panels.html @@ -1,7 +1,83 @@ -
-
-
- A Basic Panel +
+ +
+
+

A panel in bootstrap is a bordered box with some padding around its content.

+

Panels are created with the .panel class, and content inside the panel has a + .panel-body class. The .panel-default class is used to style the color of the + panel. See the last example on this page for more contextual classes.

-
+ + +
+
Panel Heading
+
+

The .panel-heading class adds a heading to the panel.

+
+
+ + + +
+
+

The .panel-footer class adds a footer to the panel.

+
+ +
+ +
+ +

Panel Group

+ +
+
+
Panel group 1
+
+

To group many panels together, wrap a <div> with class + .panel-group around them.

+
+
+
+
Panel group 2
+
+

The .panel-group class clears the bottom-margin of each panel.

+
+
+
+ +
+ +

Panels with Contextual Classes

+
+
+
Panel with panel-default class
+
To color the panel, use contextual classes. This is sample .panel-default panel
+
+ +
+
Panel with panel-primary class
+
Sample .panel-primary panel
+
+ +
+
Panel with panel-success class
+
Sample .panel-success panel
+
+ +
+
Panel with panel-info class
+
Sample .panel-info panel
+
+ +
+
Panel with panel-warning class
+
Sample .panel-warning panel
+
+ +
+
Panel with panel-danger class
+
Sample .panel-danger panel
+
+
+
\ No newline at end of file diff --git a/src/app/theme/components/baPanel/baPanel.directive.js b/src/app/theme/components/baPanel/baPanel.directive.js index 77bc422..2945d13 100644 --- a/src/app/theme/components/baPanel/baPanel.directive.js +++ b/src/app/theme/components/baPanel/baPanel.directive.js @@ -15,7 +15,7 @@ function baPanel(baPanel) { return angular.extend({}, baPanel, { template: function(el, attrs) { - var res = '