pjs/layout/style/html.css

541 строка
9.8 KiB
CSS
Исходник Обычный вид История

/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
1999-10-02 01:57:32 +04:00
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (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.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
1999-10-02 01:57:32 +04:00
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Blake Ross <BlakeR1234@aol.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
1999-10-02 01:57:32 +04:00
@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
1999-10-02 01:57:32 +04:00
/* blocks */
html, div, map, dt, isindex, *|*:-moz-anonymous-block, *|*:cell-content {
1999-10-02 01:57:32 +04:00
display: block;
}
body {
display: block;
margin: 8px;
}
p, dl, multicol {
display: block;
margin: 1em 0;
}
dd {
display: block;
margin-left: 40px;
}
blockquote {
1999-10-02 01:57:32 +04:00
display: block;
margin: 1em 40px;
1999-10-02 01:57:32 +04:00
}
1999-10-02 01:57:32 +04:00
address {
display: block;
font-style: italic;
}
center {
1999-10-02 01:57:32 +04:00
display: block;
text-align: -moz-center;
1999-10-02 01:57:32 +04:00
}
1999-10-02 01:57:32 +04:00
blockquote[type=cite] {
display: block;
margin: 1em 0px;
padding-left: 1em;
border-left: solid;
border-color: blue;
border-width: thin;
}
1999-10-02 01:57:32 +04:00
h1 {
display: block;
font-size: 2em;
1999-10-02 01:57:32 +04:00
font-weight: bold;
margin: .67em 0;
1999-10-02 01:57:32 +04:00
}
1999-10-02 01:57:32 +04:00
h2 {
display: block;
font-size: 1.5em;
1999-10-02 01:57:32 +04:00
font-weight: bold;
margin: .83em 0;
1999-10-02 01:57:32 +04:00
}
1999-10-02 01:57:32 +04:00
h3 {
display: block;
font-size: 1.17em;
1999-10-02 01:57:32 +04:00
font-weight: bold;
margin: 1em 0;
}
1999-10-02 01:57:32 +04:00
h4 {
display: block;
font-weight: bold;
margin: 1.33em 0;
1999-10-02 01:57:32 +04:00
}
1999-10-02 01:57:32 +04:00
h5 {
display: block;
font-size: 0.83em;
1999-10-02 01:57:32 +04:00
font-weight: bold;
margin: 1.67em 0;
1999-10-02 01:57:32 +04:00
}
1999-10-02 01:57:32 +04:00
h6 {
display: block;
font-size: 0.67em;
1999-10-02 01:57:32 +04:00
font-weight: bold;
margin: 2.33em 0;
1999-10-02 01:57:32 +04:00
}
form {
display: block !important;
}
1999-10-02 01:57:32 +04:00
listing {
display: block;
font-family: -moz-fixed;
font-size: medium;
white-space: pre;
margin: 1em 0;
}
1999-10-02 01:57:32 +04:00
plaintext, xmp, pre {
display: block;
font-family: -moz-fixed;
white-space: pre;
margin: 1em 0;
}
1999-10-02 01:57:32 +04:00
/* tables */
table {
1999-10-02 01:57:32 +04:00
display: table;
border-spacing: 2px;
border-collapse: separate;
margin-top: 0;
margin-bottom: 0;
-moz-box-sizing: border-box;
1999-10-02 01:57:32 +04:00
}
*|*:table {
display: table;
-moz-box-sizing: border-box; /* XXX do we really want this? */
}
table[align="left"] {
float: left;
}
table[align="right"] {
float: right;
text-align: start;
}
table[rules] {
border-collapse: collapse;
}
*|*:table-outer {
display: table;
margin: 0;
border: none;
padding: 0;
width: 0;
height: 0;
float: inherit;
clear: inherit;
position: inherit;
top: inherit;
right: inherit;
bottom: inherit;
left: inherit;
z-index: inherit;
clip: inherit;
/* background and border should be inherited so that computed style
* (which uses the outer frame) will get the right values for these
* properties. Since the outer frame does not paint, inheriting
* these is OK.
*/
background: inherit;
border: inherit;
-moz-opacity: inherit;
1999-10-02 01:57:32 +04:00
}
/* make sure backgrounds are inherited in tables -- see bug 4510*/
td, th, tr {
background: inherit;
}
/* caption inherits from table not table-outer */
1999-10-02 01:57:32 +04:00
caption {
display: table-caption;
text-align: center;
margin-left: inherit;
margin-right: inherit;
-moz-box-sizing: border-box;
1999-10-02 01:57:32 +04:00
}
table[align="center"] > caption {
margin-left: auto;
margin-right: auto;
}
1999-10-02 01:57:32 +04:00
tr {
display: table-row;
vertical-align: inherit;
}
*|*:table-row {
display: table-row;
}
col, *|*:table-column {
display: table-column;
border: inherit;
width: inherit;
height: inherit;
background: inherit;
border: inherit;
}
colgroup, *|*:table-column-group {
display: table-column-group;
}
1999-10-02 01:57:32 +04:00
tbody {
display: table-row-group;
vertical-align: middle;
}
1999-10-02 01:57:32 +04:00
thead {
display: table-header-group;
vertical-align: middle;
}
1999-10-02 01:57:32 +04:00
tfoot {
display: table-footer-group;
vertical-align: middle;
}
*|*:table-row-group {
display: table-row-group;
1999-10-02 01:57:32 +04:00
}
td {
display: table-cell;
vertical-align: inherit;
text-align: inherit;
padding: 1px;
}
th {
display: table-cell;
vertical-align: inherit;
font-weight: bold;
padding: 1px;
}
*|*:table-cell {
display: table-cell;
padding: 1px;
white-space: inherit;
1999-10-02 01:57:32 +04:00
}
/* inlines */
1999-10-02 01:57:32 +04:00
q:before {
content: open-quote;
}
1999-10-02 01:57:32 +04:00
q:after {
content: close-quote;
}
b, strong {
font-weight: bolder;
}
i, cite, em, var, dfn {
1999-10-02 01:57:32 +04:00
font-style: italic;
}
1999-10-02 01:57:32 +04:00
tt, code, kbd, samp {
font-family: -moz-fixed;
}
u, ins {
1999-10-02 01:57:32 +04:00
text-decoration: underline;
}
s, strike, del {
1999-10-02 01:57:32 +04:00
text-decoration: line-through;
}
1999-10-02 01:57:32 +04:00
blink {
text-decoration: blink;
}
1999-10-02 01:57:32 +04:00
big {
font-size: larger;
}
1999-10-02 01:57:32 +04:00
small {
font-size: smaller;
}
sub {
vertical-align: sub;
font-size: smaller;
line-height: normal;
1999-10-02 01:57:32 +04:00
}
1999-10-02 01:57:32 +04:00
sup {
vertical-align: super;
font-size: smaller;
line-height: normal;
1999-10-02 01:57:32 +04:00
}
1999-10-02 01:57:32 +04:00
nobr {
white-space: nowrap;
}
/* titles */
abbr[title], acronym[title] {
border-bottom: dotted 1px;
cursor: help;
}
1999-10-02 01:57:32 +04:00
/* lists */
*|*:-moz-list-bullet, *|*:-moz-list-number {
1999-10-02 01:57:32 +04:00
display: inline;
vertical-align: baseline;
margin-right: 8px;
}
ul, menu, dir {
display: block;
list-style-type: disc;
margin: 1em 0;
padding-left: 40px;
counter-reset: -html-counter 0;
}
ol {
display: block;
list-style-type: decimal;
margin: 1em 0;
padding-left: 40px;
counter-reset: -html-counter 0;
}
li {
display: list-item;
-moz-float-edge: margin-box;
1999-10-02 01:57:32 +04:00
}
/* nested lists have no top/bottom margins */
ul ul, ul ol, ul dir, ul menu, ul dl,
ol ul, ol ol, ol dir, ol menu, ol dl,
dir ul, dir ol, dir dir, dir menu, dir dl,
menu ul, menu ol, menu dir, menu menu, menu dl,
dl ul, dl ol, dl dir, dl menu, dl dl {
1999-10-02 01:57:32 +04:00
margin-top: 0;
margin-bottom: 0;
}
/* 2 deep unordered lists use a circle */
ol ul, ul ul, menu ul, dir ul,
ol menu, ul menu, menu menu, dir menu,
ol dir, ul dir, menu dir, dir dir {
1999-10-02 01:57:32 +04:00
list-style-type: circle;
}
/* 3 deep (or more) unordered lists use a square */
ol ol ul, ol ul ul, ol menu ul, ol dir ul,
ol ol menu, ol ul menu, ol menu menu, ol dir menu,
ol ol dir, ol ul dir, ol menu dir, ol dir dir,
ul ol ul, ul ul ul, ul menu ul, ul dir ul,
ul ol menu, ul ul menu, ul menu menu, ul dir menu,
ul ol dir, ul ul dir, ul menu dir, ul dir dir,
1999-10-02 01:57:32 +04:00
menu ol ul, menu ul ul, menu menu ul, menu dir ul,
menu ol menu, menu ul menu, menu menu menu, menu dir menu,
menu ol dir, menu ul dir, menu menu dir, menu dir dir,
dir ol ul, dir ul ul, dir menu ul, dir dir ul,
dir ol menu, dir ul menu, dir menu menu, dir dir menu,
dir ol dir, dir ul dir, dir menu dir, dir dir dir {
1999-10-02 01:57:32 +04:00
list-style-type: square;
}
/* leafs */
hr {
display: block;
border: 1px -moz-bg-inset;
margin: 0 auto 0 auto;
1999-10-02 01:57:32 +04:00
}
*|*:-moz-any-link img, img[usemap], object[usemap] {
1999-10-02 01:57:32 +04:00
border: 2px solid;
cursor: pointer;
}
1999-10-02 01:57:32 +04:00
img[usemap], object[usemap] {
color: blue;
-moz-user-focus: normal;
1999-10-02 01:57:32 +04:00
}
object, embed, applet {
-moz-user-focus: normal;
}
frameset {
display: block ! important;
overflow: hidden;
1999-10-02 01:57:32 +04:00
}
frame {
background-color: transparent ! important; /* (b=49779) */
-moz-user-focus: normal;
1999-10-02 01:57:32 +04:00
}
1999-10-02 01:57:32 +04:00
iframe {
background-color: transparent ! important; /* (b=49779) */
border: 2px inset;
-moz-user-focus: normal;
1999-10-02 01:57:32 +04:00
}
noframes {
display: block;
}
/* focusable content */
/* links */
*|*:-moz-any-link {
cursor: pointer;
-moz-user-focus: normal;
}
*|*:-moz-any-link:active {
color: red;
}
*|*:-moz-any-link:focus {
-moz-outline: 1px dotted invert;
1999-10-02 01:57:32 +04:00
}
/* hidden elements */
area, base, basefont, head, meta, script, style, title,
noembed, noscript, param {
display: none;
1999-10-02 01:57:32 +04:00
}
/* magic */
1999-10-02 01:57:32 +04:00
*|*:viewport, *|*:viewport-scroll, *|*:canvas {
1999-10-02 01:57:32 +04:00
display: block;
background-color: inherit;
}
*|*:scrolled-content {
/* e.g., text inputs, select boxes */
1999-10-02 01:57:32 +04:00
background: inherit;
padding: inherit;
display: inherit;
2001-08-02 04:09:27 +04:00
-moz-box-orient: inherit;
1999-10-02 01:57:32 +04:00
}
*|*:wrapped-frame {
1999-10-02 01:57:32 +04:00
display: inherit;
}
*|*:-moz-page, *|*:-moz-page-sequence {
1999-10-02 01:57:32 +04:00
display: block;
background: transparent;
1999-10-02 01:57:32 +04:00
}
*|*:-moz-pagecontent {
display: block;
}
*|*:-moz-anonymous-positioned-block {
display: block;
position: relative;
top: inherit;
left: inherit;
bottom: inherit;
right: inherit;
z-index: inherit;
clip: inherit;
-moz-opacity: inherit;
}
/* PRINT ONLY rules follow */
@media print {
/* undo floats on aligned tables since we cannot print them correctly: see bug 74738 and bug 85768 */
table[align="left"] {
float: none;
}
table[align="right"] {
float: none;
}
* {
cursor: default !important;
}
*|*:viewport, *|*:viewport-scroll, *|*:canvas {
background-color: #737373 !important;
}
*|*:-moz-any-link, *|*:-moz-any-link img, img[usemap], object[usemap],
img[usemap], object[usemap], object, embed, applet, iframe {
-moz-user-focus: none !important;
}
}