1
|
/* $Id: layout.css,v 1.5.2.1 2007/01/17 05:28:41 jjeff Exp $ */
|
2
|
|
3
|
/**
|
4
|
* LAYOUT STYLES
|
5
|
*
|
6
|
* Define CSS classes to create a table-free,
|
7
|
* 3-column, 2-column, or single column layout
|
8
|
* depending on whether blocks are enabled in the
|
9
|
* left or right columns.
|
10
|
*/
|
11
|
|
12
|
/**
|
13
|
* Layout
|
14
|
*/
|
15
|
|
16
|
#container {
|
17
|
margin: 0 auto;
|
18
|
/*padding: 0 20px;*/
|
19
|
max-width: 1270px;
|
20
|
}
|
21
|
|
22
|
/* With 3 columns, require a minimum width of 1000px to ensure there is enough horizontal space. */
|
23
|
body.both-sidebars {
|
24
|
/*min-width: 980px;*/
|
25
|
}
|
26
|
/* With 2 columsn, require a minimum width of 800px. */
|
27
|
body.sidebar-left, body.sidebar-right {
|
28
|
/*min-width: 780px;*/
|
29
|
}
|
30
|
|
31
|
/* We must define 100% width to avoid the body being too narrow for near-empty pages */
|
32
|
#main {
|
33
|
float: left;
|
34
|
width: 100%;
|
35
|
}
|
36
|
|
37
|
/* So we move the #main container over the sidebars to compensate */
|
38
|
body.sidebar-left #main {
|
39
|
margin-left: -210px;
|
40
|
}
|
41
|
body.sidebar-right #main {
|
42
|
margin-right: -210px;
|
43
|
}
|
44
|
body.both-sidebars #main {
|
45
|
margin: 0 -210px;
|
46
|
}
|
47
|
|
48
|
#squeeze {
|
49
|
position: relative;
|
50
|
padding: 0 1em;
|
51
|
}
|
52
|
|
53
|
/* And add blanks left and right for the sidebars to fill */
|
54
|
body.sidebar-left #squeeze {
|
55
|
margin-left: 210px;
|
56
|
}
|
57
|
body.sidebar-right #squeeze {
|
58
|
margin-right: 210px;
|
59
|
}
|
60
|
body.both-sidebars #squeeze {
|
61
|
margin: 0 210px;
|
62
|
}
|
63
|
|
64
|
/* We ensure the sidebars are still clickable using z-index */
|
65
|
#container .sidebar {
|
66
|
background-color: #eaeaea;
|
67
|
margin: 0 0 5em;
|
68
|
width: 210px;
|
69
|
float: left;
|
70
|
z-index: 2;
|
71
|
position: relative;
|
72
|
}
|
73
|
|
74
|
#container .sidebar .block {
|
75
|
margin: 0 0 1.5em 0;
|
76
|
}
|
77
|
|
78
|
#sidebar-left .block {
|
79
|
padding: 0 15px 0 0px;
|
80
|
}
|
81
|
|
82
|
#sidebar-right .block {
|
83
|
padding: 0 0px 0 15px;
|
84
|
}
|
85
|
|
86
|
.block .content {
|
87
|
margin: 0.5em 0;
|
88
|
}
|
89
|
|
90
|
#footer {
|
91
|
float: none;
|
92
|
clear: both;
|
93
|
margin: 4em 0 -3em;
|
94
|
}
|
95
|
|
96
|
|
97
|
/*
|
98
|
body.sidebar-left #footer {
|
99
|
margin-left: -210px;
|
100
|
}
|
101
|
|
102
|
body.sidebar-right #footer {
|
103
|
margin-right: -210px;
|
104
|
}
|
105
|
|
106
|
body.both-sidebars #footer {
|
107
|
margin: 0 -210px;
|
108
|
}
|
109
|
|