Theme Axis

Contents

1. Introduction
   1.1 Screenshots of theme Axis
   1.2 Description of theme Axis

2. The theme configuration
   2.1 Basic properties
   2.2 Theme configuration
   2.3 Reset theme

3. The theme in practice: tips
   3.1 New background image and location
   3.2 Different backgrounds for sections and pages
   3.3 How to change the position of the menu
   3.4 Printer friendly style sheet

1. Introduction

Axis is an images theme, i.e. well suited for presenting visual material. For its features, please see paragraph 2.2 Theme configuration. Tips for this theme are discussed in 3. The theme in practice:tips.

In this chapter we only discuss the features that are specific for this theme. The general features that apply to most themes are treated in chapter Theme Frugal, paragraph 2.2 Theme configuration.
Please also check The module in practice and For visually impaired. More Bazaar Style Style features can be found in chapter Bazaar Style Style.

1.1 Screenshots of theme Axis

Screenshot of theme Axis in its basic configuration with the demonstration data:

[ theme axis ]
themes_axis.png

Example of theme Axis:

[ theme axis example ]
themes_axis_example.png

1.2 Description of theme Axis

At first glance, it seems that Axis is built as three vertical columns. On the left side of the screen is an image, taking about 1/3rd of the screen width. In the middle is a small vertical column, taking about 1/6th of the screen width in which, from top to bottom ,three images and a vertical menu bar are visible. The third column, taking about half the screen width is used for the content.
In fact, there is only one image, created with one big image, three small images and a lot of white space for the content. In paragraph 3. The theme in action: tips we will discuss the details.

2. The theme configuration

2.1 Basic properties

The basic properties, i.e. Edit basic properties of this area are discussed in chapter Configuration Manager, paragraph 3.3 Edit basic properties of this area.

2.2 Theme configuration

[ axis: theme properties ]
themes_axis_configure.png
Explanation:

2.3 Reset theme

The procedure is the same for every theme. Please see Configuration Manager, paragraph 3.5 Reset properties of theme themename for area n (Area Name) for details.

(top)

3. The theme in action: tips

In this paragraph we discuss some particular tips that apply to this theme. We assume you have read about the concept of Bazaar Style Style in the Viewpoints chapter, paragraph 4.1 Cascading Style Sheets. And we assume you have studied the practical side of BSS in the Configuration manager chapter, paragraph 3.4 Configure theme 'Theme Name' for area n.
To create images, chapter Theme Sophia, paragraph 4.2 Creating stencil files gives some hints when using free programs and how to create an image.

3.1 New background image and location

In theme Axis, two backgrounds are available:
[ axis: background image ]
themes_axis_axis_gif.gif
  
[ axis theme image ]
themes_axis_blanco.jpg

The image blanco.jpg can be used to create your own image. It's size is 955x600 pixels. You can find the picture by downloading it at:
http://yourschool.org/program/themes/axis/
If, for example you want to create an image with the same size as the green area, you can take the following steps:

The described operations may differ in the different paint programs. We used mtPaint.

In the stylesheet style.css the image and its location are defined in:

#page {
  margin:               auto;
  width:                955px;
  height:               600px;
  background-image:     url('blanco.jpg'); 
  background-repeat:    no-repeat;
}

As you can see in the 'Extra style at area level' field, the image is overruled by:

#page {
  background-image:
  url('http://exemplum.eu/program/themes/axis/axis.gif');
}

When you upload your background image to the exemplum Area, the path, as example, could be:

 #page {
  background-image:
  url('http://exemplum.eu/file.php/areas/exemplum/EPSbackground.png'); 
}

Notice that file.php is used. This program is necessary because the image is not located under the program directory but in the data directory.

3.2 Different backgrounds for sections and pages

So far extra style has been added at Area level. That means every section and page in the Area gets the same background. It's possible to overrule this Area wide background by adding different background images, for example, to all pages in a section or even add a different background to one page.

The procedure is quite simple:

Save your work and see that all pages in that section have the same background, or that a particualer page has its own bakcground image.

3.3 How to change the position of the menu

In order to align the menu with your beautiful background, it can be necessary to put the menu in a certain position in the image. Below are the relevant code snippets. Some of them must be overruled in the style.css file:
#page {
  margin:               auto;
  width:                955px;
  height:               600px;
  background-image:     url('blanco.jpg');
  background-repeat:    no-repeat;
}

#header {
  width:                338px;
  height:               580px;
  float:                left;
}

#menu {
  width:                96px;
  margin:               350px 8px 0px 0px; 
  height:               230px;
  float:                left;
  font-size:            0.7em;
}

As you can see in the stylesheet, the page width is 955 pixels, the header width is 338 pixels and the menu is 92 pixels wide with a margin in the menu of 8 pixels.
When we remove the menu we have to fill the 'gap' by enlarging the header width to 338+96+8=442 pixels.
And finally we have to position the menu somewhere on in the image. This is one way to do the trick:

/* Make header wider to fill gap */
#header {
width: 442px;
}

/* No margin, no float, absolute postion */ 
#menu {
  width:                96px;
  margin:               0px 0px 0px 0px;
  height:               230px;
  float:                none;
  position:             absolute;
  top:                  150px;
  left:                 150px;
  font-size:            0.7em;
}

We have overruled the margin to 0 pixels.The margin value functions as follows:

         top   right bottom left 
margin:  350px 8px   0px    0px;

The 'float' property is set to value 'none'. With the property 'position' we set the desired position of the menu. The upper left corner of the menu is 150 pixels from the left and top sides of the browser window.

3.4 Printer friendly style sheet

If you want to change the content of the printed page, you can change the stylesheet yourself. The stylesheet can be found at:
http://exemplum.eu/program/themes/<themename>/print.css
You can save the file, for example as print2.css, change its content and put it in another place, for example in:
/areas/exemplum and change the file path in the printer friendly field to:
/file.php/areas/exemplum/print2.css. Observe the leading slash!

(top)

Author: Dirk Schouten <dirk (at) websiteatschool (dot) eu>
Last updated: 2014-09-06