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;
50 background-color: #000;
56 margin: 10px 5px 0 5px;
64 text-transform: uppercase;
70 text-decoration: none;
78 /* standard paragraph on body */
80 ul + p, ul.data + p + p, ul.form + p + p {
81 color: rgb(76,86,108);
84 text-shadow: white 0 1px 0;
85 margin: 0 10px 17px 0;
105 background: rgb(109,133,163) url(../images/bgHeader.png) repeat-x top;
106 border-top: 1px solid rgb(205,213,223);
107 border-bottom: 1px solid rgb(46,55,68);
111 -webkit-box-sizing: border-box;
117 font: bold 20px/30px Helvetica;
118 text-shadow: #2d3642 0 -1px 0;
120 text-overflow: ellipsis;
125 margin: 2px 0 0 -24%;
134 font: bold 12px/30px Helvetica;
140 text-shadow: rgb(46,55,68) 0 -1px 0;
141 text-overflow: ellipsis;
142 text-decoration: none;
148 -webkit-border-image: url(../images/toolButton.png) 0 5 0 5;
151 div#header #backButton {
156 border-width: 0 8px 0 14px;
157 -webkit-border-image: url(../images/backButton.png) 0 8 0 14;
163 -webkit-border-image: url(../images/actionButton.png) 0 5 0 5;
173 color: rgb(60,70,80);
183 text-shadow: #C0CBDB 0 1px 0;
184 text-overflow: ellipsis;
195 top: 18px !important;
199 top: 25px !important;
203 div.pre a#Backbutton {
204 left: 6px !important;
211 /***** List (base) ******/
216 border: 1px solid #B4B4B4;
217 font: bold 17px Helvetica;
219 margin: 15px 10px 17px 0;
220 -webkit-border-radius: 8px;
226 border-top: 1px solid #B4B4B4;
227 list-style-type: none;
228 padding: 10px 10px 10px 10px;
233 /* when you have a first LI item on any list */
237 -webkit-border-top-left-radius: 8px;
238 -webkit-border-top-right-radius: 8px;
242 -webkit-border-bottom-left-radius: 8px;
243 -webkit-border-bottom-right-radius: 8px;
247 /* universal arrows */
250 background-image: url(../images/chevron.png);
251 background-position: right center;
252 background-repeat: no-repeat;
256 #plastic ul li.arrow, #metal ul li.arrow {
257 background-image: url(../images/chevron_dg.png);
258 background-position: right center;
259 background-repeat: no-repeat;
264 /* universal links on list */
266 ul li a, li.img a + a {
268 text-decoration: none;
269 text-overflow: ellipsis;
273 padding: 12px 10px 12px 10px;
275 -webkit-tap-highlight-color:rgba(0,0,0,0);
279 margin: -10px 10px -20px -5px;
284 ul li.img a + a + a {
288 margin-bottom: -10px;
293 ul li.img a + small + a {
298 ul li.img a + small + a + a {
301 margin-bottom: -10px;
306 ul li.img a + small + a + a + a {
307 margin-left: 0px !important;
314 font: 14px Helvetica;
315 text-overflow: ellipsis;
323 ul li a + a + a, ul li.img a + a + a + a, ul li.img a + small + a + a + a {
325 font: 13px Helvetica;
327 text-overflow: ellipsis;
338 /* standard mini-label */
342 font: 17px Helvetica;
344 text-overflow: ellipsis;
359 ul li small.counter {
360 font-size: 17px !important;
361 line-height: 13px !important;
363 background: rgb(154,159,170);
365 -webkit-border-radius: 11px;
366 padding: 4px 10px 5px 10px;
367 display: inline !important;
373 ul li.arrow small.counter {
380 /* resize without labels */
392 ul li.arrow small + a {
405 background: url(../images/standard-img.png) no-repeat;
406 display: inline-block;
409 margin: -10px 0 -20px -115px;
427 color: rgb(183,190,205);
429 border: 1px solid rgb(180,180,180);
432 -webkit-border-radius: 8px;
433 -webkit-box-sizing: border-box;
437 padding: 11px 10px 14px 10px;
440 ul.individual li + li {
447 color: rgb(50,79,133);
449 margin: -11px -10px -14px -10px;
450 padding: 11px 10px 14px 10px;
451 -webkit-border-radius: 8px;
454 ul.individual li a:hover {
462 /* Normal lists and metal */
466 background: rgb(154,159,170) url(../images/bglight.png) top left repeat-x;
467 border-top: 1px solid rgb(165,177,186);
468 text-shadow: #666 0 1px 0;
474 body#normal, body#metal {
477 background-color: rgb(255,255,255);
480 body#normal ul, body#metal ul, body#plastic ul {
481 -webkit-border-radius: 0;
491 background: rgb(180,180,180);
501 body#normal ul li small {
506 body#normal li, body#metal li {
507 -webkit-border-radius: 0;
515 body#normal h4 + ul {
516 border-top: 1px solid rgb(152,158,164);
517 border-bottom: 1px solid rgb(113,125,133);
522 border-top: 1px solid rgb(238,238,238);
523 border-bottom: 1px solid rgb(156,158,165);
524 background: url(../images/bgMetal.png) top left repeat-x;
526 text-shadow: #fff 0 1px 0;
535 body#metal ul li a:hover {
539 body#metal ul li:hover small {
544 body#metal ul li a em {
553 body#metal ul li small {
561 body#metal ul li.arrow a small {
567 body#metal ul li.arrow {
568 background: url(../images/bgMetal.png) top left repeat-x,
569 url(../images/chevron_dg.png) right center no-repeat;
577 background: url(../images/blackbg.png) top left repeat-x;
579 padding: 20px 10px 15px 10px;
589 text-shadow: #000 0 1px 0;
596 /***** BUTTONS *****/
600 font: bold 20px/46px Helvetica;
601 text-decoration: none;
603 text-shadow: #000 0 1px 0;
604 border-width: 0px 14px 0px 14px;
609 .green { -webkit-border-image: url(../images/greenButton.png) 0 14 0 14; }
610 .red { -webkit-border-image: url(../images/redButton.png) 0 14 0 14; }
614 text-shadow: #fff 0px 1px 0;
615 -webkit-border-image: url(../images/whiteButton.png) 0 14 0 14;
618 .black { -webkit-border-image: url(../images/grayButton.png) 0 14 0 14; }
633 ul.form li.error { border: 2px solid red; }
634 ul.form li.error + li.error { border-top: 0; }
636 ul.form li:hover { background: #fff; }
638 ul li input[type="text"], ul li input[type="password"], ul li textarea, ul li select {
640 background: #fff url(../.png); /* this is a hack due the default input shadow that iphones uses on textfields */
642 font: normal 17px Helvetica;
644 display: inline-block;
647 -webkit-appearance: textarea;
658 background: transparent url(../images/chevron.png) no-repeat 103% 3px;
659 -webkit-appearance: textfield;
664 ul li input[type="checkbox"], ul li input[type="radio"] {
666 color: rgb(50,79,133);
670 ul li input[type="checkbox"]:after, ul li input[type="radio"]:after {
671 content: attr(title);
672 font: 17px Helvetica;
675 margin: -12px 0 0 17px;
680 /**** INFORMATION FIELDS ****/
683 margin: 10px 0 5px 0;
694 ul.data li p + p { margin-top: 10px; }
706 text-decoration: underline;
718 color: rgb(76,86,108);
726 text-overflow: ellipsis;
736 display: inline-block;
749 display: inline-block;
764 /* this is for profiling */
775 background: #fff url(../images/profile-user.png) no-repeat;
776 border: 1px solid #B4B4B4;
779 -webkit-border-radius: 4px;
780 -webkit-box-sizing: border-box;
791 ul.profile li + li h2, ul.profile li + li p {
792 color: rgb(46,55,68);
793 text-shadow: #fff 0 1px 0;
797 ul.profile li + li h2 {
798 font: bold 18px/22px Helvetica;
799 text-overflow: ellipsis;
804 ul.profile li + li p {
805 font: 14px/18px Helvetica;
806 text-overflow: ellipsis;
812 /* any A element inside this kind of field list will scale 62x62 */
823 /***** PLASTIC LISTS *****/
828 background: rgb(173,173,173);
832 -webkit-border-radius: 0;
837 background-color: rgb(173,173,173);
842 -webkit-border-radius: 0;
843 border-top: 1px solid rgb(191,191,191);
844 border-bottom: 1px solid rgb(157,157,157);
848 body#plastic ul li:nth-child(odd) {
849 background-color: rgb(152,152,152);
850 border-top: 1px solid rgb(181,181,181);
851 border-bottom: 1px solid rgb(138,138,138);
855 body#plastic ul + p {
862 body#plastic ul + p strong {
865 text-shadow: #fff 0 1px 0;
868 body#plastic ul li a {
869 text-shadow: rgb(211,211,211) 0 1px 0;
872 body#plastic ul li:nth-child(odd) a {
873 text-shadow: rgb(191,191,191) 0 1px 0;
877 body#plastic ul li small {
879 text-shadow: rgb(211,211,211) 0 1px 0;
882 text-transform: uppercase;
888 /**** MINI & BIG BANNERS ****/
890 #plastic ul.minibanner, #plastic ul.bigbanner {
897 #plastic ul.bigbanner {
898 height: 140px !important;
901 #plastic ul.minibanner li {
902 border: 1px solid rgb(138,138,138);
903 background-color: rgb(152,152,152);
907 -webkit-border-radius: 5px;
911 #plastic ul.bigbanner li {
912 border: 1px solid rgb(138,138,138);
913 background-color: rgb(152,152,152);
917 -webkit-border-radius: 5px;
922 #plastic ul.minibanner li:first-child {
927 #plastic ul.minibanner li a {
935 #plastic ul.bigbanner li a {
952 body#chat div.bubble {
953 margin: 10px 10px 0 0px;
960 body#chat div.right {
969 body#chat div.right p {
970 border-width: 10px 20px 12px 10px;
973 body#chat div.left p {
974 border-width: 10px 10px 12px 20px;
979 body#chat div.left p.lime {
980 -webkit-border-image: url(../images/chat_bubbles_lime_l.png) 10 10 13 19;
983 body#chat div.left p.lemon {
984 -webkit-border-image: url(../images/chat_bubbles_lemon_l.png) 10 10 13 19;
987 body#chat div.left p.orange {
988 -webkit-border-image: url(../images/chat_bubbles_orange_l.png) 10 10 13 19;
991 body#chat div.left p.aqua {
992 -webkit-border-image: url(../images/chat_bubbles_aqua_l.png) 10 10 13 19;
995 body#chat div.left p.purple {
996 -webkit-border-image: url(../images/chat_bubbles_purple_l.png) 10 10 13 19;
999 body#chat div.left p.pink {
1000 -webkit-border-image: url(../images/chat_bubbles_pink_l.png) 10 10 13 19;
1003 body#chat div.left p.graphite {
1004 -webkit-border-image: url(../images/chat_bubbles_graphite_l.png) 10 10 13 19;
1007 body#chat div.left p.clear {
1008 -webkit-border-image: url(../images/chat_bubbles_clear_l.png) 10 10 13 19;
1016 body#chat div.right p.aqua {
1017 -webkit-border-image: url(../images/chat_bubbles_aqua_r.png) 10 19 13 10;
1020 body#chat div.right p.lemon {
1021 -webkit-border-image: url(../images/chat_bubbles_lemon_r.png) 10 19 13 10;
1024 body#chat div.right p.lime {
1025 -webkit-border-image: url(../images/chat_bubbles_lime_r.png) 10 19 13 10;
1028 body#chat div.right p.purple {
1029 -webkit-border-image: url(../images/chat_bubbles_purple_r.png) 10 19 13 10;
1032 body#chat div.right p.pink {
1033 -webkit-border-image: url(../images/chat_bubbles_pink_r.png) 10 19 13 10;
1036 body#chat div.right p.graphite {
1037 -webkit-border-image: url(../images/chat_bubbles_graphite_r.png) 10 19 13 10;
1040 body#chat div.right p.clear {
1041 -webkit-border-image: url(../images/chat_bubbles_clear_r.png) 10 19 13 10;
1050 body#chat div.bubble p {
1056 body#chat div.bubble + p {
1062 padding: 10px 0 0 0;
1071 /**** image grids ****/
1080 margin: 4px 4px 4px 0;
1082 -webkit-border-radius: 0;
1086 border: 1px solid #C0D5DD;
1087 -webkit-border-radius: 0;
1091 margin: 0 0 4px 4px;
1092 background: #F4FBFE url(../images/image-loading.gif) no-repeat center center;
1096 body#images ul li a {
1105 /*** BLANK PAGES ***/
1115 margin: 250px 0 0 0;
1121 /**** ICONFIED LIST ****/
1124 ul li a img.ico, ul li img.ico {
1127 margin: -4px 10px -4px -1px;