aboutsummaryrefslogtreecommitdiff
path: root/contexts/data/lib/closure-library/closure/css/inlay/g-fixed.css
blob: 52ef5d160ac7e3db081421bc1fe2bbbd1828013d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
/*
 * Copyright 2007 The Closure Library Authors. All Rights Reserved.
 *
 * Use of this source code is governed by the Apache License, Version 2.0.
 * See the COPYING file for details.
 */

/**
 * CSS Inlay
 * Fixed templates
 * @author ddiaz@google.com (Dustin Diaz)
 * @author elsigh@google.com (Lindsey Simon)
 * @fileoverview
 * The nature of these templates is to have one unit be a fixed width
 * and the supplementary unit to take up the rest of the width
 * of its parents' container.
 *
 * Sample Usage:
  <div class="g-section g-tpl-180">
    <div class="g-unit g-first">
      <p>
        Lorem Ipsum...
      </p>
    </div>
    <div class="g-unit">
      <p>
        Lorem Ipsum...
      </p>
    </div>
  </div>
 */

/* Document container designed for 1024x768 */
/* TODO(ux-webdev): convert this to a straight px value - em assumes reset. */
.g-doc-1024 {
  width: 73.074em;
  min-width: 950px; /* min-width doesn't work in IE6 */
  margin: 0 auto;
  text-align: left;
}
/* IE 6 */
* html .g-doc-1024 {
  width: 71.313em;
}
/* IE 7 */
*+html .g-doc-1024 {
  width: 71.313em;
}

/* Document container designed for 800x600 */
/* TODO(ux-webdev): convert this to a straight px value - em assumes reset. */
.g-doc-800 {
  width: 57.69em;
  min-width: 750px; /* min-width doesn't work in IE6 */
  margin: 0 auto;
  text-align: left;
}
/* IE 6 */
* html .g-doc-800 {
  width: 56.3em;
}
/* IE 7 */
*+html .g-doc-800 {
  width: 56.3em;
}

/* 160px */
.g-tpl-160 .g-unit,
.g-unit .g-tpl-160 .g-unit,
.g-unit .g-unit .g-tpl-160 .g-unit,
.g-unit .g-unit .g-unit .g-tpl-160 .g-unit {
  margin: 0 0 0 160px;
  width: auto;
  float: none;
}
.g-unit .g-unit .g-unit .g-tpl-160 .g-first,
.g-unit .g-unit .g-tpl-160 .g-first,
.g-unit .g-tpl-160 .g-first,
.g-tpl-160 .g-first {
  margin: 0;
  width: 160px;
  float: left;
}

/* 160px alt */
.g-tpl-160-alt .g-unit,
.g-unit .g-tpl-160-alt .g-unit,
.g-unit .g-unit .g-tpl-160-alt .g-unit,
.g-unit .g-unit .g-unit .g-tpl-160-alt .g-unit {
  margin: 0 160px 0 0;
  width: auto;
  float: none;
}
.g-unit .g-unit .g-unit .g-tpl-160-alt .g-first,
.g-unit .g-unit .g-tpl-160-alt .g-first,
.g-unit .g-tpl-160-alt .g-first,
.g-tpl-160-alt .g-first {
  margin: 0;
  width: 160px;
  float: right;
}

/* 180px */
.g-tpl-180 .g-unit,
.g-unit .g-tpl-180 .g-unit,
.g-unit .g-unit .g-tpl-180 .g-unit,
.g-unit .g-unit .g-unit .g-tpl-180 .g-unit {
  margin: 0 0 0 180px;
  width: auto;
  float: none;
}
.g-unit .g-unit .g-unit .g-tpl-180 .g-first,
.g-unit .g-unit .g-tpl-180 .g-first,
.g-unit .g-tpl-180 .g-first,
.g-tpl-180 .g-first {
  margin: 0;
  width: 180px;
  float: left;
}

/* 180px alt */
.g-tpl-180-alt .g-unit,
.g-unit .g-tpl-180-alt .g-unit,
.g-unit .g-unit .g-tpl-180-alt .g-unit,
.g-unit .g-unit .g-unit .g-tpl-180-alt .g-unit {
  margin: 0 180px 0 0;
  width: auto;
  float: none;
}
.g-unit .g-unit .g-unit .g-tpl-180-alt .g-first,
.g-unit .g-unit .g-tpl-180-alt .g-first,
.g-unit .g-tpl-180-alt .g-first,
.g-tpl-180-alt .g-first {
  margin: 0;
  width: 180px;
  float: right;
}

/* 300px */
.g-tpl-300 .g-unit,
.g-unit .g-tpl-300 .g-unit,
.g-unit .g-unit .g-tpl-300 .g-unit,
.g-unit .g-unit .g-unit .g-tpl-300 .g-unit {
  margin: 0 0 0 300px;
  width: auto;
  float: none;
}
.g-unit .g-unit .g-unit .g-tpl-300 .g-first,
.g-unit .g-unit .g-tpl-300 .g-first,
.g-unit .g-tpl-300 .g-first,
.g-tpl-300 .g-first {
  margin: 0;
  width: 300px;
  float: left;
}

/* 300px alt */
.g-tpl-300-alt .g-unit,
.g-unit .g-tpl-300-alt .g-unit,
.g-unit .g-unit .g-tpl-300-alt .g-unit,
.g-unit .g-unit .g-unit .g-tpl-300-alt .g-unit {
  margin: 0 300px 0 0;
  width: auto;
  float: none;
}
.g-unit .g-unit .g-unit .g-tpl-300-alt .g-first,
.g-unit .g-unit .g-tpl-300-alt .g-first,
.g-unit .g-tpl-300-alt .g-first,
.g-tpl-300-alt .g-first {
  margin: 0;
  width: 300px;
  float: right;
}