Improve styling of address block on summary screen
[civicrm-core.git] / css / contactSummary.css
1 /* Styles specific to contact Summary/Edit/Inline-Edit pages */
2
3 .crm-container .primary .crm-label {
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-summary-block {
25 clear: both;
26 }
27
28 #crm-container div.crm-inline-edit {
29 border: 2px dashed transparent;
30 background: none;
31 position: relative;
32 }
33
34 #crm-container .crm-edit-ready .crm-inline-edit:hover {
35 cursor: pointer;
36 border: 2px dashed lightgrey;
37 }
38
39 #crm-container div.crm-inline-edit.form {
40 cursor: default;
41 border: 2px dashed #6665BF;
42 box-shadow: rgba(255, 255, 255, 0.3) 0 0 0 99999px;
43 background-color: white;
44 float: left;
45 z-index: 99;
46 }
47
48 #mainTabContainer:not(.narrowpage) .contactCardRight div.crm-inline-edit.form {
49 float: right;
50 }
51
52 #crm-container .crm-inline-edit.add-new {
53 min-height: 2.5em;
54 }
55
56 #crm-container div.crm-inline-edit .crm-edit-help {
57 display: none;
58 position: absolute;
59 right: 0;
60 top: 0;
61 opacity: .8;
62 padding: .4em .9em;
63 border-bottom-left-radius: 1em;
64 }
65
66 #crm-container .crm-address-block+.crm-address-block .add-new .crm-edit-help {
67 display: block;
68 background-color: #EBEBEB;
69 }
70
71 #crm-container .crm-edit-ready .crm-summary-block .crm-inline-edit:hover .crm-edit-help {
72 display: block;
73 background-color: #DFE1FF;
74 }
75
76 #crm-container div.crm-inline-edit.form .crm-edit-help {
77 display: none !important;
78 }
79
80 #crm-container .crm-address-block+.crm-address-block .add-new .crm-summary-row {
81 display: none;
82 }
83
84 #crm-container span.crm-custom-greeting {
85 font-size: 9px;
86 }
87
88 #crm-container table.crm-inline-edit-form td,
89 #crm-container div.crm-inline-edit-form {
90 background-color: #efefe5;
91 white-space: nowrap;
92 }
93 #crm-container table.crm-inline-edit-form td.crm-label,
94 #crm-container div.crm-inline-edit-form .crm-label,
95 #crm-container div.crm-inline-edit-form .messages {
96 white-space: normal;
97 }
98
99 #crm-container div.crm-inline-edit-field {
100 display: inline-block;
101 padding: 4px 5px;
102 }
103
104 #crm-container div.crm-summary-contactname-block {
105 padding-bottom: 8px;
106 margin-top: -10px;
107 }
108
109 #crm-container div.crm-summary-display_name {
110 font-size: 19px;
111 padding-bottom: 10px;
112 }
113
114 #crm-container div.contactCardLeft,
115 #crm-container div#Top {
116 width: 49%;
117 display: block;
118 float: left;
119 clear: both;
120 }
121
122 #crm-container div.contactCardRight {
123 width: 49%;
124 display: block;
125 float: right;
126 }
127
128 #crm-container div.contact_panel table {
129 margin-bottom: 0;
130 }
131
132 #crm-container div.contactCardLeft .label,
133 #crm-container div.contactCardRight .label {
134 color: #2f2f2f;
135 font-weight: normal;
136 font-size: 11px;
137 vertical-align: top;
138 margin-right: 10px;
139 }
140
141 #crm-container div.contactCardLeft .grouplabel,
142 #crm-container div.contactCardRight .grouplabel {
143 border-bottom: grey 1px solid;
144 width: 100%;
145 font-size: 0.95em;
146 font-weight: bold;
147 background-color: #ddd;
148 }
149
150 #crm-container div.contact_panel .spacer {
151 padding: 8px;
152 }
153
154 #crm-container div.contact_panel td {
155 padding: 4px;
156 vertical-align: top;
157 border-bottom: 1px solid #E2E2E2;
158 }
159
160 #crm-container div.contact_panel td.label {
161 width: 28%;
162 }
163
164 #crm-container div.contact_panel td.last {
165 border-bottom: 0;
166 }
167
168 #crm-container #customFields {
169 width: 100%;
170 }
171
172 #crm-container #customFields div.contact_panel td.talabel {
173 padding: 4px 0 0 4px;
174 border: 0;
175 }
176
177 #crm-container #customFields .contact_panel .customFieldGroup {
178 line-height: 1.4em;
179 padding: 4px;
180 width: 100%;
181 }
182 .crm-container div.contact_panel td.grouplabel {
183 border-bottom: 2px solid #D7D7D0 !important;
184 }
185
186 #crm-container div.contact_panel .crm-address-block {
187 margin-bottom: 6px;
188 }
189 #crm-container .crm-add-address-wrapper {
190 height: 25px;
191 }
192
193 .crm-container .crm-summary-row:after {
194 clear: both;
195 content: ".";
196 display: block;
197 height: 0;
198 visibility: hidden;
199 }
200
201 #crm-container div.crm-summary-row {
202 background-color: #F4F4ED;
203 border-top: 1px solid #ffffff;
204 margin-bottom: 1px;
205 min-height: 17px;
206 }
207
208 #crm-container div.crm-summary-row div.crm-label {
209 background-color: #FAFAFA;
210 color: #777760;
211 text-align: left;
212 width: 122px;
213 float: left;
214 padding: 4px;
215 }
216
217 #crm-container div.crm-summary-row div.crm-content {
218 padding: 4px;
219 margin-left: 130px;
220 }
221
222 .crm-container #customFields div.contact_panel td {
223 border-bottom: 1px solid #FFFFFF;
224 padding: 4px;
225 vertical-align: top;
226 }
227
228 #crm-record-log {
229 padding: 0.8em 0.8em 0 0;
230 text-align: right;
231 }
232
233 #crm-container .geotag {
234 padding: 2px 0 2px 20px !important;
235 background: url('../i/geotag_16.png') left center no-repeat;
236 font-size: .9em;
237 }
238
239 /* contact actions */
240
241 #crm-contact-actions-wrapper {
242 position: relative;
243 }
244
245 #crm-contact-actions-list {
246 width: 495px;
247 }
248
249 #crm-contact-actions-list ul {
250 width: auto;
251 }
252
253 #crm-contact-actions-list .crm-contact_activities-list ul {
254 padding-right: 4px;
255 }
256 #crm-contact-actions-list .crm-contact_print-list ul,
257 #crm-contact-actions-list .crm-contact_actions-list ul {
258 padding-left: 4px;
259 }
260
261 #crm-contact-actions-list .crm-contact_activities-list {
262 float: left;
263 }
264 #crm-contact-actions-list .crm-contact_print-list {
265 float: right;
266 }
267 #crm-contact-actions-list .crm-contact_actions-list {
268 margin-left: 160px;
269 margin-right: 161px;
270 border-left: 1px solid #a7a7a7;
271 border-right: 1px solid #a7a7a7;
272 }
273
274 #crm-contact-actions-list .crm-contact_activities-list select {
275 margin-top: 4px;
276 }
277
278 #crm-contact-actions-list .crm-contact_activities-list,
279 #crm-contact-actions-list .crm-contact_print-list,
280 #crm-contact-actions-list .crm-contact_actions-list {
281 width: 160px;
282 }
283
284 .crm-container table.crm-address-element {
285 border: none;
286 margin-bottom: .25em;
287 }
288
289 #crm-contact-actions-list .icon {
290 background-image: url("../i/icons/jquery-ui-FFFFFF.png");
291 }
292
293 .crm-container .restore-icon {
294 background-position: 0 -66px;
295 }
296 .crm-container .button:hover .restore-icon {
297 background-image: url("../i/icons/jquery-ui-91CE00.png");
298 }
299
300 /* Responsive layout changes */
301
302 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed,
303 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed tbody,
304 #crm-container .contact_basic_information-section.narrowform.xnarrowform table.form-layout-compressed tr {
305 display: block;
306 width: 100%;
307 }
308
309 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed tr {
310 display: inline-block;
311 width: 49%;
312 vertical-align: top;
313 }
314
315 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td {
316 display: block;
317 clear: left;
318 vertical-align: top;
319 margin-bottom: .5ex;
320 }
321
322 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td.hashelpicon {
323 position: relative;
324 }
325
326 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td.hashelpicon label {
327 padding-bottom: 16px;
328 }
329
330 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td .helpicon {
331 position: absolute;
332 bottom: -12px;
333 left: 2px;
334 }
335
336 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td br {
337 display: none;
338 }
339
340 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td label {
341 display: block;
342 box-sizing: border-box;
343 -moz-box-sizing: border-box;
344 width: 25%;
345 float: left;
346 padding-right: 1%;
347 }
348
349 #crm-container .contact_basic_information-section.narrowform table.form-layout-compressed td input {
350 box-sizing: border-box;
351 -moz-box-sizing: border-box;
352 width: 75%;
353 }
354
355 #crm-container #mainTabContainer.narrowpage #contact-summary div.customFieldGroup,
356 #crm-container #mainTabContainer.narrowpage #contact-summary div.contactCardLeft,
357 #crm-container #mainTabContainer.narrowpage #contact-summary div.contactCardRight {
358 box-sizing: border-box;
359 -moz-box-sizing: border-box;
360 float: none;
361 width: 100%;
362 }
363
364 #tagtree {
365 max-height: 500px;
366 overflow: auto;
367 }
368
369 #tagtree li {
370 margin-top: 5px;
371 }
372 #tagtree ins.jstree-icon {
373 cursor: pointer;
374 position: relative;
375 top: -3px;
376 }
377 #tagtree .jstree-disabled {
378 cursor: not-allowed;
379 }
380 #tagtree .jstree-disabled > .jstree-checkbox {
381 opacity: .2;
382 }
383
384 #tagGroup table .label {
385 color: #FFF;
386 }
387 #tagGroup table {
388 color: #000;
389 }