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
a89de961
Commit
a89de961
authored
Feb 08, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more styles for cloes and open sidebar
--HG-- branch : close_sidebar
parent
ff129a01
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
24 deletions
+29
-24
courseware.html
+4
-1
sass/_courseware.scss
+25
-23
No files found.
courseware.html
View file @
a89de961
...
@@ -27,13 +27,16 @@
...
@@ -27,13 +27,16 @@
<section
class=
"main-content"
>
<section
class=
"main-content"
>
<div
class=
"course-wrapper"
>
<div
class=
"course-wrapper"
>
<
div
id=
"accordion
"
>
<
section
class=
"course-index
"
>
<div
id=
"open_close_accordion"
>
<div
id=
"open_close_accordion"
>
<h2>
Courseware Index
</h2>
<h2>
Courseware Index
</h2>
<a
href=
"#"
>
close
</a>
<a
href=
"#"
>
close
</a>
</div>
</div>
<div
id=
"accordion"
>
${accordion}
${accordion}
</div>
</div>
</section>
<section
class=
"course-content"
>
<section
class=
"course-content"
>
${content}
${content}
...
...
sass/_courseware.scss
View file @
a89de961
...
@@ -5,26 +5,35 @@ div.course-wrapper {
...
@@ -5,26 +5,35 @@ div.course-wrapper {
list-style
:
none
;
list-style
:
none
;
}
}
div
#accordion
{
.tran
{
@include
transition
(
all
,
.2s
,
$ease-in-out-quad
);
}
section
.course-index
{
@extend
.sidebar
;
@extend
.sidebar
;
@include
transition
(
all
,
.5s
,
$ease-in-out-quad
);
position
:
relative
;
@extend
.tran
;
div
#open_close_accordion
{
div
#open_close_accordion
{
h2
{
h2
{
display
:
inline-block
;
padding
:
0
lh
()
;
}
}
a
{
a
{
text-indent
:
-9999px
;
text-indent
:
-9999px
;
display
:
inline-block
;
background
:
red
;
background
:
red
;
width
:
16px
;
width
:
16px
;
height
:
16px
;
height
:
16px
;
position
:
absolute
;
padding
:
8px
;
top
:
12px
;
right
:
0
;
}
}
}
}
div
#accordion
{
h3
{
h3
{
@include
transition
(
all
,
.5s
,
$ease-in-out-quad
);
overflow
:
hidden
;
overflow
:
hidden
;
margin
:
0
;
margin
:
0
;
...
@@ -87,10 +96,11 @@ div.course-wrapper {
...
@@ -87,10 +96,11 @@ div.course-wrapper {
}
}
}
}
}
}
}
section
.course-content
{
section
.course-content
{
@extend
.content
;
@extend
.content
;
@include
transition
(
all
,
.5s
,
$ease-in-out-quad
);
p
{
p
{
margin-bottom
:
lh
();
margin-bottom
:
lh
();
...
@@ -219,34 +229,26 @@ div.course-wrapper {
...
@@ -219,34 +229,26 @@ div.course-wrapper {
}
}
&
.closed
{
&
.closed
{
section
.course-index
{
div
#accordion
{
width
:
flex-grid
(
.5
);
width
:
flex-grid
(
.5
);
div
#open_close_accordion
{
div
#open_close_accordion
{
h2
{
h2
{
position
:
relative
;
visibility
:
hidden
;
left
:
-100%
;
width
:
10px
;
padding
:
0
;
}
}
}
}
h3
,
ul
,
li
{
div
#accordion
{
position
:
relative
;
visibility
:
hidden
;
left
:
-100%
;
width
:
10px
;
padding
:
0
;
}
}
}
}
section
.course-content
{
section
.course-content
{
width
:
flex-grid
(
11
.5
)
+
flex-gutter
();
width
:
flex-grid
(
11
.5
)
+
flex-gutter
();
}
}
// div#accordion {
// left: -(flex-grid(2.7));
// }
// section.course-content {
// left: -(flex-grid(2.7));
// position: relative;
// }
}
}
}
}
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