mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Style video elements, show descriptions (#10040)
It's a stop gap – ideally we would generate a thumbnail for uploaded videos. For now, a bit of intentionality in the style and a pinch of context should do.
This commit is contained in:
@@ -703,6 +703,9 @@ aside.onebox.stackexchange .onebox-body {
|
||||
// Force oneboxed videos to 16:9 aspect ratio
|
||||
.onebox.video-onebox,
|
||||
.video-container {
|
||||
background: $primary-very-low;
|
||||
border: 1px solid $primary-low;
|
||||
border-radius: 2px;
|
||||
position: relative;
|
||||
padding: 0 0 56.25% 0;
|
||||
width: 100%;
|
||||
@@ -714,6 +717,12 @@ aside.onebox.stackexchange .onebox-body {
|
||||
}
|
||||
}
|
||||
|
||||
.video-description {
|
||||
color: $primary-medium;
|
||||
margin: 1rem;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.onebox-placeholder-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user