-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathiOS.css.header.css
More file actions
93 lines (80 loc) · 2.12 KB
/
iOS.css.header.css
File metadata and controls
93 lines (80 loc) · 2.12 KB
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
84
85
86
87
88
89
90
91
92
93
/*
* iOS.css Head (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. Make a <header class="iOSheader"></header> tag,
* 2. Place a <h1>Title</h1> tag inside the header tag.
*
* Improvements in terms of header buttons and correct alignments, text overflow coming soon.
*/
/* iOS 5 like blue header */
header.iOSheader {
height: 44px;
width: 100%;
position: absolute;
top: 0;
background: -webkit-linear-gradient(top, #beccdd, #587397);
box-shadow: 0px 1px 1px rgba(255,255,255,0.7) inset,
0 1px 2px rgba(0,0,0,0.2);
border: none;
border-bottom: 1px solid #3f5c80;
border-top: 1px solid #5e6468;
height: 44px;
text-align: center;
font: bold 22px/45px "Helvetica Neue", Helvetica, sans-serif;
color: white;
text-shadow: 0 -1px rgba(0, 0, 0, 0.4);
z-index: 10;
-webkit-user-select: none;
}
header.iOSheader h1 {
font:inherit;
display:inline;
}
header.grey > button {
position: absolute;
top: 9px;
left: 7px;
text-shadow: 0 1px 0 white;
color: #444;
font: bold 11px/11px "Lucida Grande";
padding: 3px 6px;
background: -webkit-linear-gradient(top, #ededee,#d6d8da);
box-shadow: 0 1px 0 white;
border-radius: 4px;
height: 28px;
border: 1px solid #adaeae;
}
/* apply this class to get rounded headers */
header.rounded {
border-radius: 4px 4px 0 0;
}
/* iOS 5 like blue header: apply both classes at the same time. */
header.iOSheader.iOS5 {
background: -webkit-linear-gradient(top, #b1bccc 0%, #8b9cb2 49.9999%, #8396ae 50%, #7186a1 100%);
box-shadow: 0 1px 0 #ced5de inset;
border-bottom: 1px solid #2e3742;
}
/* grey iOS 6 Music app like header */
header.iOSheader.grey {
background: -webkit-linear-gradient(top, #f4f5f6, #dedfdf);
box-shadow: 0px 1px 0 #7a7a7a inset,
0 1px 3px rgba(0,0,0,0.2);
border: none;
color: #474747;
text-shadow: 0 1px 0 white;
border-bottom: 1px solid #949494;
}
header.iOSheader.black {
background: -webkit-linear-gradient(top, #535353, #1c1c1c);
border-top: 1px solid #525252;
}