~azzar1/unity/add-show-desktop-key

170 by mattgiuca
browser: Added CSS and JS files (not much in them).
1
/* IVLE - Informatics Virtual Learning Environment
2
 * Copyright (C) 2007-2008 The University of Melbourne
3
 * Style Sheet for File Browser and Editor
4
 * This file is redistributable under the terms of the GNU General Public
5
 * License version 2 or later.
6
 */
7
185 by mattgiuca
Integrated the (second) Prototype browser (HTML+CSS but no code) into the main
8
/* GENERAL FORMATTING */
9
380 by mattgiuca
media/browser/browser.css: Transformed browser CSS from intrinsic layout to
10
#ivlebody p, #ivlebody h2, #ivlebody h3 {
185 by mattgiuca
Integrated the (second) Prototype browser (HTML+CSS but no code) into the main
11
    padding: 0;
380 by mattgiuca
media/browser/browser.css: Transformed browser CSS from intrinsic layout to
12
    margin: 0.7em 0;
185 by mattgiuca
Integrated the (second) Prototype browser (HTML+CSS but no code) into the main
13
}
380 by mattgiuca
media/browser/browser.css: Transformed browser CSS from intrinsic layout to
14
#ivlebody p, #ivlebody h3 {
185 by mattgiuca
Integrated the (second) Prototype browser (HTML+CSS but no code) into the main
15
    font-size: 1em;
16
}
380 by mattgiuca
media/browser/browser.css: Transformed browser CSS from intrinsic layout to
17
#ivlebody h2 {
185 by mattgiuca
Integrated the (second) Prototype browser (HTML+CSS but no code) into the main
18
    font-size: 1.1em;
19
}
20
205 by mattgiuca
browser.js: Added appropriate handlers for error, text, and binary data.
21
.padding {
22
    padding: 1em;
23
}
24
185 by mattgiuca
Integrated the (second) Prototype browser (HTML+CSS but no code) into the main
25
/* TOP BAR */
26
27
#topbar {
380 by mattgiuca
media/browser/browser.css: Transformed browser CSS from intrinsic layout to
28
    position: absolute;
29
    left: 0;
30
    right: 0;
31
    top: 0;
32
    /* height == h2.margin + h2.line-height
33
     *              + max(h2.margin, p.margin) + p.line-height + p.margin
34
     *        == 1.1*0.7em + 1.1*1.2em + 1.1*0.7em + 1.1em + 0.7em
35
     *        == 4.6em */
36
    height: 4.6em;
37
    padding: 0.5em;
185 by mattgiuca
Integrated the (second) Prototype browser (HTML+CSS but no code) into the main
38
    background-color: #aaf;
39
}
596 by mattgiuca
browser: In the Python code, writes out all required HTML contents for the top
40
617 by mattgiuca
Added upload panel to the topbar instead of being on the side.
41
#topbar div {
42
    margin: 0.2em;
43
}
44
596 by mattgiuca
browser: In the Python code, writes out all required HTML contents for the top
45
#topbar #path a {
46
    font-weight: bold;
47
}
48
/* class "choice" is for all choices, enabled and disabled. This is for both
49
 * the <a> actions and <option> actions.
50
 * class "disabled" is for disabled choices.
51
 */
52
#actions1 a.choice, #actions2 a {
53
    color: navy;
54
    text-decoration: underline;
55
    cursor: pointer;
56
}
57
#actions1 a.choice:hover, #actions1 a.choice:active, #actions1 a.choice:focus,
58
    #actions2 a:hover, #actions2 a:active, #actions2 a:focus {
59
    color: blue;
60
}
61
#actions1 a.disabled {
62
    color: black;
63
    text-decoration: none;
64
    cursor: auto;
65
}
66
/* Drop-down actions and headings */
857 by wagrant
browser: Use optgroups rather than disabled options emulating headers
67
#actions1 option.moreactions, #actions1 option.disabled {
596 by mattgiuca
browser: In the Python code, writes out all required HTML contents for the top
68
    color: #aaa;
185 by mattgiuca
Integrated the (second) Prototype browser (HTML+CSS but no code) into the main
69
}
70
928 by wagrant
browser: Make actions2 a bit more standards-compliant.
71
#actions2 p {
72
    margin: 0;
73
}
74
911 by wagrant
browser: Hide 'More Actions' by default. It will be shown by JS when
75
/* One of the actions2s is shown at runtime, depending on the context.
76
 * We will show moreactions if we need it. */
77
#actions1 #moreactions_area, #actions2 #actions2_file,
78
#actions2 #actions2_directory {
834 by wagrant
Let the client decide whether to show file or directory actions2, as
79
    display: none;
80
}
81
380 by mattgiuca
media/browser/browser.css: Transformed browser CSS from intrinsic layout to
82
/* Everything under the top bar */
83
84
#filesbody {
85
    position: absolute;
86
    left: 0;
87
    right: 0;
88
    /* top == #topbar.height + #topbar.padding * 2 */
89
    top: 5.6em;
714 by dcoles
browser: Fixed CSS so we don't clobber the bottom on the page with our
90
    /* Space for the mimimised console */
729 by dcoles
Browser: Attemping to fix the browser and console box CSS so that it doesn't
91
    bottom: 3.5em;
380 by mattgiuca
media/browser/browser.css: Transformed browser CSS from intrinsic layout to
92
}
93