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
ed6134ea
Commit
ed6134ea
authored
Jan 15, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abstracted out common editor styles shared by problem and html editors
parent
623769e9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
84 deletions
+2
-84
common/lib/xmodule/xmodule/capa_module.py
+1
-1
common/lib/xmodule/xmodule/css/editor/display.scss
+0
-4
common/lib/xmodule/xmodule/css/html/edit.scss
+0
-52
common/lib/xmodule/xmodule/css/problem/edit.scss
+0
-26
common/lib/xmodule/xmodule/html_module.py
+1
-1
No files found.
common/lib/xmodule/xmodule/capa_module.py
View file @
ed6134ea
...
...
@@ -673,7 +673,7 @@ class CapaDescriptor(RawDescriptor):
mako_template
=
"widgets/problem-edit.html"
js
=
{
'coffee'
:
[
resource_string
(
__name__
,
'js/src/problem/edit.coffee'
)]}
js_module_name
=
"MarkdownEditingDescriptor"
css
=
{
'scss'
:
[
resource_string
(
__name__
,
'css/problem/edit.scss'
)]}
css
=
{
'scss'
:
[
resource_string
(
__name__
,
'css/
editor/display.scss'
),
resource_string
(
__name__
,
'css/
problem/edit.scss'
)]}
# Capa modules have some additional metadata:
# TODO (vshnayder): do problems have any other metadata? Do they
...
...
common/lib/xmodule/xmodule/css/editor/display.scss
View file @
ed6134ea
*
{
border
:
1px
solid
red
!
important
;
}
.editor-bar
{
position
:
relative
;
@include
linear-gradient
(
top
,
#d4dee8
,
#c9d5e2
);
...
...
common/lib/xmodule/xmodule/css/html/edit.scss
View file @
ed6134ea
// TODO: this code is a subset of what is in problem editor's CSS. Should share.
.editor-bar
{
position
:
relative
;
@include
linear-gradient
(
top
,
#d4dee8
,
#c9d5e2
);
padding
:
5px
;
border
:
1px
solid
#3c3c3c
;
border-radius
:
3px
3px
0
0
;
border-bottom-color
:
#a5aaaf
;
@include
clearfix
;
// TODO: I added this -- Brian to fix roperly
height
:
34px
;
a
{
display
:
block
;
float
:
left
;
padding
:
3px
10px
7px
;
margin-left
:
7px
;
border-radius
:
2px
;
&
:hover
{
background
:
rgba
(
255
,
255
,
255
,
.5
);
}
}
.editor-tabs
{
position
:
absolute
;
top
:
10px
;
right
:
10px
;
li
{
float
:
left
;
}
.tab
{
height
:
24px
;
padding
:
7px
20px
3px
;
border
:
1px
solid
#a5aaaf
;
border-radius
:
3px
3px
0
0
;
@include
linear-gradient
(
top
,
rgba
(
0
,
0
,
0
,
0
)
87%
,
rgba
(
0
,
0
,
0
,
.06
));
background-color
:
#e5ecf3
;
font-size
:
13px
;
color
:
#3c3c3c
;
box-shadow
:
1px
-1px
1px
rgba
(
0
,
0
,
0
,
.05
);
&
.current
{
background
:
#fff
;
border-bottom-color
:
#fff
;
}
}
}
}
common/lib/xmodule/xmodule/css/problem/edit.scss
View file @
ed6134ea
.editor-bar
{
position
:
relative
;
@include
linear-gradient
(
top
,
#d4dee8
,
#c9d5e2
);
padding
:
5px
;
border
:
1px
solid
#3c3c3c
;
border-radius
:
3px
3px
0
0
;
border-bottom-color
:
#a5aaaf
;
@include
clearfix
;
a
{
display
:
block
;
float
:
left
;
padding
:
3px
10px
7px
;
margin-left
:
7px
;
border-radius
:
2px
;
&
:hover
{
background
:
rgba
(
255
,
255
,
255
,
.5
);
}
}
.editor-tabs
{
position
:
absolute
;
top
:
10px
;
right
:
10px
;
li
{
float
:
left
;
}
.advanced-toggle
{
@include
white-button
;
...
...
common/lib/xmodule/xmodule/html_module.py
View file @
ed6134ea
...
...
@@ -48,7 +48,7 @@ class HtmlDescriptor(XmlDescriptor, EditingDescriptor):
js
=
{
'coffee'
:
[
resource_string
(
__name__
,
'js/src/html/edit.coffee'
)]}
js_module_name
=
"HTMLEditingDescriptor"
css
=
{
'scss'
:
[
resource_string
(
__name__
,
'css/html/edit.scss'
)]}
css
=
{
'scss'
:
[
resource_string
(
__name__
,
'css/
editor/display.scss'
),
resource_string
(
__name__
,
'css/
html/edit.scss'
)]}
# VS[compat] TODO (cpennington): Delete this method once all fall 2012 course
# are being edited in the cms
...
...
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