J1.5

Customising the Beez template/header/fontsize

From Joomla! Documentation

< J1.5:Customising the Beez template‎ | header
Revision as of 14:01, 13 December 2008 by Bembelimen (talk | contribs) (New page: == HTML Reference == <source lang="text"> <!-- index.php line 58-67 --> <div id="fontsize"> <script type="text/javascript"> //<![CDATA[ document.write('<h3><?php ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The "J1.5" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

HTML Reference[edit]

<!-- index.php line 58-67 -->

<div id="fontsize">
    <script type="text/javascript">
        //<![CDATA[
            document.write('<h3><?php echo JText::_('FONTSIZE'); ?></h3><p class="fontsize">');
            document.write('<a href="index.php" title="<?php echo JText::_('Increase size'); ?>" onclick="changeFontSize(2); return false;" class="larger"><?php echo JText::_('bigger'); ?></a><span class="unseen">&nbsp;</span>');
            document.write('<a href="index.php" title="<?php echo JText::_('Decrease size'); ?>" onclick="changeFontSize(-2); return false;" class="smaller"><?php echo JText::_('smaller'); ?></a><span class="unseen">&nbsp;</span>');
            document.write('<a href="index.php" title="<?php echo JText::_('Revert styles to default'); ?>" onclick="revertStyles(); return false;" class="reset"><?php echo JText::_('reset'); ?></a></p>');
        //]]>
    </script>
</div>

Replace the "Font-size:" text[edit]

JText::_('FONTSIZE');

Search the language file en-GB.tpl_beez.ini for "FONTSIZE=Font-size:" and edit it:

/* #### en.GB.tpl_beez.ini line 12 #### */

FONTSIZE=Your text here!

Replace the "bigger" text[edit]

JText::_('Increase size');
JText::_('bigger');

Search the language file en-GB.tpl_beez.ini for "INCREASE SIZE=Increase size" and "BIGGER=bigger" and edit it:

/* #### en.GB.tpl_beez.ini line 9 #### */

BIGGER=Your text here!

/* #### en.GB.tpl_beez.ini line 11 #### */

INCREASE SIZE=Your text here!

Replace the "smaller" text[edit]

JText::_('Decrease size');
JText::_('smaller');

Search the language file en-GB.tpl_beez.ini for "DECREASE SIZE=Decrease size" and "SMALLER=smaller" and edit it:

/* #### en.GB.tpl_beez.ini line 10 #### */

DECREASE SIZE=Your text here!

/* #### en.GB.tpl_beez.ini line 24 #### */

SMALLER=Your text here!

Replace the "reset" text[edit]

JText::_('Revert styles to default');
JText::_('reset');

Search the language file en-GB.tpl_beez.ini for "REVERT STYLES TO DEFAULT=Revert styles to default" and "RESET=reset" and edit it:

/* #### en.GB.tpl_beez.ini line 20 #### */

RESET=Your text here!

/* #### en.GB.tpl_beez.ini line 21 #### */

REVERT STYLES TO DEFAULT=Your text here!

CSS Reference[edit]

#fontsize[edit]

The following classes and ids will influence the whole font-size "box". Please notice the ordering. Every CSS attribute will be overwritten by the class above.

Main Class[edit]

/* #### layout.css line 265-273 #### */

#fontsize
{
    z-index:100;
    position:absolute;
    top:0;
    right:0;
    background:#fff;
    color:#000;
}

layout.css

Secondary Classes[edit]

/* ##### position.css line 15-19 #### */

*
{
    margin: 0;
    padding: 0;
}

position.css

#fontsize h3[edit]

The following classes and ids will influence the "font-size:" text. Please notice the ordering. Every CSS attribute will be overwritten by the class above.

Main Class[edit]

/* #### layout.css line 275-280 #### */

#fontsize h3,#fontsize p
{
    border:0;
    display:inline;
    font-size:1em;
}

layout.css

Secondary Classes[edit]

/* ##### layout.css line 25-29 #### */

h3 {
    font-size:1.1em;
    font-weight:bold;
    margin:10px 0;
}

layout.css

/* ##### position.css line 15-19 #### */

*
{
    margin: 0;
    padding: 0;
}

position.css

#fontsize p[edit]

The following classes and ids will influence the "box" which enclose the 3 buttons (bigger/smaller/reset). Please notice the ordering. Every CSS attribute will be overwritten by the class above.

Main Class[edit]

/* #### layout.css line 282-285 #### */

#fontsize p
{
    margin:0 0 0 5px;
}

layout.css

Secondary Classes[edit]

/* #### layout.css line 275-280 #### */

#fontsize h3,#fontsize p
{
    border:0;
    display:inline;
    font-size:1em;
}

layout.css

/* ##### layout.css line 65-68 #### */

p {
    line-height:1.4em;
    margin:5px 0;
}

layout.css

/* ##### position.css line 15-19 #### */

*
{
    margin: 0;
    padding: 0;
}

position.css

#fontsize p a.larger[edit]

The following classes and ids will influence the "bigger" link tag. Please notice the ordering. Every CSS attribute will be overwritten by the class above.

Main Class[edit]

/* #### layout.css line 296-298 #### */

#fontsize p a.larger {
    background:#fff url(../images/lupe_larger.gif) no-repeat;
}

layout.css

/* #### layout.css line 308-311 #### */

#fontsize p a.larger:hover,#fontsize p a.larger:active,#fontsize p a.larger:focus {
    background:#000 url(../images/lupe_larger_black.gif) no-repeat;
    color:#fff;
}

layout.css

Secondary Classes[edit]

/* #### layout.css line 287-293 #### */

#fontsize p a
{
    font-weight:bold;
    margin:0 5px;
    display:inline;
    padding:2px 0 2px 24px;
}

layout.css

/* ##### layout.css line 14-16 #### */

a:link,a:visited
{
    color:#000;
}

layout.css

/* ##### layout.css line 19-23 #### */

a:hover,a:active,a:focus
{
    background:#000;
    color:#FFF;
}

layout.css

/* ##### position.css line 15-19 #### */

*
{
    margin: 0;
    padding: 0;
}

position.css

#fontsize p a.smaller[edit]

The following classes and ids will influence the "smaller" link tag. Please notice the ordering. Every CSS attribute will be overwritten by the class above.

Main Class[edit]

/* #### layout.css line 300-302 #### */

#fontsize p a.smaller {
    background:#fff url(../images/lupe_smaller.gif) no-repeat;
}

layout.css

/* #### layout.css line 313-316 #### */

#fontsize p a.smaller:hover,#fontsize p a.smaller:active,#fontsize p a.smaller:focus {
    background:#000 url(../images/lupe_smaller_black.gif) no-repeat;
    color:#fff;
}

layout.css

Secondary Classes[edit]

/* #### layout.css line 287-293 #### */

#fontsize p a
{
    font-weight:bold;
    margin:0 5px;
    display:inline;
    padding:2px 0 2px 24px;
}

layout.css

/* ##### layout.css line 14-16 #### */

a:link,a:visited
{
    color:#000;
}

layout.css

/* ##### layout.css line 19-23 #### */

a:hover,a:active,a:focus
{
    background:#000;
    color:#FFF;
}

layout.css

/* ##### position.css line 15-19 #### */

*
{
    margin: 0;
    padding: 0;
}

position.css

#fontsize p a.reset[edit]

The following classes and ids will influence the "reset" link tag. Please notice the ordering. Every CSS attribute will be overwritten by the class above.

Main Class[edit]

/* #### layout.css line 304-306 #### */

#fontsize p a.reset {
    background:#fff url(../images/lupe_reset.gif) no-repeat;
}

layout.css

/* #### layout.css line 318-321 #### */

#fontsize p a.reset:hover,#fontsize p a.reset:active,#fontsize p a.reset:focus {
    background:#000 url(../images/lupe_reset_black.gif) no-repeat;
    color:#fff;
}

layout.css

Secondary Classes[edit]

/* #### layout.css line 287-293 #### */

#fontsize p a
{
    font-weight:bold;
    margin:0 5px;
    display:inline;
    padding:2px 0 2px 24px;
}

layout.css

/* ##### layout.css line 14-16 #### */

a:link,a:visited
{
    color:#000;
}

layout.css

/* ##### layout.css line 19-23 #### */

a:hover,a:active,a:focus
{
    background:#000;
    color:#FFF;
}

layout.css

/* ##### position.css line 15-19 #### */

*
{
    margin: 0;
    padding: 0;
}

position.css

.unseen[edit]

The following classes and ids will influence an unused(?) div. Please notice the ordering. Every CSS attribute will be overwritten by the class above.

Main Class[edit]

/* #### layout.css line 104-113 #### */

.unsichtbar,.u2,.invisible , .unseen
{
    display: inline;
    height: 0px;
    left: -3000px;
    position: absolute;
    top: -2000px;
    width: 0px;
    z-index: 200;
}

position.css

Secondary Classes[edit]

/* ##### position.css line 15-19 #### */

*
{
    margin: 0;
    padding: 0;
}

position.css