-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #367 - Updated Opinary embed modal to fuction similar to social and video embed modals. Provides URL validation, embed preview, and URL duplication checks. - Added `.social_editor-blocker` style to provide element to prevent embed interaction to `.social_editor-preview` as needed. - Fixed social embeds validation error messages to refer to the correct service, not just Facebook.
- Loading branch information
1 parent
553e49f
commit acdb824
Showing
12 changed files
with
326 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.opinary-widget | ||
{ | ||
background-color: @body-bg; | ||
} |
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 |
---|---|---|
|
@@ -22,4 +22,6 @@ | |
|
||
@import "twitterEmbed.less"; | ||
|
||
@import "slideshow.less"; | ||
@import "slideshow.less"; | ||
|
||
@import "opinaryEmbed.less"; |
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 |
---|---|---|
@@ -1,52 +1,52 @@ | ||
<form> | ||
<div class="embed-modal-row"> | ||
<div class="embed-modal-full-column"> | ||
<div class="embed-modal-form"> | ||
<label class="embed-modal-label" for="title">Title</label> | ||
<input name="title" type="text" placeholder="Enter a title" class="embed-modal-input embed-modal-form-control js-input-title" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="embed-modal-row"> | ||
<div class="embed-modal-full-column"> | ||
<div class="embed-modal-form"> | ||
<label class="embed-modal-label" for="url">Twitter Status (Tweet)</label> | ||
<div class="embed-modal-row"> | ||
<div class="embed-modal-full-column"> | ||
<div class="embed-modal-form"> | ||
<label class="embed-modal-label" for="title">Title</label> | ||
<input name="title" type="text" placeholder="Enter a title" class="embed-modal-input embed-modal-form-control js-input-title" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="embed-modal-row"> | ||
<div class="embed-modal-full-column"> | ||
<div class="embed-modal-form"> | ||
<label class="embed-modal-label" for="url">Twitter Status (Tweet)</label> | ||
|
||
<div class="social_editor"> | ||
<div class="social_editor"> | ||
|
||
<div class="social_editor-intro"> | ||
<div class="social_editor-intro_inner"> | ||
<div> | ||
<div class="input-group"> | ||
<input name="url" type="url" placeholder="Enter URL, or drop link..." class="embed-modal-input embed-modal-form-control js-input-url" /> | ||
<span class="input-group-btn"> | ||
<button class="btn btn-primary js-btn-preview" type="button">Preview</button> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="social_editor-intro"> | ||
<div class="social_editor-intro_inner"> | ||
<div> | ||
<div class="input-group"> | ||
<input name="url" type="url" placeholder="Enter URL, or drop link..." class="embed-modal-input embed-modal-form-control js-input-url" /> | ||
<span class="input-group-btn"> | ||
<button class="btn btn-primary js-btn-preview" type="button">Preview</button> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="social_editor-preview"> | ||
<div class="social_editor-preview_inner"> | ||
<div class="social_editor-preview_post"></div> | ||
</div> | ||
</div> | ||
<div class="social_editor-preview"> | ||
<div class="social_editor-preview_inner"> | ||
<div class="social_editor-preview_post"></div> | ||
</div> | ||
</div> | ||
|
||
<div class="social_editor-toolbar"> | ||
<ul class="social_editor-toolbar_list"> | ||
<li class="social_editor-toolbar_item js-btn-edit"> | ||
<a class="social_editor-tollbar_btn"><span class="fa fa-pencil" aria-label="Enter Another URL"></span></a> | ||
</li> | ||
<li class="social_editor-toolbar_item js-btn-cancel"> | ||
<a class="social_editor-tollbar_btn"><span class="fa fa-arrow-left" aria-label="Cancel URL Editing"></span></a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="social_editor-toolbar"> | ||
<ul class="social_editor-toolbar_list"> | ||
<li class="social_editor-toolbar_item js-btn-edit"> | ||
<a class="social_editor-tollbar_btn"><span class="fa fa-pencil" aria-label="Enter Another URL"></span></a> | ||
</li> | ||
<li class="social_editor-toolbar_item js-btn-cancel"> | ||
<a class="social_editor-tollbar_btn"><span class="fa fa-arrow-left" aria-label="Cancel URL Editing"></span></a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</form> |
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
Oops, something went wrong.