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
7f6481b9
Commit
7f6481b9
authored
Apr 27, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed som issues with the calculator with ios
parent
8f22127d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
24 deletions
+61
-24
static/css/application.css
+41
-10
templates/main.html
+2
-7
templates/sass/layout/_calculator.scss
+18
-7
No files found.
static/css/application.css
View file @
7f6481b9
...
...
@@ -710,10 +710,34 @@ footer nav ul.social li.linkedin a {
background
:
url("/static/images/linkedin.png")
0
0
no-repeat
;
}
li
.calc-main
{
bottom
:
-
3
6px
;
bottom
:
-
12
6px
;
left
:
0
;
position
:
fixed
;
width
:
100%
;
}
width
:
100%
;
-webkit-transition-property
:
bottom
;
-moz-transition-property
:
bottom
;
-ms-transition-property
:
bottom
;
-o-transition-property
:
bottom
;
transition-property
:
bottom
;
-webkit-transition-duration
:
0.15s
;
-moz-transition-duration
:
0.15s
;
-ms-transition-duration
:
0.15s
;
-o-transition-duration
:
0.15s
;
transition-duration
:
0.15s
;
-webkit-transition-timing-function
:
ease-out
;
-moz-transition-timing-function
:
ease-out
;
-ms-transition-timing-function
:
ease-out
;
-o-transition-timing-function
:
ease-out
;
transition-timing-function
:
ease-out
;
-webkit-transition-delay
:
0
;
-moz-transition-delay
:
0
;
-ms-transition-delay
:
0
;
-o-transition-delay
:
0
;
transition-delay
:
0
;
z-index
:
9999
;
-webkit-appearance
:
none
;
}
li
.calc-main.open
{
bottom
:
-36px
;
}
li
.calc-main
a
.calc
{
text-indent
:
-9999px
;
overflow
:
hidden
;
...
...
@@ -748,9 +772,13 @@ li.calc-main div#calculator_wrapper {
background
:
rgba
(
17
,
17
,
17
,
0.9
);
position
:
relative
;
top
:
-36px
;
clear
:
both
;
}
clear
:
both
;
max-height
:
90px
;
}
li
.calc-main
div
#calculator_wrapper
form
{
padding
:
22.652px
;
}
padding
:
22.652px
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
li
.calc-main
div
#calculator_wrapper
form
input
#calculator_button
{
background
:
#111
;
border
:
1px
solid
#000
;
...
...
@@ -766,13 +794,14 @@ li.calc-main div#calculator_wrapper form input#calculator_button {
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
color
:
#fff
;
float
:
left
;
font-size
:
30px
;
font-weight
:
bold
;
margin
:
0
1.012%
;
padding
:
0
;
text-shadow
:
none
;
width
:
4.251%
;
float
:
left
;
margin
:
0
1.012%
;
}
-webkit-appearance
:
none
;
width
:
4.251%
;
}
li
.calc-main
div
#calculator_wrapper
form
input
#calculator_button
:hover
{
color
:
#333
;
}
li
.calc-main
div
#calculator_wrapper
form
input
#calculator_output
{
...
...
@@ -790,12 +819,13 @@ li.calc-main div#calculator_wrapper form input#calculator_output {
font-weight
:
bold
;
margin
:
1px
0
0
;
padding
:
10px
;
-webkit-appearance
:
none
;
width
:
31.984%
;
}
li
.calc-main
div
#calculator_wrapper
form
div
.input-wrapper
{
position
:
relative
;
width
:
61.741%
;
float
:
left
;
margin
:
0
;
float
:
left
;
}
position
:
relative
;
width
:
61.741%
;
}
li
.calc-main
div
#calculator_wrapper
form
div
.input-wrapper
input
#calculator_input
{
border
:
none
;
-webkit-box-shadow
:
none
;
...
...
@@ -806,6 +836,7 @@ li.calc-main div#calculator_wrapper form div.input-wrapper input#calculator_inpu
box-sizing
:
border-box
;
font-size
:
16px
;
padding
:
10px
;
-webkit-appearance
:
none
;
width
:
100%
;
}
li
.calc-main
div
#calculator_wrapper
form
div
.input-wrapper
input
#calculator_input
:focus
{
outline
:
none
;
...
...
templates/main.html
View file @
7f6481b9
...
...
@@ -127,15 +127,11 @@ $(function() {
$
(
"#feedback_div"
).
html
(
"Feedback submitted. Thank you"
);
});
});
});
// Calculator
$
(
function
()
{
$
(
"#calculator_wrapper"
).
hide
();
$
(
".calc"
).
click
(
function
(){
$
(
"
#calculator_wrapper"
).
slideToggle
(
"fast"
);
$
(
"
li.calc-main"
).
toggleClass
(
'open'
);
$
(
"#calculator_wrapper #calculator_input"
).
focus
();
$
(
this
).
toggleClass
(
"closed"
);
return
false
;
...
...
@@ -156,10 +152,9 @@ $(function() {
$
(
"#calculator_output"
).
attr
(
"value"
,
data
.
result
);
});
});
});
$
(
function
(){
$
(
"a[rel*=leanModal]"
).
leanModal
();
});
</script>
...
...
templates/sass/layout/_calculator.scss
View file @
7f6481b9
li
.calc-main
{
bottom
:
-
3
6px
;
bottom
:
-
12
6px
;
left
:
0
;
position
:
fixed
;
width
:
100%
;
@include
transition
(
bottom
);
z-index
:
9999
;
-webkit-appearance
:
none
;
&
.open
{
bottom
:
-36px
;
}
a
.calc
{
@include
hide-text
;
...
...
@@ -33,11 +40,12 @@ li.calc-main {
position
:
relative
;
top
:
-36px
;
clear
:
both
;
max-height
:
90px
;
form
{
padding
:
lh
();
@extend
.clearfix
;
@include
box-sizing
(
border-box
);
input
#calculator_button
{
background
:
#111
;
...
...
@@ -46,13 +54,14 @@ li.calc-main {
@include
box-shadow
(
none
);
@include
box-sizing
(
border-box
);
color
:
#fff
;
float
:
left
;
font-size
:
30px
;
font-weight
:
bold
;
margin
:
0
(
flex-gutter
()
/
2
);
padding
:
0
;
text-shadow
:
none
;
-webkit-appearance
:
none
;
width
:
flex-grid
(
.5
)
+
flex-gutter
();
float
:
left
;
margin
:
0
(
flex-gutter
()
/
2
);
&
:hover
{
color
:
#333
;
...
...
@@ -70,15 +79,16 @@ li.calc-main {
font-weight
:
bold
;
margin
:
1px
0
0
;
padding
:
10px
;
-webkit-appearance
:
none
;
width
:
flex-grid
(
4
);
}
div
.input-wrapper
{
position
:
relative
;
@extend
.clearfix
;
width
:
flex-grid
(
7
.5
);
margin
:
0
;
float
:
left
;
margin
:
0
;
position
:
relative
;
width
:
flex-grid
(
7
.5
);
input
#calculator_input
{
border
:
none
;
...
...
@@ -86,6 +96,7 @@ li.calc-main {
@include
box-sizing
(
border-box
);
font-size
:
16px
;
padding
:
10px
;
-webkit-appearance
:
none
;
width
:
100%
;
&
:focus
{
...
...
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