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;
40 /* standard header on body */
42 div#header + h1, ul + h1 {
43 color: rgb(76,86,108);
44 font: bold 18px Helvetica;
45 text-shadow: #fff 0 1px 0;
46 margin: 15px 0 0 10px;
51 /* standard paragraph on body */
53 ul + p, ul.data + p + p, ul.form + p + p {
54 color: rgb(76,86,108);
57 text-shadow: white 0 1px 0;
58 margin: 0 10px 17px 0;
78 background: rgb(109,133,163) url(../images/bgHeader.png) repeat-x top;
79 border-top: 1px solid rgb(205,213,223);
80 border-bottom: 1px solid rgb(46,55,68);
84 -webkit-box-sizing: border-box;
90 font: bold 20px/30px Helvetica;
91 text-shadow: #2d3642 0 -1px 0;
93 text-overflow: ellipsis;
107 font: bold 12px/30px Helvetica;
113 text-shadow: rgb(46,55,68) 0 -1px 0;
114 text-overflow: ellipsis;
115 text-decoration: none;
121 -webkit-border-image: url(../images/toolButton.png) 0 5 0 5;
124 div#header #backButton {
129 border-width: 0 8px 0 14px;
130 -webkit-border-image: url(../images/backButton.png) 0 8 0 14;
136 -webkit-border-image: url(../images/actionButton.png) 0 5 0 5;
146 color: rgb(60,70,80);
156 text-shadow: #C0CBDB 0 1px 0;
157 text-overflow: ellipsis;
168 top: 18px !important;
172 top: 25px !important;
176 div.pre a#Backbutton {
177 left: 6px !important;
184 /***** List (base) ******/
189 border: 1px solid #B4B4B4;
190 font: bold 17px Helvetica;
192 margin: 15px 10px 17px 0;
193 -webkit-border-radius: 8px;
199 border-top: 1px solid #B4B4B4;
200 list-style-type: none;
201 padding: 10px 10px 10px 10px;
206 /* when you have a first LI item on any list */
210 -webkit-border-top-left-radius: 8px;
211 -webkit-border-top-right-radius: 8px;
215 -webkit-border-bottom-left-radius: 8px;
216 -webkit-border-bottom-right-radius: 8px;
220 /* universal arrows */
223 background-image: url(../images/chevron.png);
224 background-position: right center;
225 background-repeat: no-repeat;
229 #plastic ul li.arrow, #metal ul li.arrow {
230 background-image: url(../images/chevron_dg.png);
231 background-position: right center;
232 background-repeat: no-repeat;
237 /* universal links on list */
239 ul li a, li.img a + a {
241 text-decoration: none;
242 text-overflow: ellipsis;
246 padding: 12px 10px 12px 10px;
248 -webkit-tap-highlight-color:rgba(0,0,0,0);
252 margin: -10px 10px -20px -5px;
257 ul li.img a + a + a {
261 margin-bottom: -10px;
266 ul li.img a + small + a {
271 ul li.img a + small + a + a {
274 margin-bottom: -10px;
279 ul li.img a + small + a + a + a {
280 margin-left: 0px !important;
287 font: 14px Helvetica;
288 text-overflow: ellipsis;
296 ul li a + a + a, ul li.img a + a + a + a, ul li.img a + small + a + a + a {
298 font: 13px Helvetica;
300 text-overflow: ellipsis;
311 /* standard mini-label */
315 font: 17px Helvetica;
317 text-overflow: ellipsis;
332 ul li small.counter {
333 font-size: 17px !important;
334 line-height: 13px !important;
336 background: rgb(154,159,170);
338 -webkit-border-radius: 11px;
339 padding: 4px 10px 5px 10px;
340 display: inline !important;
346 ul li.arrow small.counter {
353 /* resize without labels */
365 ul li.arrow small + a {
378 background: url(../images/standard-img.png) no-repeat;
379 display: inline-block;
382 margin: -10px 0 -20px -115px;
400 color: rgb(183,190,205);
402 border: 1px solid rgb(180,180,180);
405 -webkit-border-radius: 8px;
406 -webkit-box-sizing: border-box;
410 padding: 11px 10px 14px 10px;
413 ul.individual li + li {
420 color: rgb(50,79,133);
422 margin: -11px -10px -14px -10px;
423 padding: 11px 10px 14px 10px;
424 -webkit-border-radius: 8px;
427 ul.individual li a:hover {
435 /* Normal lists and metal */
439 background: rgb(154,159,170) url(../images/bglight.png) top left repeat-x;
440 border-top: 1px solid rgb(165,177,186);
441 text-shadow: #666 0 1px 0;
447 body#normal, body#metal {
450 background-color: rgb(255,255,255);
453 body#normal ul, body#metal ul, body#plastic ul {
454 -webkit-border-radius: 0;
464 background: rgb(180,180,180);
474 body#normal ul li small {
479 body#normal li, body#metal li {
480 -webkit-border-radius: 0;
488 body#normal h4 + ul {
489 border-top: 1px solid rgb(152,158,164);
490 border-bottom: 1px solid rgb(113,125,133);
495 border-top: 1px solid rgb(238,238,238);
496 border-bottom: 1px solid rgb(156,158,165);
497 background: url(../images/bgMetal.png) top left repeat-x;
499 text-shadow: #fff 0 1px 0;
508 body#metal ul li a:hover {
512 body#metal ul li:hover small {
517 body#metal ul li a em {
526 body#metal ul li small {
534 body#metal ul li.arrow a small {
540 body#metal ul li.arrow {
541 background: url(../images/bgMetal.png) top left repeat-x,
542 url(../images/chevron_dg.png) right center no-repeat;
550 background: url(../images/blackbg.png) top left repeat-x;
552 padding: 20px 10px 15px 10px;
562 text-shadow: #000 0 1px 0;
569 /***** BUTTONS *****/
573 font: bold 20px/46px Helvetica;
574 text-decoration: none;
576 text-shadow: #000 0 1px 0;
577 border-width: 0px 14px 0px 14px;
582 .green { -webkit-border-image: url(../images/greenButton.png) 0 14 0 14; }
583 .red { -webkit-border-image: url(../images/redButton.png) 0 14 0 14; }
587 text-shadow: #fff 0px 1px 0;
588 -webkit-border-image: url(../images/whiteButton.png) 0 14 0 14;
591 .black { -webkit-border-image: url(../images/grayButton.png) 0 14 0 14; }
606 ul.form li.error { border: 2px solid red; }
607 ul.form li.error + li.error { border-top: 0; }
609 ul.form li:hover { background: #fff; }
611 ul li input[type="text"], ul li input[type="password"], ul li textarea, ul li select {
613 background: #fff url(../.png); /* this is a hack due the default input shadow that iphones uses on textfields */
615 font: normal 17px Helvetica;
617 display: inline-block;
620 -webkit-appearance: textarea;
631 background: transparent url(../images/chevron.png) no-repeat 103% 3px;
632 -webkit-appearance: textfield;
637 ul li input[type="checkbox"], ul li input[type="radio"] {
639 color: rgb(50,79,133);
643 ul li input[type="checkbox"]:after, ul li input[type="radio"]:after {
644 content: attr(title);
645 font: 17px Helvetica;
648 margin: -12px 0 0 17px;
653 /**** INFORMATION FIELDS ****/
656 margin: 10px 0 5px 0;
667 ul.data li p + p { margin-top: 10px; }
679 text-decoration: underline;
691 color: rgb(76,86,108);
699 text-overflow: ellipsis;
709 display: inline-block;
722 display: inline-block;
737 /* this is for profiling */
748 background: #fff url(../images/profile-user.png) no-repeat;
749 border: 1px solid #B4B4B4;
752 -webkit-border-radius: 4px;
753 -webkit-box-sizing: border-box;
764 ul.profile li + li h2, ul.profile li + li p {
765 color: rgb(46,55,68);
766 text-shadow: #fff 0 1px 0;
770 ul.profile li + li h2 {
771 font: bold 18px/22px Helvetica;
772 text-overflow: ellipsis;
777 ul.profile li + li p {
778 font: 14px/18px Helvetica;
779 text-overflow: ellipsis;
785 /* any A element inside this kind of field list will scale 62x62 */
796 /***** PLASTIC LISTS *****/
801 background: rgb(173,173,173);
805 -webkit-border-radius: 0;
810 background-color: rgb(173,173,173);
815 -webkit-border-radius: 0;
816 border-top: 1px solid rgb(191,191,191);
817 border-bottom: 1px solid rgb(157,157,157);
821 body#plastic ul li:nth-child(odd) {
822 background-color: rgb(152,152,152);
823 border-top: 1px solid rgb(181,181,181);
824 border-bottom: 1px solid rgb(138,138,138);
828 body#plastic ul + p {
835 body#plastic ul + p strong {
838 text-shadow: #fff 0 1px 0;
841 body#plastic ul li a {
842 text-shadow: rgb(211,211,211) 0 1px 0;
845 body#plastic ul li:nth-child(odd) a {
846 text-shadow: rgb(191,191,191) 0 1px 0;
850 body#plastic ul li small {
852 text-shadow: rgb(211,211,211) 0 1px 0;
855 text-transform: uppercase;
861 /**** MINI & BIG BANNERS ****/
863 #plastic ul.minibanner, #plastic ul.bigbanner {
870 #plastic ul.bigbanner {
871 height: 140px !important;
874 #plastic ul.minibanner li {
875 border: 1px solid rgb(138,138,138);
876 background-color: rgb(152,152,152);
880 -webkit-border-radius: 5px;
884 #plastic ul.bigbanner li {
885 border: 1px solid rgb(138,138,138);
886 background-color: rgb(152,152,152);
890 -webkit-border-radius: 5px;
895 #plastic ul.minibanner li:first-child {
900 #plastic ul.minibanner li a {
908 #plastic ul.bigbanner li a {
925 body#chat div.bubble {
926 margin: 10px 10px 0 0px;
933 body#chat div.right {
942 body#chat div.right p {
943 border-width: 10px 20px 12px 10px;
946 body#chat div.left p {
947 border-width: 10px 10px 12px 20px;
952 body#chat div.left p.lime {
953 -webkit-border-image: url(../images/chat_bubbles_lime_l.png) 10 10 13 19;
956 body#chat div.left p.lemon {
957 -webkit-border-image: url(../images/chat_bubbles_lemon_l.png) 10 10 13 19;
960 body#chat div.left p.orange {
961 -webkit-border-image: url(../images/chat_bubbles_orange_l.png) 10 10 13 19;
964 body#chat div.left p.aqua {
965 -webkit-border-image: url(../images/chat_bubbles_aqua_l.png) 10 10 13 19;
968 body#chat div.left p.purple {
969 -webkit-border-image: url(../images/chat_bubbles_purple_l.png) 10 10 13 19;
972 body#chat div.left p.pink {
973 -webkit-border-image: url(../images/chat_bubbles_pink_l.png) 10 10 13 19;
976 body#chat div.left p.graphite {
977 -webkit-border-image: url(../images/chat_bubbles_graphite_l.png) 10 10 13 19;
980 body#chat div.left p.clear {
981 -webkit-border-image: url(../images/chat_bubbles_clear_l.png) 10 10 13 19;
989 body#chat div.right p.aqua {
990 -webkit-border-image: url(../images/chat_bubbles_aqua_r.png) 10 19 13 10;
993 body#chat div.right p.lemon {
994 -webkit-border-image: url(../images/chat_bubbles_lemon_r.png) 10 19 13 10;
997 body#chat div.right p.lime {
998 -webkit-border-image: url(../images/chat_bubbles_lime_r.png) 10 19 13 10;
1001 body#chat div.right p.purple {
1002 -webkit-border-image: url(../images/chat_bubbles_purple_r.png) 10 19 13 10;
1005 body#chat div.right p.pink {
1006 -webkit-border-image: url(../images/chat_bubbles_pink_r.png) 10 19 13 10;
1009 body#chat div.right p.graphite {
1010 -webkit-border-image: url(../images/chat_bubbles_graphite_r.png) 10 19 13 10;
1013 body#chat div.right p.clear {
1014 -webkit-border-image: url(../images/chat_bubbles_clear_r.png) 10 19 13 10;
1023 body#chat div.bubble p {
1029 body#chat div.bubble + p {
1035 padding: 10px 0 0 0;
1044 /**** image grids ****/
1053 margin: 4px 4px 4px 0;
1055 -webkit-border-radius: 0;
1059 border: 1px solid #C0D5DD;
1060 -webkit-border-radius: 0;
1064 margin: 0 0 4px 4px;
1065 background: #F4FBFE url(../images/image-loading.gif) no-repeat center center;
1069 body#images ul li a {
1078 /*** BLANK PAGES ***/
1088 margin: 250px 0 0 0;
1094 /**** ICONFIED LIST ****/
1097 ul li a img.ico, ul li img.ico {
1100 margin: -4px 10px -4px -1px;