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;
239 -webkit-tap-highlight-color:rgba(0,0,0,0);
244 /* when you have a first LI item on any list */
248 -webkit-border-top-left-radius: 8px;
249 -webkit-border-top-right-radius: 8px;
253 -webkit-border-bottom-left-radius: 8px;
254 -webkit-border-bottom-right-radius: 8px;
258 /* universal arrows */
261 border: 1px solid rgb(180,180,180);
265 background-image: url(../images/chevron.png);
266 background-position: right center;
267 background-repeat: no-repeat;
268 border: 1px solid rgb(180,180,180);
272 #plastic ul li.arrow, #metal ul li.arrow {
273 background-image: url(../images/chevron_dg.png);
274 background-position: right center;
275 background-repeat: no-repeat;
280 /* universal links on list */
282 ul li a, li.img a + a {
284 text-decoration: none;
285 text-overflow: ellipsis;
289 padding: 0px 0px 0px 0px;
291 -webkit-tap-highlight-color:rgba(0,0,0,0);
295 margin: 0px 10px 0px -5px;
300 ul li.img a + a + a {
309 ul li.img a + small + a {
314 ul li.img a + small + a + a {
322 ul li.img a + small + a + a + a {
323 margin-left: 0px !important;
330 font: 14px Helvetica;
331 text-overflow: ellipsis;
339 ul li a + a + a, ul li.img a + a + a + a, ul li.img a + small + a + a + a {
341 font: 13px Helvetica;
343 text-overflow: ellipsis;
354 /* standard mini-label */
358 font: 17px Helvetica;
360 text-overflow: ellipsis;
375 ul li small.counter {
376 font-size: 17px !important;
377 line-height: 13px !important;
379 background: rgb(154,159,170);
381 -webkit-border-radius: 11px;
382 padding: 4px 10px 5px 10px;
383 display: inline !important;
389 ul li.arrow small.counter {
396 /* resize without labels */
408 ul li.arrow small + a {
422 /* background: url(../images/standard-img.png) no-repeat; */
423 display: inline-block;
426 margin: 0px 0px 0px -60px;
427 padding: 0px 0px 0px 0px;
445 color: rgb(183,190,205);
447 border: 1px solid rgb(180,180,180);
450 -webkit-border-radius: 8px;
451 -webkit-box-sizing: border-box;
455 padding: 11px 10px 14px 10px;
458 ul.individual li + li {
465 color: rgb(50,79,133);
467 margin: -11px -10px -14px -10px;
468 padding: 11px 10px 14px 10px;
469 -webkit-border-radius: 8px;
472 ul.individual li a:hover {
480 /* Normal lists and metal */
484 /* 002863 rgb(154,159,170) */
485 background: rgb(0,40,99) url(../images/bglight.png) top left repeat-x;
486 border-top: 1px solid rgb(0,40,99); /* rgb(165,177,186); */
487 text-shadow: #666 0 1px 0;
493 body#normal, body#metal {
496 background-color: rgb(255,255,255);
499 body#normal ul, body#metal ul, body#plastic ul {
500 -webkit-border-radius: 0;
510 background: rgb(180,180,180);
516 /* body#normal ul li {
521 body#normal ul li small {
526 body#normal li, body#metal li {
527 -webkit-border-radius: 0;
535 body#normal h4 + ul {
537 # border-top: 1px solid rgb(152,158,164);
538 border-bottom: 1px solid rgb(113,125,133);
543 border-top: 1px solid rgb(238,238,238);
544 border-bottom: 1px solid rgb(156,158,165);
545 background: url(../images/bgMetal.png) top left repeat-x;
547 text-shadow: #fff 0 1px 0;
556 body#metal ul li a:hover {
560 body#metal ul li:hover small {
565 body#metal ul li a em {
574 body#metal ul li small {
582 body#metal ul li.arrow a small {
588 body#metal ul li.arrow {
589 background: url(../images/bgMetal.png) top left repeat-x,
590 url(../images/chevron_dg.png) right center no-repeat;
598 background: url(../images/blackbg.png) top left repeat-x;
600 padding: 20px 10px 15px 10px;
610 text-shadow: #000 0 1px 0;
617 /***** BUTTONS *****/
621 font: bold 20px/46px Helvetica;
622 text-decoration: none;
624 text-shadow: #000 0 1px 0;
625 border-width: 0px 14px 0px 14px;
630 .green { -webkit-border-image: url(../images/greenButton.png) 0 14 0 14; }
631 .red { -webkit-border-image: url(../images/redButton.png) 0 14 0 14; }
635 text-shadow: #fff 0px 1px 0;
636 -webkit-border-image: url(../images/whiteButton.png) 0 14 0 14;
639 .black { -webkit-border-image: url(../images/grayButton.png) 0 14 0 14; }
654 ul.form li.error { border: 2px solid red; }
655 ul.form li.error + li.error { border-top: 0; }
657 ul.form li:hover { background: #fff; }
659 ul li input[type="text"], ul li input[type="password"], ul li textarea, ul li select {
661 background: #fff url(../.png); /* this is a hack due the default input shadow that iphones uses on textfields */
663 font: normal 17px Helvetica;
665 display: inline-block;
668 -webkit-appearance: textarea;
679 background: transparent url(../images/chevron.png) no-repeat 103% 3px;
680 -webkit-appearance: textfield;
685 ul li input[type="checkbox"], ul li input[type="radio"] {
687 color: rgb(50,79,133);
691 ul li input[type="checkbox"]:after, ul li input[type="radio"]:after {
692 content: attr(title);
693 font: 17px Helvetica;
696 margin: -12px 0 0 17px;
701 /**** INFORMATION FIELDS ****/
704 margin: 10px 0 5px 0;
715 ul.data li p + p { margin-top: 10px; }
727 text-decoration: underline;
747 /* line-height: 18px;*/
752 text-overflow: ellipsis;
758 display: inline-block;
763 /* line-height: 18px; */
766 display: inline-block;
770 /*vertical-align: top;*/
775 /* line-height: 18px; */
776 /* font-weight: bold; */
779 display: inline-block;
786 display: inline-block;
790 /* this is for profiling */
801 background: #fff url(../images/profile-user.png) no-repeat;
802 border: 1px solid #B4B4B4;
805 -webkit-border-radius: 4px;
806 -webkit-box-sizing: border-box;
817 ul.profile li + li h2, ul.profile li + li p {
818 color: rgb(46,55,68);
819 text-shadow: #fff 0 1px 0;
823 ul.profile li + li h2 {
824 font: bold 18px/22px Helvetica;
825 text-overflow: ellipsis;
830 ul.profile li + li p {
831 font: 14px/18px Helvetica;
832 text-overflow: ellipsis;
838 /* any A element inside this kind of field list will scale 62x62 */
849 /***** PLASTIC LISTS *****/
854 background: rgb(173,173,173);
858 -webkit-border-radius: 0;
863 background-color: rgb(173,173,173);
868 -webkit-border-radius: 0;
869 border-top: 1px solid rgb(191,191,191);
870 border-bottom: 1px solid rgb(157,157,157);
874 body#plastic ul li:nth-child(odd) {
875 background-color: rgb(152,152,152);
876 border-top: 1px solid rgb(181,181,181);
877 border-bottom: 1px solid rgb(138,138,138);
881 body#plastic ul + p {
888 body#plastic ul + p strong {
891 text-shadow: #fff 0 1px 0;
894 body#plastic ul li a {
895 text-shadow: rgb(211,211,211) 0 1px 0;
898 body#plastic ul li:nth-child(odd) a {
899 text-shadow: rgb(191,191,191) 0 1px 0;
903 body#plastic ul li small {
905 text-shadow: rgb(211,211,211) 0 1px 0;
908 text-transform: uppercase;
914 /**** MINI & BIG BANNERS ****/
916 #plastic ul.minibanner, #plastic ul.bigbanner {
923 #plastic ul.bigbanner {
924 height: 140px !important;
927 #plastic ul.minibanner li {
928 border: 1px solid rgb(138,138,138);
929 background-color: rgb(152,152,152);
933 -webkit-border-radius: 5px;
937 #plastic ul.bigbanner li {
938 border: 1px solid rgb(138,138,138);
939 background-color: rgb(152,152,152);
943 -webkit-border-radius: 5px;
948 #plastic ul.minibanner li:first-child {
953 #plastic ul.minibanner li a {
961 #plastic ul.bigbanner li a {
978 body#chat div.bubble {
979 margin: 10px 10px 0 0px;
986 body#chat div.right {
995 body#chat div.right p {
996 border-width: 10px 20px 12px 10px;
999 body#chat div.left p {
1000 border-width: 10px 10px 12px 20px;
1005 body#chat div.left p.lime {
1006 -webkit-border-image: url(../images/chat_bubbles_lime_l.png) 10 10 13 19;
1009 body#chat div.left p.lemon {
1010 -webkit-border-image: url(../images/chat_bubbles_lemon_l.png) 10 10 13 19;
1013 body#chat div.left p.orange {
1014 -webkit-border-image: url(../images/chat_bubbles_orange_l.png) 10 10 13 19;
1017 body#chat div.left p.aqua {
1018 -webkit-border-image: url(../images/chat_bubbles_aqua_l.png) 10 10 13 19;
1021 body#chat div.left p.purple {
1022 -webkit-border-image: url(../images/chat_bubbles_purple_l.png) 10 10 13 19;
1025 body#chat div.left p.pink {
1026 -webkit-border-image: url(../images/chat_bubbles_pink_l.png) 10 10 13 19;
1029 body#chat div.left p.graphite {
1030 -webkit-border-image: url(../images/chat_bubbles_graphite_l.png) 10 10 13 19;
1033 body#chat div.left p.clear {
1034 -webkit-border-image: url(../images/chat_bubbles_clear_l.png) 10 10 13 19;
1042 body#chat div.right p.aqua {
1043 -webkit-border-image: url(../images/chat_bubbles_aqua_r.png) 10 19 13 10;
1046 body#chat div.right p.lemon {
1047 -webkit-border-image: url(../images/chat_bubbles_lemon_r.png) 10 19 13 10;
1050 body#chat div.right p.lime {
1051 -webkit-border-image: url(../images/chat_bubbles_lime_r.png) 10 19 13 10;
1054 body#chat div.right p.purple {
1055 -webkit-border-image: url(../images/chat_bubbles_purple_r.png) 10 19 13 10;
1058 body#chat div.right p.pink {
1059 -webkit-border-image: url(../images/chat_bubbles_pink_r.png) 10 19 13 10;
1062 body#chat div.right p.graphite {
1063 -webkit-border-image: url(../images/chat_bubbles_graphite_r.png) 10 19 13 10;
1066 body#chat div.right p.clear {
1067 -webkit-border-image: url(../images/chat_bubbles_clear_r.png) 10 19 13 10;
1076 body#chat div.bubble p {
1082 body#chat div.bubble + p {
1088 padding: 10px 0 0 0;
1097 /**** image grids ****/
1106 margin: 4px 4px 4px 0;
1108 -webkit-border-radius: 0;
1112 border: 1px solid #C0D5DD;
1113 -webkit-border-radius: 0;
1117 margin: 0 0 4px 4px;
1118 background: #F4FBFE url(../images/image-loading.gif) no-repeat center center;
1122 body#images ul li a {
1131 /*** BLANK PAGES ***/
1141 margin: 250px 0 0 0;
1147 /**** ICONFIED LIST ****/
1150 ul li a img.ico, ul li img.ico {
1153 margin: -4px 10px -4px -1px;