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
d2f79f10
Commit
d2f79f10
authored
Jan 18, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Plain Diff
studio - synced LMS common content styles with HTML component display/edit rendering styles
parents
70457176
a4196ffa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
81 deletions
+80
-81
cms/static/css/tiny-mce.css
+2
-1
cms/static/sass/_unit.scss
+0
-79
common/lib/xmodule/xmodule/css/html/display.scss
+75
-1
common/lib/xmodule/xmodule/js/src/html/edit.coffee
+3
-0
No files found.
cms/static/css/tiny-mce.css
View file @
d2f79f10
body
{
.mceContentBody
{
padding
:
10px
;
background-color
:
#fff
;
font-family
:
'Open Sans'
,
Verdana
,
Arial
,
Helvetica
,
sans-serif
;
font-size
:
16px
;
...
...
cms/static/sass/_unit.scss
View file @
d2f79f10
...
...
@@ -553,82 +553,4 @@ body.unit {
padding-top
:
0
;
}
}
}
// HTML component display:
.xmodule_HtmlModule
{
line-height
:
1
.4em
;
h1
{
color
:
$baseFontColor
;
font
:
normal
2em
/
1
.4em
$sans-serif
;
letter-spacing
:
1px
;
}
h2
{
color
:
#646464
;
font
:
normal
1
.2em
/
1
.2em
$sans-serif
;
letter-spacing
:
1px
;
margin-bottom
:
15px
;
text-transform
:
uppercase
;
-webkit-font-smoothing
:
antialiased
;
}
h3
{
font-size
:
1
.2em
;
font-weight
:
600
;
}
p
{
margin-bottom
:
1
.416em
;
font-size
:
1em
;
line-height
:
1
.6em
!
important
;
color
:
$baseFontColor
;
}
em
,
i
{
font-style
:
italic
;
}
strong
,
b
{
font-style
:
bold
;
}
p
+
p
,
ul
+
p
,
ol
+
p
{
margin-top
:
20px
;
}
ol
,
ul
{
margin
:
1em
0
;
padding
:
0
0
0
1em
;
color
:
$baseFontColor
;
li
{
margin-bottom
:
0
.708em
;
}
}
ol
{
list-style
:
decimal
outside
none
;
}
ul
{
list-style
:
disc
outside
none
;
}
a
{
&
:link
,
&
:visited
,
&
:hover
,
&
:active
{
color
:
#1d9dd9
;
}
}
img
{
max-width
:
100%
;
}
code
{
color
:
$baseFontColor
;
font-family
:
monospace
,
serif
;
background
:
none
;
}
}
\ No newline at end of file
common/lib/xmodule/xmodule/css/html/display.scss
View file @
d2f79f10
// HTML component display:
.xmodule_HtmlModule
{
*
{
line-height
:
1
.4em
;
}
h1
{
color
:
$baseFontColor
;
font
:
normal
2em
/
1
.4em
$sans-serif
;
letter-spacing
:
1px
;
}
h2
{
color
:
#646464
;
font
:
normal
1
.2em
/
1
.2em
$sans-serif
;
letter-spacing
:
1px
;
margin-bottom
:
15px
;
text-transform
:
uppercase
;
-webkit-font-smoothing
:
antialiased
;
}
h3
{
font-size
:
1
.2em
;
font-weight
:
600
;
}
p
{
margin-bottom
:
1
.416em
;
font-size
:
1em
;
line-height
:
1
.6em
!
important
;
color
:
$baseFontColor
;
}
em
,
i
{
font-style
:
italic
;
}
strong
,
b
{
font-style
:
bold
;
}
p
+
p
,
ul
+
p
,
ol
+
p
{
margin-top
:
20px
;
}
ol
,
ul
{
margin
:
1em
0
;
padding
:
0
0
0
1em
;
color
:
$baseFontColor
;
li
{
margin-bottom
:
0
.708em
;
}
}
ol
{
list-style
:
decimal
outside
none
;
}
ul
{
list-style
:
disc
outside
none
;
}
a
{
&
:link
,
&
:visited
,
&
:hover
,
&
:active
{
color
:
#1d9dd9
;
}
}
img
{
max-width
:
100%
;
}
code
{
color
:
$baseFontColor
;
font-family
:
monospace
,
serif
;
background
:
none
;
}
\ No newline at end of file
common/lib/xmodule/xmodule/js/src/html/edit.coffee
View file @
d2f79f10
...
...
@@ -12,6 +12,9 @@ class @HTMLEditingDescriptor
$
(
@
advanced_editor
.
getWrapperElement
()).
addClass
(
HTMLEditingDescriptor
.
isInactiveClass
)
# This is a workaround for the fact that tinyMCE's baseURL property is not getting correctly set on AWS
# instances (like sandbox). It is not necessary to explicitly set baseURL when running locally.
tinyMCE
.
baseURL
=
'/static/js/vendor/tiny_mce'
@
tiny_mce_textarea
=
$
(
".tiny-mce"
,
@
element
).
tinymce
({
script_url
:
'/static/js/vendor/tiny_mce/tiny_mce.js'
,
theme
:
"advanced"
,
...
...
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