Skip to content

Commit 71f6794

Browse files
author
AMJones
committed
Initial commit
1 parent 27bb892 commit 71f6794

File tree

12 files changed

+766
-0
lines changed

12 files changed

+766
-0
lines changed

README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Custom Time
2+
=========

composer.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "deviscoding/custom-time",
3+
"description": "Cross browser time implementation using CSS and JQuery. Compatible with Twitter Bootstrap",
4+
"keywords": [
5+
"bootstrap",
6+
"time",
7+
"replacement",
8+
"sass"
9+
],
10+
"homepage": "https://github.com/deviscoding/custom-time",
11+
"version": "1.0",
12+
"authors": [
13+
{
14+
"name": "AMJones",
15+
"homepage": "https://www.deviscoding.com/"
16+
}
17+
],
18+
"license": "MIT",
19+
"require": {
20+
"deviscoding/colors": "^1.0",
21+
"deviscoding/base": "^2.0",
22+
"components/jquery": "^1.10"
23+
}
24+
}

composer.lock

Lines changed: 139 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/custom-time.css

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/**
2+
* CustomTime v1.0 (https://github.com/deviscoding/custom-time) with Icons from Open Iconic (https://useiconic.com/open)
3+
* @author AMJones [am@jonesiscoding.com]
4+
* @licence MIT (https://github.com/deviscoding/custom-time/blob/master/LICENSE)
5+
*/
6+
.custom-time {
7+
border: 1px solid #ced4da;
8+
border-radius: 2px;
9+
height: calc(2.25rem + 2px);
10+
padding: 0 0 0 0.75rem;
11+
}
12+
13+
.custom-time-wrapper {
14+
background: #fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%228%22%20height%3D%228%22%20viewBox%3D%220%200%208%208%22%3E%3Cpath%20fill%3D%22%23495057%22%20d%3D%22M4%200c-2.2%200-4%201.8-4%204s1.8%204%204%204%204-1.8%204-4-1.8-4-4-4zm0%201c1.66%200%203%201.34%203%203s-1.34%203-3%203-3-1.34-3-3%201.34-3%203-3zm-.5%201v2.22l.16.13.5.5.34.38.72-.72-.38-.34-.34-.34v-1.81h-1z%22%20%2F%3E%3C%2Fsvg%3E") no-repeat left calc(0.375rem + 4px) center;
15+
border: 1px solid #ced4da;
16+
border-radius: 2px;
17+
height: calc(2.25rem + 2px);
18+
padding: 0 0.1875rem 0 1.5rem;
19+
}
20+
21+
.custom-time-wrapper:focus-within {
22+
border: 1px solid #80bdff;
23+
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
24+
outline: none;
25+
}
26+
27+
.custom-time-wrapper .custom-time {
28+
display: none;
29+
}
30+
31+
.custom-time-wrapper .custom-h, .custom-time-wrapper .custom-i, .custom-time-wrapper .custom-s, .custom-time-wrapper .custom-a {
32+
-webkit-appearance: none;
33+
-moz-appearance: none;
34+
appearance: none;
35+
background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%228%22%20height%3D%228%22%20viewBox%3D%220%200%208%208%22%3E%3Cpath%20fill%3D%22rgba%2873%2C%2080%2C%2087%2C%200.5%29%22%20d%3D%22M0%200l4%204%204-4h-8z%22%20transform%3D%22translate%280%202%29%22%20%2F%3E%3C%2Fsvg%3E") no-repeat right 0.5rem center;
36+
border: none !important;
37+
border-radius: 0 !important;
38+
height: 100%;
39+
padding: 0 calc(1rem + 8px) 0 0.5rem;
40+
}
41+
42+
.custom-time-wrapper .custom-h:focus, .custom-time-wrapper .custom-i:focus, .custom-time-wrapper .custom-s:focus, .custom-time-wrapper .custom-a:focus {
43+
outline: none;
44+
box-shadow: none;
45+
border: none;
46+
}
47+
48+
@media handheld, screen and (pointer: coarse) {
49+
.custom-time-wrapper:focus-within {
50+
border: none;
51+
box-shadow: none;
52+
}
53+
.custom-time-wrapper .custom-time {
54+
border: none;
55+
height: 2.25rem;
56+
display: inline-block;
57+
padding: 0;
58+
}
59+
.custom-time-wrapper .custom-h, .custom-time-wrapper .custom-i, .custom-time-wrapper .custom-s, .custom-time-wrapper .custom-a {
60+
display: none;
61+
}
62+
}

dist/css/custom-time.min.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)