View Single Post
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#320
update:

alignment to the right side is ok.
after some problems with the alignment of the own avatar and messages it all looks pretty good.
but i don't have any clue why there are gaps between bubbles and avatars again.... -.-'



edit:
that's the code so far:
Code:
/**
 * Style rules for the MessageBuffer
 */

/**
 * the body defaults
 */
body {
  padding: 0px 16px;
  margin: 0px;
}

/**
 * The table column formats
 */

div.Message.Self {
  float: left;
}

div.Message.Other {
  float: right;
}

div.Message:first-child {
  padding-top: 0px;
}

div.Message:last-child {
  padding-bottom: 0px;
}

div.BubbleSelf {
  background: #600000;

  text-shadow:black 3px 2px 5px;



  -moz-border-radius-topright: 30px;

  border-style: solid;

  border-width: 2px;

  margin: 4px 0px;
  padding: 8px;

  display: inline-block;
  min-height: 44px;  
  max-width: 620px;
  /* overflow: hidden; this bugs mouse events. see bug #123077 */
}

div.BubbleOther {
  background: #2F4F4F;

  text-shadow:black 3px 2px 5px;



  -moz-border-radius-topleft: 30px;

  border-style: solid;

  border-width: 2px;
  
  margin: 4px 0px;
  padding: 8px;
  
  display: inline-block;
  min-height: 44px;
  max-width: 620px;
  /* overflow: hidden; this bugs mouse events. see bug #123077 */
}

div.BubbleSelfClicked {
  text-shadow:black 3px 2px 5px;



  -moz-border-radius-topright: 30px;

  border-style: solid;

  border-width: 2px;

  margin: 4px 0px;
  padding: 8px;

  display: inline-block;
  min-height: 44px;
  max-width: 620px;
 /* overflow: hidden; this bugs mouse events. see bug #123077 */
}


div.BubbleOtherClicked {
  text-shadow:black 3px 2px 5px;



  -moz-border-radius-topleft: 30px;

  border-style: solid;

  border-width: 2px;
  
  margin: 4px 0px;
  padding: 8px;
  
  display: inline-block;
  min-height: 44px;
  max-width: 620px;
  /* overflow: hidden; this bugs mouse events. see bug #123077 */
}

/**
 * Others' Avatars
 *
 * This needs a "drop down" shadow, but no idea if that can be done
 *Adele: please note that this drop down shadow might be subjected to change
 *I've talked about it with Vilja who's in charge of address book layout
 *and we might change it so that it's a double border colour to indicate
 *that the avatar is clickable. drop shawdow doesn't seem to work with
 *dark backgrounds unless it's a light colour drop shadow.
 *PLEASE tell me if it's difficult to implement the drop shadow.
 * Looks like drop shadow is dropped from ui specs. And bug 139130 made me
 *remove the space for it anyway.
 */

div.Avatar {
  width: 60px;
  display: inline-block;
  vertical-align: top;
}

.MessageAvatar.Self {
  margin-top: 4px;
  margin-right: 0px;

  width: 60px;

  height:60px;

  -moz-border-radius-bottomleft: 30px;

  border-width: 2px;

  border-style: solid;

}

.MessageAvatar.Other {
  margin-top: 4px;

  width: 60px;

  height:60px;

  -moz-border-radius-bottomright: 30px;

  border-width: 2px;

  border-style: solid;

}

img.MessagePresence {
  vertical-align: middle;
  width: 16px;
  height: 16px;
}

/**
 * the Name field
 */
span.MessageNameField {
  word-wrap: break-word;
  vertical-align: middle;
}

/**
 * the Text field
 */
span.MessageText.Self {
  text-align: left;
  vertical-align: middle;
  word-wrap: break-word;
}

span.MessageText.Other {
  text-align: right;
  vertical-align: middle; 
  word-wrap: break-word;
}

/**
 * the TimeStamp default rules
 */
div.MessageRight {
  float: right;
  margin-left: 8px;
  white-space: nowrap;
  text-align: right;
  display: inline-block;
}

img.MessageBusinessCardImg {
  vertical-align: middle;
}

img.MessageStatusImg {
  vertical-align: middle;
}

.MessagingWidgetsSmiley {
  height: 24px;
  width: 24px;
}

Last edited by b666m; 2010-02-27 at 17:52.
 

The Following User Says Thank You to b666m For This Useful Post: