-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a373ace
Showing
7 changed files
with
199 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# bb_seekbars | ||
|
||
Action menu is a Firefox OS Building block. | ||
|
||
Visit [buildingfirefoxos.com](http://buildingfirefoxos.com/building-blocks/seekbars.html) to see examples. | ||
|
||
## Installation | ||
|
||
```bash | ||
$ bower install buildingfirefoxos/bb_seekbars | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "bb_seekbars", | ||
"version": "1.4", | ||
"homepage": "https://github.com/buildingfirefoxos/bb_seekbars", | ||
"authors": [ | ||
"The gaia team" | ||
], | ||
"description": "Seekbars - Firefox OS Building Blocks", | ||
"license": "MIT", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* ---------------------------------- | ||
* Seekbars | ||
* ---------------------------------- */ | ||
div[role="slider"] { | ||
position: relative; | ||
height: 3.5rem; | ||
} | ||
|
||
div[role="slider"] > div { | ||
display: block; | ||
overflow: hidden; | ||
padding: 0; | ||
position: relative; | ||
height: 100%; | ||
} | ||
|
||
div[role="slider"] progress { | ||
width: 100%; | ||
background: #000; | ||
border: none; | ||
height: 0.1rem; | ||
display: block; | ||
border-radius: 0; | ||
margin-top: 1.9rem; | ||
} | ||
|
||
div[role="slider"] progress::-moz-progress-bar { | ||
background: #01c5ed; | ||
height: 0.6rem; | ||
margin-top: -0.3rem; | ||
border-radius: 0; | ||
} | ||
|
||
div[role="slider"] > label { | ||
font-size: 1.5rem; | ||
line-height: 3.8rem; | ||
font-family: sans-serif; | ||
color: #00aacb; | ||
float: right; | ||
padding: 0 0 0 1rem; | ||
height: 3.5rem; | ||
width: auto; | ||
} | ||
|
||
div[role="slider"] label:first-of-type { | ||
float: left; | ||
padding: 0 1rem 0 0; | ||
} | ||
|
||
div[role="slider"] > label.icon { | ||
width: 3rem; | ||
height: 3rem; | ||
margin-top: 0.5rem; | ||
font-size: 0; | ||
background: no-repeat right top / 3rem auto; | ||
} | ||
|
||
div[role="slider"] > label.icon:first-of-type { | ||
background-position: top left; | ||
} | ||
|
||
div[role="slider"] button { | ||
width: 3.2rem; | ||
height: 3.2rem; | ||
background: url(seekbars/images/ui/handler.png) no-repeat center center / 3rem auto; | ||
font: 0/0 a; | ||
position: absolute; | ||
top: 50%; | ||
left: 0; | ||
margin: -1.5rem 0 0 -1.6rem; | ||
border-radius: 3.2rem; | ||
border: solid 0.1rem transparent; | ||
transition: border 0.15s ease; | ||
padding: 0; | ||
} | ||
|
||
div[role="slider"] button:active { | ||
border: solid 0.5rem #01c5ed; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Seekbars</title> | ||
<meta name="description" content="Scroll through content (i.e. a song or video) "> | ||
|
||
<link rel="stylesheet" href="../seekbars.css"> | ||
|
||
<!-- | ||
This <style> and <link> is only used for the example code, is no needed for the real case use | ||
--> | ||
<style> | ||
html, body { | ||
margin: 0; | ||
padding: 0; | ||
font-size: 10px; | ||
} | ||
|
||
body { | ||
background: #fff; | ||
} | ||
|
||
h2.bb-docs { | ||
font-size: 1.8rem; | ||
font-family: sans-serif; | ||
font-weight: lighter; | ||
color: #666; | ||
margin: -1px 0 0; | ||
background-color: #f5f5f5; | ||
padding: 0.4rem 0.4rem 0.4rem 3rem; | ||
border: solid 1px #e8e8e8; | ||
} | ||
|
||
body[role="application"] section[role="region"]{ | ||
background: #fff; | ||
padding: 2rem; | ||
} | ||
|
||
body[role="application"] section[role="region"] button { | ||
left: 80%; | ||
} | ||
|
||
body[role="application"] section[role="region"] label.icon { | ||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAA8CAYAAABxVAqfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhc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role="region"] label.icon:last-of-type { | ||
background-position: right -3rem; | ||
} | ||
</style> | ||
|
||
</head> | ||
|
||
<body role="application"> | ||
|
||
<h2 class="bb-docs">Default seeker</h2> | ||
<section role="region"> | ||
<div role="slider" aria-valuemin="0" aria-valuenow="80" aria-valuemax="100" aria-valuetext="slider description"> | ||
<div> | ||
<progress value="80" max="100"></progress> | ||
<button>handler</button> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<h2 class="bb-docs">Value seeker</h2> | ||
<section role="region"> | ||
<div role="slider" aria-valuemin="0" aria-valuenow="80" aria-valuemax="100" aria-valuetext="slider description"> | ||
<label>0</label> | ||
<label>100</label> | ||
<div> | ||
<progress value="80" max="100"></progress> | ||
<button>handler</button> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<h2 class="bb-docs">Icon seeker</h2> | ||
<section role="region"> | ||
<div role="slider" aria-valuemin="0" aria-valuenow="80" aria-valuemax="100" aria-valuetext="slider description"> | ||
<label class="icon">0</label> | ||
<label class="icon">100</label> | ||
<div> | ||
<progress value="80" max="100"></progress> | ||
<button>handler</button> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
</body> | ||
</html> |