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: bold 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;
241 /* when you have a first LI item on any list */
245 -webkit-border-top-left-radius: 8px;
246 -webkit-border-top-right-radius: 8px;
250 -webkit-border-bottom-left-radius: 8px;
251 -webkit-border-bottom-right-radius: 8px;
255 /* universal arrows */
258 background-image: url(../images/chevron.png);
259 background-position: right center;
260 background-repeat: no-repeat;
261 border: 1px solid rgb(180,180,180);
265 #plastic ul li.arrow, #metal ul li.arrow {
266 background-image: url(../images/chevron_dg.png);
267 background-position: right center;
268 background-repeat: no-repeat;
273 /* universal links on list */
275 ul li a, li.img a + a {
277 text-decoration: none;
278 text-overflow: ellipsis;
282 padding: 0px 0px 0px 0px;
284 -webkit-tap-highlight-color:rgba(0,0,0,0);
288 margin: 0px 10px 0px -5px;
293 ul li.img a + a + a {
302 ul li.img a + small + a {
307 ul li.img a + small + a + a {
315 ul li.img a + small + a + a + a {
316 margin-left: 0px !important;
323 font: 14px Helvetica;
324 text-overflow: ellipsis;
332 ul li a + a + a, ul li.img a + a + a + a, ul li.img a + small + a + a + a {
334 font: 13px Helvetica;
336 text-overflow: ellipsis;
347 /* standard mini-label */
351 font: 17px Helvetica;
353 text-overflow: ellipsis;
368 ul li small.counter {
369 font-size: 17px !important;
370 line-height: 13px !important;
372 background: rgb(154,159,170);
374 -webkit-border-radius: 11px;
375 padding: 4px 10px 5px 10px;
376 display: inline !important;
382 ul li.arrow small.counter {
389 /* resize without labels */
401 ul li.arrow small + a {
415 /* background: url(../images/standard-img.png) no-repeat; */
416 display: inline-block;
419 margin: 0px 0px 0px -60px;
420 padding: 0px 0px 0px 0px;
438 color: rgb(183,190,205);
440 border: 1px solid rgb(180,180,180);
443 -webkit-border-radius: 8px;
444 -webkit-box-sizing: border-box;
448 padding: 11px 10px 14px 10px;
451 ul.individual li + li {
458 color: rgb(50,79,133);
460 margin: -11px -10px -14px -10px;
461 padding: 11px 10px 14px 10px;
462 -webkit-border-radius: 8px;
465 ul.individual li a:hover {
473 /* Normal lists and metal */
477 /* 002863 rgb(154,159,170) */
478 background: rgb(0,40,99) url(../images/bglight.png) top left repeat-x;
479 border-top: 1px solid rgb(0,40,99); /* rgb(165,177,186); */
480 text-shadow: #666 0 1px 0;
486 body#normal, body#metal {
489 background-color: rgb(255,255,255);
492 body#normal ul, body#metal ul, body#plastic ul {
493 -webkit-border-radius: 0;
503 background: rgb(180,180,180);
513 body#normal ul li small {
518 body#normal li, body#metal li {
519 -webkit-border-radius: 0;
527 body#normal h4 + ul {
529 # border-top: 1px solid rgb(152,158,164);
530 border-bottom: 1px solid rgb(113,125,133);
535 border-top: 1px solid rgb(238,238,238);
536 border-bottom: 1px solid rgb(156,158,165);
537 background: url(../images/bgMetal.png) top left repeat-x;
539 text-shadow: #fff 0 1px 0;
548 body#metal ul li a:hover {
552 body#metal ul li:hover small {
557 body#metal ul li a em {
566 body#metal ul li small {
574 body#metal ul li.arrow a small {
580 body#metal ul li.arrow {
581 background: url(../images/bgMetal.png) top left repeat-x,
582 url(../images/chevron_dg.png) right center no-repeat;
590 background: url(../images/blackbg.png) top left repeat-x;
592 padding: 20px 10px 15px 10px;
602 text-shadow: #000 0 1px 0;
609 /***** BUTTONS *****/
613 font: bold 20px/46px Helvetica;
614 text-decoration: none;
616 text-shadow: #000 0 1px 0;
617 border-width: 0px 14px 0px 14px;
622 .green { -webkit-border-image: url(../images/greenButton.png) 0 14 0 14; }
623 .red { -webkit-border-image: url(../images/redButton.png) 0 14 0 14; }
627 text-shadow: #fff 0px 1px 0;
628 -webkit-border-image: url(../images/whiteButton.png) 0 14 0 14;
631 .black { -webkit-border-image: url(../images/grayButton.png) 0 14 0 14; }
646 ul.form li.error { border: 2px solid red; }
647 ul.form li.error + li.error { border-top: 0; }
649 ul.form li:hover { background: #fff; }
651 ul li input[type="text"], ul li input[type="password"], ul li textarea, ul li select {
653 background: #fff url(../.png); /* this is a hack due the default input shadow that iphones uses on textfields */
655 font: normal 17px Helvetica;
657 display: inline-block;
660 -webkit-appearance: textarea;
671 background: transparent url(../images/chevron.png) no-repeat 103% 3px;
672 -webkit-appearance: textfield;
677 ul li input[type="checkbox"], ul li input[type="radio"] {
679 color: rgb(50,79,133);
683 ul li input[type="checkbox"]:after, ul li input[type="radio"]:after {
684 content: attr(title);
685 font: 17px Helvetica;
688 margin: -12px 0 0 17px;
693 /**** INFORMATION FIELDS ****/
696 margin: 10px 0 5px 0;
707 ul.data li p + p { margin-top: 10px; }
719 text-decoration: underline;
731 color: rgb(76,86,108);
739 text-overflow: ellipsis;
749 display: inline-block;
762 display: inline-block;
774 display: inline-block;
778 /* this is for profiling */
789 background: #fff url(../images/profile-user.png) no-repeat;
790 border: 1px solid #B4B4B4;
793 -webkit-border-radius: 4px;
794 -webkit-box-sizing: border-box;
805 ul.profile li + li h2, ul.profile li + li p {
806 color: rgb(46,55,68);
807 text-shadow: #fff 0 1px 0;
811 ul.profile li + li h2 {
812 font: bold 18px/22px Helvetica;
813 text-overflow: ellipsis;
818 ul.profile li + li p {
819 font: 14px/18px Helvetica;
820 text-overflow: ellipsis;
826 /* any A element inside this kind of field list will scale 62x62 */
837 /***** PLASTIC LISTS *****/
842 background: rgb(173,173,173);
846 -webkit-border-radius: 0;
851 background-color: rgb(173,173,173);
856 -webkit-border-radius: 0;
857 border-top: 1px solid rgb(191,191,191);
858 border-bottom: 1px solid rgb(157,157,157);
862 body#plastic ul li:nth-child(odd) {
863 background-color: rgb(152,152,152);
864 border-top: 1px solid rgb(181,181,181);
865 border-bottom: 1px solid rgb(138,138,138);
869 body#plastic ul + p {
876 body#plastic ul + p strong {
879 text-shadow: #fff 0 1px 0;
882 body#plastic ul li a {
883 text-shadow: rgb(211,211,211) 0 1px 0;
886 body#plastic ul li:nth-child(odd) a {
887 text-shadow: rgb(191,191,191) 0 1px 0;
891 body#plastic ul li small {
893 text-shadow: rgb(211,211,211) 0 1px 0;
896 text-transform: uppercase;
902 /**** MINI & BIG BANNERS ****/
904 #plastic ul.minibanner, #plastic ul.bigbanner {
911 #plastic ul.bigbanner {
912 height: 140px !important;
915 #plastic ul.minibanner li {
916 border: 1px solid rgb(138,138,138);
917 background-color: rgb(152,152,152);
921 -webkit-border-radius: 5px;
925 #plastic ul.bigbanner li {
926 border: 1px solid rgb(138,138,138);
927 background-color: rgb(152,152,152);
931 -webkit-border-radius: 5px;
936 #plastic ul.minibanner li:first-child {
941 #plastic ul.minibanner li a {
949 #plastic ul.bigbanner li a {
966 body#chat div.bubble {
967 margin: 10px 10px 0 0px;
974 body#chat div.right {
983 body#chat div.right p {
984 border-width: 10px 20px 12px 10px;
987 body#chat div.left p {
988 border-width: 10px 10px 12px 20px;
993 body#chat div.left p.lime {
994 -webkit-border-image: url(../images/chat_bubbles_lime_l.png) 10 10 13 19;
997 body#chat div.left p.lemon {
998 -webkit-border-image: url(../images/chat_bubbles_lemon_l.png) 10 10 13 19;
1001 body#chat div.left p.orange {
1002 -webkit-border-image: url(../images/chat_bubbles_orange_l.png) 10 10 13 19;
1005 body#chat div.left p.aqua {
1006 -webkit-border-image: url(../images/chat_bubbles_aqua_l.png) 10 10 13 19;
1009 body#chat div.left p.purple {
1010 -webkit-border-image: url(../images/chat_bubbles_purple_l.png) 10 10 13 19;
1013 body#chat div.left p.pink {
1014 -webkit-border-image: url(../images/chat_bubbles_pink_l.png) 10 10 13 19;
1017 body#chat div.left p.graphite {
1018 -webkit-border-image: url(../images/chat_bubbles_graphite_l.png) 10 10 13 19;
1021 body#chat div.left p.clear {
1022 -webkit-border-image: url(../images/chat_bubbles_clear_l.png) 10 10 13 19;
1030 body#chat div.right p.aqua {
1031 -webkit-border-image: url(../images/chat_bubbles_aqua_r.png) 10 19 13 10;
1034 body#chat div.right p.lemon {
1035 -webkit-border-image: url(../images/chat_bubbles_lemon_r.png) 10 19 13 10;
1038 body#chat div.right p.lime {
1039 -webkit-border-image: url(../images/chat_bubbles_lime_r.png) 10 19 13 10;
1042 body#chat div.right p.purple {
1043 -webkit-border-image: url(../images/chat_bubbles_purple_r.png) 10 19 13 10;
1046 body#chat div.right p.pink {
1047 -webkit-border-image: url(../images/chat_bubbles_pink_r.png) 10 19 13 10;
1050 body#chat div.right p.graphite {
1051 -webkit-border-image: url(../images/chat_bubbles_graphite_r.png) 10 19 13 10;
1054 body#chat div.right p.clear {
1055 -webkit-border-image: url(../images/chat_bubbles_clear_r.png) 10 19 13 10;
1064 body#chat div.bubble p {
1070 body#chat div.bubble + p {
1076 padding: 10px 0 0 0;
1085 /**** image grids ****/
1094 margin: 4px 4px 4px 0;
1096 -webkit-border-radius: 0;
1100 border: 1px solid #C0D5DD;
1101 -webkit-border-radius: 0;
1105 margin: 0 0 4px 4px;
1106 background: #F4FBFE url(../images/image-loading.gif) no-repeat center center;
1110 body#images ul li a {
1119 /*** BLANK PAGES ***/
1129 margin: 250px 0 0 0;
1135 /**** ICONFIED LIST ****/
1138 ul li a img.ico, ul li img.ico {
1141 margin: -4px 10px -4px -1px;