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 border: 1px solid rgb(180,180,180);
263 background-image: url(../images/chevron.png);
264 background-position: right center;
265 background-repeat: no-repeat;
266 border: 1px solid rgb(180,180,180);
270 #plastic ul li.arrow, #metal ul li.arrow {
271 background-image: url(../images/chevron_dg.png);
272 background-position: right center;
273 background-repeat: no-repeat;
278 /* universal links on list */
280 ul li a, li.img a + a {
282 text-decoration: none;
283 text-overflow: ellipsis;
287 padding: 0px 0px 0px 0px;
289 -webkit-tap-highlight-color:rgba(0,0,0,0);
293 margin: 0px 10px 0px -5px;
298 ul li.img a + a + a {
307 ul li.img a + small + a {
312 ul li.img a + small + a + a {
320 ul li.img a + small + a + a + a {
321 margin-left: 0px !important;
328 font: 14px Helvetica;
329 text-overflow: ellipsis;
337 ul li a + a + a, ul li.img a + a + a + a, ul li.img a + small + a + a + a {
339 font: 13px Helvetica;
341 text-overflow: ellipsis;
352 /* standard mini-label */
356 font: 17px Helvetica;
358 text-overflow: ellipsis;
373 ul li small.counter {
374 font-size: 17px !important;
375 line-height: 13px !important;
377 background: rgb(154,159,170);
379 -webkit-border-radius: 11px;
380 padding: 4px 10px 5px 10px;
381 display: inline !important;
387 ul li.arrow small.counter {
394 /* resize without labels */
406 ul li.arrow small + a {
420 /* background: url(../images/standard-img.png) no-repeat; */
421 display: inline-block;
424 margin: 0px 0px 0px -60px;
425 padding: 0px 0px 0px 0px;
443 color: rgb(183,190,205);
445 border: 1px solid rgb(180,180,180);
448 -webkit-border-radius: 8px;
449 -webkit-box-sizing: border-box;
453 padding: 11px 10px 14px 10px;
456 ul.individual li + li {
463 color: rgb(50,79,133);
465 margin: -11px -10px -14px -10px;
466 padding: 11px 10px 14px 10px;
467 -webkit-border-radius: 8px;
470 ul.individual li a:hover {
478 /* Normal lists and metal */
482 /* 002863 rgb(154,159,170) */
483 background: rgb(0,40,99) url(../images/bglight.png) top left repeat-x;
484 border-top: 1px solid rgb(0,40,99); /* rgb(165,177,186); */
485 text-shadow: #666 0 1px 0;
491 body#normal, body#metal {
494 background-color: rgb(255,255,255);
497 body#normal ul, body#metal ul, body#plastic ul {
498 -webkit-border-radius: 0;
508 background: rgb(180,180,180);
514 /* body#normal ul li {
519 body#normal ul li small {
524 body#normal li, body#metal li {
525 -webkit-border-radius: 0;
533 body#normal h4 + ul {
535 # border-top: 1px solid rgb(152,158,164);
536 border-bottom: 1px solid rgb(113,125,133);
541 border-top: 1px solid rgb(238,238,238);
542 border-bottom: 1px solid rgb(156,158,165);
543 background: url(../images/bgMetal.png) top left repeat-x;
545 text-shadow: #fff 0 1px 0;
554 body#metal ul li a:hover {
558 body#metal ul li:hover small {
563 body#metal ul li a em {
572 body#metal ul li small {
580 body#metal ul li.arrow a small {
586 body#metal ul li.arrow {
587 background: url(../images/bgMetal.png) top left repeat-x,
588 url(../images/chevron_dg.png) right center no-repeat;
596 background: url(../images/blackbg.png) top left repeat-x;
598 padding: 20px 10px 15px 10px;
608 text-shadow: #000 0 1px 0;
615 /***** BUTTONS *****/
619 font: bold 20px/46px Helvetica;
620 text-decoration: none;
622 text-shadow: #000 0 1px 0;
623 border-width: 0px 14px 0px 14px;
628 .green { -webkit-border-image: url(../images/greenButton.png) 0 14 0 14; }
629 .red { -webkit-border-image: url(../images/redButton.png) 0 14 0 14; }
633 text-shadow: #fff 0px 1px 0;
634 -webkit-border-image: url(../images/whiteButton.png) 0 14 0 14;
637 .black { -webkit-border-image: url(../images/grayButton.png) 0 14 0 14; }
652 ul.form li.error { border: 2px solid red; }
653 ul.form li.error + li.error { border-top: 0; }
655 ul.form li:hover { background: #fff; }
657 ul li input[type="text"], ul li input[type="password"], ul li textarea, ul li select {
659 background: #fff url(../.png); /* this is a hack due the default input shadow that iphones uses on textfields */
661 font: normal 17px Helvetica;
663 display: inline-block;
666 -webkit-appearance: textarea;
677 background: transparent url(../images/chevron.png) no-repeat 103% 3px;
678 -webkit-appearance: textfield;
683 ul li input[type="checkbox"], ul li input[type="radio"] {
685 color: rgb(50,79,133);
689 ul li input[type="checkbox"]:after, ul li input[type="radio"]:after {
690 content: attr(title);
691 font: 17px Helvetica;
694 margin: -12px 0 0 17px;
699 /**** INFORMATION FIELDS ****/
702 margin: 10px 0 5px 0;
713 ul.data li p + p { margin-top: 10px; }
725 text-decoration: underline;
745 /* line-height: 18px;*/
750 text-overflow: ellipsis;
756 display: inline-block;
761 /* line-height: 18px; */
764 display: inline-block;
768 /*vertical-align: top;*/
773 /* line-height: 18px; */
774 /* font-weight: bold; */
777 display: inline-block;
784 display: inline-block;
788 /* this is for profiling */
799 background: #fff url(../images/profile-user.png) no-repeat;
800 border: 1px solid #B4B4B4;
803 -webkit-border-radius: 4px;
804 -webkit-box-sizing: border-box;
815 ul.profile li + li h2, ul.profile li + li p {
816 color: rgb(46,55,68);
817 text-shadow: #fff 0 1px 0;
821 ul.profile li + li h2 {
822 font: bold 18px/22px Helvetica;
823 text-overflow: ellipsis;
828 ul.profile li + li p {
829 font: 14px/18px Helvetica;
830 text-overflow: ellipsis;
836 /* any A element inside this kind of field list will scale 62x62 */
847 /***** PLASTIC LISTS *****/
852 background: rgb(173,173,173);
856 -webkit-border-radius: 0;
861 background-color: rgb(173,173,173);
866 -webkit-border-radius: 0;
867 border-top: 1px solid rgb(191,191,191);
868 border-bottom: 1px solid rgb(157,157,157);
872 body#plastic ul li:nth-child(odd) {
873 background-color: rgb(152,152,152);
874 border-top: 1px solid rgb(181,181,181);
875 border-bottom: 1px solid rgb(138,138,138);
879 body#plastic ul + p {
886 body#plastic ul + p strong {
889 text-shadow: #fff 0 1px 0;
892 body#plastic ul li a {
893 text-shadow: rgb(211,211,211) 0 1px 0;
896 body#plastic ul li:nth-child(odd) a {
897 text-shadow: rgb(191,191,191) 0 1px 0;
901 body#plastic ul li small {
903 text-shadow: rgb(211,211,211) 0 1px 0;
906 text-transform: uppercase;
912 /**** MINI & BIG BANNERS ****/
914 #plastic ul.minibanner, #plastic ul.bigbanner {
921 #plastic ul.bigbanner {
922 height: 140px !important;
925 #plastic ul.minibanner li {
926 border: 1px solid rgb(138,138,138);
927 background-color: rgb(152,152,152);
931 -webkit-border-radius: 5px;
935 #plastic ul.bigbanner li {
936 border: 1px solid rgb(138,138,138);
937 background-color: rgb(152,152,152);
941 -webkit-border-radius: 5px;
946 #plastic ul.minibanner li:first-child {
951 #plastic ul.minibanner li a {
959 #plastic ul.bigbanner li a {
976 body#chat div.bubble {
977 margin: 10px 10px 0 0px;
984 body#chat div.right {
993 body#chat div.right p {
994 border-width: 10px 20px 12px 10px;
997 body#chat div.left p {
998 border-width: 10px 10px 12px 20px;
1003 body#chat div.left p.lime {
1004 -webkit-border-image: url(../images/chat_bubbles_lime_l.png) 10 10 13 19;
1007 body#chat div.left p.lemon {
1008 -webkit-border-image: url(../images/chat_bubbles_lemon_l.png) 10 10 13 19;
1011 body#chat div.left p.orange {
1012 -webkit-border-image: url(../images/chat_bubbles_orange_l.png) 10 10 13 19;
1015 body#chat div.left p.aqua {
1016 -webkit-border-image: url(../images/chat_bubbles_aqua_l.png) 10 10 13 19;
1019 body#chat div.left p.purple {
1020 -webkit-border-image: url(../images/chat_bubbles_purple_l.png) 10 10 13 19;
1023 body#chat div.left p.pink {
1024 -webkit-border-image: url(../images/chat_bubbles_pink_l.png) 10 10 13 19;
1027 body#chat div.left p.graphite {
1028 -webkit-border-image: url(../images/chat_bubbles_graphite_l.png) 10 10 13 19;
1031 body#chat div.left p.clear {
1032 -webkit-border-image: url(../images/chat_bubbles_clear_l.png) 10 10 13 19;
1040 body#chat div.right p.aqua {
1041 -webkit-border-image: url(../images/chat_bubbles_aqua_r.png) 10 19 13 10;
1044 body#chat div.right p.lemon {
1045 -webkit-border-image: url(../images/chat_bubbles_lemon_r.png) 10 19 13 10;
1048 body#chat div.right p.lime {
1049 -webkit-border-image: url(../images/chat_bubbles_lime_r.png) 10 19 13 10;
1052 body#chat div.right p.purple {
1053 -webkit-border-image: url(../images/chat_bubbles_purple_r.png) 10 19 13 10;
1056 body#chat div.right p.pink {
1057 -webkit-border-image: url(../images/chat_bubbles_pink_r.png) 10 19 13 10;
1060 body#chat div.right p.graphite {
1061 -webkit-border-image: url(../images/chat_bubbles_graphite_r.png) 10 19 13 10;
1064 body#chat div.right p.clear {
1065 -webkit-border-image: url(../images/chat_bubbles_clear_r.png) 10 19 13 10;
1074 body#chat div.bubble p {
1080 body#chat div.bubble + p {
1086 padding: 10px 0 0 0;
1095 /**** image grids ****/
1104 margin: 4px 4px 4px 0;
1106 -webkit-border-radius: 0;
1110 border: 1px solid #C0D5DD;
1111 -webkit-border-radius: 0;
1115 margin: 0 0 4px 4px;
1116 background: #F4FBFE url(../images/image-loading.gif) no-repeat center center;
1120 body#images ul li a {
1129 /*** BLANK PAGES ***/
1139 margin: 250px 0 0 0;
1145 /**** ICONFIED LIST ****/
1148 ul li a img.ico, ul li img.ico {
1151 margin: -4px 10px -4px -1px;