Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
2877345b
Commit
2877345b
authored
Oct 09, 2013
by
Frances Botsford
Committed by
polesye
Oct 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styling for LTI in a new window block
parent
068d0ce6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
7 deletions
+32
-7
cms/static/sass/_mixins-inherited.scss
+2
-0
cms/static/sass/_variables.scss
+4
-0
common/lib/xmodule/xmodule/css/lti/lti.scss
+19
-0
lms/templates/lti.html
+7
-7
No files found.
cms/static/sass/_mixins-inherited.scss
0 → 120000
View file @
2877345b
..
/
..
/
..
/
common
/
static
/
sass
/
_mixins-inherited
.scss
\ No newline at end of file
cms/static/sass/_variables.scss
View file @
2877345b
...
...
@@ -197,6 +197,10 @@ $lightBluishGrey: rgb(197, 207, 223);
$lightBluishGrey2
:
rgb
(
213
,
220
,
228
);
$error-red
:
rgb
(
253
,
87
,
87
);
//carryover from LMS for xmodules
$sidebar-color
:
rgb
(
246
,
246
,
246
);
// type
$sans-serif
:
$f-sans-serif
;
$body-line-height
:
golden-ratio
(
.875em
,
1
);
...
...
common/lib/xmodule/xmodule/css/lti/lti.scss
View file @
2877345b
...
...
@@ -2,6 +2,25 @@ div.lti {
// align center
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
{
display
:
none
;
}
...
...
lms/templates/lti.html
View file @
2877345b
...
...
@@ -32,15 +32,15 @@
% if launch_url and launch_url != 'http://www.example.com':
% if open_in_a_new_page:
<
p
>
<
span
class=
"description
"
>
<
div
class=
"wrapper-lti-link"
>
<
h3
class=
"title
"
>
${display_name} (${_('External resource')})
</span>
<a
href=
"#"
class=
'link_lti_new_window'
>
<i
class=
"icon-external-link"
></i>
</h3>
<p
class=
"lti-link external"
><a
href=
"#"
class=
'link_lti_new_window'
>
${_('View resource in a new window')}
</a>
</p>
<i
class=
"icon-external-link"
></i>
</a></p>
</div>
% else:
## The result of the form submit will be rendered here.
<iframe
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment