Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
Minor updates to notification CSS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Feb 19, 2015
1 parent 37ec74e commit a548a43
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
6 changes: 3 additions & 3 deletions code/dataobjects/MediaType.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ public function getCMSFields() {
}
else {

// Display a notification that a respective media page should be created.
// Display a notice that respective media pages should first be created.

Requirements::css(MEDIAWESOME_PATH . '/css/mediawesome.css');
$fields->addFieldToTab('Root.Main', LiteralField::create(
'MediaNotification',
"<p class='mediawesome notification'><strong>No {$this->Title} Pages Found</strong></p>"
'MediaNotice',
"<p class='mediawesome notice'><strong>No {$this->Title} Pages Found</strong></p>"
));
}
}
Expand Down
16 changes: 13 additions & 3 deletions css/mediawesome.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
* @author Nathan Glasl <[email protected]>
*/

p.mediawesome.notice,
p.mediawesome.notification {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}

p.mediawesome.notice {
background: #F0F8FC;
padding: 10px;
border: 1px solid #93CDE8;
}

p.mediawesome.notification {
background: #FFA84C;
background: -o-linear-gradient(top, #FFA84C, #FF7B0D);
Expand All @@ -14,9 +27,6 @@ p.mediawesome.notification {
background: -webkit-linear-gradient(top, #FFA84C, #FF7B0D);
padding: 5px;
border: 1px solid #FF7400;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}

/* Correcting some core layout issues. */
Expand Down

0 comments on commit a548a43

Please sign in to comment.