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
70457176
Commit
70457176
authored
Jan 17, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
studio - stubbed in basic LMS styling to HTML displaygst
parent
77865f7a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
163 additions
and
38 deletions
+163
-38
cms/static/css/tiny-mce.css
+76
-37
cms/static/sass/_unit.scss
+79
-0
common/lib/xmodule/xmodule/css/html/display.scss
+5
-0
common/lib/xmodule/xmodule/css/html/edit.scss
+1
-0
common/lib/xmodule/xmodule/html_module.py
+2
-1
No files found.
cms/static/css/tiny-mce.css
View file @
70457176
body
{
body
{
background-color
:
#fff
;
background-color
:
#fff
;
font-family
:
'Open Sans'
,
Verdana
,
Arial
,
Helvetica
,
sans-serif
;
font-family
:
'Open Sans'
,
Verdana
,
Arial
,
Helvetica
,
sans-serif
;
font-size
:
16px
;
font-size
:
16px
;
line-height
:
1.6
;
line-height
:
1.6
;
color
:
#3c3c3c
;
color
:
#3c3c3c
;
scrollbar-3dlight-color
:
#F0F0EE
;
scrollbar-3dlight-color
:
#F0F0EE
;
scrollbar-arrow-color
:
#676662
;
scrollbar-arrow-color
:
#676662
;
scrollbar-base-color
:
#F0F0EE
;
scrollbar-base-color
:
#F0F0EE
;
scrollbar-darkshadow-color
:
#DDDDDD
;
scrollbar-darkshadow-color
:
#DDDDDD
;
scrollbar-face-color
:
#E0E0DD
;
scrollbar-face-color
:
#E0E0DD
;
scrollbar-highlight-color
:
#F0F0EE
;
scrollbar-highlight-color
:
#F0F0EE
;
scrollbar-shadow-color
:
#F0F0EE
;
scrollbar-shadow-color
:
#F0F0EE
;
scrollbar-track-color
:
#F5F5F5
;
scrollbar-track-color
:
#F5F5F5
;
}
a
{
color
:
#1d9dd9
;
text-decoration
:
none
;
}
}
p
{
h1
{
font-size
:
16px
;
color
:
#3c3c3c
;
line-height
:
1.6
;
font-weight
:
normal
;
font-size
:
2em
;
line-height
:
1.4em
;
letter-spacing
:
1px
;
}
}
h2
{
h2
{
color
:
#646464
;
color
:
#646464
;
font-size
:
19px
;
font-weight
:
normal
;
font-weight
:
300
;
font-size
:
1.2em
;
letter-spacing
:
1px
;
line-height
:
1.2em
;
margin-bottom
:
15px
;
letter-spacing
:
1px
;
text-transform
:
uppercase
;
margin-bottom
:
15px
;
text-transform
:
uppercase
;
-webkit-font-smoothing
:
antialiased
;
}
}
h3
{
h3
{
font-size
:
19px
;
font-size
:
1.2em
;
font-weight
:
400
;
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
;
}
ol
li
,
ul
li
{
margin-bottom
:
0.708em
;
}
ol
{
list-style
:
decimal
outside
none
;
}
ul
{
list-style
:
disc
outside
none
;
}
a
,
a
:link
,
a
:visited
,
a
:hover
,
a
:active
{
color
:
#1d9dd9
;
}
img
{
max-width
:
100%
;
}
}
code
{
code
{
margin
:
0
2px
;
font-family
:
monospace
,
serif
;
padding
:
0px
5px
;
background
:
none
;
border-radius
:
3px
;
border
:
1px
solid
#eaeaea
;
white-space
:
nowrap
;
font-family
:
Monaco
,
monospace
;
font-size
:
14px
;
background-color
:
#f8f8f8
;
}
}
\ No newline at end of file
cms/static/sass/_unit.scss
View file @
70457176
...
@@ -554,3 +554,81 @@ body.unit {
...
@@ -554,3 +554,81 @@ body.unit {
}
}
}
}
}
}
// 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
0 → 100644
View file @
70457176
// HTML component display:
.xmodule_HtmlModule
{
}
\ No newline at end of file
common/lib/xmodule/xmodule/css/html/edit.scss
View file @
70457176
// HTML component editor:
.html-editor
{
.html-editor
{
@include
clearfix
();
@include
clearfix
();
...
...
common/lib/xmodule/xmodule/html_module.py
View file @
70457176
...
@@ -25,7 +25,8 @@ class HtmlModule(XModule):
...
@@ -25,7 +25,8 @@ class HtmlModule(XModule):
]
]
}
}
js_module_name
=
"HTMLModule"
js_module_name
=
"HTMLModule"
css
=
{
'scss'
:
[
resource_string
(
__name__
,
'css/html/display.scss'
)]}
def
get_html
(
self
):
def
get_html
(
self
):
return
self
.
html
return
self
.
html
...
...
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