1
/*
2
 * HTML5 Boilerplate
3
 *
4
 * What follows is the result of much research on cross-browser styling.
5
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
6
 * Kroc Camen, and the H5BP dev community and team.
7
 */
8
9
/* ==========================================================================
10
   Base styles: opinionated defaults
11
   ========================================================================== */
12
13
html,
14
button,
15
input,
16
select,
17
textarea {
18
    color: #222;
19
}
20
21
body {
22
    font-size: 1em;
23
    line-height: 1.4;
24
}
25
26
/*
27
 * Remove text-shadow in selection highlight: h5bp.com/i
28
 * These selection declarations have to be separate.
29
 * Customize the background color to match your design.
30
 */
31
32
::-moz-selection {
33
    background: #b3d4fc;
34
    text-shadow: none;
35
}
36
37
::selection {
38
    background: #b3d4fc;
39
    text-shadow: none;
40
}
41
42
/*
43
 * A better looking default horizontal rule
44
 */
45
46
hr {
47
    display: block;
48
    height: 1px;
49
    border: 0;
50
    border-top: 1px solid #ccc;
51
    margin: 1em 0;
52
    padding: 0;
53
}
54
55
/*
56
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
57
 */
58
59
img {
60
    vertical-align: middle;
61
}
62
63
/*
64
 * Remove default fieldset styles.
65
 */
66
67
fieldset {
68
    border: 0;
69
    margin: 0;
70
    padding: 0;
71
}
72
73
/*
74
 * Allow only vertical resizing of textareas.
75
 */
76
77
textarea {
78
    resize: vertical;
79
}
80
81
/* ==========================================================================
82
   Chrome Frame prompt
83
   ========================================================================== */
84
85
.chromeframe {
86
    margin: 0.2em 0;
87
    background: #ccc;
88
    color: #000;
89
    padding: 0.2em 0;
90
}
91
92
/* ==========================================================================
93
   Author's custom styles
94
   ========================================================================== */
95
96
.page {
97
  border: 1px solid #999;
98
  padding: 20px;
99
  width: 400px;
100
  /*height: 400px;*/
101
}
102
#pages {
103
  position: absolute;
104
  left: 20px;
105
  top: 20px;
106
  border: 1px solid black;
107
  padding: 10px;
108
  width: 300px;
109
  /*height: 80%;*/
110
}
111
#page {
112
  position: absolute;
113
  left: 500px;
114
  top: 90px;
115
}
116
#pagelist {
117
  padding: 10px;
118
}
119
#content {
120
  padding: 10px;
121
  margin: 3px;
122
  margin-bottom: 10px;
123
  max-height: 120px;
124
  overflow-y: auto;
125
}
126
.content-item:hover {
127
  cursor: pointer;
128
  cursor: hand;
129
}
130
#contentview {
131
  border: 1px solid #999;
132
  padding: 10px;
133
  margin: 10px;
134
}
135
.contentview {
136
}
137
#specific-content {
138
  padding: 3px;
139
  margin-bottom: 10px;
140
}
141
#addPage {
142
  margin: 10px 0 0 200px;
143
}
144
#notifications {
145
  width: 300px;
146
  z-index: 100;
147
  margin: 5px auto;
148
}
149
150
/* ==========================================================================
151
   Helper classes
152
   ========================================================================== */
153
154
/*
155
 * Image replacement
156
 */
157
158
.ir {
159
    background-color: transparent;
160
    border: 0;
161
    overflow: hidden;
162
    /* IE 6/7 fallback */
163
    *text-indent: -9999px;
164
}
165
166
.ir:before {
167
    content: "";
168
    display: block;
169
    width: 0;
170
    height: 100%;
171
}
172
173
/*
174
 * Hide from both screenreaders and browsers: h5bp.com/u
175
 */
176
177
.hidden {
178
    display: none !important;
179
    visibility: hidden;
180
}
181
182
/*
183
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
184
 */
185
186
.visuallyhidden {
187
    border: 0;
188
    clip: rect(0 0 0 0);
189
    height: 1px;
190
    margin: -1px;
191
    overflow: hidden;
192
    padding: 0;
193
    position: absolute;
194
    width: 1px;
195
}
196
197
/*
198
 * Extends the .visuallyhidden class to allow the element to be focusable
199
 * when navigated to via the keyboard: h5bp.com/p
200
 */
201
202
.visuallyhidden.focusable:active,
203
.visuallyhidden.focusable:focus {
204
    clip: auto;
205
    height: auto;
206
    margin: 0;
207
    overflow: visible;
208
    position: static;
209
    width: auto;
210
}
211
212
/*
213
 * Hide visually and from screenreaders, but maintain layout
214
 */
215
216
.invisible {
217
    visibility: hidden;
218
}
219
220
/*
221
 * Clearfix: contain floats
222
 *
223
 * For modern browsers
224
 * 1. The space content is one way to avoid an Opera bug when the
225
 *    `contenteditable` attribute is included anywhere else in the document.
226
 *    Otherwise it causes space to appear at the top and bottom of elements
227
 *    that receive the `clearfix` class.
228
 * 2. The use of `table` rather than `block` is only necessary if using
229
 *    `:before` to contain the top-margins of child elements.
230
 */
231
232
.clearfix:before,
233
.clearfix:after {
234
    content: " "; /* 1 */
235
    display: table; /* 2 */
236
}
237
238
.clearfix:after {
239
    clear: both;
240
}
241
242
/*
243
 * For IE 6/7 only
244
 * Include this rule to trigger hasLayout and contain floats.
245
 */
246
247
.clearfix {
248
    *zoom: 1;
249
}
250
251
/* ==========================================================================
252
   EXAMPLE Media Queries for Responsive Design.
253
   Theses examples override the primary ('mobile first') styles.
254
   Modify as content requires.
255
   ========================================================================== */
256
257
@media only screen and (min-width: 35em) {
258
    /* Style adjustments for viewports that meet the condition */
259
}
260
261
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
262
       only screen and (min-resolution: 144dpi) {
263
    /* Style adjustments for high resolution devices */
264
}
265
266
/* ==========================================================================
267
   Print styles.
268
   Inlined to avoid required HTTP connection: h5bp.com/r
269
   ========================================================================== */
270
271
@media print {
272
    * {
273
        background: transparent !important;
274
        color: #000 !important; /* Black prints faster: h5bp.com/s */
275
        box-shadow:none !important;
276
        text-shadow: none !important;
277
    }
278
279
    a,
280
    a:visited {
281
        text-decoration: underline;
282
    }
283
284
    a[href]:after {
285
        content: " (" attr(href) ")";
286
    }
287
288
    abbr[title]:after {
289
        content: " (" attr(title) ")";
290
    }
291
292
    /*
293
     * Don't show links for images, or javascript/internal links
294
     */
295
296
    .ir a:after,
297
    a[href^="javascript:"]:after,
298
    a[href^="#"]:after {
299
        content: "";
300
    }
301
302
    pre,
303
    blockquote {
304
        border: 1px solid #999;
305
        page-break-inside: avoid;
306
    }
307
308
    thead {
309
        display: table-header-group; /* h5bp.com/t */
310
    }
311
312
    tr,
313
    img {
314
        page-break-inside: avoid;
315
    }
316
317
    img {
318
        max-width: 100% !important;
319
    }
320
321
    @page {
322
        margin: 0.5cm;
323
    }
324
325
    p,
326
    h2,
327
    h3 {
328
        orphans: 3;
329
        widows: 3;
330
    }
331
332
    h2,
333
    h3 {
334
        page-break-after: avoid;
335
    }
336
}