-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathiOS.css.silverplastic-navigationbar.css
83 lines (78 loc) · 2.03 KB
/
iOS.css.silverplastic-navigationbar.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
* iOS.css Silver Navigation Bar (CSS) v1.0
* http://www.raffael.me/iOS.css/
* http://github.com/raffael-me/iOS.css/
*
* Copyright (c) 2012 Raffael Hannemann
* Dual licensed under the MIT.
* http://www.opensource.org/licenses/mit-license.php
*
*/
/**
* USAGE:
*
* 1. Follow the instructions of building a normal navigation bar.
* 2. Add the ".silver" class to the <nav /> tag to apply the silver style.
*
*/
nav.iOSnavigationbar.silverplastic {
background: -webkit-linear-gradient(top, #eeeff0, #e1e0e5, #dddedf);
box-shadow: 0 -1px 0 0 rgba(255,255,255,0.8),
0 0 10px rgba(0,0,0,0.2),
0 10px 0 10px black;
border-top: none;
height: 48px;
border-radius: 0 0 3px 3px;
}
nav.iOSnavigationbar.silverplastic
a {
color: #474747;
text-shadow: 0 1px 0 rgba(255,255,255,0.8);
top: 0;
margin: 0;
line-height: 75px;
box-shadow: -1px 0px 0px 0 rgba(255,255,255,0.4) inset, /* lighten on the right */
1px 0px 0px 0 rgba(0,0,0,0.05) inset; /* dark on the left */
height: 48px;
}
nav.iOSnavigationbar.silverplastic
a:last-of-type {
box-shadow: 1px 0px 0px 0 rgba(0,0,0,0.05) inset; /* dark on the left */
}
nav.iOSnavigationbar.silverplastic
a:first-of-type {
box-shadow: -1px 0px 0px 0 rgba(255,255,255,0.6) inset; /* lighten on the right */
}
nav.iOSnavigationbar.silverplastic
a.current {
background-image: -webkit-linear-gradient(bottom, #e0e0e2, #d4d4d4, #c6c6c6);
box-shadow: 0 -1px 0 0 rgba(180,180,180,0.8),
0 1px 0 #f1edec,
-1px 0px 0px 0 rgba(0,0,0,0.2) inset;
height: 48px;
color: #383839;
border-radius: 0;
margin-top: 0;
top: 0;
}
nav.iOSnavigationbar a.current
i {
background-position: 0 0;
}
nav.iOSnavigationbar.silverplastic
a.current:after { /* inset shadow overlay */
position: absolute;
-webkit-box-sizing: border-box;
box-shadow: 0px 0px 5px rgb(180,180,180) inset,
0px -3px 10px rgba(0,0,0,0.9) inset;
-webkit-mask: -webkit-linear-gradient(bottom, transparent, white);
top: -1px;
left: 0;
content:"";
width:100%;
height:52px;
}
nav.iOSnavigationbar.silverplastic
sup {
text-shadow: none;
}