Example CSS Code

html {
 color: #272822;
 font: 125%/1.5 'nimbus-sans', Helvetica, sans-serif;
}

body {
 margin: 0;
 padding: 0;
 -webkit-font-smoothing: antialiased; 
}
.main-footer {
 margin-bottom: 40px;
}
 .link-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
 }
 .link-list a.article {
  font-size: 150%;
  float: left;
 }
 .link-list .meta {
  float: right;
  margin-top: 10px;
 }
 .link-list .description {
  clear: both;
  font-style: italic;
  color: #AAA;
 }

 .link-list li.odd {
  margin-right: 3%;
 }
 .link-list li.small {
  display: inline-block;
  width: 48%;
  vertical-align: top;
 }
  .link-list li.small a.article {
   font-size: 100%;
  }
  .link-list li.small .description {
   font-size: 80%;
  }

.link-list.tags a.article {
 float: none;
}
 .link-list.tags ul {
  list-style: square;
 }

a {
 color: #00a3de;
 font-weight: bold;
 text-decoration: none;
}
a:hover {
 text-decoration: underline;
}
h1 {
 padding: 10px 30px;
 padding-left: 5%;
 color: #FFF;
 background: #272822;
 font-size: 48px;
 line-height: 1;
 margin-bottom: 36px;
 margin-bottom: 25px;
 font-weight: 100;
 display: inline-block;
 margin-left: -9999em;
 padding-left: 9999em;
}
h2 {
 font-size: 32px;
 line-height: 1;
 margin-bottom: 10px;
 margin-top: 20px;
 font-weight: 100;
}
h3 {
 font-size: 24px;
 line-height: 1;
 margin-bottom: 10px;
 font-weight: 200;
}
.container {
 width: 90%;
 max-width: 800px;
 margin: 0 auto;
}
.main {
 margin-bottom: 50px;
}

.separator {
 border-top: 2px solid #272822;
 padding-top: 10px;
}

.footer {
 background: #272822;
 width: 100%;
 padding: 15px 0;
 text-align: right;
 margin-top: 0;
}
 .footer p {
  color: #FFF;
  float: right;
 }
code {
 border-radius: 3px;
 padding: 10px;
}
code.inline {
 padding: 2px 4px;
 background: #272822;
 color: #FFF;
}
pre {
 white-space: -moz-pre-wrap;
 white-space:   -o-pre-wrap;
 white-space:     -pre-wrap; 
 white-space:      pre-wrap;
 word-wrap: break-word;
}
p.twitter {
 text-align: left;
 float: left;
}
.nav {
 margin-right: -2px;
 float: right;
 padding: 0;
}
.nav a {
 padding: 5px 10px;
 margin: 0 5px;
 background: #00a3de;
 color: #FFF;
 display: inline-block;
}
.bottom {
 margin-top: -40px;
}
.tags.bottom {
 float: left;
}
.nav.bottom {
 float: right;
}

pre, code {
 font: 13px/1.5 Monaco, Consolas, monospace;
}

.advert-holder {
 background: #F6F6F6;
 padding: 1em;
 margin: 1em 0;
}

.ads {
 float: right;
 width: 130px;
 font-size: 75%;
 line-height: 1.5;
 height: 220px;
 margin: 0 0 10px 20px;
}
 .ads a, .home-ads a {
  text-decoration: none;
  font-size: 75%;
  padding: 0;
  margin: 0;
  background: none;
  color: #00a3de;
 }

.home-ads {
 float: none;
 width: 300px;
 font-size: 75%;
 width: 300px;
 height: 105px;
}
 .home-ads #bsap_aplink {
  float: right;
  margin-top: -25px;
 }
 .home-ads .bsa_it_i {
  float: left;
 }
 .home-ads .bsa_it_d, .home-ads .bsa_it_t {
  float: right;
  width: 150px;
 }
 .home-ads .bsa_it_d {
  margin-top: 10px;
 }

.bsa_it_d {
 color: #272822;
 display: block;
}
.bsa_it_p {
 display: none;
}

input {
 outline: none;
}

table {
 border: 0;
 border-collapse: collapse;
}
 table.half {
  width: 40%;
  display: inline-block;
 }
 table.full {
  margin-bottom: 20px;
  width: 100%;
 }

th {
 background: #272822;
 color: #FFF;
}
th, td {
 padding: 2px 5px;
}
td {
 font-size: 90%;
}

.center {
 text-align: center;
}
.stickySlide {
 position: fixed !important;
 top: 0;
}
.cta-bar {
 width: 100%;
 max-width: 800px;
 background: #FFF;
 padding-top: 5px;
 text-align: center;
}
.cta-holder {
 width: 330px;
 position: relative;
 margin: 0 auto;
}
 .cta {
  cursor: pointer;
  vertical-align: top;
  display: inline-block;
 }
 .cta img {
  margin: 0 20px;
 }

td.null {
 font-style: italic;
 background: rgba(125, 0, 0, 0.2);
}

.result {
 display: none;
}

a.twitter img {
 width: 19px;
 height: 16px;
}

@media screen and (max-width: 1000px) {
 html {
  font-size: 100%;
 }
 .container {
  max-width: 700px;
 }
 a.twitter img {
  width: 18px;
  height: 14px;
 }
}

@media screen and (max-width: 800px) {
 .nav {
  float: none;
 }
  .nav a {
   margin: 0 2px;
  }
 .ads, .advert-holder {
  display: none; /* Hide our adverts on narrow screens */
 }
 .link-list li.small {
  width: 100%;
 }
 h1 {
  margin-top: 10px;
 }
}

@media screen and (max-width: 600px) {
 table.half {
  width: 100%;
  display: block;
  margin-bottom: 10px;
 }
}
@media screen and (max-width: 320px) {

 .nav a {
  margin: 0 1px;
 }
 .no-mobile {
  display: none !important;
 }
}

.demolink {
 text-align: right;
}

blockquote { 
 border-left: 5px solid #272822;
 padding-left: 10px;
}

.writers {
 text-align: center;
 margin: 0 auto;
 display: block;
 max-width: 600px;
}
.writers li {
 list-style: none;
 display: inline-block;
 margin: 0 15px 10px;
 text-align: center;
}

.face {
 max-width: 150px;
}

 .face img {
  border-radius: 100%;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,.2);
 }

留言

這個網誌中的熱門文章

tw quote

FPDF Big5 Font

三重幫 - 2013-09-11