~ubuntu-branches/ubuntu/karmic/gears/karmic

« back to all changes in this revision

Viewing changes to gears/ui/common/html_dialog.css

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Lesicnik
  • Date: 2009-04-30 19:15:25 UTC
  • Revision ID: james.westby@ubuntu.com-20090430191525-0790sb5wzg8ou0xb
Tags: upstream-0.5.21.0~svn3334+dfsg
ImportĀ upstreamĀ versionĀ 0.5.21.0~svn3334+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright 2007, Google Inc.
 
3
 
 
4
Redistribution and use in source and binary forms, with or without 
 
5
modification, are permitted provided that the following conditions are met:
 
6
 
 
7
 1. Redistributions of source code must retain the above copyright notice, 
 
8
    this list of conditions and the following disclaimer.
 
9
 2. Redistributions in binary form must reproduce the above copyright notice,
 
10
    this list of conditions and the following disclaimer in the documentation
 
11
    and/or other materials provided with the distribution.
 
12
 3. Neither the name of Google Inc. nor the names of its contributors may be
 
13
    used to endorse or promote products derived from this software without
 
14
    specific prior written permission.
 
15
 
 
16
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
 
17
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
 
18
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
 
19
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
 
20
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 
21
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 
22
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 
23
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 
 
24
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
 
25
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
26
*/
 
27
 
 
28
body, html {
 
29
  background-color:white;
 
30
  padding:0;
 
31
  margin:0;
 
32
  height:100%;
 
33
 
 
34
m4_ifelse(PRODUCT_OS,~wince~,m4_dnl
 
35
~
 
36
m4_ifelse(PRODUCT_BROWSER,~OPERA~,m4_dnl
 
37
~
 
38
  /*
 
39
  On Opera Mobile we use overflow:auto to allow content to resize automatically
 
40
  */
 
41
  overflow:auto;
 
42
~,~
 
43
  overflow:hidden;
 
44
~)
 
45
~,~
 
46
  overflow:hidden;
 
47
~)
 
48
  cursor:default;
 
49
 
 
50
  /* 
 
51
    Makes the text unselectable in mozilla. See html_diaog.js for IE
 
52
    implementation.
 
53
  */
 
54
  -moz-user-select:none;
 
55
}
 
56
 
 
57
body, td, input, select, button {
 
58
  font-family:arial,sans-serif;
 
59
  font-size:13px;
 
60
}
 
61
 
 
62
p {
 
63
  margin:0;
 
64
  margin-bottom:1em;
 
65
}
 
66
 
 
67
a {
 
68
  color:blue;
 
69
  text-decoration:underline;
 
70
}
 
71
 
 
72
button {
 
73
  /*
 
74
  It would be better to express margins in ems, but it causes layout
 
75
  artifacts (presumably because of rounding errors) when combined with
 
76
  the -moz-border-radius property used in button.css on Firefox 2.
 
77
 
 
78
  Also: bizarely, if I try to use the more natural margin-left:10px, I get
 
79
  a bug where the buttons bounce on IE when you hover over them.
 
80
  */
 
81
  position:relative;
 
82
  margin-right:7px;
 
83
  left:7px;
 
84
}
 
85
 
 
86
#head {
 
87
  padding:1em;
 
88
}
 
89
 
 
90
#foot {
 
91
  /*
 
92
  On Android and Opera Mobile we do not use position:absolute due to some
 
93
  rendering limitations (absolute positioning works, but
 
94
  the automatic resizing of dialog is confused by the
 
95
  variable content and the display is wrong, while if we
 
96
  remove the absolute positioning, #foot is back in the
 
97
  flow and the dialog displays correctly)
 
98
  */
 
99
m4_ifelse(PRODUCT_OS,~android~,m4_dnl
 
100
~~,~
 
101
m4_ifelse(PRODUCT_OS,~wince~,m4_dnl
 
102
~
 
103
m4_ifelse(PRODUCT_BROWSER,~OPERA~,m4_dnl
 
104
~~,~
 
105
  position:absolute;
 
106
~)
 
107
~,~
 
108
  position:absolute;
 
109
~)
 
110
~)
 
111
  background:white;
 
112
  bottom:0;
 
113
  width:100%;
 
114
}
 
115
 
 
116
#button-row {
 
117
  margin:1em;
 
118
}
 
119
 
 
120
#buttons-wince {
 
121
  /*
 
122
  On IE Mobile, we hide the div containing the buttons by default, as
 
123
  they are only used on touchscreen devices.
 
124
  */
 
125
  display:none;
 
126
}
 
127
 
 
128
.accesskey {
 
129
  text-decoration: underline;
 
130
 
 
131
  /* IE CSS extension */
 
132
  accelerator: true;
 
133
}
 
134
 
 
135
wbr:after {
 
136
  /* Opera and Safari do not support <wbr>, so we use &#8203; instead. */
 
137
 content : "\00200B"
 
138
}