Improved layout of contact photos.

Monotone-Parent: fc82f5d2ff1a83e0f7d507e8ab1bb5149bbbec24
Monotone-Revision: b31a7aa3d154368df1ba1525deed0dd5867b42f0

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-03-13T20:07:52
This commit is contained in:
Francis Lachapelle committed 2012-03-13 20:07:52 +00:00
1 parent a1d356e4c0
commit c81f3b6829
2 files changed
+41 -17

No files matched your search

+7 -6
View File
@@ -7,6 +7,10 @@
xmlns:label="OGo:label" xmlns:label="OGo:label"
xmlns:uix="OGo:uix"> xmlns:uix="OGo:uix">
<var:if condition="hasPhoto"
><span class="photoFrame"><img var:src="photoURL" class="contactPhoto"
/></span></var:if>
<h3 class="contactCardTitle"><var:string value="fullName" /></h3 <h3 class="contactCardTitle"><var:string value="fullName" /></h3
><div id="leftContactColumn" class="contactColumn" ><div id="leftContactColumn" class="contactColumn"
@@ -19,12 +23,9 @@
/><var:string value="screenName" escapeHTML="NO" /><var:string value="screenName" escapeHTML="NO"
/><var:string value="preferredAddress" escapeHTML="NO" /><var:string value="preferredAddress" escapeHTML="NO"
/><var:string value="categories" escapeHTML="NO" /><var:string value="categories" escapeHTML="NO"
/><var:if condition="hasPhoto" /></div
><img var:src="photoURL" class="contactPhoto" >
/> <var:if condition="hasHomeInfos"
</var:if></div
><var:if condition="hasHomeInfos"
><div id="homeInfos" ><div id="homeInfos"
><h4><var:string label:value="Home" /></h4 ><h4><var:string label:value="Home" /></h4
><var:string value="homeStreetAddress" escapeHTML="NO" ><var:string value="homeStreetAddress" escapeHTML="NO"
+34 -11
View File
@@ -257,35 +257,58 @@ DIV#contactView A
text-decoration: none; } text-decoration: none; }
DIV#contactView H3.contactCardTitle DIV#contactView H3.contactCardTitle
{ display: block; { margin: 0px;
margin: 0px;
padding: .2em 0px; padding: .2em 0px;
font-size: large; font-size: large;
font-weight: bold; font-weight: bold;
width: 100%; width: 300px;
text-decoration: underline; } text-decoration: underline; }
DIV.contactColumn DIV.contactColumn
{ { width: 300px;
width: 45%;
margin-left: 1em; margin-left: 1em;
padding: .5em; padding: .5em;
float: left; float: left; }
}
DIV.contactColumn DIV DIV.contactColumn DIV
{ margin-bottom: 1em; } { margin-bottom: 1em; }
DIV.contactColumn H4 DIV.contactColumn H4
{ { margin: .2em 0px;
margin: .2em 0px;
margin-left: -1em; margin-left: -1em;
font-size: 10pt;
font-weight: bold; font-weight: bold;
background: #9ABCD8; background: #9ABCD8;
color: #fff; color: #fff;
width: 100%; width: 100%;
padding: .1em .2em; padding: .1em .2em; }
}
SPAN.photoFrame
{ cursor: pointer;
float: left;
background-color: #fff;
border: 1px solid #999;
padding: 8px;
margin: 8px;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
-moz-transform: rotate(-2deg);
-webkit-transform: rotate(-2deg);
-ms-transform: rotate(-2deg);
-moz-transition: all 0.2s ease-in-out;
-webkit-transition: all 0.2s ease-in-out; }
SPAN.photoFrame IMG.contactPhoto
{ max-width: 120px;
max-height: 120px;}
SPAN.photoFrame:hover {
-moz-transform: scale(3.0, 3.0) rotate(0deg) translate(33%, 33%);
-webkit-transform: scale(3.0, 3.0) rotate(0deg) translate(33%, 33%);
-ms-transform: rotate(0deg) scale(3.0, 3.0); }
SPAN.photoFrame:hover IMG.contactPhoto
{
}
/* drag handles */ /* drag handles */
DIV#dragHandle DIV#dragHandle