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
1885b73f
Commit
1885b73f
authored
Jun 16, 2015
by
frances botsford
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8343 from edx/frances/fix/dashboard-button-styles
Modernize the dashboard button styles
parents
72fcd5b1
ab985aad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
24 deletions
+59
-24
lms/static/sass/base/_variables.scss
+2
-0
lms/static/sass/elements/_controls.scss
+54
-0
lms/static/sass/multicourse/_dashboard.scss
+3
-24
No files found.
lms/static/sass/base/_variables.scss
View file @
1885b73f
...
...
@@ -278,6 +278,8 @@ $honorcode-color-lvl2: tint($honorcode-color-lvl1, 33%);
$audit-color-lvl1
:
$light-gray
;
$audit-color-lvl2
:
tint
(
$audit-color-lvl1
,
33%
);
// STATE: credit
$credit-color-base
:
rgb
(
244
,
195
,
0
);
// accessible with black text
// ====================
...
...
lms/static/sass/elements/_controls.scss
View file @
1885b73f
...
...
@@ -285,6 +285,60 @@
}
}
// imitating the pattern library
// starts with overrides
%btn-pl-default-base
{
@include
box-sizing
(
border-box
);
@extend
%t-copy-base
;
letter-spacing
:
0
;
// reset letterspacing from elsewhere
@extend
%btn-primary
;
border
:
1px
solid
darken
(
$action-primary-bg
,
10%
);
border-radius
:
3px
;
padding
:
(
$baseline
/
2
)
$baseline
;
background-color
:
$action-primary-fg
;
color
:
darken
(
$action-primary-bg
,
10%
);
text-align
:
center
;
&
:hover
,
&
:focus
{
border
:
1px
solid
transparent
;
background-color
:
$action-primary-bg
;
color
:
$action-primary-fg
;
text-decoration
:
none
;
}
}
%btn-pl-primary-base
{
@extend
%btn-pl-default-base
;
background-color
:
darken
(
$action-primary-bg
,
10%
);
color
:
$action-primary-fg
;
}
%btn-pl-green-base
{
@extend
%btn-pl-default-base
;
background-color
:
darken
(
$green-d1
,
10%
);
color
:
$action-primary-fg
;
&
:hover
,
&
:focus
{
border
:
1px
solid
transparent
;
background-color
:
$green-d1
;
}
}
%btn-pl-yellow-base
{
@extend
%btn-pl-default-base
;
border
:
1px
solid
transparent
;
background-color
:
$credit-color-base
;
color
:
$base-font-color
;
&
:hover
,
&
:focus
{
border
:
1px
solid
darken
(
$credit-color-base
,
10%
);
background-color
:
lighten
(
$credit-color-base
,
20%
);
}
}
// ====================
// application: canned actions
...
...
lms/static/sass/multicourse/_dashboard.scss
View file @
1885b73f
...
...
@@ -511,25 +511,11 @@
}
.enter-course
{
@include
button
(
simple
,
$button-color
);
@include
box-sizing
(
border-box
);
border-radius
:
3px
;
@extend
%btn-pl-primary-base
;
@include
float
(
right
);
font
:
normal
15px
/
1
.6rem
$sans-serif
;
letter-spacing
:
0
;
text-align
:
center
;
&
.archived
{
@include
button
(
simple
,
$button-archive-color
);
font
:
normal
15px
/
1
.6rem
$sans-serif
;
&
:hover
,
&
:focus
{
text-decoration
:
none
;
}
}
&
:hover
,
&
:focus
{
text-decoration
:
none
;
@extend
%btn-pl-default-base
;
}
}
}
...
...
@@ -898,15 +884,8 @@
position
:
relative
;
.cta
{
@include
button
(
simple
,
$green-d1
);
@include
box-sizing
(
border-box
);
@extend
%btn-pl-green-base
;
@include
float
(
right
);
border-radius
:
3px
;
display
:
block
;
font
:
normal
15px
/
1
.6rem
$sans-serif
;
letter-spacing
:
0
;
padding
:
6px
32px
7px
;
text-align
:
center
;
}
}
}
...
...
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