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
cb9d960a
Commit
cb9d960a
authored
Feb 06, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
studio - soft landing: style dropdown arrows
parent
d00a1f35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
17 deletions
+27
-17
cms/static/js/base.js
+2
-1
cms/static/sass/_header.scss
+25
-16
No files found.
cms/static/js/base.js
View file @
cb9d960a
...
@@ -51,12 +51,13 @@ $(document).ready(function() {
...
@@ -51,12 +51,13 @@ $(document).ready(function() {
if
(
$subnav
.
hasClass
(
'is-shown'
))
{
if
(
$subnav
.
hasClass
(
'is-shown'
))
{
$subnav
.
removeClass
(
'is-shown'
);
$subnav
.
removeClass
(
'is-shown'
);
$title
.
removeClass
(
'is-selected'
);
}
}
else
{
else
{
$
(
'.nav-dropdown .nav-item .title'
).
removeClass
(
'is-selected'
);
$
(
'.nav-dropdown .nav-item .title'
).
removeClass
(
'is-selected'
);
$
(
'.nav-dropdown .nav-item .wrapper-nav-sub'
).
removeClass
(
'is-shown'
);
$
(
'.nav-dropdown .nav-item .wrapper-nav-sub'
).
removeClass
(
'is-shown'
);
$title
.
toggle
Class
(
'is-selected'
);
$title
.
add
Class
(
'is-selected'
);
$subnav
.
addClass
(
'is-shown'
);
$subnav
.
addClass
(
'is-shown'
);
}
}
});
});
...
...
cms/static/sass/_header.scss
View file @
cb9d960a
...
@@ -164,19 +164,19 @@ nav .nav-item {
...
@@ -164,19 +164,19 @@ nav .nav-item {
font-weight
:
400
;
font-weight
:
400
;
}
}
.ss-icon
{
}
&
.is-selected
{
&
.is-selected
{
color
:
$blue
;
color
:
$blue-d1
;
.icon-expand
{
color
:
$blue-d1
;
}
}
}
}
}
// current state
// current state
&
.is-current
{
&
.is-current
{
.title
{
.title
,
.icon-expanded
{
color
:
$blue
;
color
:
$blue
;
}
}
}
}
...
@@ -231,7 +231,16 @@ nav .nav-item {
...
@@ -231,7 +231,16 @@ nav .nav-item {
position
:
relative
;
position
:
relative
;
.icon-expand
{
.icon-expand
{
@include
transition
(
color
0
.5s
ease-in-out
);
margin-left
:
2px
;
color
:
$gray-l2
;
}
&
:hover
{
.icon-expand
{
color
:
$blue
;
}
}
}
}
}
...
@@ -268,7 +277,7 @@ nav .nav-item {
...
@@ -268,7 +277,7 @@ nav .nav-item {
border-color
:
rgba
(
255
,
255
,
255
,
0
);
border-color
:
rgba
(
255
,
255
,
255
,
0
);
border-bottom-color
:
#fff
;
border-bottom-color
:
#fff
;
border-width
:
5px
;
border-width
:
5px
;
right
:
(
$baseline
/
4
)
;
right
:
3px
;
margin-left
:
-5px
;
margin-left
:
-5px
;
}
}
...
@@ -276,7 +285,7 @@ nav .nav-item {
...
@@ -276,7 +285,7 @@ nav .nav-item {
border-color
:
rgba
(
178
,
178
,
178
,
0
);
border-color
:
rgba
(
178
,
178
,
178
,
0
);
border-bottom-color
:
$gray-l2
;
border-bottom-color
:
$gray-l2
;
border-width
:
6px
;
border-width
:
6px
;
right
:
(
$baseline
/
4
)
;
right
:
3px
;
margin-left
:
-6px
;
margin-left
:
-6px
;
}
}
...
@@ -315,12 +324,12 @@ nav .nav-item {
...
@@ -315,12 +324,12 @@ nav .nav-item {
.nav-sub
:after
{
.nav-sub
:after
{
left
:
auto
;
left
:
auto
;
right
:
1
0
px
;
right
:
1
1
px
;
}
}
.nav-sub
:before
{
.nav-sub
:before
{
left
:
auto
;
left
:
auto
;
right
:
9
px
;
right
:
10
px
;
}
}
}
}
...
@@ -329,22 +338,22 @@ nav .nav-item {
...
@@ -329,22 +338,22 @@ nav .nav-item {
.nav-course-courseware
{
.nav-course-courseware
{
.nav-sub
:after
{
.nav-sub
:after
{
left
:
8
6
px
;
left
:
8
8
px
;
}
}
.nav-sub
:before
{
.nav-sub
:before
{
left
:
8
6
px
;
left
:
8
8
px
;
}
}
}
}
.nav-course-settings
{
.nav-course-settings
{
.nav-sub
:after
{
.nav-sub
:after
{
left
:
8
6
px
;
left
:
8
8
px
;
}
}
.nav-sub
:before
{
.nav-sub
:before
{
left
:
8
6
px
;
left
:
8
8
px
;
}
}
}
}
...
@@ -356,11 +365,11 @@ nav .nav-item {
...
@@ -356,11 +365,11 @@ nav .nav-item {
}
}
.nav-sub
:after
{
.nav-sub
:after
{
left
:
6
6
px
;
left
:
6
8
px
;
}
}
.nav-sub
:before
{
.nav-sub
:before
{
left
:
6
6
px
;
left
:
6
8
px
;
}
}
}
}
}
}
...
...
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