Skip to content

Commit

Permalink
color headers for modal
Browse files Browse the repository at this point in the history
  • Loading branch information
loveorigami committed Aug 19, 2016
1 parent fee27c3 commit b79f96f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ModalAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ class ModalAsset extends AssetBundle
'js/kb-modal-ajax.js',
];

/**
* @inheritdoc
*/
public $css = [
'css/modal-colors.css',
];

/**
* @inheritdoc
*/
Expand Down
30 changes: 30 additions & 0 deletions src/assets/css/modal-colors.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* CSS used here will be applied after bootstrap.css */
.header-success .modal-header {
font-weight:bold;
color: #fff;
background-color: #5cb85c;
}

.header-warning .modal-header {
font-weight:bold;
color: #fff;
background-color: #f0ad4e;
}

.header-danger .modal-header {
font-weight:bold;
color: #fff;
background-color: #d9534f;
}

.header-info .modal-header {
font-weight:bold;
color: #fff;
background-color: #5bc0de;
}

.header-primary .modal-header {
font-weight:bold;
color: #fff;
background-color: #428bca;
}

0 comments on commit b79f96f

Please sign in to comment.