<?xml version="1.0"?>
<rss version="2.0"><channel><title/><link>https://www.edugeek.net/blogs/blog/1054-mattgrimleys-blog/</link><description/><language>en</language><item><title>HAP+ v9 - Basic CSS - Tweaking the colour scheme</title><link>https://www.edugeek.net/blogs/entry/841-hap-v9-basic-css-tweaking-the-colour-scheme/</link><description><![CDATA[<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-username="mattgrimley" data-cite="mattgrimley" data-ipsquote-contentapp="blog" data-ipsquote-contenttype="blogs" data-ipsquote-contentid="841" data-ipsquote-contentclass="blog_Entry"><div>This is a very basic guide on how to change the fundamental colour scheme in HAP+ using CSS. This is far from comprehensive and only changes a few of the colours, but if you were wondering how it might get you started <img alt=":)" data-src="https://www.edugeek.net/uploads/emoticons/smile.png.e38e01f2a4850c4158c039aea82ac2a8.png" src="https://www.edugeek.net/applications/core/interface/js/spacer.png" /> It will perhaps be useful to no-one else but me.. <img alt=":)" data-src="https://www.edugeek.net/uploads/emoticons/smile.png.e38e01f2a4850c4158c039aea82ac2a8.png" src="https://www.edugeek.net/applications/core/interface/js/spacer.png" /><p> </p><p>
<strong>What you will need:</strong></p><p>
</p><ol style="list-style-type:decimal;"><li>A logo for the Left-hand block. (i made mine 350 pixels wide - but i havent tested the impact of this in mobile view etc. Any bigger and it was only showing partially)<br />
</li><li>A Primary bold colour for the website (in hex)<br />
</li><li>A Secondary lighter version of the colour above (i used <a href="http://www.palettebuilder.com/" rel="external nofollow">PaletteBuilder -- Online color scheme picker using the color wheel</a> entered the above bold colour and chose the next lighter in the Monochromatic table.<br />
</li></ol><p></p><p> </p><p>
<strong>In my example, i will be using the colours from my school website:</strong></p><p> </p><p>
Some other examples are:</p><p>
<span style="color:#004577;">█████ 004577</span> / <span style="color:#3286C1;">█████ 3286C1</span> - Default HAP Colours</p><p>
<span style="color:#06513A;">█████ 06513A</span> / <span style="color:#09805C;">█████ 09805C</span> - My Colour Scheme</p><p>
<span style="color:#802109;">█████ 802109</span> / <span style="color:#AF2D0C;">█████ AF2D0C</span> - Nice Red Scheme</p><p>
<span style="color:#7F5B07;">█████ 7F5B07</span> / <span style="color:#AF7E0A;">█████ AF7E0A</span> - Mustardy Yellow/Brown Scheme</p><p> </p><p> </p><p>
-----------------------------------------------------------------------------</p><p> </p><p>
First, edit the "basestyle.css" file in "~\styles\"</p><p> </p><p>
<strong>To change the left-hand Blue panel, the HAP logo and the HAP title text colour:</strong></p><p>
On Line 7 change the "background:" colour to be your "Primary Bold colour":</p><p>
</p><pre class="ipsCode"> .tile-color, #datepicker .ui-datepicker-header { background: [color="#FF0000"]#06513A[/color]; border-color: #0060a6; }</pre><div></div><p></p><p>
On Line 51, change the image URL to your custom one:</p><p>
</p><pre class="ipsCode"> #loginformside, #hapHomeSide { position: absolute; left: 0; width: 30%; top: 0; bottom: 0; background-image: url([color="#FF0000"]../images/icons/metro/hap-logo-128.png[/color]); background-repeat: no-repeat; background-position: center 30%; overflow: hidden; }</pre><div></div><p></p><p>
On Line 65, Change the "Color" to be your Secondary Lighter Colour (or your bold one, whichever suits better):</p><p>
</p><pre class="ipsCode">#loginform h1 a, #title h1 a { color: [color="#FF0000"]#09805C[/color]; text-decoration: none; }</pre><div></div><p></p><p> </p><p>
<strong>To change the top menu and the top right username panel:</strong></p><p>
On line 149 change the "background-color" to be your SECONDARY colour:</p><p>
</p><pre class="ipsCode">#hapHeader a:hover { background-color: [color="#FF0000"]#09805C[/color]; }</pre><div></div><p></p><p>
On line 150 change the "background-color" to be your PRIMARY colour:</p><p>
</p><pre class="ipsCode">#hapHeader a:active { background-color: [color="#FF0000"]#06513A[/color]; }</pre><div></div><p></p><p>
On line 152 change the "background-color" to be your SECONDARY colour:</p><p>
</p><pre class="ipsCode">#hapHeader #hapTitle:hover { background-color: [color="#FF0000"]#09805C[/color]; }</pre><div></div><p></p><p>
On Line 155 change both entries to your PRIMARY colour choice:</p><p>
</p><pre class="ipsCode">#hapUserTitle { position: fixed; right: 0; height: 40px; line-height: 40px; top: 0; z-index: 310; background-color: [color="#FF0000"]#06513A[/color]; border-right: solid 10px [color="#FF0000"]#06513A[/color]; color: #fff; text-decoration: none; padding: 0 10px; font-size:16px; }</pre><div></div><p></p><p>
On Line 156 change "background-color" to your SECONDARY colour:</p><p>
</p><pre class="ipsCode">#hapUserTitle:hover { background-color: [color="#FF0000"]#09805C[/color]; text-decoration: none; }</pre><div></div><p></p><p>
On Line 157 change the "background-color" to your PRIMARY colour:</p><p>
#hapUserTitle:active { background-color: <span style="color:#FF0000;">#06513A</span>; }</p><p> </p><p>
Next, to unify the calendar colouring in the booking system, edit the "Bookingstyle.css" also in the ~\style\ folder:</p><p> </p><p>
On line 21 change the "background" colour to your PRIMARY colour:</p><p>
</p><pre class="ipsCode">#bookingday .head #picker { border: 0; border-radius: 0; width: 100%; height: 30px; line-height: 30px; font-size: 110%; background: [color="#FF0000"]#06513A[/color]; color: #fff; padding: 0; font-size: 18px; }</pre><div></div><p></p><p>
On line 22 change the "background-color" colour to your SECONDARY colour:</p><p>
</p><pre class="ipsCode">#bookingday .head #picker:hover { background-color: [color="#FF0000"]#09805C[/color]; }</pre><div></div><p></p><p>
On line 23 change the "background-color" colour to your PRIMARY colour:</p><p>
</p><pre class="ipsCode">#bookingday .head #picker:active { background-color: [color="#FF0000"]#06513A[/color]; }</pre><div></div><p></p><p>
On line 45 change the "background" colour to your PRIMARY colour:</p><p>
</p><pre class="ipsCode">#bookingday .head, #bookingday .body.head .col div { height: 30px!important; line-height: 30px!important; background: [color="#FF0000"]#06513A[/color]!important; color: #fff; min-height: 30px!important; }</pre><div></div><p></p><p>
On line 47 change the "background" colour to your SECONDARY colour:</p><p>
</p><pre class="ipsCode">#bookingday #resources div { background: [color="#FF0000"]#09805C[/color]; text-align: center; line-height: 60px; }</pre><div></div><p></p><p> </p><p>
-----------------------------------------------------------------------------</p><p> </p><p>
That will give you a fairly good interface change covering the menu's and the main pages. Lot's of other stuff can still be changed, but i'll leave you to worry about that. Remember, every time a big upgrade happens which effects this CSS file, you will need to re-apply these changes (if you keep your changes in-line with this post, then at least there is a record).</p></div></blockquote>]]></description><guid isPermaLink="false">841</guid><pubDate>Tue, 23 Apr 2013 11:03:54 +0000</pubDate></item></channel></rss>
