= Tutorial: How to format your Dolphin's images and fonts = I've had quite a few people ask me about the formatting images, fonts, etc. after I created My tutorial: http://www.boonex.com/trac/dolphin/wiki/TutorialHowToWorkWithIconsAndImages - so here is a tutorial covering just that! This tutorial is focused on some of the most frequently sought out formatting techniques for images (such as backgrounds and borders) and fonts. Not all of the images and font instances that you'll encounter in Dolphin are included here directly, but you can (fairly easily) find them yourself using a few techniques I previously outlined in the Image & Icon Tutorial (see link above). **IMPORTANT NOTE**: //You will often see the file paths and images refer to the Base Template, however you shouldn't edit your base template because you'll lose all of your hard work when the next upgrade is released. Instead, you should create your own template and edit the corresponding file (for example: if you want to change a bit of code in /templates/base/css/general.css then you should create a new file in /templates/YourTemplateName/css/general.css). Rather than explain this at every instance of code, I'm simply going to put the file path to where the existing code is and assume you can remember to use your own template so that your formatting won't break when you upgrade.// == INDEX == [#point1 Format the Logo Header Background Color and/or Background Image] [[br]] [#point2 Format the Logo] [[br]] [#point3 Format the Quotation Font & Placement] [[br]] [#point4 Format the Navigation and Subnavigation Background Color and/or Background Image] [[br]] [#point5 Format the Navigation Buttons' Background] [[br]] [#point6 Format the Drop Down Search Box] [[br]] [#point7 Format the Navigation Drop Down Menu Transparency Background] [[br]] [#point8 Format the Navigation Menu Font] [[br]] [#point9 Format the Subnavigation Tabs' Background] [[br]] [#point10 Format the Breadcrumb Background] [[br]] [#point11 Format the Main Body Background] [[br]] [#point12 Format the Main Body Font] [[br]] [#point13 Formatting (Most) Links] [[br]] [#point14 Format the Page Block Header Backgrounds] [[br]] [#point15 Format the Page Block Header Font] [[br]] [#point16 Format the Page Block Background] [[br]] [#point17 Format the Page Block Bottom Border] [[br]] [#point18 Format the Form Header Background] [[br]] [#point19 Format the Form Body Background] [[br]] [#point20 Boonex Bar Formatting] [[br]] [#point21 Copyright Bar (Footer) Formattin] [[br]] [#point22 Member Menu Bar Formatting] [[br]] == Logo Header Formatting == * ** Format the Logo Header Background Color and/or Background Image [=#point1] [[Image(LogoHeaderBackground.png)]] * File path: /templates/base/css/general.css * at line 154: div.sys_main_logo {[[br]] position: relative;[[br]] z-index: 56;[[br]] [[br]] background-color: #f4f4f4;[[br]] }[[br]] * edit background color or add a background image (remember, your new file path will be: /templates/YourTemplateName/css/general.css): div.sys_main_logo {[[br]] position: relative;[[br]] z-index: 56;[[br]] [[br]] background-color:#000000;[[br]] background-image:url('http://your image URL');[[br]] background-position: Center;[[br]] background-repeat: repeat;[[br]] background-attachment: fixed; }[[br]] * ** Format the Logo [=#point2] [[Image(LogoHeaderLogoImage.jpg)]] * Option 1:Image path: /media/images/big_logo.png - replace the image by uploading a new image saved as big_logo.png (the default logo is 309px x 60px but the header will adjust to fit a different size image). * Option 2: Admin panel>Settings>Basic Settings>Logo. 1. Use the upload box to browse your computer for the image to upload as your new logo, it will automatically be placed in the header. 2. Deselect the "enable resizing" option if your image is sized correctly. Select the "Enable resizing" option and 3. enter the dimensions to resize. NOTE: It's always better to size your image correctly before you upload it to your server, it will slow down page loads if your server has to resize your images each time before displaying. However, this feature is handy for testing your logo display at various sizes & dimensions before finalizing. 4. Click the Upload button. Your logo will be stored in /media/images/ [[Image(http://www.boonex.com/trac/dolphin/attachment/wiki/TutorialHowToWorkWithIconsAndImages/Logo.png)]] * ** Format the Quotation Font & Placement [=#point3] [[Image(LogoHeaderQuotationFont.png)]] * File path: /modules/boonex/quotes/templates/base/css/unit.css * In the file you'll find just 34 lines of code where you can format the font and placement of your Quotations. * If you are looking for where to manage the actual Quotations then you should go to Admin>Modules>Quotes where you can add, edit and/or delete your Quotations. == Navigation Menu Formatting == * ** Format the Navigation and Subnavigation Background Color and/or Background Image [=#point4] [[Image(NavSubmenuBackground.png)]] * This is the background behind the Navigation Menu and Subnavigation menu (- only the very top part of this will show on your Homepage because it is formatted differently with the rotating promo banners) * Image path: /templates/base/images/tm_bg.png * Dimensions: 3px x 140px * [[Image(tm_bg.png)]] * ** Format the Navigation Buttons' Background [=#point5] [[Image(NavigationMenuBackground.png)]] * File path: /templates/base/css/top_menu.css * Made up of the following images (you'll have to figure out the puzzle of how they fit together on your own!): * /templates/base/images/tm_cm_bg.png http://demo.boonex.com/templates/base/images/tm_cm_bg.png * Dimensions: 1px x 38px * /templates/base/images/tm_cm_item_center_act.png http://demo.boonex.com/templates/base/images/tm_cm_item_center_act.png * Dimensions: 1px x 36px * /templates/base/images/tm-cm_item_left_act.png http://demo.boonex.com/templates/base/images/tm_cm_item_left_act.png * Dimensions: 10px x 36px * /templates/base/images/tm-cm_item_right_act.png http://demo.boonex.com/templates/base/images/tm_cm_item_right_act.png * Dimensions: 10px x 36px * /templates/base/images/tm-item_left.png http://demo.boonex.com/templates/base/images/tm_item_left.png * Dimensions: 8px x 31px * /templates/base/images/tm-item_left_act.png http://demo.boonex.com/templates/base/images/tm_item_left_act.png * Dimensions: 8px x 31px * /templates/base/images/tm-item_right.png http://demo.boonex.com/templates/base/images/tm-item_right.png * Dimensions: 1000px x 31px * /templates/base/images/tm-item_right_act.png http://demo.boonex.com/templates/base/images/tm-item_right_act.png * Dimensions: 1000px x 31px * /templates/base/images/tm_sitem_act.png http://demo.boonex.com/templates/base/images/tm_sitem_act.png * Dimensions: 190px x 33px * /templates/base/images/tm_smenu_bg.png http://demo.boonex.com/templates/base/images/tm_smenu_bg.png * Dimensions: 190px x 2px * /templates/base/images/tm_smenu_bottom.png http://demo.boonex.com/templates/base/images/tm_smenu_bottom.png * Dimensions: 190px x 3px * /templates/base/images/tm_smenu_sitem_act.png http://demo.boonex.com/templates/base/images/tm_smenu_sitem_act.png * Dimensions: 170px x 33px * /templates/base/images/top_menu_popup_bg.png http://demo.boonex.com/templates/base/images/top_menu_popup_bg.png * Dimensions: 5px x 8px * /templates/base/images/topMenuBg.gif http://demo.boonex.com/templates/base/images/topMenuBg.gif * Dimensions: 10px x 24px * ** Format the Drop Down Search Box [=#point6] * Image path: /templates/base/images/tm_sitem_search_bg.png [[Image(tm_sitem_search_bg.png)]] * Dimensions: 170px x 18px * ** Format the Navigation Drop Down Menu Transparency Background [=#point7] * Image path: templates/base/images/tm_smenu_bg.png [[Image(tm_smenu_bg.png)]] * Dimensions: 190px x 2px * To make the background of the Drop Down Menu either less or non-transparent, upload a less or non-transparent png image named tm_smenu_bg.png to overwrite the existing image * ** Format the Navigation Menu Font [=#point8] * File path: /templates/base/css/top_menu.css * at line 157: 143 .topMenu a, [[br]] 144 .topMenu a:link, [[br]] 145 .topMenu a:visited, [[br]] 146 .topMenu b {[[br]] 147 margin: 0px;[[br]] 148 padding: 0px 0px 0px 5px;[[br]] 149 [[br]] 150 display: block;[[br]] 151 [[br]] 152 background: transparent url(../images/tm_item_left.png) no-repeat scroll 0%;[[br]] 153 border-width: 0px;[[br]] 154[[br]] 155 text-transform: capitalize;[[br]] 156 text-decoration: none;[[br]] 157 color:#666666; [[br]] 158 font-weight: normal;[[br]] 159 }[[br]] * ** Format the Navigation Menu Font - Mouse Hover * File path: /templates/base/css/top_menu.css * at line 167: 165 .topMenu a:hover, [[br]] 166 .topMenu a:active { [[br]] 167 color:#03fc6c; [[br]] 168 }[[br]] * ** Format the Navigation Menu Font - Active Page Font * File path: /templates/base/css/top_menu.css * at line 175: 170 .topMenu td#tm_active a.top_link, [[br]] 171 .topMenu td#tm_active a.top_link:link, [[br]] 172 .topMenu td#tm_active a.top_link:visited, [[br]] 173 .topMenu td#tm_active a.top_link:active { [[br]] 174 background:transparent url(../images/tm_item_left_act.png) no-repeat scroll 0%;[[br]] 175 color:#333; [[br]] 176 }[[br]] == Submenu Formatting == * ** Format the Subnavigation Tabs' Background [=#point9] [[Image(SubmenuBackground.png)]] * Image path: /templates/base/images/tm_cm_bg.png [[Image(tm_cm_bg.png)]] * 1px x 38px * ** Format the Breadcrumb Background [=#point10] [[Image(BreadcrumbHeaderBackground.png)]] * Image path: /templates/base/images/bc_bg.png [[Image(bc_bg.png)]] * 110px x 19px * Image path: /templates/base/images/bc_bg_close.png * 10x19 * Image path: /templates/base/images/bc_bg_open.png * 10x19 == Main Content Formatting == * ** Format the Main Body Background [=#point11] [[Image(MainBodyBG.png)]] * File path: /templates/base/css/common.css * at line 5: 5 background-color:#ffffff; * edit background color or add a background image (remember to save common.css to /templates/YourTemplateName/base/css in order to keep your changes intact when upgrading): 5 background-color:#000000; [[br]] 6 background-image:url('http://your image URL); [[br]] 7 background-position: Center; [[br]] 8 background-repeat: repeat; [[br]] 9 background-attachment: fixed; [[br]] * ** Format the Main Body Font [=#point12] [[Image(MainBodyFont.png)]] * File path: /templates/base/css/common.css * at line 1 (4): body { [[br]] font-family:Verdana,Arial; [[br]] font-size:11px; [[br]] color:#03fc67; [[br]] background-color:#ffffff; [[br]] margin:0px; [[br]] padding:0 0 50px 0; [[br]] } [[br]] * ** Formatting (Most) Links [=#point13] * File path: /templates/base/css/anchor.css * at line 2: a, a:link { [[br]] color:#3333CC; [[br]] /*font-family:Verdana,Arial;*/ [[br]] } [[br]] a:visited { [[br]] color:#000099; [[br]] } [[br]] [[br]] a:hover, a:active { [[br]] color:#3333CC; [[br]] } [[br]] [[br]] a, a:link, a:visited, a:active { [[br]] text-decoration:none; [[br]] } a:hover { text-decoration:underline; } [[br]] * ** Format the Page Block Header Backgrounds [=#point14] [[Image(PageBlockHeaderBackground.png)]] * Image path: /templates/base/images/bc_bg.png [[Image(http://demo.boonex.com/templates/base/images/bc_bg.png)]] * 10px x 19px * ** Format the Page Block Header Font [=#point15] [[Image(PageBlockHeaderFont.png)]] * File path: /templates/base/css/common.css * at line 248 .boxFirstHeader { [[br]] height:21px; [[br]] padding:7px 0px 0px 10px ; [[br]] font-size:12px; [[br]] color:#333; [[br]] font-weight: bold; [[br]] text-align:left; [[br]] text-transform:capitalize; [[br]] border-bottom: 1px solid #CCC; [[br]] position:relative; /*need to 236*/ [[br]] font-family:Verdana,Arial; [[br]] * ** Format the Page Block Background [=#point16] [[Image(PageBlockBackground.png)]] * File path: /templates/base/css/common.css * at line 260 .boxContent { [[br]] overflow: hidden; [[br]] font-size: 11px; [[br]] padding: 1px 1px 1px 1px; [[br]] background-color: #fff; [[br]] } [[br]] * ** Format the Page Block Bottom Border [=#point17] [[Image(PageBlockHeaderBottomBorder.png)]] * File path: /templates/base/css/common.css * at line 248 (256): .boxFirstHeader { [[br]] height:21px; [[br]] padding:7px 0px 0px 10px ; [[br]] font-size:12px; [[br]] color:#333; [[br]] font-weight: bold; [[br]] text-align:left; [[br]] text-transform:capitalize; [[br]] border-bottom: 1px solid #CCC; [[br]] position:relative; /*need to 236*/ [[br]] font-family:Verdana,Arial; [[br]] * ** Format the Form Header Background [=#point18] [[Image(FormHeaderBackground.png)]] * File path: /templates/base/css/forms_adv.css * at line 65 62 .form_advanced_table th.block_header { [[br]] 63 text-align: left; [[br]] 64 font-weight: normal; [[br]] 65 background-color: #ececec; [[br]] 66 font-size: 12px; [[br]] * ** Format the Form Body Background [=#point19] [[Image(FormBodyBackground.png)]] * File path: /templates/base/css/forms_adv.css * at line 53 51 .button_wrapper_close [[br]] 52 { [[br]] 53 background-color: #f4f7fa; [[br]] [=#point20] == Boonex Bar Formatting == [[Image(BoonexBar.png)]] * ** Format the Boonex Bar Background * Image path: /templates/base/images/footer_part.png [[Image(footer_part.png)]] * 3px x 48px * ** Format the Boonex Boonex Bar Fonts * File path: File path: /templates/base/css/general.css * Starting at line 1272 /*---------------------*/ [[br]] [[br]] div.main_footer_block { [[br]] * ** Format the Boonex Bar Border * File path: /templates/base/css/general.css * at line 1274 div.main_footer_block { [[br]] border:1px solid #03fc67; [[br]] margin-left: auto; [[br]] margin-right: auto; [[br]] height:49px; [[br]] background-image:url(../images/footer_part.png); [[br]] [[br]] font-size:11px; } [[br]] [=#point21] == Copyright Bar (Footer) Formatting == * ** Format the Copyright (bottom) Menu Background/border [[Image(CopyrightBorderBackground.png)]] * File path: /templates/base/css/general.css * at line 446 (bg 447) (border 448): 446 .bottomCopyright { [[br]] 447 background-color:#F9F9F9; [[br]] 448 border:1px solid #cccccc; [[br]] 449 margin:6px auto 0px; [[br]] 450 } [[br]] * ** Format the Copyright (bottom menu) Font [[Image(CopyrightFont.png)]] * File path: /templates/base/css/general.css * at line 469 466 .bottomCopyright .bottomCpr { [[br]] 467 float: right; [[br]] 468 padding-right:10px; [[br]] 469 color:#03fc67; [[br]] 470 font-weight:normal; [[br]] 471 font-size:11px; [[br]] 472 padding-top:7px; [[br]] 473 } [[br]] [=#point22] == Member Menu Bar Formatting == * ** Format the Member Menu Background [[Image(MemberMenuBackground.png)]] * Image path: /templates/base/images/mini_extra_menu_bg.png [[Image(mini_extra_menu_bg.png)]] * 2px x 43px * File path: /templates/base/extra_top_menu.html * ** Format the Member Menu Popup Selected Background and Borders [[Image(MemberMenuPopupBackgroundChange.png)]] * File path: /templates/base/css/general.css * at line 955 - background (956 right border, 957 left border): 954 div.extra_top_menu table.fixed_menu div.popup_html div.menu_item_active { [[br]] 955 background-color:#03fc67; [[br]] 956 border-right:1px solid #B7B7B7; [[br]] 957 border-left:1px solid #B7B7B7; [[br]] * ** Format the Member Menu Popup Header Background: [[Image(MemberMenuPopupHeaderBackground.png)]] * File path: /templates/base/css/general.css * at line 994 (995): 994 div.extra_top_menu table.fixed_menu div.popup_html div.extra_data{ [[br]] 995 background-color:#E4E4E4; [[br]] 996 font-weight:bold; [[br]] 997 position:relative; [[br]] 998 padding-left:10px; [[br]] 999 padding-top:5px; [[br]] 1000 padding-bottom:5px; [[br]] 1001 }