Team:Tokyo Tech/test css

From 2009.igem.org

(Difference between revisions)
Ibuki (Talk | contribs)
(New page: /* ------------------------------------------------------------- [1] レイアウトに関する指定 [2] ヘッダーブロック内に関する指定 [3] コンテンツブロック内...)
Newer edit →

Revision as of 04:15, 16 October 2009

/* -------------------------------------------------------------

[1] レイアウトに関する指定 [2] ヘッダーブロック内に関する指定 [3] コンテンツブロック内に関する指定 [4] フッターブロック内に関する指定 [5] CSSデザインサンプルリンク指定


CSSデザインサンプ [ URL ] http://www.css-designsample.com


*/


/* 一括で全ての要素の余白をゼロに指定 */

  • {
 margin: 0;
 padding: 0;

}

/* 全体的なリンク */

a:link, a:visited, a:hover, a:active { text-decoration: underline; }

a:link { color: #00f; }

a:visited { color: #90f; }

a:hover { color: #f00; }

a:active { color: #f00; }

/* -------------------------------------------------------------

  [1] レイアウトに関する指定 */

body {

 font-size: 85%;
 text-align: center;
 padding: 0;
 margin: 0;

}

/*-- 全体を囲んでいます --*/

  1. wrapper {
 text-align: left;
 width: 800px;
 margin: 0 auto;
 border-left: 1px solid #666;
 border-right: 1px solid #666;

}

/*-- ヘッダー部分 --*/

  1. header {
 width: 100%;
 height: 245px;
 position: relative;
 background: url(Tokyotech.jpg) no-repeat 0 0;
 background-position:top right;

}

/*-- コンテンツ部分 740px --*/

  1. contents { padding: 40px 30px; }

/*-- フッター部分 --*/

  1. footer {
 width: 802px;
 margin: 0 auto;
 padding: 2em 0 0.5em;
 background-color: #333;

}

/* -------------------------------------------------------------

  [2] ヘッダーブロック内に関する指定 */

/* 見出し */

h1 {

 font-size: 100%;
 font-weight: normal;
 text-align: right;
 position: absolute;
 top: 10px;
 left: 30px;
 color: #666;

}

/* サイトタイトル */ .logo {

 font-size: 160%;
 position: absolute;
 top: 30px;
 left: 30px;

}

.logo a {

 font-weight: bold;
 color: #000;
 text-decoration: none;

}

.logo a:hover {

 color: #f00;
 text-decoration: none;

}

/* 概要 */ .description {

 line-height: 1.5em;
 position: absolute;
 bottom: 45px;
 left: 30px;
 color: #000;

}

/*---------------------------------------グローバルナビ部分*/

  1. globalnavi {
 font-size: 95%;
 list-style-type: none;
 width: 800px;
 height: 40px;
 position: absolute;
 bottom: 0;
 left: 0;

}

  1. globalnavi li {
 width: 200px;
 float: left;

}

  1. globalnavi li a {
 text-align: center;
 text-decoration: none;
 width: 200px;
 height: 28px;
 display: block;
 padding-top: 12px;
 background-image: url(img/bg-globalnavi.jpg);
 background-repeat: no-repeat;
 color: #9f0

}

  1. category01 a { background-position: 0 0; }
  1. category02 a { background-position: -200px 0; }
  1. category03 a { background-position: -400px 0; }
  1. category04 a { background-position: -600px 0; }
  1. globalnavi li a:hover {
 text-decoration: none;
 background-image: url(img/bg-globalnavi.jpg);
 background-repeat: no-repeat;
 color: #fff;

}

  1. category01 a:hover { background-position: 0 -40px; }
  1. category02 a:hover { background-position: -200px -40px; }
  1. category03 a:hover { background-position: -400px -40px; }
  1. category04 a:hover { background-position: -600px -40px; }

/*--サブメニュー部分--*/

  1. globalnavi ul {
 list-style-type: none;
 width: 200px;
 height: auto;
 position: static;

}

  1. globalnavi ul li {
 width: 200px;
 float: none;

}

  1. globalnavi ul li a {
 text-align: left;
 text-decoration: none;
 width: 190px;
 height: auto;
 display: block;
 padding: 4px;
 border: 1px outset #690;
 background-image: none;
 background-color: #690;
 color: #000;

}

  1. globalnavi ul li a:hover {
 text-decoration: none;
 border: 1px outset #666;
 background-image: none;
 background-color: #666;
 color: #fff;

}

  1. globalnavi .menu ul { display: none; }
  1. globalnavi .menuOn ul { display: block; }

/* -------------------------------------------------------------

  [3] コンテンツブロック内に関する指定 */

/* 見出し */ h2, h3, h4, h5, h6 {

 font-size: 140%;
 font-weight: normal;
 margin-bottom: 0.5em;
 padding: 3px 0 2px;
 color: #030;
 border-top: 2px solid #9c0;
 border-bottom: 1px solid #ccc;

}

h3, h4, h5, h6 { margin-top: 2em; }

/* 文字 */

  1. contents p {
 line-height: 1.5em;
 margin-bottom: 1em;

}

/* -------------------------------------------------------------

  [5] フッターブロック内に関する指定 */
  1. footer p {
 text-align: center;
 color: #fff;

}

/* -------------------------------------------------------------

  [6] CSSデザインサンプルリンク指定 */
  1. cds {
 font-size: 80%;
 font-family: Geneva, Arial, Helvetica, sans-serif;
 text-align: right;
 margin: 0;
 padding-right: 20px;
 clear: both;

}

  1. cds,
  2. cds a,
  3. cds a:hover {
 text-decoration: none;
 color: #ccc;

}