Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DoneXBlock
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
DoneXBlock
Commits
612f10fa
Commit
612f10fa
authored
May 29, 2014
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Styling is no longer horrible
parent
18855649
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
95 additions
and
80 deletions
+95
-80
done/static/css/done.css
+91
-4
done/static/html/done.html
+4
-76
No files found.
done/static/css/done.css
View file @
612f10fa
/* CSS for DoneXBlock */
.done_block
.count
{
font-weight
:
bold
;
.done_block
{
width
:
200px
;
height
:
35px
;
cursor
:
pointer
;
border
:
1px
solid
#0d72a2
;
border-radius
:
3px
;
font-family
:
'Open Sans'
,
Verdana
,
Geneva
,
sans-serif
,
sans-serif
;
font-size
:
13.333333015441895px
;
font-weight
:
bold
;
letter-spacing
:
normal
;
//
padding
:
5
0
-5
0
;
//
margin
:
-5
0
5
0
;
}
.done_block
p
{
cursor
:
pointer
;
.wipe
{
-webkit-transition
:
width
0.2s
;
transition
:
width
0.2s
;
text-align
:
center
;
vertical-align
:
-10
;
}
.windshield_animated
{
-webkit-transition
:
background-color
0.4s
,
box-shadow
0.4s
,
color
0.4s
,
text-shadow
0.4s
,
background-image
0.4s
;
transition
:
background-color
0.4s
,
box-shadow
0.4s
,
color
0.4s
,
text-shadow
0.4s
,
background-image
0.4s
;
}
.windshield
{
height
:
100%
;
}
.windshield_on
{
//
"Mark
as
complete"
-webkit-font-smoothing
:
antialiased
;
background-color
:
#1e8bbe
;
background-image
:
linear-gradient
(
rgb
(
109
,
204
,
241
),
rgb
(
56
,
168
,
229
));
border-radius
:
3px
;
border
:
1px
solid
rgb
(
43
,
122
,
163
);
box-shadow
:
rgba
(
255
,
255
,
255
,
0.4
)
0px
1px
0px
0px
inset
,
rgba
(
0
,
0
,
0
,
0.14902
)
0px
1px
1px
0px
;
color
:
#fff
;
text-shadow
:
rgba
(
0
,
0
,
0
,
0.298039
)
0px
1px
0px
;
}
.windshield_off
{
//
Undo
-webkit-font-smoothing
:
antialiased
;
background-color
:
#e1e1e1
;
background-image
:
linear-gradient
(
rgb
(
225
,
255
,
225
),
rgb
(
202
,
232
,
202
));
border-radius
:
3px
;
border
:
1px
solid
#cacaca
;
box-shadow
:
rgb
(
251
,
251
,
251
)
0px
1px
0px
0px
inset
;
color
:
#048904
;
//#333;
text-shadow
:
rgb
(
248
,
248
,
248
)
0px
1px
0px
;
}
.windshield_on
.wipe_on
{
display
:
inline-block
;
width
:
80%
;
overflow
:
hidden
;
text-overflow
:
clip
;
white-space
:
nowrap
;
}
.windshield_off
.wipe_on
{
display
:
inline-block
;
width
:
0
;
overflow
:
hidden
;
text-overflow
:
clip
;
white-space
:
nowrap
;
}
.wiper
{
display
:
inline-block
;
width
:
7%
;
vertical-align
:
-10
;
}
.windshield_off
.wipe_off
{
display
:
inline-block
;
width
:
80%
;
overflow
:
hidden
;
text-overflow
:
clip
;
white-space
:
nowrap
;
}
.windshield_on
.wipe_off
{
display
:
inline-block
;
width
:
0
;
overflow
:
hidden
;
text-overflow
:
clip
;
white-space
:
nowrap
;
}
.ui_icon_white
{
background-image
:
url("//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.4/css/images/ui-icons_888888_256x240.png")
;
}
\ No newline at end of file
done/static/html/done.html
View file @
612f10fa
<div
class=
"done_block"
>
<div
style=
"width:200px; height:30px;"
>
<div
class=
"windshield"
>
<div
class=
"wipe wipe_off"
>
Undo
</div>
<div
class=
"wiper"
>
<span
class=
"ui-icon ui-icon-circle-plus"
></span>
</div>
<div
class=
"wipe wipe_on"
>
Mark as complete
</div>
</div>
<div
class=
"windshield"
>
<div
class=
"wipe wipe_off"
>
Undo
</div>
<div
class=
"wiper"
>
<span
class=
"ui-icon ui-icon-circle-plus ui_icon_white"
></span>
</div>
<div
class=
"wipe wipe_on"
>
Mark as complete
</div>
</div>
</div>
<style>
.wipe
{
-webkit-transition
:
width
0.2s
;
transition
:
width
0.2s
;
text-align
:
center
;
vertical-align
:
middle
;
}
.windshield_animated
{
-webkit-transition
:
background-color
0.2s
;
transition
:
background-color
0.2s
;
}
.windshield
{
height
:
100%
;
}
.windshield_on
{
background-color
:
#700000
;
color
:
#4BA1A1
;
}
.windshield_off
{
background-color
:
#048904
;
color
:
#D59763
;
}
.windshield_on
.wipe_on
{
display
:
inline-block
;
width
:
80%
;
overflow
:
hidden
;
text-overflow
:
clip
;
white-space
:
nowrap
;
}
.windshield_off
.wipe_on
{
display
:
inline-block
;
width
:
0
;
overflow
:
hidden
;
text-overflow
:
clip
;
white-space
:
nowrap
;
}
.wiper
{
display
:
inline-block
;
width
:
7%
;
vertical-align
:
middle
;
}
.windshield_off
.wipe_off
{
display
:
inline-block
;
width
:
80%
;
overflow
:
hidden
;
text-overflow
:
clip
;
white-space
:
nowrap
;
}
.windshield_on
.wipe_off
{
display
:
inline-block
;
width
:
0
;
overflow
:
hidden
;
text-overflow
:
clip
;
white-space
:
nowrap
;
}
</style>
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