November Happy Hour will be moved to Thursday December 5th.

Faulty styling for Mail UI

Vote:
 

I have recently installed latest EPiServer Mail for a EPiServer CMS 7.18 website.

When visiting the UI for Mail the styling appears to be missing, see attached screenshot.

Missing styling

The rest of the EPiServer UI (CMS, Find) looks fine.

In Mail.Master there are two style references:

<link type="text/css" rel="stylesheet" href="<%= Paths.ToShellClientResource("ClientResources/epi/themes/sleek/document.css") %>" />
    <link type="text/css" rel="stylesheet" href="<%= Paths.ToShellClientResource("ClientResources/epi/themes/sleek/sleek.css") %>" />

And when I add a reference to sleek2.css, the design looks whole.

<link type="text/css" rel="stylesheet" href="<%= Paths.ToShellClientResource("ClientResources/epi/themes/sleek/document.css") %>" />
    <link type="text/css" rel="stylesheet" href="<%= Paths.ToShellClientResource("ClientResources/epi/themes/sleek/sleek.css") %>" />
    <link type="text/css" rel="stylesheet" href="<%= Paths.ToShellClientResource("ClientResources/epi/themes/sleek/sleek2.css") %>" />

I tried installing Mail on a clean website, but the MasterPage looks the same. What have gone wrong? What have I missed?

Thanks for helping.

#114187
Dec 05, 2014 14:03
Vote:
 
<ul> <li><code>&lt;style&gt;</code></li> <li><code><span> </span><span>.</span><span>msgBox</span><span>{</span></code></li> <li><code><span> </span><span>position</span><span>:</span><span>absolute</span><span>;</span></code></li> <li><code><span> </span><span>z-index</span><span>:</span><span>10</span><span>;</span></code></li> <li><code><span> </span><span>border-radius</span><span>:</span><span>5px</span><span>;</span></code></li> <li><code><span> </span><span>border</span><span>:</span><span>1px</span><span> solid </span><span>#F5F5F5</span><span>;</span></code></li> <li><code><span> </span><span>background-color</span><span>:</span><span>#DDD</span><span>;</span></code></li> <li><code><span> </span><span>box-shadow</span><span>:</span><span>1px</span><span> </span><span>1px</span><span> </span><span>5px</span><span> </span><span>#999</span><span>;</span></code></li> <li><code><span> </span><span>overflow</span><span>:</span><span>hidden</span><span>;</span></code></li> <li><code><span> </span><span>display</span><span>:</span><span>none</span><span>}</span></code></li> <li><code><span> </span><span>.</span><span>msgBox ul</span><span>,</span><span> </span><span>.</span><span>msgBox li</span><span>{</span></code></li> <li><code><span> </span><span>list-style</span><span>:</span><span>none</span><span>;</span></code></li> <li><code><span> </span><span>padding</span><span>:</span><span>0</span><span>;</span></code></li> <li><code><span> </span><span>margin</span><span>:</span><span>0</span><span>;</span></code></li> <li><code><span> </span><span>border</span><span>:</span><span>0</span><span>}</span></code></li> <li><code><span> </span><span>.</span><span>msgBox </span><span>.</span><span>title</span><span>{</span></code></li> <li><code><span> </span><span>border-bottom</span><span>:</span><span>#AAA</span><span> solid </span><span>1px</span><span>;</span></code></li> <li><code><span> </span><span>padding</span><span>:</span><span>5px</span><span>;</span></code></li> <li><code><span> </span><span>background-color</span><span>:</span><span>#CCC</span><span>;</span></code></li> <li><code><span> </span><span>font-family</span><span>:</span><span>Gotham</span><span>,</span><span> </span><span>"Helvetica Neue"</span><span>,</span><span> Helvetica</span><span>,</span><span> Arial</span><span>,</span><span> sans-serif</span><span>;</span></code></li> <li><code><span> </span><span>font-weight</span><span>:</span><span>bold</span><span>;</span></code></li> <li><code><span> </span><span>text-shadow</span><span>:</span><span>1px</span><span> </span><span>1px</span><span> </span><span>#DDD</span><span>;</span></code></li> <li><code><span> </span><span>font-size</span><span>:</span><span>12px</span><span>}</span></code></li> <li><code><span> </span><span>.</span><span>msgBox </span><span>.</span><span>msgContent</span><span>{</span></code></li> <li><code><span> </span><span>border-top</span><span>:</span><span>#F5F5F5</span><span> solid </span><span>1px</span><span>;</span></code></li> <li><code><span> </span><span>padding</span><span>:</span><span>5px</span><span>;</span></code></li> <li><code><span> </span><span>text-shadow</span><span>:</span><span>1px</span><span> </span><span>1px</span><span> </span><span>#F1F1F1</span><span>;</span></code></li> <li><code><span> </span><span>font-family</span><span>:</span><span>Cambria</span><span>,</span><span> </span><span>"Hoefler Text"</span><span>,</span><span> </span><span>"Liberation Serif"</span><span>,</span><span> Times</span><span>,</span><span> </span><span>"Times New Roman"</span><span>,</span><span> serif</span><span>;</span></code></li> <li><code><span> </span><span>font-size</span><span>:</span><span>12px</span><span>}</span></code></li> <li><code><span> </span><span>.</span><span>msgBox </span><span>.</span><span>ok</span><span>{</span></code></li> <li><code><span> </span><span>text-shadow</span><span>:</span><span>1px</span><span> </span><span>1px</span><span> </span><span>#F1F1F1</span><span>;</span></code></li> <li><code><span> </span><span>font-family</span><span>:</span><span>Cambria</span><span>,</span><span> </span><span>"Hoefler Text"</span><span>,</span><span> </span><span>"Liberation Serif"</span><span>,</span><span> Times</span><span>,</span><span> </span><span>"Times New Roman"</span><span>,</span><span> serif</span><span>;</span></code></li> <li><code><span> </span><span>font-size</span><span>:</span><span>12px</span><span>;</span></code></li> <li><code><span> </span><span>margin</span><span>:</span><span>0</span><span> auto </span><span>5px</span><span> auto</span><span>;</span></code></li> <li><code><span> </span><span>width</span><span>:</span><span>20px</span><span>;</span></code></li> <li><code><span> </span><span>padding</span><span>:</span><span>4px</span><span> </span><span>5px</span><span> </span><span>4px</span><span> </span><span>5px</span><span>;</span></code></li> <li><code><span> </span><span>background-color</span><span>:</span><span>#CCC</span><span>;</span></code></li> <li><code><span> </span><span>text-align</span><span>:</span><span>center</span><span>;</span></code></li> <li><code><span> </span><span>cursor</span><span>:</span><span>pointer</span><span>;</span></code></li> <li><code><span> </span><span>transition</span><span>:</span><span>all </span><span>300ms</span><span> linear</span><span>;</span></code></li> <li><code><span> </span><span>border</span><span>:</span><span>#DDD</span><span> solid </span><span>1px</span><span>;</span></code></li> <li><code><span> </span><span>box-shadow</span><span>:</span><span>0</span><span> </span><span>0</span><span> </span><span>1px</span><span> </span><span>#AAA</span><span>;</span></code></li> <li><code><span> </span><span>border-radius</span><span>:</span><span>4px</span><span>}</span></code></li> <li><code><span> </span><span>.</span><span>msgBox </span><span>.</span><span>ok</span><span>:</span><span>hover</span><span>{</span></code></li> <li><code><span> </span><span>background-color</span><span>:</span><span>#EEE</span><span>}</span><span> </span></code></li> <li><code>&lt;/style&gt;</code></li> <li><code><span>&lt;div</span><span> </span><span>class</span><span>=</span><span>"msgBox"</span><span>&gt;</span></code></li> <li><code><span> </span><span>&lt;ul</span><span> </span><span>class</span><span>=</span><span>"title"</span><span>&gt;</span><span>Alert</span><span>&lt;/ul&gt;</span></code></li> <li><code><span> </span><span>&lt;ul</span><span> </span><span>class</span><span>=</span><span>"msgContent"</span><span>&gt;</span><span>No messege</span><span>&lt;/ul&gt;</span></code></li> <li><code><span> </span><span>&lt;ul&gt;</span></code></li> <li><code><span> </span><span>&lt;li</span><span> </span><span>class</span><span>=</span><span>"ok"</span><span>&gt;</span><span>Ok</span><span>&lt;/li&gt;</span></code></li> <li><code><span> </span><span>&lt;/ul&gt;</span></code></li> <li><code>&lt;/div&gt;</code></li> <li><code><span>&lt;script</span><span> </span><span>src</span><span>=</span><span>"</span><span>"</span><span>&gt;&lt;/script&gt;</span></code></li> <li><code><span>&lt;script</span><span> </span><span>language</span><span>=</span><span>"javascript"</span><span>&gt;</span></code></li> <li><code>// Upgraded confirm function</code></li> <li><code><span>var</span><span> msgBox </span><span>=</span><span> </span><span>function</span><span>(</span><span>msg</span><span>){</span></code></li> <li><code><span> </span><span>var</span><span> w </span><span>=</span><span>$</span><span>(</span><span>document</span><span>).</span><span>width</span><span>(),</span></code></li> <li><code><span> h </span><span>=</span><span> $</span><span>(</span><span>document</span><span>).</span><span>height</span><span>();</span></code></li> <li><code><span> </span><span>var</span><span> msgW </span><span>=</span><span> $</span><span>(</span><span>'.msgBox'</span><span>).</span><span>width</span><span>(),</span></code></li> <li><code><span> msgH </span><span>=</span><span> $</span><span>(</span><span>'.msgBox'</span><span>).</span><span>height</span><span>();</span></code></li> <li><code><span> $</span><span>(</span><span>'.msgBox'</span><span>).</span><span>css</span><span>({</span><span>left</span><span>:(</span><span>w</span><span>-</span><span>msgW</span><span>)/</span><span>2</span><span>,</span><span> top</span><span>:(</span><span>h</span><span>-</span><span>msgH</span><span>)/</span><span>2</span><span>});</span></code></li> <li><code><span> $</span><span>(</span><span>'.msgBox'</span><span>)</span></code></li> <li><code><span> </span><span>.</span><span>show</span><span>()</span></code></li> <li><code><span> </span><span>.</span><span>find</span><span>(</span><span>'.msgContent'</span><span>).</span><span>text</span><span>(</span><span>msg</span><span>);</span></code></li> <li><code><span> $</span><span>(</span><span>'.msgBox'</span><span>).</span><span>find</span><span>(</span><span>'.ok'</span><span>).</span><span>click</span><span>(</span><span>function</span><span>(){</span></code></li> <li><code><span> $</span><span>(</span><span>'.msgBox'</span><span>).</span><span>hide</span><span>();</span></code></li> <li><code><span> </span><span>});</span></code></li> <li><code><span> $</span><span>(</span><span>document</span><span>).</span><span>keyup</span><span>(</span><span>function</span><span>(</span><span>event</span><span>){</span></code></li> <li><code><span> </span><span>if</span><span>(</span><span>event</span><span>.</span><span>which</span><span>==</span><span>13</span><span>){</span></code></li> <li><code><span> $</span><span>(</span><span>'.msgBox'</span><span>).</span><span>hide</span><span>();</span></code></li> <li><code><span> </span><span>}</span></code></li> <li><code><span> </span><span>});</span></code></li> <li><code>}</code></li> <li><code><span>msgBox</span><span>(</span><span>'Enter your message!'</span><span>);</span></code></li> <li><code>&lt;/script&gt;</code></li> <li><code>&nbsp;</code></li> </ul>
#114934
Edited, Jan 04, 2015 9:55
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.