Version 8 (modified by ggsinc, 13 years ago) (diff) |
---|
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
Format the Logo Header Background Color and/or Background Image
Format the Logo
Format the Quotation Font & Placement
Format the Navigation and Subnavigation Background Color and/or Background Image
Format the Navigation Buttons' Background
Format the Drop Down Search Box
Format the Navigation Drop Down Menu Transparency Background
Format the Navigation Menu Font
Format the Subnavigation Tabs' Background
Format the Breadcrumb Background
Format the Main Body Background
Format the Main Body Font
Formatting (Most) Links
Format the Page Block Header Backgrounds
Format the Page Block Header Font
Format the Page Block Background
Format the Page Block Bottom Border
Format the Form Header Background
Format the Form Body Background
Boonex Bar Formatting
Copyright Bar (Footer) Formattin
Member Menu Bar Formatting
Logo Header Formatting
- Format the Logo Header Background Color and/or Background Image
- File path: /templates/base/css/general.css
- at line 154:
div.sys_main_logo {
position: relative;
z-index: 56;
background-color: #f4f4f4;
}
- edit background color or add a background image (remember, your new file path will be: /templates/YourTemplateName/css/general.css):
div.sys_main_logo {
position: relative;
z-index: 56;
background-color:#000000;[[br]]
background-image:url('http://your image URL');
background-position: Center;
background-repeat: repeat;
background-attachment: fixed; }
- Format the Logo
- 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.
- 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.
- Deselect the "enable resizing" option if your image is sized correctly. Select the "Enable resizing" option and
- 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.
- Click the Upload button. Your logo will be stored in /media/images/
- Format the Quotation Font & Placement
- 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 Buttons' Background
- 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
- Format the Navigation Drop Down Menu Transparency Background
- Format the Navigation Menu Font
- File path: /templates/base/css/top_menu.css
- at line 157:
143 .topMenu a,
144 .topMenu a:link,
145 .topMenu a:visited,
146 .topMenu b {
147 margin: 0px;
148 padding: 0px 0px 0px 5px;
149
150 display: block;
151
152 background: transparent url(../images/tm_item_left.png) no-repeat scroll 0%;
153 border-width: 0px;
154
155 text-transform: capitalize;
156 text-decoration: none;
157 color:#666666;
158 font-weight: normal;
159 }
- Format the Navigation Menu Font - Mouse Hover
- File path: /templates/base/css/top_menu.css
- at line 167:
165 .topMenu a:hover,
166 .topMenu a:active {
167 color:#03fc6c;
168 }
- 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,
171 .topMenu td#tm_active a.top_link:link,
172 .topMenu td#tm_active a.top_link:visited,
173 .topMenu td#tm_active a.top_link:active {
174 background:transparent url(../images/tm_item_left_act.png) no-repeat scroll 0%;
175 color:#333;
176 }
Submenu Formatting
Main Content Formatting
- Format the Main Body Background
- 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;
6 background-image:url('http://your image URL);
7 background-position: Center;
8 background-repeat: repeat;
9 background-attachment: fixed;
font-family:Verdana,Arial;
font-size:11px;
color:#03fc67;
background-color:#ffffff;
margin:0px;
padding:0 0 50px 0;
}
- Formatting (Most) Links
- File path: /templates/base/css/anchor.css
- at line 2:
a, a:link {
color:#3333CC;
/*font-family:Verdana,Arial;*/
}
a:visited {
color:#000099;
}
a:hover, a:active {
color:#3333CC;
}
a, a:link, a:visited, a:active {
text-decoration:none;
} a:hover {
text-decoration:underline;
}
.boxFirstHeader {
height:21px;
padding:7px 0px 0px 10px ;
font-size:12px;
color:#333;
font-weight: bold;
text-align:left;
text-transform:capitalize;
border-bottom: 1px solid #CCC;
position:relative; /*need to 236*/
font-family:Verdana,Arial;
.boxContent {
overflow: hidden;
font-size: 11px;
padding: 1px 1px 1px 1px;
background-color: #fff;
}
.boxFirstHeader {
height:21px;
padding:7px 0px 0px 10px ;
font-size:12px;
color:#333;
font-weight: bold;
text-align:left;
text-transform:capitalize;
border-bottom: 1px solid #CCC;
position:relative; /*need to 236*/
font-family:Verdana,Arial;
62 .form_advanced_table th.block_header {
63 text-align: left;
64 font-weight: normal;
65 background-color: #ececec;
66 font-size: 12px;
51 .button_wrapper_close
52 {
53 background-color: #f4f7fa;
Boonex Bar Formatting
- Format the Boonex Boonex Bar Fonts
- File path: File path: /templates/base/css/general.css
- Starting at line 1272
div.main_footer_block {
- Format the Boonex Bar Border
- File path: /templates/base/css/general.css
- at line 1274
border:1px solid #03fc67;
margin-left: auto;
margin-right: auto;
height:49px;
background-image:url(../images/footer_part.png);
font-size:11px;
}
Copyright Bar (Footer) Formatting
- Format the Copyright (bottom) Menu Background/border
- File path: /templates/base/css/general.css
- at line 446 (bg 447) (border 448):
446 .bottomCopyright {
447 background-color:#F9F9F9;
448 border:1px solid #cccccc;
449 margin:6px auto 0px;
450 }
466 .bottomCopyright .bottomCpr {
467 float: right;
468 padding-right:10px;
469 color:#03fc67;
470 font-weight:normal;
471 font-size:11px;
472 padding-top:7px;
473 }
Member Menu Bar Formatting
- Format the Member Menu Background
- Image path: /templates/base/images/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
- 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 {
955 background-color:#03fc67;
956 border-right:1px solid #B7B7B7;
957 border-left:1px solid #B7B7B7;
- Format the Member Menu Popup Header Background:
- 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{
995 background-color:#E4E4E4;
996 font-weight:bold;
997 position:relative;
998 padding-left:10px;
999 padding-top:5px;
1000 padding-bottom:5px;
1001 }
Attachments (50)
- LogoHeaderBackground.png (78.4 KB) - added by ggsinc 13 years ago.
- LogoHeaderLogoImage.jpg (48.5 KB) - added by ggsinc 13 years ago.
- LogoHeaderQuotationFont.png (78.4 KB) - added by ggsinc 13 years ago.
- NavigationMenuBackground.png (77.5 KB) - added by ggsinc 13 years ago.
- SubmenuBackground.png (66.9 KB) - added by ggsinc 13 years ago.
- NavSubmenuBackground.png (133.4 KB) - added by ggsinc 13 years ago.
- BreadcrumbHeaderBackground.png (122.5 KB) - added by ggsinc 13 years ago.
- MainBodyBG.png (26.3 KB) - added by ggsinc 13 years ago.
- MainBodyFont.png (162.2 KB) - added by ggsinc 13 years ago.
- PageBlockHeaderBackground.png (122.7 KB) - added by ggsinc 13 years ago.
- PageBlockBackground.png (122.7 KB) - added by ggsinc 13 years ago.
- PageBlockHeaderBottomBorder.png (122.6 KB) - added by ggsinc 13 years ago.
- PageBlockHeaderFont.png (122.7 KB) - added by ggsinc 13 years ago.
- FormBodyBackground.png (122.6 KB) - added by ggsinc 13 years ago.
- FormHeaderBackground.png (122.7 KB) - added by ggsinc 13 years ago.
- CopyrightFont.png (66.8 KB) - added by ggsinc 13 years ago.
- CopyrightBorderBackground.png (133.4 KB) - added by ggsinc 13 years ago.
- MemberMenuBackground.png (26.8 KB) - added by ggsinc 13 years ago.
- MemberMenuPopupBackgroundChange.png (26.2 KB) - added by ggsinc 13 years ago.
- MemberMenuPopupPostCount.png (34.3 KB) - added by ggsinc 13 years ago.
- BoonexBar.png (135.4 KB) - added by ggsinc 13 years ago.
- MemberMenuPopupHeaderBackground.png (26.4 KB) - added by ggsinc 13 years ago.
- mini_extra_menu_bg.png (112 bytes) - added by ggsinc 13 years ago.
- footer_part.png (132 bytes) - added by ggsinc 13 years ago.
- bc_bg.png (93 bytes) - added by ggsinc 13 years ago.
- tm_cm_bg.png (112 bytes) - added by ggsinc 13 years ago.
- tm_smenu_bg.png (91 bytes) - added by ggsinc 13 years ago.
- tm_sitem_search_bg.png (756 bytes) - added by ggsinc 13 years ago.
- tm_bg.png (216 bytes) - added by ggsinc 13 years ago.
- big_logo.png (13.6 KB) - added by ggsinc 13 years ago.
- bx_home.png (904 bytes) - added by ggsinc 13 years ago.
- user.png (603 bytes) - added by ggsinc 13 years ago.
- mails.png (501 bytes) - added by ggsinc 13 years ago.
- tm_item_more.png (441 bytes) - added by ggsinc 13 years ago.
- tm_item_search.png (634 bytes) - added by ggsinc 13 years ago.
- sys_status_away.png (342 bytes) - added by ggsinc 13 years ago.
- sys_status_busy.png (342 bytes) - added by ggsinc 13 years ago.
- sys_status_offline.png (322 bytes) - added by ggsinc 13 years ago.
- sys_status_online.png (341 bytes) - added by ggsinc 13 years ago.
- status_text.png (743 bytes) - added by ggsinc 13 years ago.
- memeber_menu_mail.png (517 bytes) - added by ggsinc 13 years ago.
- tbar_item_cart.png (421 bytes) - added by ggsinc 13 years ago.
- spy_notify.png (725 bytes) - added by ggsinc 13 years ago.
- memeber_menu_friends.png (718 bytes) - added by ggsinc 13 years ago.
- memeber_menu_profile.png (619 bytes) - added by ggsinc 13 years ago.
- memeber_menu_dashboard.png (602 bytes) - added by ggsinc 13 years ago.
- member_menu_admin.png (571 bytes) - added by ggsinc 13 years ago.
- memeber_menu_settings.png (629 bytes) - added by ggsinc 13 years ago.
- memeber_menu_logout.png (690 bytes) - added by ggsinc 13 years ago.
-
image_map.txt
(217.8 KB) -
added by ggsinc 13 years ago.
7.0.8 image map text