3 Universal iPhone UI Kit 1.0
4 Author: Diego MartÃn Lafuente.
5 E-Mail: dlafuente@gmail.com
11 SVN URL: http://code.google.com/p/iphone-universal/source/checkout
12 Download: http://code.google.com/p/iphone-universal/downloads/list
18 background: rgb(197,204,211) url(../images/stripes.png);
19 font-family: Helvetica;
22 -webkit-user-select: none;
23 -webkit-text-size-adjust: none;
26 /* standard header on body */
28 div#header + h1, ul + h1 {
29 color: rgb(76,86,108);
30 font: bold 18px Helvetica;
31 text-shadow: #fff 0 1px 0;
32 margin: 15px 0 0 10px;
37 background-color: #4AB694;
41 background-color: #000;
45 border-bottom-width: 0px;
46 border-bottom-top: 0px;
49 margin: 10px 5px 0 5px;
51 padding: 10px 5px 10px 5px;
54 border-bottom-width: 0px;
55 border-bottom-top: 0px;
59 text-transform: uppercase;
64 vertical-align: bottom;
68 text-decoration: none;
76 /* standard paragraph on body */
78 ul + p, ul.data + p + p, ul.form + p + p {
79 color: rgb(76,86,108);
82 text-shadow: white 0 1px 0;
83 margin: 0 10px 17px 0;
103 background: rgb(109,133,163) url(../images/bgHeader.png) repeat-x top;
104 border-top: 1px solid rgb(205,213,223);
105 border-bottom: 1px solid rgb(46,55,68);
109 //position: absolute;
110 -webkit-box-sizing: border-box;
116 font: bold 20px/30px Helvetica;
117 text-shadow: #2d3642 0 -1px 0;
119 text-overflow: ellipsis;
124 margin: 2px 0 0 -24%;
133 font: bold 12px/30px Helvetica;
139 text-shadow: rgb(46,55,68) 0 -1px 0;
140 text-overflow: ellipsis;
141 text-decoration: none;
147 -webkit-border-image: url(../images/toolButton.png) 0 5 0 5;
150 div#header #backButton {
155 border-width: 0 8px 0 14px;
156 -webkit-border-image: url(../images/backButton.png) 0 8 0 14;
162 -webkit-border-image: url(../images/actionButton.png) 0 5 0 5;
172 color: rgb(60,70,80);
182 text-shadow: #C0CBDB 0 1px 0;
183 text-overflow: ellipsis;
194 top: 18px !important;
198 top: 25px !important;
202 div.pre a#Backbutton {
203 left: 6px !important;
210 /***** List (base) ******/
215 border: 1px solid #B4B4B4;
216 font: normal 17px Helvetica;
218 margin: 15px 10px 17px 0;
219 -webkit-border-radius: 8px;
226 list-style-type: none;
227 // padding: 10px 10px 10px 10px;
228 // border: 1px solid #B4B4B4;
234 list-style-type: none;
235 padding: 10px 10px 10px 10px;
236 border: 1px solid #B4B4B4;
237 -webkit-tap-highlight-color:rgba(0,0,0,0);
242 /* when you have a first LI item on any list */
246 -webkit-border-top-left-radius: 8px;
247 -webkit-border-top-right-radius: 8px;
251 -webkit-border-bottom-left-radius: 8px;
252 -webkit-border-bottom-right-radius: 8px;
256 /* universal arrows */
259 background-image: url(../images/chevron.png);
260 background-position: right center;
261 background-repeat: no-repeat;
262 border: 1px solid rgb(180,180,180);
266 #plastic ul li.arrow, #metal ul li.arrow {
267 background-image: url(../images/chevron_dg.png);
268 background-position: right center;
269 background-repeat: no-repeat;
274 /* universal links on list */
276 ul li a, li.img a + a {
278 text-decoration: none;
279 text-overflow: ellipsis;
283 padding: 0px 0px 0px 0px;
285 -webkit-tap-highlight-color:rgba(0,0,0,0);
289 margin: 0px 10px 0px -5px;
294 ul li.img a + a + a {
303 ul li.img a + small + a {
308 ul li.img a + small + a + a {
316 ul li.img a + small + a + a + a {
317 margin-left: 0px !important;
324 font: 14px Helvetica;
325 text-overflow: ellipsis;
333 ul li a + a + a, ul li.img a + a + a + a, ul li.img a + small + a + a + a {
335 font: 13px Helvetica;
337 text-overflow: ellipsis;
348 /* standard mini-label */
352 font: 17px Helvetica;
354 text-overflow: ellipsis;
369 ul li small.counter {
370 font-size: 17px !important;
371 line-height: 13px !important;
373 background: rgb(154,159,170);
375 -webkit-border-radius: 11px;
376 padding: 4px 10px 5px 10px;
377 display: inline !important;
383 ul li.arrow small.counter {
390 /* resize without labels */
402 ul li.arrow small + a {
416 /* background: url(../images/standard-img.png) no-repeat; */
417 display: inline-block;
420 margin: 0px 0px 0px -60px;
421 padding: 0px 0px 0px 0px;
439 color: rgb(183,190,205);
441 border: 1px solid rgb(180,180,180);
444 -webkit-border-radius: 8px;
445 -webkit-box-sizing: border-box;
449 padding: 11px 10px 14px 10px;
452 ul.individual li + li {
459 color: rgb(50,79,133);
461 margin: -11px -10px -14px -10px;
462 padding: 11px 10px 14px 10px;
463 -webkit-border-radius: 8px;
466 ul.individual li a:hover {
474 /* Normal lists and metal */
478 /* 002863 rgb(154,159,170) */
479 background: rgb(0,40,99) url(../images/bglight.png) top left repeat-x;
480 border-top: 1px solid rgb(0,40,99); /* rgb(165,177,186); */
481 text-shadow: #666 0 1px 0;
487 body#normal, body#metal {
490 background-color: rgb(255,255,255);
493 body#normal ul, body#metal ul, body#plastic ul {
494 -webkit-border-radius: 0;
504 background: rgb(180,180,180);
510 /* body#normal ul li {
515 body#normal ul li small {
520 body#normal li, body#metal li {
521 -webkit-border-radius: 0;
529 body#normal h4 + ul {
531 # border-top: 1px solid rgb(152,158,164);
532 border-bottom: 1px solid rgb(113,125,133);
537 border-top: 1px solid rgb(238,238,238);
538 border-bottom: 1px solid rgb(156,158,165);
539 background: url(../images/bgMetal.png) top left repeat-x;
541 text-shadow: #fff 0 1px 0;
550 body#metal ul li a:hover {
554 body#metal ul li:hover small {
559 body#metal ul li a em {
568 body#metal ul li small {
576 body#metal ul li.arrow a small {
582 body#metal ul li.arrow {
583 background: url(../images/bgMetal.png) top left repeat-x,
584 url(../images/chevron_dg.png) right center no-repeat;
592 background: url(../images/blackbg.png) top left repeat-x;
594 padding: 20px 10px 15px 10px;
604 text-shadow: #000 0 1px 0;
611 /***** BUTTONS *****/
615 font: bold 20px/46px Helvetica;
616 text-decoration: none;
618 text-shadow: #000 0 1px 0;
619 border-width: 0px 14px 0px 14px;
624 .green { -webkit-border-image: url(../images/greenButton.png) 0 14 0 14; }
625 .red { -webkit-border-image: url(../images/redButton.png) 0 14 0 14; }
629 text-shadow: #fff 0px 1px 0;
630 -webkit-border-image: url(../images/whiteButton.png) 0 14 0 14;
633 .black { -webkit-border-image: url(../images/grayButton.png) 0 14 0 14; }
648 ul.form li.error { border: 2px solid red; }
649 ul.form li.error + li.error { border-top: 0; }
651 ul.form li:hover { background: #fff; }
653 ul li input[type="text"], ul li input[type="password"], ul li textarea, ul li select {
655 background: #fff url(../.png); /* this is a hack due the default input shadow that iphones uses on textfields */
657 font: normal 17px Helvetica;
659 display: inline-block;
662 -webkit-appearance: textarea;
673 background: transparent url(../images/chevron.png) no-repeat 103% 3px;
674 -webkit-appearance: textfield;
679 ul li input[type="checkbox"], ul li input[type="radio"] {
681 color: rgb(50,79,133);
685 ul li input[type="checkbox"]:after, ul li input[type="radio"]:after {
686 content: attr(title);
687 font: 17px Helvetica;
690 margin: -12px 0 0 17px;
695 /**** INFORMATION FIELDS ****/
698 margin: 10px 0 5px 0;
709 ul.data li p + p { margin-top: 10px; }
721 text-decoration: underline;
741 /* line-height: 18px;*/
746 text-overflow: ellipsis;
752 display: inline-block;
757 /* line-height: 18px; */
760 display: inline-block;
764 /*vertical-align: top;*/
769 /* line-height: 18px; */
770 /* font-weight: bold; */
773 display: inline-block;
780 display: inline-block;
784 /* this is for profiling */
795 background: #fff url(../images/profile-user.png) no-repeat;
796 border: 1px solid #B4B4B4;
799 -webkit-border-radius: 4px;
800 -webkit-box-sizing: border-box;
811 ul.profile li + li h2, ul.profile li + li p {
812 color: rgb(46,55,68);
813 text-shadow: #fff 0 1px 0;
817 ul.profile li + li h2 {
818 font: bold 18px/22px Helvetica;
819 text-overflow: ellipsis;
824 ul.profile li + li p {
825 font: 14px/18px Helvetica;
826 text-overflow: ellipsis;
832 /* any A element inside this kind of field list will scale 62x62 */
843 /***** PLASTIC LISTS *****/
848 background: rgb(173,173,173);
852 -webkit-border-radius: 0;
857 background-color: rgb(173,173,173);
862 -webkit-border-radius: 0;
863 border-top: 1px solid rgb(191,191,191);
864 border-bottom: 1px solid rgb(157,157,157);
868 body#plastic ul li:nth-child(odd) {
869 background-color: rgb(152,152,152);
870 border-top: 1px solid rgb(181,181,181);
871 border-bottom: 1px solid rgb(138,138,138);
875 body#plastic ul + p {
882 body#plastic ul + p strong {
885 text-shadow: #fff 0 1px 0;
888 body#plastic ul li a {
889 text-shadow: rgb(211,211,211) 0 1px 0;
892 body#plastic ul li:nth-child(odd) a {
893 text-shadow: rgb(191,191,191) 0 1px 0;
897 body#plastic ul li small {
899 text-shadow: rgb(211,211,211) 0 1px 0;
902 text-transform: uppercase;
908 /**** MINI & BIG BANNERS ****/
910 #plastic ul.minibanner, #plastic ul.bigbanner {
917 #plastic ul.bigbanner {
918 height: 140px !important;
921 #plastic ul.minibanner li {
922 border: 1px solid rgb(138,138,138);
923 background-color: rgb(152,152,152);
927 -webkit-border-radius: 5px;
931 #plastic ul.bigbanner li {
932 border: 1px solid rgb(138,138,138);
933 background-color: rgb(152,152,152);
937 -webkit-border-radius: 5px;
942 #plastic ul.minibanner li:first-child {
947 #plastic ul.minibanner li a {
955 #plastic ul.bigbanner li a {
972 body#chat div.bubble {
973 margin: 10px 10px 0 0px;
980 body#chat div.right {
989 body#chat div.right p {
990 border-width: 10px 20px 12px 10px;
993 body#chat div.left p {
994 border-width: 10px 10px 12px 20px;
999 body#chat div.left p.lime {
1000 -webkit-border-image: url(../images/chat_bubbles_lime_l.png) 10 10 13 19;
1003 body#chat div.left p.lemon {
1004 -webkit-border-image: url(../images/chat_bubbles_lemon_l.png) 10 10 13 19;
1007 body#chat div.left p.orange {
1008 -webkit-border-image: url(../images/chat_bubbles_orange_l.png) 10 10 13 19;
1011 body#chat div.left p.aqua {
1012 -webkit-border-image: url(../images/chat_bubbles_aqua_l.png) 10 10 13 19;
1015 body#chat div.left p.purple {
1016 -webkit-border-image: url(../images/chat_bubbles_purple_l.png) 10 10 13 19;
1019 body#chat div.left p.pink {
1020 -webkit-border-image: url(../images/chat_bubbles_pink_l.png) 10 10 13 19;
1023 body#chat div.left p.graphite {
1024 -webkit-border-image: url(../images/chat_bubbles_graphite_l.png) 10 10 13 19;
1027 body#chat div.left p.clear {
1028 -webkit-border-image: url(../images/chat_bubbles_clear_l.png) 10 10 13 19;
1036 body#chat div.right p.aqua {
1037 -webkit-border-image: url(../images/chat_bubbles_aqua_r.png) 10 19 13 10;
1040 body#chat div.right p.lemon {
1041 -webkit-border-image: url(../images/chat_bubbles_lemon_r.png) 10 19 13 10;
1044 body#chat div.right p.lime {
1045 -webkit-border-image: url(../images/chat_bubbles_lime_r.png) 10 19 13 10;
1048 body#chat div.right p.purple {
1049 -webkit-border-image: url(../images/chat_bubbles_purple_r.png) 10 19 13 10;
1052 body#chat div.right p.pink {
1053 -webkit-border-image: url(../images/chat_bubbles_pink_r.png) 10 19 13 10;
1056 body#chat div.right p.graphite {
1057 -webkit-border-image: url(../images/chat_bubbles_graphite_r.png) 10 19 13 10;
1060 body#chat div.right p.clear {
1061 -webkit-border-image: url(../images/chat_bubbles_clear_r.png) 10 19 13 10;
1070 body#chat div.bubble p {
1076 body#chat div.bubble + p {
1082 padding: 10px 0 0 0;
1091 /**** image grids ****/
1100 margin: 4px 4px 4px 0;
1102 -webkit-border-radius: 0;
1106 border: 1px solid #C0D5DD;
1107 -webkit-border-radius: 0;
1111 margin: 0 0 4px 4px;
1112 background: #F4FBFE url(../images/image-loading.gif) no-repeat center center;
1116 body#images ul li a {
1125 /*** BLANK PAGES ***/
1135 margin: 250px 0 0 0;
1141 /**** ICONFIED LIST ****/
1144 ul li a img.ico, ul li img.ico {
1147 margin: -4px 10px -4px -1px;