Merge pull request #581 from vector-im/matthew/css-refactor

shuffle around all the CSS to de-atomify it and make it match react components
pull/591/head
Matthew Hodgson 2016-01-03 00:14:52 +00:00
commit a78a693903
41 changed files with 21 additions and 21 deletions

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
.mx_MImageTile_thumbnail { .mx_MImageBody_thumbnail {
/* /*
background-color: #fff; background-color: #fff;
border: 2px solid #fff; border: 2px solid #fff;
@ -22,16 +22,16 @@ limitations under the License.
*/ */
} }
.mx_MImageTile_download { .mx_MImageBody_download {
color: #76cfa6; color: #76cfa6;
cursor: pointer; cursor: pointer;
} }
.mx_MImageTile_download a { .mx_MImageBody_download a {
color: #76cfa6; color: #76cfa6;
text-decoration: none; text-decoration: none;
} }
.mx_MImageTile_download img { .mx_MImageBody_download img {
padding-right: 8px; padding-right: 8px;
} }

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
.mx_MNoticeTile { .mx_MNoticeBody {
white-space: pre-wrap; white-space: pre-wrap;
opacity: 0.6; opacity: 0.6;
} }

View File

@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
.mx_MTextTile { .mx_MTextBody {
white-space: pre-wrap; white-space: pre-wrap;
} }

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
.mx_EventAsTextTile { .mx_TextualEvent {
opacity: 0.5; opacity: 0.5;
overflow-y: hidden; overflow-y: hidden;
} }

View File

@ -63,7 +63,7 @@ limitations under the License.
display: block; display: block;
} }
.mx_MessageTile_content { .mx_EventTile_content {
display: block; display: block;
margin-right: 100px; margin-right: 100px;
overflow-y: hidden; overflow-y: hidden;
@ -71,7 +71,7 @@ limitations under the License.
/* Various markdown overrides */ /* Various markdown overrides */
.mx_MessageTile_content .markdown-body { .mx_EventTile_content .markdown-body {
font-family: inherit ! important; font-family: inherit ! important;
white-space: normal ! important; white-space: normal ! important;
line-height: inherit ! important; line-height: inherit ! important;
@ -79,34 +79,34 @@ limitations under the License.
font-size: 15px; font-size: 15px;
} }
.mx_MessageTile_content .markdown-body h1, .mx_EventTile_content .markdown-body h1,
.mx_MessageTile_content .markdown-body h2, .mx_EventTile_content .markdown-body h2,
.mx_MessageTile_content .markdown-body h3, .mx_EventTile_content .markdown-body h3,
.mx_MessageTile_content .markdown-body h4, .mx_EventTile_content .markdown-body h4,
.mx_MessageTile_content .markdown-body h5, .mx_EventTile_content .markdown-body h5,
.mx_MessageTile_content .markdown-body h6 .mx_EventTile_content .markdown-body h6
{ {
font-family: inherit ! important; font-family: inherit ! important;
} }
.mx_MessageTile_content .markdown-body a { .mx_EventTile_content .markdown-body a {
color: #76cfa6; color: #76cfa6;
} }
.mx_MessageTile_content .markdown-body .hljs { .mx_EventTile_content .markdown-body .hljs {
display: inherit ! important; display: inherit ! important;
} }
/* end of overrides */ /* end of overrides */
.mx_MessageTile_searchHighlight { .mx_EventTile_searchHighlight {
background-color: #76cfa6; background-color: #76cfa6;
color: #fff; color: #fff;
border-radius: 5px; border-radius: 5px;
padding: 4px; padding: 4px;
} }
.mx_MessageTile_searchHighlight a { .mx_EventTile_searchHighlight a {
background-color: #76cfa6; background-color: #76cfa6;
color: #fff; color: #fff;
} }
@ -139,7 +139,7 @@ limitations under the License.
margin-top: -6px; margin-top: -6px;
} }
.mx_MessageTimestamp { .mx_EventTile .mx_MessageTimestamp {
display: block; display: block;
visibility: hidden; visibility: hidden;
text-align: right; text-align: right;