diff --git a/controllets/animated-grid-controllet/animated-grid-controllet.html b/controllets/animated-grid-controllet/animated-grid-controllet.html index 367c1de..908e77c 100755 --- a/controllets/animated-grid-controllet/animated-grid-controllet.html +++ b/controllets/animated-grid-controllet/animated-grid-controllet.html @@ -28,7 +28,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN } /* ---- grid-item ---- */ - ::content .grid-item {float: left;box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;border: 3px solid white;} + ::content .grid-item { + float: left; + box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box; + border-top: 4px solid white; + border-left: 4px solid white; + cursor: pointer; + } ::content .grid-sizer {width: 200px;} ::content .grid-item-w20 {width: 200px;} ::content .grid-item-w40 {width: 400px;} @@ -42,44 +48,41 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN ::content .grid-item-c4 {background-color: #2C29FF;} /* ---- grid-item ---- */ - ::content .room-body {color:#FFFFFF;} + ::content .room-body + { + height: calc(100% - 16px);/* 100% =*200/400 -4 border*/ + width: calc(100% - 16px); + color:#FFFFFF; + padding: 8px; + word-wrap: break-word; + overflow: hidden; + text-overflow: ellipsis; + } ::content .room-subject { position: absolute; - width: 100%; - height: 30px; - bottom: 30px; - background-color: rgba(0,0,0,0.6); + width: calc(100% - 16px); + height: 32px; + bottom: 32px; + background-color: rgba(0,0,0,0.8); + padding: 16px 0px 0px 16px; color: #FFFFFF; - } - ::content .room-subject span - { - top: 5px; - left: 5px; - position: relative; - text-overflow: ellipsis; + font-weight: 700; + white-space: nowrap; + word-wrap: break-word; overflow: hidden; - white-space:nowrap; - text-overflow:ellipsis; - display:inline-block; - } - ::content .room-body span - { - top: 5px; - left: 5px; - position: relative; text-overflow: ellipsis; - overflow: hidden; - text-overflow:ellipsis; - display:inline-block; } + ::content .room-timestamp { position: absolute; - right:3px; - bottom: 3px; - font-size: 8px; - color: #CCCCCC; + bottom: 0px; + right:0px; + color: #FFFFFF; + padding: 8px; + font-size: small; + line-height: 16px; } diff --git a/controllets/room-controllet/room-controllet.html b/controllets/room-controllet/room-controllet.html index f9fa644..c062a7f 100644 --- a/controllets/room-controllet/room-controllet.html +++ b/controllets/room-controllet/room-controllet.html @@ -2,46 +2,79 @@ + + + +