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
3309581a
Commit
3309581a
authored
Jul 07, 2015
by
Chris Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding uniqueness to some elements
parent
45c1f28d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
lms/static/sass/course/modules/_calculator.scss
+3
-9
lms/templates/calculator/toggle_calculator.html
+3
-3
No files found.
lms/static/sass/course/modules/_calculator.scss
View file @
3309581a
...
...
@@ -68,9 +68,7 @@ div.calc-main {
@include
box-sizing
(
border-box
);
padding
:
lh
();
label
.sr
{
// including the label here in case other .sr values are added
// we want to limit this 'white' only to the label
.calc-output-label
{
color
:
$white
;
}
...
...
@@ -95,9 +93,7 @@ div.calc-main {
color
:
#333
;
}
span
.sr
{
// including the element here in case other .sr values are added
// we want to limit this 'white' only to the span
.calc-button-label
{
background
:
$black
;
color
:
$white
;
}
...
...
@@ -163,9 +159,7 @@ div.calc-main {
border
:
none
;
}
span
.sr
{
// including the element here in case other .sr values are added
// we want to limit this 'white' only to the span
.calc-hint
{
background
:
$black
;
color
:
$white
;
}
...
...
lms/templates/calculator/toggle_calculator.html
View file @
3309581a
...
...
@@ -17,7 +17,7 @@ from django.core.urlresolvers import reverse
<div
class=
"help-wrapper"
>
<p
class=
"sr"
id=
"hint-instructions"
>
${_('Use the arrow keys to navigate the tips or use the tab key to return to the calculator')}
</p>
<button
id=
"calculator_hint"
aria-haspopup=
"true"
aria-expanded=
"false"
aria-controls=
"calculator_input_help"
aria-describedby=
"hint-instructions"
><span
class=
"sr"
>
${_("Hints")}
</span></button>
<button
id=
"calculator_hint"
aria-haspopup=
"true"
aria-expanded=
"false"
aria-controls=
"calculator_input_help"
aria-describedby=
"hint-instructions"
><span
class=
"
calc-hint
sr"
>
${_("Hints")}
</span></button>
<ul
id=
"calculator_input_help"
class=
"help"
aria-hidden=
"true"
>
<li
class=
"hint-item"
id=
"hint-moreinfo"
>
...
...
@@ -135,8 +135,8 @@ from django.core.urlresolvers import reverse
</div>
</div>
<button
id=
"calculator_button"
>
=
<span
class=
"sr"
>
${_('Calculate')}
</span></button>
<label
for=
"calculator_output"
class=
"sr"
>
${_('Calculator Output')}
</label>
<button
id=
"calculator_button"
>
=
<span
class=
"
calc-button-label
sr"
>
${_('Calculate')}
</span></button>
<label
for=
"calculator_output"
class=
"
calc-output-label
sr"
>
${_('Calculator Output')}
</label>
<input
type=
"text"
id=
"calculator_output"
readonly
/>
</form>
</div>
...
...
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