-
Notifications
You must be signed in to change notification settings - Fork 1
/
layout.css
162 lines (139 loc) · 3.19 KB
/
layout.css
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/**********************************************************
**** element defaults *************************************
**********************************************************/
body {
font-size: 115%;
font-family: Arial, Helvetica, sans-serif;
}
h1 {
font-size: 160%;
}
h2 {
font-size: 120%;
}
h3 {
font-size: 110%;
font-weight: bold;
}
ol {
list-style-type: lower-alpha;
}
pre {
margin: 0.5em;
padding: 0.5em;
font-family: 'Courier New', Courier, monospace;
font-size: 75%;
}
code {
font-family : 'Courier New', Courier, monospace;
font-size: 110%;
}
dt {
font-weight: bold;
}
a img {
border: 0;
}
/**********************************************************
**** special logical blocks *******************************
**********************************************************/
.preamble {
font-style: italic;
}
p.image {
font-style: italic;
text-align: center;
}
.background {
position: relative;
z-index: 0;
}
.selected {
/* make a link look like ordinary text to mark the currently active selection */
color: black;
text-decoration: none;
font-weight: bold;
}
/**********************************************************
**** navigation & main area *******************************
**********************************************************/
#navigation {
/* font-size: 0.91em; */
float: left;
width: 15em;
margin: 0.0em 0;
padding: 0.25em;
position: relative;
z-index: 10;
}
#navigation ul {
margin: 0;
padding: 0 1em;
}
#navigation ul li {
list-style: none;
margin: 0;
padding: 0;
}
#main {
margin: 0;
padding: 0 0.5em 0.1em 0.5em;
margin-left: 16em;
min-width: 16em; /* Mindestbreite (der Ueberschrift) verhindert Anzeigefehler in modernen Browsern */
position: relative;
z-index: 10;
}
#main-head {
margin: 0 -0.5em 0.25em -0.5em;
padding: 0.5em 0.5em 0.25em 0.5em;
position: relative;
}
/**********************************************************
**** code snippets & toggling *****************************
**********************************************************/
/* Display code snippets in multiple, switcheable languages.
Typical usage:
<p class="toggle">
<a id="jlink$$$" class="toggle selected"
onmousedown="swapSections('csharp', 'java', 'clink', 'jlink');"
href="javascript:void(0);">Java</a> | <a id="clink$$$"
onmousedown="swapSections('java', 'csharp', 'jlink', 'clink');"
href="javascript:void(0);">C#</a>
</p>
<div class="snippet" id="snippet$$$">
<pre class="snippet java" id="java$$$">
...
</pre>
<pre class="snippet csharp" id="csharp$$$">
...
</pre>
</div>
*/
.snippet {
margin: 0;
}
.snippet.java {
position: absolute;
visibility: visible;
}
.snippet.csharp {
position: relative;
visibility: hidden;
}
/* Typical toggle usage:
<p class="toggle">
<a id="jlink0" class="toggle selected"
onmousedown="swapSections('csharp', 'java', 'clink', 'jlink');"
href="javascript:void(0);">Java</a> | <a id="clink0"
onmousedown="swapSections('java', 'csharp', 'jlink', 'clink');"
href="javascript:void(0);">C#</a>
</p>
*/
.toggle {
margin: 0;
padding: 0;
}
.toggle.selected {
text-decoration: none;
font-weight: normal;
}