forked from matrix/element-web
Split out CSS for youtube-embed link preview refactor
This commit is contained in:
parent
4eb762d52b
commit
b857945146
|
@ -0,0 +1,32 @@
|
||||||
|
/*
|
||||||
|
Copyright 2015, 2016 OpenMarket Ltd
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
.mx_LinkPreviewWidget {
|
||||||
|
margin-top: 15px;
|
||||||
|
margin-right: 15px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
border-left: 4px solid #ddd;
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_LinkPreviewWidget_cancel {
|
||||||
|
visibility: hidden;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_LinkPreviewWidget:hover .mx_LinkPreviewWidget_cancel {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
|
@ -14,17 +14,12 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.mx_LinkPreviewWidget {
|
.mx_OpenGraphPreview {
|
||||||
margin-top: 15px;
|
|
||||||
margin-right: 15px;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: flex;
|
display: flex;
|
||||||
border-left: 4px solid #ddd;
|
|
||||||
color: #888;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_LinkPreviewWidget_image {
|
.mx_OpenGraphPreview_image {
|
||||||
-webkit-flex: 0 0 100px;
|
-webkit-flex: 0 0 100px;
|
||||||
flex: 0 0 100px;
|
flex: 0 0 100px;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
|
@ -32,31 +27,23 @@ limitations under the License.
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_LinkPreviewWidget_caption {
|
.mx_OpenGraphPreview_caption {
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
-webkit-flex: 1;
|
-webkit-flex: 1;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_LinkPreviewWidget_title {
|
.mx_OpenGraphPreview_title {
|
||||||
display: inline;
|
display: inline;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_LinkPreviewWidget_siteName {
|
.mx_OpenGraphPreview_siteName {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_LinkPreviewWidget_description {
|
.mx_OpenGraphPreview_description {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_LinkPreviewWidget_cancel {
|
|
||||||
visibility: hidden;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mx_LinkPreviewWidget:hover .mx_LinkPreviewWidget_cancel {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
Loading…
Reference in New Issue