354 lines
6.1 KiB
CSS
354 lines
6.1 KiB
CSS
/* Mandy Wu's Website
|
|
* common.css: The common style sheet.
|
|
*/
|
|
|
|
/* Copyright (c) 2006-2018 imacat.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
/* Author: imacat <imacat@mail.imacat.idv.tw>
|
|
* First written: 2006-11-15
|
|
*/
|
|
|
|
/* General settings */
|
|
body {
|
|
/*background: white url("../images/backgrnd.gif") repeat-y scroll;*/
|
|
color: black;
|
|
margin: 0;
|
|
padding: 0.5em;
|
|
}
|
|
.body {
|
|
margin: 0;
|
|
padding: 1em 5em;
|
|
}
|
|
.body h1 {
|
|
margin-left: -1em;
|
|
}
|
|
a:link, a:visited, a:active {
|
|
background-color: transparent;
|
|
color: blue;
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
background-color: yellow;
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
}
|
|
p {
|
|
text-indent: 2em;
|
|
}
|
|
.en {
|
|
font-family: Arial, sans-serif;
|
|
}
|
|
p.en {
|
|
margin: 0 0 0.5em 0;
|
|
}
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: "標楷體", DFKai-SB, "DFKai SB", kai, serif;
|
|
font-weight: normal;
|
|
margin: 0 0 0.5em 0;
|
|
padding: 0;
|
|
}
|
|
address {
|
|
font-size: 0.833em;
|
|
display: block;
|
|
}
|
|
pre {
|
|
margin: 0;
|
|
}
|
|
dl dt {
|
|
margin: 0 0 0.5em 0;
|
|
font-family: "標楷體", DFKai-SB, "DFKai SB", kai, serif;
|
|
font-size: 1.44em;
|
|
}
|
|
dl dd {
|
|
margin: 0.5em 0 0.5em 3em;
|
|
}
|
|
caption {
|
|
font-family: "標楷體", DFKai-SB, "DFKai SB", kai, serif;
|
|
font-size: 1.44em;
|
|
}
|
|
form {
|
|
margin: 0;
|
|
}
|
|
#contents {
|
|
margin: 1em 15%;
|
|
}
|
|
.note {
|
|
font-size: 0.833em;
|
|
font-style: italic;
|
|
}
|
|
q {
|
|
quotes: "「" "」" "『" "』";
|
|
}
|
|
div.errmsg {
|
|
margin: 1em 0.5in;
|
|
}
|
|
|
|
/* The navigation bar */
|
|
.navibar, .pagebar, .langs {
|
|
text-align: center;
|
|
font-size: 0.833em;
|
|
}
|
|
.navibar .text {
|
|
width: 4em;
|
|
}
|
|
.nav hr {
|
|
margin: 0.1em 0;
|
|
padding: 0;
|
|
height: 0;
|
|
}
|
|
|
|
/* The title */
|
|
.title {
|
|
margin-left: 40px;
|
|
}
|
|
.intro {
|
|
margin: 1em 80px;
|
|
}
|
|
.toc {
|
|
margin: 1em 40px;
|
|
}
|
|
.toc li {
|
|
margin: 1em 40px;
|
|
}
|
|
|
|
/* The footer */
|
|
.footer {
|
|
clear: both;
|
|
font-size: 0.833em;
|
|
text-align: center;
|
|
}
|
|
.footer p {
|
|
margin: 0;
|
|
text-indent: 0;
|
|
}
|
|
.footer img {
|
|
border-style: none;
|
|
}
|
|
.footer .modperl img {
|
|
height: 30px;
|
|
width: 110px;
|
|
}
|
|
|
|
/* The default list */
|
|
.deflist {
|
|
margin: 1em 0;
|
|
}
|
|
.deflist th {
|
|
white-space: nowrap;
|
|
}
|
|
.deflist th, .deflist td {
|
|
padding: 0.2em 0.5em;
|
|
vertical-align: top;
|
|
}
|
|
.deflist thead {
|
|
background-color: silver;
|
|
color: black;
|
|
}
|
|
.deflist tbody th {
|
|
font-weight: normal;
|
|
}
|
|
.deflist .listno, .deflist .listdel {
|
|
text-align: center;
|
|
}
|
|
.deflist .oddrow {
|
|
background-color: #FFE0E0;
|
|
color: black;
|
|
}
|
|
.deflist .evenrow {
|
|
background-color: #E0E0FF;
|
|
color: black;
|
|
}
|
|
.deflist .amount {
|
|
text-align: right;
|
|
}
|
|
.deflist .amount .neg {
|
|
color: red;
|
|
background-color: transparent;
|
|
}
|
|
.deflist .crdtsubj {
|
|
text-indent: 2em;
|
|
}
|
|
.deflist .subjlv2 {
|
|
text-indent: 1em;
|
|
}
|
|
.deflist .subjlastlv {
|
|
text-indent: 2em;
|
|
}
|
|
|
|
/* The default form */
|
|
.defform {
|
|
margin: 0;
|
|
width: 100%;
|
|
}
|
|
/* Refer to http://www.w3.org/Style/threepart-f.css */
|
|
/* The child selectors are a hack to hide these rules from WinIE6 */
|
|
body>form.defform {
|
|
width: auto;
|
|
}
|
|
.defform table {
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
.defform th, .defform td {
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
.defform .thfile {
|
|
width: 9em;
|
|
}
|
|
.defform .th {
|
|
width: 8.5em;
|
|
}
|
|
.defform .oldnew {
|
|
width: 3.5em;
|
|
}
|
|
.defform td .text, .defform td textarea {
|
|
width: 100%;
|
|
}
|
|
.defform td .prompt {
|
|
font-style: italic;
|
|
margin: 0;
|
|
}
|
|
.defform td ol, .defform td li ul {
|
|
margin: 0 0 0 2em;
|
|
padding: 0;
|
|
}
|
|
.defform td ul, .defform td li {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.defform td ul li {
|
|
list-style: none;
|
|
}
|
|
.defform td .oneline li {
|
|
display: block;
|
|
float: left;
|
|
margin-right: 0.5em;
|
|
}
|
|
.defform td h4, .defform td .picinfo, .defform td .piccap {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.defform .amount {
|
|
text-align: right;
|
|
}
|
|
|
|
/* The home page */
|
|
.covertoc h1, .covertoc h3 {
|
|
font-weight: bolder;
|
|
}
|
|
.covertoc ul li h2 {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
/* The related links */
|
|
.links .linkslist {
|
|
margin: 1em 80px;
|
|
}
|
|
.links .linkslist li {
|
|
margin: 1em 0;
|
|
}
|
|
.links .linkslist li img {
|
|
vertical-align: top;
|
|
}
|
|
.links .linkslist li cite {
|
|
font-family: "標楷體", DFKai-SB, cursive, serif;
|
|
font-size: 1.2em;
|
|
font-style: normal;
|
|
}
|
|
|
|
/* The blog */
|
|
.legend .entry {
|
|
padding: 1em;
|
|
margin: 1em 0;
|
|
border-width: thin thick thick thin;
|
|
border-style: solid;
|
|
border-color: #400020;
|
|
background-color: white;
|
|
color: inherit;
|
|
}
|
|
.legend .entry .freetext {
|
|
margin: 1em 0 0 0;
|
|
}
|
|
.legend .entry blockquote {
|
|
border-width: thin thick thick thin;
|
|
border-style: solid;
|
|
border-color: #400020;
|
|
margin: 1em;
|
|
padding: 1em;
|
|
}
|
|
@media screen, print {
|
|
.legend .entries hr {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* The full text search */
|
|
.searchresult em {
|
|
background-color: yellow;
|
|
color: red;
|
|
}
|
|
.searchresult h3 {
|
|
margin: 0;
|
|
}
|
|
.searchresult li {
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
/* The accessibility guides */
|
|
.skiptobody {
|
|
position: absolute;
|
|
line-height: 0;
|
|
left: 0;
|
|
top: 0;
|
|
z-index: -9;
|
|
}
|
|
.accessguide {
|
|
float: left;
|
|
font-size: 0.5em;
|
|
color: #FFFFFF;
|
|
}
|
|
.body .accessguide {
|
|
margin: 0 0 0 -10em;
|
|
}
|
|
|
|
/* The preview mark */
|
|
.previewmark {
|
|
position: fixed;
|
|
top: 1em;
|
|
left: 1em;
|
|
border: thick solid red;
|
|
color: red;
|
|
background-color: transparent;
|
|
margin: 0;
|
|
padding: 0.5em;
|
|
}
|
|
.previewmark h2 {
|
|
text-transform: uppercase;
|
|
text-align: center;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.previewmark p {
|
|
margin: 0;
|
|
padding: 0;
|
|
text-indent: 0;
|
|
}
|
|
.previewmark a, .previewmark a:visited, .previewmark a:hover {
|
|
color: red;
|
|
background-color: transparent;
|
|
}
|