Commit 70457176 by Brian Talbot

studio - stubbed in basic LMS styling to HTML displaygst

parent 77865f7a
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
...@@ -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
// HTML component display:
.xmodule_HtmlModule {
}
\ No newline at end of file
// HTML component editor:
.html-editor { .html-editor {
@include clearfix(); @include clearfix();
......
...@@ -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
......
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