Commit 2877345b by Frances Botsford Committed by polesye

styling for LTI in a new window block

parent 068d0ce6
../../../common/static/sass/_mixins-inherited.scss
\ No newline at end of file
...@@ -197,6 +197,10 @@ $lightBluishGrey: rgb(197, 207, 223); ...@@ -197,6 +197,10 @@ $lightBluishGrey: rgb(197, 207, 223);
$lightBluishGrey2: rgb(213, 220, 228); $lightBluishGrey2: rgb(213, 220, 228);
$error-red: rgb(253, 87, 87); $error-red: rgb(253, 87, 87);
//carryover from LMS for xmodules
$sidebar-color: rgb(246, 246, 246);
// type // type
$sans-serif: $f-sans-serif; $sans-serif: $f-sans-serif;
$body-line-height: golden-ratio(.875em, 1); $body-line-height: golden-ratio(.875em, 1);
......
...@@ -2,6 +2,25 @@ div.lti { ...@@ -2,6 +2,25 @@ div.lti {
// align center // align center
margin: 0 auto; margin: 0 auto;
.wrapper-lti-link {
@include font-size(14);
position: relative;
background-color: $sidebar-color;
padding: ($baseline*1.5) ($baseline*1.5) ($baseline*1.5) $baseline;
.lti-link {
position: absolute;
top: $baseline;
right: $baseline;
.link_lti_new_window {
@extend .gray-button;
@include font-size(13);
@include line-height(14);
}
}
}
form.ltiLaunchForm { form.ltiLaunchForm {
display: none; display: none;
} }
......
...@@ -32,15 +32,15 @@ ...@@ -32,15 +32,15 @@
% if launch_url and launch_url != 'http://www.example.com': % if launch_url and launch_url != 'http://www.example.com':
% if open_in_a_new_page: % if open_in_a_new_page:
<p> <div class="wrapper-lti-link">
<span class="description"> <h3 class="title">
${display_name} (${_('External resource')}) ${display_name} (${_('External resource')})
</span> </h3>
<a href="#" class='link_lti_new_window'> <p class="lti-link external"><a href="#" class='link_lti_new_window'>
<i class="icon-external-link"></i>
${_('View resource in a new window')} ${_('View resource in a new window')}
</a> <i class="icon-external-link"></i>
</p> </a></p>
</div>
% else: % else:
## The result of the form submit will be rendered here. ## The result of the form submit will be rendered here.
<iframe <iframe
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment