mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-55324 atto_media: Implement HTML compliant media plugin
This patch completely reworks the atto media plugin to allow insertion of HTML media elements.
- Loading branch information
1 parent
a60a98d
commit 28e93cc
Showing
13 changed files
with
3,119 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
.atto_form.atto_media #video input, | ||
.atto_form.atto_media #audio input, | ||
.atto_form.atto_media #link input { | ||
box-sizing: border-box; | ||
height: inherit; | ||
} | ||
|
||
.atto_form.atto_media > .tab-content { | ||
max-height: 60vh; | ||
overflow-x: hidden; | ||
padding-left: 20px; | ||
padding-right: 20px; | ||
margin-left: -20px; | ||
margin-right: -21px; | ||
} | ||
|
||
.atto_form.atto_media [id$="-advanced-settings"] label { | ||
margin-right: 10px; | ||
} | ||
|
||
.atto_form.atto_media label { | ||
display: inline-block; | ||
} | ||
|
||
.atto_form.atto_media label > span { | ||
display: inline-block; | ||
min-width: 6em; | ||
} | ||
|
||
.atto_form.atto_media .atto_media_track_lang_entry, | ||
.atto_form.atto_media .atto_media_track_label_entry { | ||
width: 168px; | ||
} | ||
|
||
.atto_form.atto_media .atto_media_track_source { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.atto_form.atto_media select { | ||
margin-right: 10px; | ||
} | ||
|
||
.atto_form.atto_media [id$="-tracks"] input[type=checkbox] { | ||
margin-left: 10px; | ||
} | ||
|
||
.atto_form.atto_media .atto_media_track ~ .atto_media_track { | ||
margin-top: 5px; | ||
padding-top: 10px; | ||
border-top: 1px solid #e5e5e5; | ||
} | ||
|
||
.atto_form.atto_media label.fullwidth { | ||
width: 100%; | ||
} | ||
|
||
.atto_media_postersize { | ||
display: inline-block; | ||
} | ||
|
||
.atto_media_postersize input[type=text] { | ||
width: 3em; | ||
} | ||
|
||
input[size].atto_media_url_entry { | ||
width: calc(100% - 15px); | ||
} | ||
|
||
.openmediabrowser { | ||
margin-top: -4px; | ||
} | ||
|
||
.addcomponent, | ||
.removecomponent { | ||
font-weight: bold; | ||
margin-right: 10px; | ||
} | ||
|
||
.trackhelp { | ||
text-align: right; | ||
} | ||
|
||
.atto_form.atto_media .atto_media_source > label { | ||
width: calc(100% - 153px); | ||
} | ||
|
||
.atto_form.atto_media .atto_media_track_lang_entry, | ||
.atto_form.atto_media .atto_media_track_label_entry { | ||
width: 116px; | ||
} | ||
|
||
.langlabel { | ||
width: 42%; | ||
} | ||
|
||
.labellabel { | ||
width: 44%; | ||
} | ||
|
||
.defaultlabel { | ||
width: 14%; | ||
} | ||
|
||
[data-medium-type=link] label { | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.nav-tabs > .nav-item a.active { | ||
color: #555; | ||
background-color: #fff; | ||
border: 1px solid #ddd; | ||
border-bottom-color: transparent; | ||
cursor: default; | ||
} | ||
|
||
.atto_form.atto_media .atto_media_track_lang_entry, | ||
.atto_form.atto_media .atto_media_track_label_entry { | ||
width: 124px; | ||
} | ||
|
||
.atto_form.atto_media .atto_media_source > label { | ||
width: calc(100% - 168px); | ||
} | ||
|
||
.langlabel { | ||
width: 42%; | ||
} | ||
|
||
.labellabel { | ||
width: 44%; | ||
} | ||
|
||
.defaultlabel { | ||
width: 14%; | ||
} |
Oops, something went wrong.