Skip to content

Commit

Permalink
Support for custom CSS to override default rules
Browse files Browse the repository at this point in the history
  • Loading branch information
emilsundberg committed Nov 25, 2015
1 parent 8f0972f commit ec3f56b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/config/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,33 @@

return [

// These CSS rules will be applied after the regular template CSS

/*
'css' => [
'.button-content .button { background: red }',
],
*/

'colors' => [

'highlight' => '#004ca3',
'button' => '#004cad',

],

'view' => [
'senderName' => null,
'reminder' => null,
'unsubscribe' => null,
'address' => null,

'logo' => [
'path' => '%PUBLIC%/vendor/Beautymail/assets/images/sunny/logo.png',
'width' => '',
'height' => '',
],

'twitter' => null,
'facebook' => null,
'flickr' => null,
Expand Down
3 changes: 3 additions & 0 deletions src/views/templates/sunny.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<title>{{ $senderName or '' }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">{{ file_get_contents(app_path() . '/../vendor/snowfire/beautymail/src/styles/css/sunny.css') }}</style>
@if (isset($css))
<style>{{ $css }}</style>
@endif
</head>
<body>
<table id="background-table" border="0" cellpadding="0" cellspacing="0" width="100%">
Expand Down

0 comments on commit ec3f56b

Please sign in to comment.