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;
238 -webkit-tap-highlight-color:rgba(0,0,0,0);
243 /* when you have a first LI item on any list */
247 -webkit-border-top-left-radius: 8px;
248 -webkit-border-top-right-radius: 8px;
252 -webkit-border-bottom-left-radius: 8px;
253 -webkit-border-bottom-right-radius: 8px;
257 /* universal arrows */
260 border: 1px solid rgb(180,180,180);
264 background-image: url(../images/chevron.png);
265 background-position: right center;
266 background-repeat: no-repeat;
267 border: 1px solid rgb(180,180,180);
271 #plastic ul li.arrow, #metal ul li.arrow {
272 background-image: url(../images/chevron_dg.png);
273 background-position: right center;
274 background-repeat: no-repeat;
279 /* universal links on list */
281 ul li a, li.img a + a {
283 text-decoration: none;
284 text-overflow: ellipsis;
288 padding: 0px 0px 0px 0px;
290 -webkit-tap-highlight-color:rgba(0,0,0,0);
294 margin: 0px 10px 0px -5px;
299 ul li.img a + a + a {
308 ul li.img a + small + a {
313 ul li.img a + small + a + a {
321 ul li.img a + small + a + a + a {
322 margin-left: 0px !important;
329 font: 14px Helvetica;
330 text-overflow: ellipsis;
338 ul li a + a + a, ul li.img a + a + a + a, ul li.img a + small + a + a + a {
340 font: 13px Helvetica;
342 text-overflow: ellipsis;
353 /* standard mini-label */
357 font: 17px Helvetica;
359 text-overflow: ellipsis;
374 ul li small.counter {
375 font-size: 17px !important;
376 line-height: 13px !important;
378 background: rgb(154,159,170);
380 -webkit-border-radius: 11px;
381 padding: 4px 10px 5px 10px;
382 display: inline !important;
388 ul li.arrow small.counter {
395 /* resize without labels */
407 ul li.arrow small + a {
421 /* background: url(../images/standard-img.png) no-repeat; */
422 display: inline-block;
425 margin: 0px 0px 0px -60px;
426 padding: 0px 0px 0px 0px;
444 color: rgb(183,190,205);
446 border: 1px solid rgb(180,180,180);
449 -webkit-border-radius: 8px;
450 -webkit-box-sizing: border-box;
454 padding: 11px 10px 14px 10px;
457 ul.individual li + li {
464 color: rgb(50,79,133);
466 margin: -11px -10px -14px -10px;
467 padding: 11px 10px 14px 10px;
468 -webkit-border-radius: 8px;
471 ul.individual li a:hover {
479 /* Normal lists and metal */
483 /* 002863 rgb(154,159,170) */
484 background: rgb(0,40,99) url(../images/bglight.png) top left repeat-x;
485 border-top: 1px solid rgb(0,40,99); /* rgb(165,177,186); */
486 text-shadow: #666 0 1px 0;
492 body#normal, body#metal {
495 background-color: rgb(255,255,255);
498 body#normal ul, body#metal ul, body#plastic ul {
499 -webkit-border-radius: 0;
509 background: rgb(180,180,180);
515 /* body#normal ul li {
520 body#normal ul li small {
525 body#normal li, body#metal li {
526 -webkit-border-radius: 0;
534 body#normal h4 + ul {
536 # border-top: 1px solid rgb(152,158,164);
537 border-bottom: 1px solid rgb(113,125,133);
542 border-top: 1px solid rgb(238,238,238);
543 border-bottom: 1px solid rgb(156,158,165);
544 background: url(../images/bgMetal.png) top left repeat-x;
546 text-shadow: #fff 0 1px 0;
555 body#metal ul li a:hover {
559 body#metal ul li:hover small {
564 body#metal ul li a em {
573 body#metal ul li small {
581 body#metal ul li.arrow a small {
587 body#metal ul li.arrow {
588 background: url(../images/bgMetal.png) top left repeat-x,
589 url(../images/chevron_dg.png) right center no-repeat;
597 background: url(../images/blackbg.png) top left repeat-x;
599 padding: 20px 10px 15px 10px;
609 text-shadow: #000 0 1px 0;
616 /***** BUTTONS *****/
620 font: bold 20px/46px Helvetica;
621 text-decoration: none;
623 text-shadow: #000 0 1px 0;
624 border-width: 0px 14px 0px 14px;
629 .green { -webkit-border-image: url(../images/greenButton.png) 0 14 0 14; }
630 .red { -webkit-border-image: url(../images/redButton.png) 0 14 0 14; }
634 text-shadow: #fff 0px 1px 0;
635 -webkit-border-image: url(../images/whiteButton.png) 0 14 0 14;
638 .black { -webkit-border-image: url(../images/grayButton.png) 0 14 0 14; }
653 ul.form li.error { border: 2px solid red; }
654 ul.form li.error + li.error { border-top: 0; }
656 ul.form li:hover { background: #fff; }
658 ul li input[type="text"], ul li input[type="password"], ul li textarea, ul li select {
660 background: #fff url(../.png); /* this is a hack due the default input shadow that iphones uses on textfields */
662 font: normal 17px Helvetica;
664 display: inline-block;
667 -webkit-appearance: textarea;
678 background: transparent url(../images/chevron.png) no-repeat 103% 3px;
679 -webkit-appearance: textfield;
684 ul li input[type="checkbox"], ul li input[type="radio"] {
686 color: rgb(50,79,133);
690 ul li input[type="checkbox"]:after, ul li input[type="radio"]:after {
691 content: attr(title);
692 font: 17px Helvetica;
695 margin: -12px 0 0 17px;
700 /**** INFORMATION FIELDS ****/
703 margin: 10px 0 5px 0;
714 ul.data li p + p { margin-top: 10px; }
726 text-decoration: underline;
746 /* line-height: 18px;*/
751 text-overflow: ellipsis;
757 display: inline-block;
762 /* line-height: 18px; */
765 display: inline-block;
769 /*vertical-align: top;*/
774 /* line-height: 18px; */
775 /* font-weight: bold; */
778 display: inline-block;
785 display: inline-block;
789 /* this is for profiling */
800 background: #fff url(../images/profile-user.png) no-repeat;
801 border: 1px solid #B4B4B4;
804 -webkit-border-radius: 4px;
805 -webkit-box-sizing: border-box;
816 ul.profile li + li h2, ul.profile li + li p {
817 color: rgb(46,55,68);
818 text-shadow: #fff 0 1px 0;
822 ul.profile li + li h2 {
823 font: bold 18px/22px Helvetica;
824 text-overflow: ellipsis;
829 ul.profile li + li p {
830 font: 14px/18px Helvetica;
831 text-overflow: ellipsis;
837 /* any A element inside this kind of field list will scale 62x62 */
848 /***** PLASTIC LISTS *****/
853 background: rgb(173,173,173);
857 -webkit-border-radius: 0;
862 background-color: rgb(173,173,173);
867 -webkit-border-radius: 0;
868 border-top: 1px solid rgb(191,191,191);
869 border-bottom: 1px solid rgb(157,157,157);
873 body#plastic ul li:nth-child(odd) {
874 background-color: rgb(152,152,152);
875 border-top: 1px solid rgb(181,181,181);
876 border-bottom: 1px solid rgb(138,138,138);
880 body#plastic ul + p {
887 body#plastic ul + p strong {
890 text-shadow: #fff 0 1px 0;
893 body#plastic ul li a {
894 text-shadow: rgb(211,211,211) 0 1px 0;
897 body#plastic ul li:nth-child(odd) a {
898 text-shadow: rgb(191,191,191) 0 1px 0;
902 body#plastic ul li small {
904 text-shadow: rgb(211,211,211) 0 1px 0;
907 text-transform: uppercase;
913 /**** MINI & BIG BANNERS ****/
915 #plastic ul.minibanner, #plastic ul.bigbanner {
922 #plastic ul.bigbanner {
923 height: 140px !important;
926 #plastic ul.minibanner li {
927 border: 1px solid rgb(138,138,138);
928 background-color: rgb(152,152,152);
932 -webkit-border-radius: 5px;
936 #plastic ul.bigbanner li {
937 border: 1px solid rgb(138,138,138);
938 background-color: rgb(152,152,152);
942 -webkit-border-radius: 5px;
947 #plastic ul.minibanner li:first-child {
952 #plastic ul.minibanner li a {
960 #plastic ul.bigbanner li a {
977 body#chat div.bubble {
978 margin: 10px 10px 0 0px;
985 body#chat div.right {
994 body#chat div.right p {
995 border-width: 10px 20px 12px 10px;
998 body#chat div.left p {
999 border-width: 10px 10px 12px 20px;
1004 body#chat div.left p.lime {
1005 -webkit-border-image: url(../images/chat_bubbles_lime_l.png) 10 10 13 19;
1008 body#chat div.left p.lemon {
1009 -webkit-border-image: url(../images/chat_bubbles_lemon_l.png) 10 10 13 19;
1012 body#chat div.left p.orange {
1013 -webkit-border-image: url(../images/chat_bubbles_orange_l.png) 10 10 13 19;
1016 body#chat div.left p.aqua {
1017 -webkit-border-image: url(../images/chat_bubbles_aqua_l.png) 10 10 13 19;
1020 body#chat div.left p.purple {
1021 -webkit-border-image: url(../images/chat_bubbles_purple_l.png) 10 10 13 19;
1024 body#chat div.left p.pink {
1025 -webkit-border-image: url(../images/chat_bubbles_pink_l.png) 10 10 13 19;
1028 body#chat div.left p.graphite {
1029 -webkit-border-image: url(../images/chat_bubbles_graphite_l.png) 10 10 13 19;
1032 body#chat div.left p.clear {
1033 -webkit-border-image: url(../images/chat_bubbles_clear_l.png) 10 10 13 19;
1041 body#chat div.right p.aqua {
1042 -webkit-border-image: url(../images/chat_bubbles_aqua_r.png) 10 19 13 10;
1045 body#chat div.right p.lemon {
1046 -webkit-border-image: url(../images/chat_bubbles_lemon_r.png) 10 19 13 10;
1049 body#chat div.right p.lime {
1050 -webkit-border-image: url(../images/chat_bubbles_lime_r.png) 10 19 13 10;
1053 body#chat div.right p.purple {
1054 -webkit-border-image: url(../images/chat_bubbles_purple_r.png) 10 19 13 10;
1057 body#chat div.right p.pink {
1058 -webkit-border-image: url(../images/chat_bubbles_pink_r.png) 10 19 13 10;
1061 body#chat div.right p.graphite {
1062 -webkit-border-image: url(../images/chat_bubbles_graphite_r.png) 10 19 13 10;
1065 body#chat div.right p.clear {
1066 -webkit-border-image: url(../images/chat_bubbles_clear_r.png) 10 19 13 10;
1075 body#chat div.bubble p {
1081 body#chat div.bubble + p {
1087 padding: 10px 0 0 0;
1096 /**** image grids ****/
1105 margin: 4px 4px 4px 0;
1107 -webkit-border-radius: 0;
1111 border: 1px solid #C0D5DD;
1112 -webkit-border-radius: 0;
1116 margin: 0 0 4px 4px;
1117 background: #F4FBFE url(../images/image-loading.gif) no-repeat center center;
1121 body#images ul li a {
1130 /*** BLANK PAGES ***/
1140 margin: 250px 0 0 0;
1146 /**** ICONFIED LIST ****/
1149 ul li a img.ico, ul li img.ico {
1152 margin: -4px 10px -4px -1px;