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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
72 deletions
+77
-72
courseware.html
+6
-3
sass/_courseware.scss
+71
-69
No files found.
courseware.html
View file @
a89de961
...
...
@@ -27,13 +27,16 @@
<section
class=
"main-content"
>
<div
class=
"course-wrapper"
>
<
div
id=
"accordion
"
>
<
section
class=
"course-index
"
>
<div
id=
"open_close_accordion"
>
<h2>
Courseware Index
</h2>
<a
href=
"#"
>
close
</a>
</div>
${accordion}
</div>
<div
id=
"accordion"
>
${accordion}
</div>
</section>
<section
class=
"course-content"
>
${content}
...
...
sass/_courseware.scss
View file @
a89de961
...
...
@@ -5,92 +5,102 @@ div.course-wrapper {
list-style
:
none
;
}
div
#accordion
{
.tran
{
@include
transition
(
all
,
.2s
,
$ease-in-out-quad
);
}
section
.course-index
{
@extend
.sidebar
;
@include
transition
(
all
,
.5s
,
$ease-in-out-quad
);
position
:
relative
;
@extend
.tran
;
div
#open_close_accordion
{
h2
{
display
:
inline-block
;
padding
:
0
lh
()
;
}
a
{
text-indent
:
-9999px
;
display
:
inline-block
;
background
:
red
;
width
:
16px
;
height
:
16px
;
position
:
absolute
;
padding
:
8px
;
top
:
12px
;
right
:
0
;
}
}
h3
{
@include
transition
(
all
,
.5s
,
$ease-in-out-quad
);
overflow
:
hidden
;
margin
:
0
;
&
:last-child
{
@include
box-shadow
(
none
);
}
div
#accordion
{
&
.ui-accordion-header
{
color
:
#000
;
h3
{
overflow
:
hidden
;
margin
:
0
;
a
{
font-size
:
$body-font-size
;
color
:
lighten
(
$text-color
,
10%
);
&
:last-child
{
@include
box-shadow
(
none
);
}
&
.ui-state-hover
{
border
:
none
;
border-bottom
:
1px
solid
#d3d3d3
;
}
&
.ui-accordion-header
{
color
:
#000
;
&
.ui-state-active
{
@extend
.active
;
}
}
}
a
{
font-size
:
$body-font-size
;
color
:
lighten
(
$text-color
,
10%
);
}
&
.ui-state-hover
{
border
:
none
;
border-bottom
:
1px
solid
#d3d3d3
;
}
ul
.ui-accordion-content
{
@include
border-radius
(
0
);
@include
box-shadow
(
inset
-1px
0
0
#e6e6e6
);
background
:
#d6d6d6
;
border
:
none
;
border-bottom
:
1px
solid
#c3c3c3
;
font-size
:
12px
;
margin
:
0
;
overflow
:
hidden
;
li
{
&
.active
{
font-weight
:
bold
;
&
.ui-state-active
{
@extend
.active
;
}
}
}
a
{
text-decoration
:
none
;
margin-bottom
:
lh
(
.5
);
display
:
block
;
color
:
#000
;
ul
.ui-accordion-content
{
@include
border-radius
(
0
);
@include
box-shadow
(
inset
-1px
0
0
#e6e6e6
);
background
:
#d6d6d6
;
border
:
none
;
border-bottom
:
1px
solid
#c3c3c3
;
font-size
:
12px
;
margin
:
0
;
overflow
:
hidden
;
&
:hover
{
color
:
#666
;
li
{
&
.active
{
font-weight
:
bold
;
}
p
{
margin-bottom
:
0
;
a
{
text-decoration
:
none
;
margin-bottom
:
lh
(
.5
);
display
:
block
;
color
:
#000
;
&
.subtitle
{
&
:hover
{
color
:
#666
;
}
p
{
margin-bottom
:
0
;
&
.subtitle
{
color
:
#666
;
}
}
}
}
}
}
}
section
.course-content
{
@extend
.content
;
@include
transition
(
all
,
.5s
,
$ease-in-out-quad
);
p
{
margin-bottom
:
lh
();
...
...
@@ -219,34 +229,26 @@ div.course-wrapper {
}
&
.closed
{
div
#accordion
{
section
.course-index
{
width
:
flex-grid
(
.5
);
div
#open_close_accordion
{
div
#open_close_accordion
{
h2
{
position
:
relative
;
left
:
-100%
;
}
h2
{
visibility
:
hidden
;
width
:
10px
;
padding
:
0
;
}
}
h3
,
ul
,
li
{
position
:
relative
;
left
:
-100%
;
div
#accordion
{
visibility
:
hidden
;
width
:
10px
;
padding
:
0
;
}
}
section
.course-content
{
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