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;
65 vertical-align: bottom;
74 text-decoration: none;
82 /* standard paragraph on body */
84 ul + p, ul.data + p + p, ul.form + p + p {
85 color: rgb(76,86,108);
88 text-shadow: white 0 1px 0;
89 margin: 0 10px 17px 0;
109 background: rgb(109,133,163) url(../images/bgHeader.png) repeat-x top;
110 border-top: 1px solid rgb(205,213,223);
111 border-bottom: 1px solid rgb(46,55,68);
115 //position: absolute;
116 -webkit-box-sizing: border-box;
122 font: bold 20px/30px Helvetica;
123 text-shadow: #2d3642 0 -1px 0;
125 text-overflow: ellipsis;
130 margin: 2px 0 0 -24%;
139 font: bold 12px/30px Helvetica;
145 text-shadow: rgb(46,55,68) 0 -1px 0;
146 text-overflow: ellipsis;
147 text-decoration: none;
153 -webkit-border-image: url(../images/toolButton.png) 0 5 0 5;
156 div#header #backButton {
161 border-width: 0 8px 0 14px;
162 -webkit-border-image: url(../images/backButton.png) 0 8 0 14;
168 -webkit-border-image: url(../images/actionButton.png) 0 5 0 5;
178 color: rgb(60,70,80);
188 text-shadow: #C0CBDB 0 1px 0;
189 text-overflow: ellipsis;
200 top: 18px !important;
204 top: 25px !important;
208 div.pre a#Backbutton {
209 left: 6px !important;
216 /***** List (base) ******/
221 border: 1px solid #B4B4B4;
222 font: normal 17px Helvetica;
224 margin: 15px 10px 17px 0;
225 -webkit-border-radius: 8px;
232 list-style-type: none;
233 // padding: 10px 10px 10px 10px;
234 // border: 1px solid #B4B4B4;
240 list-style-type: none;
241 padding: 10px 10px 10px 10px;
242 border: 1px solid #B4B4B4;
244 -webkit-tap-highlight-color:rgba(0,0,0,0);
249 /* when you have a first LI item on any list */
253 -webkit-border-top-left-radius: 8px;
254 -webkit-border-top-right-radius: 8px;
258 -webkit-border-bottom-left-radius: 8px;
259 -webkit-border-bottom-right-radius: 8px;
263 /* universal arrows */
266 border-bottom: 1px solid rgb(180,180,180);
270 background-image: url(../images/chevron.png);
271 background-position: right center;
272 background-repeat: no-repeat;
273 border: 1px solid rgb(180,180,180);
277 #plastic ul li.arrow, #metal ul li.arrow {
278 background-image: url(../images/chevron_dg.png);
279 background-position: right center;
280 background-repeat: no-repeat;
285 /* universal links on list */
287 ul li a, li.img a + a {
289 text-decoration: none;
290 text-overflow: ellipsis;
294 padding: 0px 0px 0px 0px;
296 -webkit-tap-highlight-color:rgba(0,0,0,0);
300 margin: 0px 10px 0px -5px;
305 ul li.img a + a + a {
314 ul li.img a + small + a {
319 ul li.img a + small + a + a {
327 ul li.img a + small + a + a + a {
328 margin-left: 0px !important;
335 font: 14px Helvetica;
336 text-overflow: ellipsis;
344 ul li a + a + a, ul li.img a + a + a + a, ul li.img a + small + a + a + a {
346 font: 13px Helvetica;
348 text-overflow: ellipsis;
359 /* standard mini-label */
363 font: 17px Helvetica;
365 text-overflow: ellipsis;
380 ul li small.counter {
381 font-size: 17px !important;
382 line-height: 13px !important;
384 background: rgb(154,159,170);
386 -webkit-border-radius: 11px;
387 padding: 4px 10px 5px 10px;
388 display: inline !important;
394 ul li.arrow small.counter {
401 /* resize without labels */
413 ul li.arrow small + a {
427 /* background: url(../images/standard-img.png) no-repeat; */
428 display: inline-block;
431 margin: 0px 0px 0px -60px;
432 padding: 0px 0px 0px 0px;
450 color: rgb(183,190,205);
452 border: 1px solid rgb(180,180,180);
455 -webkit-border-radius: 8px;
456 -webkit-box-sizing: border-box;
460 padding: 11px 10px 14px 10px;
463 ul.individual li + li {
470 color: rgb(50,79,133);
472 margin: -11px -10px -14px -10px;
473 padding: 11px 10px 14px 10px;
474 -webkit-border-radius: 8px;
477 ul.individual li a:hover {
485 /* Normal lists and metal */
489 /* 002863 rgb(154,159,170) */
490 background: rgb(0,40,99) url(../images/bglight.png) top left repeat-x;
491 border-top: 0px solid rgb(0,40,99); /* rgb(165,177,186); */
492 text-shadow: #666 0 1px 0;
498 body#normal, body#metal {
501 background-color: rgb(255,255,255);
504 body#normal ul, body#metal ul, body#plastic ul {
505 -webkit-border-radius: 0;
515 background: rgb(180,180,180);
521 /* body#normal ul li {
526 body#normal ul li small {
531 body#normal li, body#metal li {
532 -webkit-border-radius: 0;
540 body#normal h4 + ul {
541 border-top: 0px solid rgb(113,125,133);
542 border-bottom: 0px solid rgb(113,125,133);
547 border-top: 1px solid rgb(238,238,238);
548 border-bottom: 1px solid rgb(156,158,165);
549 background: url(../images/bgMetal.png) top left repeat-x;
551 text-shadow: #fff 0 1px 0;
560 body#metal ul li a:hover {
564 body#metal ul li:hover small {
569 body#metal ul li a em {
578 body#metal ul li small {
586 body#metal ul li.arrow a small {
592 body#metal ul li.arrow {
593 background: url(../images/bgMetal.png) top left repeat-x,
594 url(../images/chevron_dg.png) right center no-repeat;
602 background: url(../images/blackbg.png) top left repeat-x;
604 padding: 20px 10px 15px 10px;
614 text-shadow: #000 0 1px 0;
621 /***** BUTTONS *****/
625 font: bold 20px/46px Helvetica;
626 text-decoration: none;
628 text-shadow: #000 0 1px 0;
629 border-width: 0px 14px 0px 14px;
634 .green { -webkit-border-image: url(../images/greenButton.png) 0 14 0 14; }
635 .red { -webkit-border-image: url(../images/redButton.png) 0 14 0 14; }
639 text-shadow: #fff 0px 1px 0;
640 -webkit-border-image: url(../images/whiteButton.png) 0 14 0 14;
643 .black { -webkit-border-image: url(../images/grayButton.png) 0 14 0 14; }
658 ul.form li.error { border: 2px solid red; }
659 ul.form li.error + li.error { border-top: 0; }
661 ul.form li:hover { background: #fff; }
663 ul li input[type="text"], ul li input[type="password"], ul li textarea, ul li select {
665 background: #fff url(../.png); /* this is a hack due the default input shadow that iphones uses on textfields */
667 font: normal 17px Helvetica;
669 display: inline-block;
672 -webkit-appearance: textarea;
683 background: transparent url(../images/chevron.png) no-repeat 103% 3px;
684 -webkit-appearance: textfield;
689 ul li input[type="checkbox"], ul li input[type="radio"] {
691 color: rgb(50,79,133);
695 ul li input[type="checkbox"]:after, ul li input[type="radio"]:after {
696 content: attr(title);
697 font: 17px Helvetica;
700 margin: -12px 0 0 17px;
705 /**** INFORMATION FIELDS ****/
708 margin: 10px 0 5px 0;
719 ul.data li p + p { margin-top: 10px; }
731 text-decoration: underline;
751 /* line-height: 18px;*/
756 text-overflow: ellipsis;
762 display: inline-block;
767 /* line-height: 18px; */
770 display: inline-block;
774 /*vertical-align: top;*/
779 /* line-height: 18px; */
780 /* font-weight: bold; */
783 display: inline-block;
790 display: inline-block;
794 /* this is for profiling */
805 background: #fff url(../images/profile-user.png) no-repeat;
806 border: 1px solid #B4B4B4;
809 -webkit-border-radius: 4px;
810 -webkit-box-sizing: border-box;
821 ul.profile li + li h2, ul.profile li + li p {
822 color: rgb(46,55,68);
823 text-shadow: #fff 0 1px 0;
827 ul.profile li + li h2 {
828 font: bold 18px/22px Helvetica;
829 text-overflow: ellipsis;
834 ul.profile li + li p {
835 font: 14px/18px Helvetica;
836 text-overflow: ellipsis;
842 /* any A element inside this kind of field list will scale 62x62 */
853 /***** PLASTIC LISTS *****/
858 background: rgb(173,173,173);
862 -webkit-border-radius: 0;
867 background-color: rgb(173,173,173);
872 -webkit-border-radius: 0;
873 border-top: 1px solid rgb(191,191,191);
874 border-bottom: 1px solid rgb(157,157,157);
878 body#plastic ul li:nth-child(odd) {
879 background-color: rgb(152,152,152);
880 border-top: 1px solid rgb(181,181,181);
881 border-bottom: 1px solid rgb(138,138,138);
885 body#plastic ul + p {
892 body#plastic ul + p strong {
895 text-shadow: #fff 0 1px 0;
898 body#plastic ul li a {
899 text-shadow: rgb(211,211,211) 0 1px 0;
902 body#plastic ul li:nth-child(odd) a {
903 text-shadow: rgb(191,191,191) 0 1px 0;
907 body#plastic ul li small {
909 text-shadow: rgb(211,211,211) 0 1px 0;
912 text-transform: uppercase;
918 /**** MINI & BIG BANNERS ****/
920 #plastic ul.minibanner, #plastic ul.bigbanner {
927 #plastic ul.bigbanner {
928 height: 140px !important;
931 #plastic ul.minibanner li {
932 border: 1px solid rgb(138,138,138);
933 background-color: rgb(152,152,152);
937 -webkit-border-radius: 5px;
941 #plastic ul.bigbanner li {
942 border: 1px solid rgb(138,138,138);
943 background-color: rgb(152,152,152);
947 -webkit-border-radius: 5px;
952 #plastic ul.minibanner li:first-child {
957 #plastic ul.minibanner li a {
965 #plastic ul.bigbanner li a {
982 body#chat div.bubble {
983 margin: 10px 10px 0 0px;
990 body#chat div.right {
999 body#chat div.right p {
1000 border-width: 10px 20px 12px 10px;
1003 body#chat div.left p {
1004 border-width: 10px 10px 12px 20px;
1009 body#chat div.left p.lime {
1010 -webkit-border-image: url(../images/chat_bubbles_lime_l.png) 10 10 13 19;
1013 body#chat div.left p.lemon {
1014 -webkit-border-image: url(../images/chat_bubbles_lemon_l.png) 10 10 13 19;
1017 body#chat div.left p.orange {
1018 -webkit-border-image: url(../images/chat_bubbles_orange_l.png) 10 10 13 19;
1021 body#chat div.left p.aqua {
1022 -webkit-border-image: url(../images/chat_bubbles_aqua_l.png) 10 10 13 19;
1025 body#chat div.left p.purple {
1026 -webkit-border-image: url(../images/chat_bubbles_purple_l.png) 10 10 13 19;
1029 body#chat div.left p.pink {
1030 -webkit-border-image: url(../images/chat_bubbles_pink_l.png) 10 10 13 19;
1033 body#chat div.left p.graphite {
1034 -webkit-border-image: url(../images/chat_bubbles_graphite_l.png) 10 10 13 19;
1037 body#chat div.left p.clear {
1038 -webkit-border-image: url(../images/chat_bubbles_clear_l.png) 10 10 13 19;
1046 body#chat div.right p.aqua {
1047 -webkit-border-image: url(../images/chat_bubbles_aqua_r.png) 10 19 13 10;
1050 body#chat div.right p.lemon {
1051 -webkit-border-image: url(../images/chat_bubbles_lemon_r.png) 10 19 13 10;
1054 body#chat div.right p.lime {
1055 -webkit-border-image: url(../images/chat_bubbles_lime_r.png) 10 19 13 10;
1058 body#chat div.right p.purple {
1059 -webkit-border-image: url(../images/chat_bubbles_purple_r.png) 10 19 13 10;
1062 body#chat div.right p.pink {
1063 -webkit-border-image: url(../images/chat_bubbles_pink_r.png) 10 19 13 10;
1066 body#chat div.right p.graphite {
1067 -webkit-border-image: url(../images/chat_bubbles_graphite_r.png) 10 19 13 10;
1070 body#chat div.right p.clear {
1071 -webkit-border-image: url(../images/chat_bubbles_clear_r.png) 10 19 13 10;
1080 body#chat div.bubble p {
1086 body#chat div.bubble + p {
1092 padding: 10px 0 0 0;
1101 /**** image grids ****/
1110 margin: 4px 4px 4px 0;
1112 -webkit-border-radius: 0;
1116 border: 1px solid #C0D5DD;
1117 -webkit-border-radius: 0;
1121 margin: 0 0 4px 4px;
1122 background: #F4FBFE url(../images/image-loading.gif) no-repeat center center;
1126 body#images ul li a {
1135 /*** BLANK PAGES ***/
1145 margin: 250px 0 0 0;
1151 /**** ICONFIED LIST ****/
1154 ul li a img.ico, ul li img.ico {
1157 margin: -4px 10px -4px -1px;