Kabuki Projectメイン

layout.css

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

コメント

タグ:

+ タグ編集
  • タグ:
最終更新:2009年06月11日 22:34