annotate layout.css @ 7:787c247a1b22 tip

Minor font change
author Chris Cannam
date Thu, 15 Nov 2012 10:58:56 +0000
parents c1676bf16d66
children
rev   line source
Chris@0 1 /* $Id: layout-liquid.css,v 1.5.2.4 2009/02/13 19:30:50 johnalbin Exp $ */
Chris@0 2
Chris@0 3 /*
Chris@0 4 * LAYOUT STYLES
Chris@0 5 *
Chris@0 6 * Define CSS classes to create a table-free, 3-column, 2-column, or single
Chris@0 7 * column layout depending on whether blocks are enabled in the left or right
Chris@0 8 * columns.
Chris@0 9 *
Chris@0 10 * This layout is based on the Zen Columns layout method.
Chris@0 11 * http://drupal.org/node/201428
Chris@0 12 *
Chris@0 13 * Only CSS that affects the layout (positioning) of major elements should be
Chris@0 14 * listed here. Such as:
Chris@0 15 * display, position, float, clear, width, height, min-width, min-height
Chris@0 16 * margin, border, padding, overflow
Chris@0 17 */
Chris@0 18
Chris@0 19
Chris@0 20 /** body **/
Chris@0 21 body
Chris@0 22 {
Chris@0 23 }
Chris@0 24
Chris@0 25 #page,
Chris@0 26 #closure-blocks
Chris@0 27 {
Chris@0 28 min-width: 600px; /* Don't allow the browser to make the site unreadable. */
Chris@0 29 }
Chris@0 30
Chris@0 31 #page-inner
Chris@0 32 {
Chris@0 33 }
Chris@0 34
Chris@0 35 #navigation-top,
Chris@0 36 #navigation
Chris@0 37 {
Chris@0 38 position: absolute; /* Take the named anchors out of the doc flow */
Chris@0 39 left: -10000px; /* and prevent any anchor styles from appearing. */
Chris@0 40 }
Chris@0 41
Chris@0 42 #skip-to-nav
Chris@0 43 {
Chris@0 44 float: right;
Chris@0 45 margin: 0 !important;
Chris@0 46 font-size: 0.8em;
Chris@0 47 }
Chris@0 48
Chris@0 49 #skip-to-nav a:link, #skip-to-nav a:visited
Chris@0 50 {
Chris@0 51 color: #fff; /* Same as background color of page */
Chris@0 52 }
Chris@0 53
Chris@0 54 #skip-to-nav a:hover
Chris@0 55 {
Chris@0 56 color: #000;
Chris@0 57 text-decoration: none;
Chris@0 58 }
Chris@0 59
Chris@0 60 /* Alternatively, the skip-to-nav link can be completely hidden until a user tabs
Chris@0 61 to the link. Un-comment the following CSS to use this technique. */
Chris@0 62 /*
Chris@0 63 #skip-to-nav a, #skip-to-nav a:hover, #skip-to-nav a:visited
Chris@0 64 {
Chris@0 65 position: absolute;
Chris@0 66 left: 0;
Chris@0 67 top: -500px;
Chris@0 68 width: 1px;
Chris@0 69 height: 1px;
Chris@0 70 overflow: hidden;
Chris@0 71 }
Chris@0 72
Chris@0 73 #skip-to-nav a:active, #skip-to-nav a:focus
Chris@0 74 {
Chris@0 75 position: static;
Chris@0 76 width: auto;
Chris@0 77 height: auto;
Chris@0 78 }
Chris@0 79 */
Chris@0 80
Chris@0 81 /** header **/
Chris@0 82 #header
Chris@0 83 {
Chris@0 84 }
Chris@0 85
Chris@0 86 #header-inner
Chris@0 87 {
Chris@0 88 }
Chris@0 89
Chris@0 90 #logo-title
Chris@0 91 {
Chris@0 92 }
Chris@0 93
Chris@0 94 #logo
Chris@0 95 {
Chris@0 96 float: left;
Chris@0 97 }
Chris@0 98
Chris@0 99 #site-name
Chris@0 100 {
Chris@0 101 }
Chris@0 102
Chris@0 103 #site-slogan
Chris@0 104 {
Chris@0 105 }
Chris@0 106
Chris@0 107 #header-blocks
Chris@0 108 {
Chris@0 109 clear: both; /* Clear the logo */
Chris@0 110 }
Chris@0 111
Chris@0 112 /** main (container for everything else) **/
Chris@0 113 #main
Chris@0 114 {
Chris@0 115 position: relative;
Chris@0 116 }
Chris@0 117
Chris@0 118 #main-inner
Chris@0 119 {
Chris@0 120 }
Chris@0 121
Chris@0 122 /** content **/
Chris@0 123 #content
Chris@0 124 {
Chris@0 125 float: left;
Chris@0 126 width: 100%;
Chris@0 127 margin-left: 0;
Chris@0 128 margin-right: -100%; /* Negative value of #content's width + left margin. */
Chris@0 129 padding: 0; /* DO NOT CHANGE. Add padding or margin to #content-inner. */
Chris@0 130 }
Chris@0 131
Chris@0 132 #content-inner,
Chris@0 133 .no-sidebars #content-inner
Chris@0 134 {
Chris@0 135 margin: 0;
Chris@0 136 padding: 0;
Chris@0 137 }
Chris@0 138
Chris@0 139 .sidebar-left #content-inner
Chris@0 140 {
Chris@0 141 padding-left: 20%; /* The width + left margin of #sidebar-left. */
Chris@0 142 padding-right: 0;
Chris@0 143 }
Chris@0 144
Chris@0 145 .sidebar-right #content-inner
Chris@0 146 {
Chris@0 147 padding-left: 0;
Chris@0 148 padding-right: 20%; /* The width + right margin of #sidebar-right. */
Chris@0 149 }
Chris@0 150
Chris@0 151 .two-sidebars #content-inner
Chris@0 152 {
Chris@0 153 padding-left: 20%; /* The width + left margin of #sidebar-left. */
Chris@0 154 padding-right: 20%; /* The width + right margin of #sidebar-right. */
Chris@0 155 }
Chris@0 156
Chris@0 157 /** navbar **/
Chris@0 158 #navbar
Chris@0 159 {
Chris@0 160 float: left;
Chris@0 161 width: 100%;
Chris@0 162 margin-left: 0;
Chris@0 163 margin-right: -100%; /* Negative value of #navbar's width + left margin. */
Chris@0 164 padding: 0; /* DO NOT CHANGE. Add padding or margin to #navbar-inner. */
Chris@5 165 height: 3.6em; /* The navbar can have any arbritrary height. We picked one
Chris@0 166 that is twice the line-height pluse 1em: 2 x 1.3 + 1 = 3.6
Chris@0 167 Set this to the same value as the margin-top below. */
Chris@0 168 }
Chris@0 169
Chris@0 170 .with-navbar #content,
Chris@0 171 .with-navbar #sidebar-left,
Chris@0 172 .with-navbar #sidebar-right
Chris@0 173 {
Chris@5 174 margin-top: 3.6em; /* Set this to the same value as the navbar height above. */
Chris@0 175 }
Chris@0 176
Chris@0 177 #navbar-inner
Chris@0 178 {
Chris@0 179 }
Chris@0 180
Chris@0 181 #search-box
Chris@0 182 {
Chris@0 183 width: 20%;
Chris@0 184 margin-right: -20%; /* Negative value of #search-box's width. */
Chris@0 185 float: left;
Chris@0 186 }
Chris@0 187
Chris@0 188 #primary
Chris@0 189 {
Chris@0 190 margin-left: 20%;
Chris@0 191 }
Chris@0 192
Chris@0 193 #secondary
Chris@0 194 {
Chris@0 195 margin-left: 20%; /* Width of search-box */
Chris@0 196 }
Chris@0 197
Chris@0 198 #navbar ul /* Primary and secondary links */
Chris@0 199 {
Chris@0 200 margin: 0;
Chris@0 201 padding: 0;
Chris@0 202 text-align: left;
Chris@0 203 }
Chris@0 204
Chris@0 205 #navbar li /* A simple method to get navbar links to appear in one line. */
Chris@0 206 {
Chris@0 207 float: left;
Chris@0 208 padding: 0 10px 0 0;
Chris@0 209 }
Chris@0 210
Chris@0 211 /* There are many methods to get navbar links to appear in one line.
Chris@0 212 * Here's an alternate method: */
Chris@0 213 /*
Chris@0 214 #navbar li
Chris@0 215 {
Chris@0 216 display: inline;
Chris@0 217 padding: 0 10px 0 0;
Chris@0 218 }
Chris@0 219 */
Chris@0 220
Chris@0 221 /** sidebar-left **/
Chris@0 222 #sidebar-left
Chris@0 223 {
Chris@0 224 float: left;
Chris@0 225 width: 18%;
Chris@0 226 margin-left: 1%;
Chris@0 227 margin-right: -20%; /* Negative value of #sidebar-left's width + left margin. */
Chris@0 228 padding: 0; /* DO NOT CHANGE. Add padding or margin to #sidebar-left-inner. */
Chris@0 229 }
Chris@0 230
Chris@0 231 #sidebar-left-inner
Chris@0 232 {
Chris@0 233 margin: 0 20px 0 0;
Chris@0 234 padding: 0;
Chris@0 235 }
Chris@0 236
Chris@0 237 /** sidebar-right **/
Chris@0 238 #sidebar-right
Chris@0 239 {
Chris@0 240 float: right;
Chris@0 241 width: 18%;
Chris@0 242 margin-left: -20%; /* Negative value of #sidebar-right's width + right margin. */
Chris@0 243 margin-right: 1%;
Chris@0 244 padding: 0; /* DO NOT CHANGE. Add padding or margin to #sidebar-right-inner. */
Chris@0 245 }
Chris@0 246
Chris@0 247 #sidebar-right-inner
Chris@0 248 {
Chris@0 249 margin: 0 0 0 25px;
Chris@0 250 padding: 0;
Chris@0 251 }
Chris@0 252
Chris@0 253 /** footer **/
Chris@0 254 #footer
Chris@0 255 {
Chris@0 256 }
Chris@0 257
Chris@0 258 #footer-inner
Chris@0 259 {
Chris@0 260 }
Chris@0 261
Chris@0 262 /** closure **/
Chris@0 263 #closure-blocks /* See also the #page declaration above that this div shares. */
Chris@0 264 {
Chris@0 265 }
Chris@0 266
Chris@0 267 /** Prevent overflowing content **/
Chris@0 268 #header,
Chris@0 269 #content,
Chris@0 270 #navbar,
Chris@0 271 #sidebar-left,
Chris@0 272 #sidebar-right,
Chris@0 273 #footer,
Chris@0 274 #closure-blocks
Chris@0 275 {
Chris@0 276 overflow: visible;
Chris@0 277 word-wrap: break-word; /* A very nice CSS3 property */
Chris@0 278 }
Chris@0 279
Chris@0 280 #navbar
Chris@0 281 {
Chris@0 282 overflow: hidden; /* May need to be removed if using a dynamic drop-down menu */
Chris@0 283 }
Chris@0 284
Chris@0 285 /* If a div.clear-block doesn't have any content after it and its bottom edge
Chris@0 286 touches the bottom of the viewport, Firefox and Safari will mistakenly
Chris@0 287 place several pixels worth of space between the bottom of the div and the
Chris@0 288 bottom of the viewport. Uncomment this CSS property to fix this.
Chris@0 289 Note: with some over-large content, this property might cause scrollbars
Chris@0 290 to appear on the #page div.
Chris@0 291 */
Chris@0 292 /*
Chris@0 293 #page
Chris@0 294 {
Chris@0 295 overflow-y: hidden;
Chris@0 296 }
Chris@0 297 */
Chris@2 298
Chris@2 299 td.col-first { padding-right: 2em; }
Chris@2 300
Chris@6 301 table.col-2 td.col-first { width: 55%; }
Chris@6 302
Chris@2 303 .views-view-grid td { vertical-align: top; }
Chris@2 304
Chris@2 305 .views-view-grid .views-field-image-attach-images { float: left; margin-right: 0.8em; }
Chris@2 306
Chris@5 307 .views-view-grid h3 { margin-top: 0; }
Chris@5 308