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

« back to all changes in this revision

Viewing changes to www/media/browser/browser.css

  • Committer: mattgiuca
  • Date: 2008-01-11 07:10:18 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:185
Integrated the (second) Prototype browser (HTML+CSS but no code) into the main
filebrowser app. Note that this still is non-functional - it looks the same as
the original prototype.
browser: Added the full HTML source (including example rows) into the Python
code. (Note this will be a lot cleaner once example rows are removed).
media: Added "images" directory (copied from the demo). This contains all the
icons needed for the demo.
       browser.css: Pasted the entire CSS from the demo. This styles the
        browser interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
/* GENERAL FORMATTING */
9
9
 
10
 
#ivlebody p, #ivlebody h2, #ivlebody h3 {
 
10
body {
 
11
    background-color: white;
 
12
    color: black;
 
13
    font-family: sans;
 
14
}
 
15
 
 
16
a:link, a:visited {
 
17
    color: navy;
 
18
}
 
19
a:hover, a:active, a:focus {
 
20
    color: blue;
 
21
}
 
22
 
 
23
p, h1, h2, h3 {
11
24
    padding: 0;
12
 
    margin: 0.7em 0;
 
25
    margin: 0;
 
26
    margin-top: 11px;
 
27
    margin-bottom: 11px;
13
28
}
14
 
#ivlebody p, #ivlebody h3 {
 
29
p, h2, h3 {
15
30
    font-size: 1em;
16
31
}
17
 
#ivlebody h2 {
 
32
h1 {
18
33
    font-size: 1.1em;
19
34
}
20
35
 
21
 
.padding {
22
 
    padding: 1em;
 
36
/* OVERALL LAYOUT */
 
37
 
 
38
body {
 
39
    margin: 0;
 
40
    padding: 0;
 
41
}
 
42
 
 
43
#middle, #middle tbody {
 
44
    width: 100%;
 
45
    vertical-align: top;
 
46
    border-collapse: collapse;
 
47
}
 
48
 
 
49
#sidepanel {
 
50
    width: 300px;
23
51
}
24
52
 
25
53
/* TOP BAR */
26
54
 
27
55
#topbar {
28
 
    position: absolute;
29
 
    left: 0;
30
 
    right: 0;
31
 
    top: 0;
32
 
    /* Approximate height of the components */
33
 
    height: 5em;
 
56
    padding: 8px;
 
57
    background-color: #aaf;
 
58
}
 
59
#topbar a {
 
60
    font-weight: bold;
 
61
}
 
62
 
 
63
/* FILE LISTINGS TABLE */
 
64
 
 
65
#filetable {
 
66
    border-collapse: collapse;
 
67
    border-right: 1px solid #888;
34
68
    padding: 0;
35
 
    background-color: #ddd;
36
 
}
37
 
 
38
 
/* We don't want the bold-ness of a regular golden H1 */
39
 
#topbar #path {
40
 
    font-weight: normal;
41
 
}
42
 
 
43
 
#topbar #path a {
44
 
    font-weight: bold;
45
 
}
46
 
 
47
 
#actions {
48
 
    padding: 0.3em 0.5em;
49
 
    border-top: white 1px solid;        /* Top edge of 3D effect */
50
 
}
51
 
/* class "choice" is for all choices, enabled and disabled. This is for both
52
 
 * the <a> actions and <option> actions.
53
 
 * class "disabled" is for disabled choices.
 
69
}
 
70
 
 
71
th {
 
72
    text-align: left;
 
73
}
 
74
 
 
75
#filetablediv {
 
76
    overflow: auto;
 
77
}
 
78
 
 
79
/* Individual column sizes */
 
80
/* All columns have fixed widths except filename, which expands to fit. */
 
81
 
 
82
.col-check {
 
83
    width: 20px;
 
84
}
 
85
.col-icons {
 
86
    width: 50px;
 
87
}
 
88
.col-filename {
 
89
    width: auto;
 
90
}
 
91
.col-size {
 
92
    width: 100px;
 
93
}
 
94
.col-date {
 
95
    width: 150px;
 
96
}
 
97
 
 
98
/* Table borders and rows */
 
99
 
 
100
tr.rowhead {
 
101
    background-color: #336;
 
102
    color: white;
 
103
}
 
104
tr.rowhead a:link, tr.rowhead a:visited {
 
105
    color: #aaf;
 
106
}
 
107
/* Unselected (grey shades)
 
108
 * Note alternating rows are different shades
54
109
 */
55
 
#actions1 a.choice, #actions2 a {
56
 
    color: navy;
57
 
    text-decoration: underline;
58
 
    cursor: pointer;
59
 
}
60
 
#actions1 a.choice:hover, #actions1 a.choice:active, #actions1 a.choice:focus,
61
 
    #actions2 a:hover, #actions2 a:active, #actions2 a:focus {
62
 
    color: blue;
63
 
}
64
 
#actions1 a.disabled {
65
 
    color: black;
66
 
    text-decoration: none;
67
 
    cursor: auto;
68
 
}
69
 
/* Drop-down actions and headings */
70
 
#actions1 option.moreactions, #actions1 option.disabled {
71
 
    color: #aaa;
72
 
}
73
 
 
74
 
/* One of the actions2s is shown at runtime, depending on the context.
75
 
 * We will show moreactions if we need it. */
76
 
#actions1 #moreactions_area, #actions2 #actions2_file,
77
 
#actions2 #actions2_directory {
78
 
    display: none;
79
 
}
80
 
 
81
 
/* Everything under the top bar */
82
 
 
83
 
#filesbody {
84
 
    position: absolute;
85
 
    left: 0;
86
 
    right: 0;
87
 
    /* top == #topbar.height */
88
 
    top: 5em;
89
 
    /* Space for the mimimised console */
90
 
    bottom: 2em;
91
 
}
92
 
 
 
110
tr.row1 {
 
111
    background-color: #ccc;
 
112
    cursor: pointer;
 
113
}
 
114
tr.row2 {
 
115
    background-color: #aaa;
 
116
    cursor: pointer;
 
117
}
 
118
tr.row1:hover, tr.row2:hover {
 
119
    background-color: #eee;
 
120
}
 
121
/* And if they are selected (blue shades) */
 
122
tr.row1sel {
 
123
    background-color: #88e;
 
124
    cursor: pointer;
 
125
}
 
126
tr.row2sel {
 
127
    background-color: #66c;
 
128
    cursor: pointer;
 
129
}
 
130
tr.row1sel:hover, tr.row2sel:hover {
 
131
    background-color: #eee;
 
132
}
 
133
 
 
134
#filetable table {
 
135
    border-collapse: collapse;
 
136
}
 
137
 
 
138
#filetable td, #filetable th {
 
139
    border: 1px solid #888;
 
140
}
 
141
 
 
142
/* Borders between icons and filename are turned off. */
 
143
 
 
144
#filetable td.col-icons, #filetable th.col-date, #filetable td.col-date {
 
145
    border-right: 0 none;
 
146
}
 
147
#filetable td.col-filename {
 
148
    border-left: 0 none;
 
149
}
 
150
 
 
151
/* SIDE PANEL */
 
152
 
 
153
#sidepanel {
 
154
    border-left: 1px solid #888;
 
155
    border-top: 1px solid #888;
 
156
    background-color: #ccc;
 
157
    font-size: 0.8em;
 
158
    padding: 8px;
 
159
    text-align: center;
 
160
}
 
161
 
 
162
#sidepanel p, h1, h2 {
 
163
    margin: 0;
 
164
    padding: 0;
 
165
}
 
166
 
 
167
#sidepanel h2 {
 
168
    margin-top: 8px;
 
169
}
 
170
 
 
171
#sidepanel a {
 
172
    font-weight: bold;
 
173
}
 
174
 
 
175
/* STATUS BAR */
 
176
 
 
177
#statusbar {
 
178
    background-color: #aaa;
 
179
    border-top: 1px solid #888;
 
180
    font-size: 0.8em;
 
181
}