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
e18a6e28
Commit
e18a6e28
authored
Dec 15, 2015
by
Frances Botsford
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make pagination pattern sass globally available in LMS
parent
ba526f4f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
146 additions
and
143 deletions
+146
-143
lms/static/sass/_build-course.scss
+1
-0
lms/static/sass/_build-lms.scss
+1
-0
lms/static/sass/_developer.scss
+0
-143
lms/static/sass/elements/_pagination.scss
+144
-0
No files found.
lms/static/sass/_build-course.scss
View file @
e18a6e28
...
...
@@ -11,6 +11,7 @@
// base - elements
@import
'elements/typography'
;
@import
'elements/controls'
;
@import
'elements/pagination'
;
@import
'elements/navigation'
;
// all archetypes of navigation
// course - base
...
...
lms/static/sass/_build-lms.scss
View file @
e18a6e28
...
...
@@ -15,6 +15,7 @@
// base - elements
@import
'elements/typography'
;
@import
'elements/controls'
;
@import
'elements/pagination'
;
@import
'elements/creative-commons'
;
// shared - course
...
...
lms/static/sass/_developer.scss
View file @
e18a6e28
...
...
@@ -89,149 +89,6 @@
}
// teams temporary
.view-teams
{
// Copied from _pagination.scss in cms
.pagination
{
@include
clearfix
();
display
:
inline-block
;
width
:
flex-grid
(
3
,
12
);
&
.pagination-compact
{
@include
text-align
(
right
);
}
&
.pagination-full
{
display
:
block
;
width
:
flex-grid
(
4
,
12
);
margin
:
$baseline
auto
;
}
.nav-item
{
position
:
relative
;
display
:
inline-block
;
vertical-align
:
middle
;
}
.nav-link
{
@include
transition
(
all
$tmg-f2
ease-in-out
0s
);
display
:
block
;
border
:
0
;
background-image
:
none
;
background-color
:
transparent
;
padding
:
(
$baseline
/
2
)
(
$baseline
*
0
.75
);
&
.previous
{
margin-right
:
(
$baseline
/
2
);
}
&
.next
{
margin-left
:
(
$baseline
/
2
);
}
&
:hover
{
background-color
:
$blue
;
border-radius
:
3px
;
color
:
$white
;
}
&
.is-disabled
{
background-color
:
transparent
;
color
:
$gray-l2
;
pointer-events
:
none
;
}
}
.nav-label
{
/* This wasn't working for me, so I directly copied the rule
@extend %cont-text-sr; */
border
:
0
;
clip
:
rect
(
0
0
0
0
);
height
:
1px
;
margin
:
-1px
;
overflow
:
hidden
;
padding
:
0
;
position
:
absolute
;
width
:
1px
;
}
.pagination-form
,
.current-page
,
.page-divider
,
.total-pages
{
display
:
inline-block
;
}
.current-page
,
.page-number-input
,
.total-pages
{
@extend
%t-copy-base
;
@extend
%t-strong
;
width
:
(
$baseline
*
2
.5
);
vertical-align
:
middle
;
margin
:
0
(
$baseline
*
0
.75
);
padding
:
(
$baseline
/
4
);
text-align
:
center
;
color
:
$gray
;
}
.current-page
{
@extend
%ui-depth1
;
position
:
absolute
;
@include
left
(
-
(
$baseline
/
4
));
}
.page-divider
{
@extend
%t-title4
;
@extend
%t-regular
;
vertical-align
:
middle
;
color
:
$gray-l2
;
}
.pagination-form
{
@extend
%ui-depth2
;
position
:
relative
;
.page-number-label
,
.submit-pagination-form
{
/* This wasn't working for me, so I directly copied the rule
@extend %cont-text-sr; */
border
:
0
;
clip
:
rect
(
0
0
0
0
);
height
:
1px
;
margin
:
-1px
;
overflow
:
hidden
;
padding
:
0
;
position
:
absolute
;
width
:
1px
;
}
.page-number-input
{
@include
transition
(
all
$tmg-f2
ease-in-out
0s
);
border
:
1px
solid
transparent
;
border-bottom
:
1px
dotted
$gray-l2
;
border-radius
:
0
;
box-shadow
:
none
;
background
:
none
;
&
:hover
{
background-color
:
$white
;
opacity
:
0
.6
;
}
&
:focus
{
// borrowing the base input focus styles to match overall app
@include
linear-gradient
(
$paleYellow
,
tint
(
$paleYellow
,
90%
));
opacity
:
1
.0
;
box-shadow
:
0
0
3px
$shadow-d1
inset
;
background-color
:
$white
;
border
:
1px
solid
transparent
;
border-radius
:
3px
;
}
}
}
}
}
//efischer; scratch space for teams instructor tools
.view-teams
{
...
...
lms/static/sass/elements/_pagination.scss
0 → 100644
View file @
e18a6e28
// TODO: replace with UX Pattern Library/UI Toolkit pattern
// Copied from _pagination.scss in cms
.pagination
{
@include
clearfix
();
display
:
inline-block
;
width
:
flex-grid
(
3
,
12
);
&
.pagination-compact
{
@include
text-align
(
right
);
}
&
.pagination-full
{
display
:
block
;
width
:
flex-grid
(
4
,
12
);
margin
:
$baseline
auto
;
}
.nav-item
{
position
:
relative
;
display
:
inline-block
;
vertical-align
:
middle
;
}
.nav-link
{
@include
transition
(
all
$tmg-f2
ease-in-out
0s
);
display
:
block
;
border
:
0
;
background-image
:
none
;
background-color
:
transparent
;
padding
:
(
$baseline
/
2
)
(
$baseline
*
0
.75
);
&
.previous
{
margin-right
:
(
$baseline
/
2
);
}
&
.next
{
margin-left
:
(
$baseline
/
2
);
}
&
:hover
{
background-color
:
$blue
;
background-image
:
none
;
border-radius
:
3px
;
color
:
$white
;
}
&
.is-disabled
{
background-color
:
transparent
;
color
:
$gray-l2
;
pointer-events
:
none
;
}
}
.nav-label
{
/* This wasn't working for me, so I directly copied the rule
@extend %cont-text-sr; */
border
:
0
;
clip
:
rect
(
0
0
0
0
);
height
:
1px
;
margin
:
-1px
;
overflow
:
hidden
;
padding
:
0
;
position
:
absolute
;
width
:
1px
;
}
.pagination-form
,
.current-page
,
.page-divider
,
.total-pages
{
display
:
inline-block
;
}
.current-page
,
.page-number-input
,
.total-pages
{
@extend
%t-copy-base
;
@extend
%t-strong
;
width
:
(
$baseline
*
2
.5
);
vertical-align
:
middle
;
margin
:
0
(
$baseline
*
0
.75
);
padding
:
(
$baseline
/
4
);
text-align
:
center
;
color
:
$gray
;
}
.current-page
{
@extend
%ui-depth1
;
position
:
absolute
;
@include
left
(
-
(
$baseline
/
4
));
}
.page-divider
{
@extend
%t-title4
;
@extend
%t-regular
;
vertical-align
:
middle
;
color
:
$gray-l2
;
}
.pagination-form
{
@extend
%ui-depth2
;
position
:
relative
;
.page-number-label
,
.submit-pagination-form
{
/* This wasn't working for me, so I directly copied the rule
@extend %cont-text-sr; */
border
:
0
;
clip
:
rect
(
0
0
0
0
);
height
:
1px
;
margin
:
-1px
;
overflow
:
hidden
;
padding
:
0
;
position
:
absolute
;
width
:
1px
;
}
.page-number-input
{
@include
transition
(
all
$tmg-f2
ease-in-out
0s
);
border
:
1px
solid
transparent
;
border-bottom
:
1px
dotted
$gray-l2
;
border-radius
:
0
;
box-shadow
:
none
;
background
:
none
;
&
:hover
{
background-color
:
$white
;
opacity
:
0
.6
;
}
&
:focus
{
// borrowing the base input focus styles to match overall app
@include
linear-gradient
(
$yellow-l4
,
tint
(
$yellow-l4
,
90%
));
opacity
:
1
.0
;
box-shadow
:
0
0
3px
$shadow-d1
inset
;
background-color
:
$white
;
border
:
1px
solid
transparent
;
border-radius
:
3px
;
}
}
}
}
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