aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/user-agent.css
blob: b52748cb0c1e14a337fa47ac4e644505d4709bb8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
html, address,
blockquote,
body, div,
dt, fieldset, form,
frame, frameset,
h1, h2, h3, h4,
h5, h6, noframes, 
center, dir, 
hr, menu, pre       { display: block; unicode-bidi: embed }
    head, noscript  { display: none }
    table           { display: table }
    tr              { display: table-row }
    thead           { display: table-header-group }
    tbody           { display: table-row-group }
    tfoot           { display: table-footer-group }
    col             { display: table-column }
    colgroup        { display: table-column-group }
    td, th          { display: table-cell }
    caption         { display: table-caption }
    th              { font-weight: bolder; text-align: center }
    caption         { text-align: center }
    body            { margin: 8px }
    h1              { font-size: 2em; margin: .67em 0 }
    h2              { font-size: 1.5em; margin: .75em 0 }
    h3              { font-size: 1.17em; margin: .83em 0 }
h4,
blockquote,
fieldset, form,
dir, menu           { margin: 1.12em 0 }
    h5              { font-size: .83em; margin: 1.5em 0 }
    h6              { font-size: .75em; margin: 1.67em 0 }
h1, h2, h3, h4,
h5, h6, b,
    strong          { font-weight: bolder }
    blockquote      { margin-left: 40px; margin-right: 40px }
i, cite, em,
    var, address    { font-style: italic }
pre, tt, code,
    kbd, samp       { font-family: monospace }
    pre             { white-space: pre }
button, textarea,
    input, select   { display: inline-block }
    big             { font-size: 1.17em }
    small, sub, sup { font-size: .83em }
    sub             { vertical-align: sub }
    sup             { vertical-align: super }
    table           { border-spacing: 2px; }
thead, tbody,
    tfoot           { vertical-align: middle }
    td, th, tr      { vertical-align: inherit }
    s, strike, del  { text-decoration: line-through }
    hr              { border: 1px inset }

/* lists */
dd                  { display: block; margin-left: 40px }
p, dl, multicol     { display: block; margin: 1em 0 }
ul                  { display: block; list-style-type: disc; 
                      margin: 1em 0; padding-left: 40px }

ol                  { display: block; list-style-type: decimal;
                      margin: 1em 0; padding-left: 40px }

li                  { display: list-item }

/* nested lists have no top/bottom margins */
ul ul, ul ol, ul dl,
ol ul, ol ol, ol dl,
dl ul, dl ol, dl dl { margin-top: 0; margin-bottom: 0 }

/* 2 deep unordered lists use a circle */
ol ul,   ul ul      { list-style-type: circle; }

/* 3 deep (or more) unordered lists use a square */
ol ol ul, ol ul ul,
ul ol ul, ul ul ul  { list-style-type: square; }

/* The type attribute on ol and ul elements */
ul[type="disc"]     { list-style-type: disc; }
ul[type="circle"]   { list-style-type: circle; }
ul[type="square"]   { list-style-type: square; }
ol[type="1"]        { list-style-type: decimal; }
ol[type="a"]        { list-style-type: lower-alpha; }
ol[type="A"]        { list-style-type: upper-alpha; }
ol[type="i"]        { list-style-type: lower-roman; }
ol[type="I"]        { list-style-type: upper-roman; }

u, ins              { text-decoration: underline }
br:before           { content: "\A"; white-space: pre }

center              { text-align: center }
a:link,
a:visited,
area:link,
area:visited,
link:link,
link:visited        { text-decoration: underline }
:focus              { outline: thin dotted invert }

/* Begin bidirectionality settings (do not change) */
BDO[DIR="ltr"]      { direction: ltr; unicode-bidi: bidi-override }
BDO[DIR="rtl"]      { direction: rtl; unicode-bidi: bidi-override }

*[DIR="ltr"]        { direction: ltr; unicode-bidi: embed }
*[DIR="rtl"]        { direction: rtl; unicode-bidi: embed }

@media print {
h1                  { page-break-before: always }
h1, h2, h3,
h4, h5, h6          { page-break-after: avoid }
ul, ol, dl          { page-break-before: avoid }
}

/* Servo additions */
a:link,
area:link,
link:link           { color: blue }
script              { display: none }
style               { display: none }