Skip to content

Commit

Permalink
Updated property editor to look better in cramped spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed May 22, 2023
1 parent 3700c9b commit a2a077f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
8 changes: 5 additions & 3 deletions src/Limbo.Umbraco.YouTube/wwwroot/Styles/Default.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
padding: 12px 15px;
max-width: 800px;
box-sizing: border-box;
flex-wrap: wrap;
gap: 20px 15px;
}
.youtube-video-details h5 {
margin: 15px 0 3px 0;
Expand All @@ -70,14 +72,14 @@
.youtube-video-details table tr + tr td {
padding-top: 4px;
}
.youtube-video-info {
flex: 1;
}
.youtube-video pre {
display: none;
font-size: 10px;
line-height: 12px;
}
.youtube-video .youtube-thumbnail + div {
margin-left: 10px;
}
.umb-editors .youtube-video-details {
display: block;
}
Expand Down
16 changes: 9 additions & 7 deletions src/Limbo.Umbraco.YouTube/wwwroot/Styles/Default.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
&.loading > div {
opacity: 0.5;
}

input {
width: 100%;
flex: 1;
}

textarea {
width: 100%;
flex: 1;
Expand Down Expand Up @@ -53,7 +53,7 @@
}*/

&-details {

margin-top: 10px;
> div {
display: flex;
Expand All @@ -62,6 +62,8 @@
padding: 12px 15px;
max-width: 800px;
box-sizing: border-box;
flex-wrap: wrap;
gap: 20px 15px;
}

h5 {
Expand Down Expand Up @@ -91,16 +93,16 @@

}

&-info {
flex: 1;
}

pre {
display: none;
font-size: 10px;
line-height: 12px;
}

.youtube-thumbnail + div {
margin-left: 10px;
}

.umb-editors & {

&-details {
Expand Down
2 changes: 1 addition & 1 deletion src/Limbo.Umbraco.YouTube/wwwroot/Views/Video.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h5><localize key="limboYouTube_video">Video</localize></h5>
<div class="youtube-thumbnail">
<img ng-src="{{vm.thumbnail.url}}" width="{{vm.thumbnail.width}}" height="{{vm.thumbnail.height}}" />
</div>
<div>
<div class="youtube-video-info">
<table>
<tr>
<th>
Expand Down

0 comments on commit a2a077f

Please sign in to comment.