Merge pull request #5163 from colemanw/cssFix
[civicrm-core.git] / css / contactSummary.css
1 /* CiviCRM contact summary page styles */
2
3 .crm-container .primary {
4 font-weight: bold;
5 }
6
7 .crm-container .upper {
8 text-transform: uppercase;
9 }
10
11 div#crm-contact-thumbnail {
12 padding: 4px;
13 float: right;
14 }
15
16 .crm-container div.contact_panel {
17 display: block;
18 }
19
20 .crm-container div.contact_panel td {
21 border-bottom: 1px solid #FFF;
22 }
23
24 #crm-container div.crm-inline-edit {
25 border: 2px dashed transparent;
26 background: none;
27 position: relative;
28 }
29
30 #crm-container .crm-edit-ready .crm-inline-edit:hover {
31 cursor: pointer;
32 border: 2px dashed lightgrey;
33 }
34
35 #crm-container div.crm-inline-edit.form {
36 cursor: default;
37 border: 2px dashed #6665BF;
38 overflow: auto;
39 }
40
41 #crm-container .crm-inline-edit.add-new {
42 min-height: 2.5em;
43 }
44
45 #crm-container div.crm-inline-edit .crm-edit-help {
46 display: none;
47 position: absolute;
48 right: 0;
49 top: 0;
50 opacity: .8;
51 padding: .4em;
52 border-bottom-left-radius: 1em;
53 }
54
55 #crm-container .crm-inline-edit.add-new .crm-edit-help {
56 display: block;
57 background-color: #EBEBEB;
58 }
59
60 #crm-container .crm-edit-ready .crm-inline-edit:hover .crm-edit-help {
61 display: block;
62 background-color: #DFE1FF;
63 }
64
65 #crm-container div.crm-inline-edit.form .crm-edit-help {
66 display: none !important;
67 }
68
69 #crm-container span.crm-custom-greeting {
70 font-size: 9px;
71 }
72
73 #crm-container table.crm-inline-edit-form td,
74 #crm-container div.crm-inline-edit-form {
75 background-color: #efefe5;
76 white-space: nowrap;
77 }
78 #crm-container table.crm-inline-edit-form td.crm-label,
79 #crm-container div.crm-inline-edit-form .crm-label {
80 white-space: normal;
81 }
82
83 #crm-container div.crm-inline-edit-field {
84 display: inline-block;
85 padding: 4px 5px;
86 }
87
88 #crm-container div.crm-summary-contactname-block {
89 padding-bottom: 8px;
90 margin-top: -10px;
91 }
92
93 #crm-container div.crm-summary-display_name {
94 font-size: 19px;
95 padding-bottom: 10px;
96 }
97
98 #crm-container div.contactCardLeft,
99 #crm-container div#Top {
100 width: 49%;
101 display: block;
102 float: left;
103 clear: both;
104 }
105
106 #crm-container div.contactCardRight {
107 width: 49%;
108 display: block;
109 float: right;
110 }
111
112 #crm-container div.contact_panel table {
113 margin-bottom: 0;
114 }
115
116 #crm-container div.contactCardLeft .label,
117 #crm-container div.contactCardRight .label {
118 font-size: 11px;
119 vertical-align: top;
120 margin-right: 10px;
121 }
122
123 #crm-container div.contactCardLeft .grouplabel,
124 #crm-container div.contactCardRight .grouplabel {
125 border-bottom: grey 1px solid;
126 width: 100%;
127 font-size: 0.95em;
128 font-weight: bold;
129 background-color: #ddd;
130 }
131
132 #crm-container div.contact_panel .spacer {
133 padding: 8px;
134 }
135
136 #crm-container div.contact_panel td {
137 padding: 4px;
138 vertical-align: top;
139 border-bottom: 1px solid #E2E2E2;
140 }
141
142 #crm-container div.contact_panel td.label {
143 width: 28%;
144 }
145
146 #crm-container div.contact_panel td.last {
147 border-bottom: 0;
148 }
149
150 #crm-container #customFields {
151 width: 100%;
152 }
153
154 #crm-container #customFields div.contact_panel td.talabel {
155 padding: 4px 0 0 4px;
156 border: 0;
157 }
158
159 #crm-container #customFields .contact_panel .customFieldGroup {
160 line-height: 1.4em;
161 padding: 4px;
162 width: 100%;
163 }
164
165 #crm-container div.contact_panel .crm-address-block {
166 margin-bottom: 6px;
167 }
168 #crm-container .crm-add-address-wrapper {
169 height: 25px;
170 }
171
172 .crm-container .crm-summary-row:after {
173 clear: both;
174 content: ".";
175 display: block;
176 height: 0;
177 visibility: hidden;
178 }
179
180 #crm-container div.crm-summary-row {
181 background-color: #F4F4ED;
182 border-top: 1px solid #ffffff;
183 margin-bottom: 1px;
184 min-height: 17px;
185 }
186
187 #crm-container div.crm-summary-row div.crm-label {
188 background-color: #FAFAFA;
189 color: #7A7A60;
190 text-align: left;
191 width: 122px;
192 float: left;
193 padding: 4px;
194 }
195
196 #crm-container div.crm-summary-row div.crm-content {
197 padding: 4px;
198 margin-left: 130px;
199 }
200
201 .crm-container #customFields div.contact_panel td {
202 border-bottom: 1px solid #FFFFFF;
203 padding: 4px;
204 vertical-align: top;
205 }
206
207 #crm-record-log {
208 padding: 0.8em 0.8em 0 0;
209 text-align: right;
210 }
211
212 /* contact actions */
213
214 #crm-contact-actions-list ul {
215 width: auto;
216 }
217
218 #crm-contact-actions-list .crm-contact_activities-list ul {
219 padding-right: 4px;
220 }
221 #crm-contact-actions-list .crm-contact_print-list ul,
222 #crm-contact-actions-list .crm-contact_actions-list ul {
223 padding-left: 4px;
224 }
225
226 #crm-contact-actions-list .crm-contact_activities-list {
227 float: left;
228 }
229 #crm-contact-actions-list .crm-contact_print-list {
230 float: right;
231 }
232 #crm-contact-actions-list .crm-contact_actions-list {
233 margin-left: 160px;
234 margin-right: 161px;
235 border-left: 1px solid #a7a7a7;
236 border-right: 1px solid #a7a7a7;
237 }
238
239 #crm-contact-actions-wrapper {
240 position: relative;
241 }
242
243 #crm-contact-actions-list .crm-contact_activities-list select {
244 margin-top: 4px;
245 }
246
247 #crm-contact-actions-list .crm-contact_activities-list,
248 #crm-contact-actions-list .crm-contact_print-list,
249 #crm-contact-actions-list .crm-contact_actions-list {
250 width: 160px;
251 }
252
253 .crm-container table.crm-address-element {
254 border: none;
255 margin-bottom: .25em;
256 }
257
258 #crm-contact-actions-list .icon {
259 background-image: url("../i/icons/jquery-ui-FFFFFF.png");
260 }
261
262 .crm-container .restore-icon {
263 background-position: 0 -66px;
264 }
265 .crm-container .button:hover .restore-icon {
266 background-image: url("../i/icons/jquery-ui-91CE00.png");
267 }
268
269 /* Responsive layout changes */
270
271 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed,
272 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed tbody,
273 #crm-container .contact_basic_information-section.narrowform.xnarrowform table.form-layout-compressed tr {
274 display: block;
275 width: 100%;
276 }
277
278 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed tr {
279 display: inline-block;
280 width: 49%;
281 vertical-align: top;
282 }
283
284 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td {
285 display: block;
286 clear: left;
287 vertical-align: top;
288 margin-bottom: .5ex;
289 }
290
291 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td.hashelpicon {
292 position: relative;
293 }
294
295 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td.hashelpicon label {
296 padding-bottom: 16px;
297 }
298
299 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td .helpicon {
300 position: absolute;
301 bottom: -12px;
302 left: 2px;
303 }
304
305 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td br {
306 display: none;
307 }
308
309 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td label {
310 display: block;
311 box-sizing: border-box;
312 -moz-box-sizing: border-box;
313 width: 25%;
314 float: left;
315 padding-right: 1%;
316 }
317
318 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td input {
319 box-sizing: border-box;
320 -moz-box-sizing: border-box;
321 width: 75%;
322 }
323
324 #crm-container #mainTabContainer.narrowpage #contact-summary div.customFieldGroup,
325 #crm-container #mainTabContainer.narrowpage #contact-summary div.contactCardLeft,
326 #crm-container #mainTabContainer.narrowpage #contact-summary div.contactCardRight {
327 box-sizing: border-box;
328 -moz-box-sizing: border-box;
329 float: none;
330 width: 100%;
331 }