~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-03-07 15:12:02 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:669
Timestamps are now stored within the program as Python "time" module's
    "struct_time" objects, rather than strings directly from the DB.
    They are parsed into struct_time objects when reading from the db.
    They are formatted into SQL Timestamp strings when writing to the db.
    This allows them to be manipulated and compared within the program.

common.db: _escape now accepts struct_time objects - it formats them into SQL
            time strings.
common.user: The User constructor now parses "acct_exp", "pass_exp" and
            "last_login" fields as timestamp strings, and stores them
            internally as struct_time.
tutorialservice: When recording a submission, the "date" field is now stored
            as a struct_time, not a formatted string.
login.py: When logging in, uncommented call to write last_login to the DB,
            passing the current local time. (This now works correctly).
            Note that this is done after retrieving the user details, so the
            value of last_login stored in the session is the _old_ last login,
            not the new one (this is intentional).

(With Tom Conway).

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    left: 0;
30
30
    right: 0;
31
31
    top: 0;
32
 
    /* Approximate height of the components */
33
 
    height: 2.3em;
34
 
    padding: 0;
35
 
    background-color: #ddd;
 
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;
 
38
    background-color: #aaf;
36
39
}
37
40
 
38
 
/* We don't want the bold-ness of a regular golden H1 */
39
 
#topbar #path {
40
 
    font-weight: normal;
 
41
#topbar div {
 
42
    margin: 0.2em;
41
43
}
42
44
 
43
45
#topbar #path a {
44
46
    font-weight: bold;
45
47
}
46
 
 
47
 
#actions {
48
 
    padding: 0.3em 0.5em;
49
 
    border-top: white 1px solid;        /* Top edge of 3D effect */
50
 
}
51
48
/* class "choice" is for all choices, enabled and disabled. This is for both
52
49
 * the <a> actions and <option> actions.
53
50
 * class "disabled" is for disabled choices.
54
51
 */
55
52
#actions1 a.choice, #actions2 a {
56
 
    color: #002a8c;
 
53
    color: navy;
 
54
    text-decoration: underline;
57
55
    cursor: pointer;
58
56
}
59
 
 
60
57
#actions1 a.choice:hover, #actions1 a.choice:active, #actions1 a.choice:focus,
61
58
    #actions2 a:hover, #actions2 a:active, #actions2 a:focus {
62
 
    color: #002a8c;
63
 
}
64
 
 
65
 
#actions1 a.choice:hover, #actions2 a:hover {
 
59
    color: blue;
66
60
    text-decoration: underline;
67
61
}
68
 
 
69
62
#actions1 a.disabled {
70
63
    color: black;
71
64
    text-decoration: none;
72
65
    cursor: auto;
73
66
}
 
67
#actions1 a.disabled:hover, #actions1 a.disabled:active, #actions1 a.disabled:focus {
 
68
    color: black;
 
69
    text-decoration: none;
 
70
}
74
71
/* Drop-down actions and headings */
75
 
#actions1 option.moreactions, #actions1 option.disabled {
76
 
    color: #aaa;
77
 
}
78
 
 
79
 
/* One of the actions2s is shown at runtime, depending on the context.
80
 
 * We will show moreactions if we need it. */
81
 
#actions1 #moreactions_area, #actions2 #actions2_file,
82
 
#actions2 #actions2_directory {
83
 
    display: none;
 
72
#actions1 option {
 
73
    color: black;
 
74
    font-weight: normal;
 
75
}
 
76
#actions1 option.moreactions {
 
77
    color: #aaa;
 
78
}
 
79
#actions1 option.heading {
 
80
    font-weight: bold;
 
81
}
 
82
#actions1 option.choice {
 
83
    padding-left: 20px;
 
84
}
 
85
#actions1 option.disabled {
 
86
    padding-left: 20px;
 
87
    color: #aaa;
84
88
}
85
89
 
86
90
/* Everything under the top bar */
89
93
    position: absolute;
90
94
    left: 0;
91
95
    right: 0;
92
 
    /* top == #topbar.height */
93
 
    top: 2.3em;
94
 
    /* Space for the mimimised console */
95
 
    bottom: 2em;
 
96
    /* top == #topbar.height + #topbar.padding * 2 */
 
97
    top: 5.6em;
 
98
    bottom: 0;
96
99
}
97
100