Project

General

Profile

Download (2.54 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
 * @file
3
 * RTL companion for the fixed-width.css file.
4
 */
5

    
6

    
7
/*
8
 * Center the page.
9
 */
10

    
11
#page,
12
.region-bottom {
13
  /* If you want to make the page a fixed width and centered in the viewport,
14
   * this is the standards-compliant way to do that. */
15
  margin-left: auto;
16
  margin-right: auto;
17
  width: 980px;
18
}
19

    
20
/*
21
 * Apply the shared properties of grid items in a single, efficient ruleset.
22
 */
23

    
24
#header,
25
#content,
26
#navigation,
27
.region-sidebar-first,
28
.region-sidebar-second,
29
#footer {
30
  padding-left: 10px;
31
  padding-right: 10px;
32
  border: 0 !important;
33
  word-wrap: break-word;
34
  _display: inline;
35
  _overflow: hidden;
36
  _overflow-y: visible;
37
}
38

    
39
/*
40
 * Containers for grid items and flow items.
41
 */
42

    
43
#header,
44
#main,
45
#footer {
46
  *position: relative;
47
  *zoom: 1;
48
}
49
#header:before, #header:after,
50
#main:before, #main:after,
51
#footer:before, #footer:after {
52
  content: "";
53
  display: table;
54
}
55
#header:after,
56
#main:after,
57
#footer:after {
58
  clear: both;
59
}
60

    
61
/*
62
 * Navigation bar
63
 */
64

    
65
#main {
66
  padding-top: 3em; /* Move all the children of #main down to make room. */
67
  position: relative;
68
}
69

    
70
#navigation {
71
  position: absolute;
72
  top: 0; /* Move the navbar up inside #main's padding. */
73
  height: 3em;
74
  width: 960px;
75
}
76

    
77
/*
78
 * The layout when there is only one sidebar, the left one.
79
 */
80

    
81
.sidebar-first #content {
82
  /* Span 4 columns, starting in 2nd column from left. */
83
  float: right;
84
  width: 764px;
85
  margin-right: 196px;
86
  margin-left: -980px;
87
}
88

    
89
.sidebar-first .region-sidebar-first {
90
  /* Span 1 column, starting in 1st column from left. */
91
  float: right;
92
  width: 176px;
93
  margin-right: 0px;
94
  margin-left: -196px;
95
}
96

    
97
/*
98
 * The layout when there is only one sidebar, the right one.
99
 */
100

    
101
.sidebar-second #content {
102
  /* Span 4 columns, starting in 1st column from left. */
103
  float: right;
104
  width: 764px;
105
  margin-right: 0px;
106
  margin-left: -784px;
107
}
108

    
109
.sidebar-second .region-sidebar-second {
110
  /* Span 1 column, starting in 5th column from left. */
111
  float: right;
112
  width: 176px;
113
  margin-right: 784px;
114
  margin-left: -980px;
115
}
116

    
117
/*
118
 * The layout when there are two sidebars.
119
 */
120

    
121
.two-sidebars #content {
122
  /* Span 3 columns, starting in 2nd column from left. */
123
  float: right;
124
  width: 568px;
125
  margin-right: 196px;
126
  margin-left: -784px;
127
}
128

    
129
.two-sidebars .region-sidebar-first {
130
  /* Span 1 column, starting in 1st column from left. */
131
  float: right;
132
  width: 176px;
133
  margin-right: 0px;
134
  margin-left: -196px;
135
}
136

    
137
.two-sidebars .region-sidebar-second {
138
  /* Span 1 column, starting in 5th column from left. */
139
  float: right;
140
  width: 176px;
141
  margin-right: 784px;
142
  margin-left: -980px;
143
}
(1-1/4)