1 /* iPhone.css - iPhone Interface Cascading Style Sheet
2 * Copyright (C) 2007-2008 Jay Freeman (saurik)
6 * Redistribution and use in source and binary
7 * forms, with or without modification, are permitted
8 * provided that the following conditions are met:
10 * 1. Redistributions of source code must retain the
11 * above copyright notice, this list of conditions
12 * and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the
14 * above copyright notice, this list of conditions
15 * and the following disclaimer in the documentation
16 * and/or other materials provided with the
18 * 3. The name of the author may not be used to endorse
19 * or promote products derived from this software
20 * without specific prior written permission.
22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS''
23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
24 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
29 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
32 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
33 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
34 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
35 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 -webkit-border-radius: 0;
56 box-sizing: border-box
;
57 -moz-box-sizing: border-box
;
58 -ms-box-sizing: border-box
;
59 -webkit-box-sizing: border-box
;
67 text-decoration: none
;
68 vertical-align: baseline
;
83 border: 1px solid
#999999;
88 font-family: Helvetica
;
89 -webkit-text-size-adjust: none
;
90 -webkit-user-select: none
;
94 background-color: #ffffff;
98 background: #c7ced5 url
(cydia://uikit-image
/UIPinstripe
.png
);
113 text-underline-style: dotted
;
121 font-family: monospace
;
125 letter-spacing: -2px;
138 background: url
(toolbar.png) #6d84a2 repeat-x
;
139 border-bottom: 1px solid
#2d3642;
144 dialog
> toolbar
> h1
{
149 margin: 1px auto
0 auto
;
150 text-shadow: rgba
(0, 0, 0, 0.4) 0px -1px 0;
155 /* (back|forward)-button {{{ */
156 dialog
> toolbar
> a
.back-button
,
157 dialog
> toolbar
> a
.forward-button
{
165 text-decoration: none
;
166 text-shadow: rgba
(0, 0, 0, 0.6) 0px -1px 0;
170 dialog
> toolbar
> a
.back-button
{
171 -webkit-border-image: url
(backButton.png) 0 8 0 14;
172 border-width: 0 8px 0 14px;
176 dialog
> toolbar
> a
.forward-button
{
177 -webkit-border-image: url
(toolButton.png) 0 5 0 5;
184 background-color: #c7ced5;
185 border-bottom: 1px solid
#999999;
186 border-top: 1px solid
#999999;
193 panel
> fieldset
> div
> hr
,
195 border-top: 1px dashed
#999999;
199 background-color: #ffffff;
200 border: 1px solid
#999999;
201 -webkit-border-radius: 9px;
206 panel
> input
[type
="submit"] {
207 /*-webkit-border-image: url(whiteButton.png) 0 12 0 12;
208 -webkit-border-radius: 0;
209 border-width: 0px 12px;*/
223 background: #a7b3bc url
(cydia://uikit-image
/UISectionListHeaderBackground
.png
);
224 background-repeat: repeat-x no-repeat-y
;
226 padding: 4px 15px 1px 15px;
231 text-shadow: rgba
(0, 0, 0, 0.5) 0px 1px 0;
236 margin: 13px 0 -4px 24px;
241 text-shadow: rgba
(255, 255, 255, 0.75) 1px 1px 0;
244 panel
> fieldset
> a
,
245 panel
> fieldset
> div
,
246 panel
> fieldset
> textarea
{
247 border-bottom: 1px solid
#999999;
250 panel
> fieldset
> a
.left:nth-last-child
(2),
251 panel
> fieldset
> a:last-child
,
252 panel
> fieldset
> div:last-child
,
253 panel
> fieldset
> textarea:last-child
{
258 list
> fieldset
> div
,
259 list
> fieldset
> textarea
{
260 border-bottom: 1px solid
#e0e0e0;
263 fieldset
> a:not
([type
="ad"]),
265 fieldset
> textarea
{
266 /* XXX: small differences due to font bugs */
267 padding: 12px 14px 10px 14px;
270 fieldset
> a:not
([type
="ad"]):first-child
,
271 fieldset
> div:first-child
{
275 /*fieldset > a:not([type="ad"]):last-child,
276 fieldset > div:last-child {
277 padding-bottom: 10px;
280 fieldset
> a
[type
="ad"] {
281 /* XXX: small differences due to font bugs */
282 padding: 4px 4px 2px 5px;
285 panel
> fieldset
> a
[type
="ad"]:first-child
> div:first-of-type
,
286 panel
> fieldset
> a
[type
="comment"]:first-child
> div:first-of-type
,
287 panel
> fieldset
> a
[type
="profile"]:first-child
> div:first-of-type
,
288 panel
> fieldset
> a
[type
="thumb"]:first-child
> div:first-of-type
{
289 -webkit-border-top-left-radius: 9px;
292 panel
> fieldset
> a
[type
="ad"]:last-child
> div:first-of-type
,
293 panel
> fieldset
> a
[type
="comment"]:last-child
> div:first-of-type
,
294 panel
> fieldset
> a
[type
="profile"]:last-child
> div:first-of-type
,
295 panel
> fieldset
> a
[type
="thumb"]:last-child
> div:first-of-type
{
296 -webkit-border-bottom-left-radius: 9px;
299 fieldset
> a
[type
="ad"] > div:first-of-type
{
300 border: 1px solid
#999999;
303 list
> fieldset
> a
[type
="comment"] > div:first-of-type
,
304 list
> fieldset
> a
[type
="profile"] > div:first-of-type
,
305 list
> fieldset
> a
[type
="thumb"] > div:first-of-type
{
306 border: 1px solid
#e0e0e0;
309 panel
> fieldset
> a
[type
="comment"] > div:first-of-type
{
310 border: 1px solid
#999999;
311 border-bottom-style: dashed
;
314 panel
> fieldset
> a
[type
="profile"] > div:first-of-type
,
315 panel
> fieldset
> a
[type
="thumb"] > div:first-of-type
{
316 border: 1px solid
#999999;
325 div
[tile
="app"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/app
.png
); }
326 div
[tile
="call"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/call
.png
); }
327 div
[tile
="map"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/map
.png
); }
328 div
[tile
="media"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/media
.png
); }
329 div
[tile
="music"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/video
.png
); }
330 div
[tile
="site"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/site
.png
); }
332 fieldset
> a
[type
="ad"] > div:first-of-type
{
333 background-repeat: no-repeat
;
334 background-position: center center
;
336 display: inline-block
;
339 /* XXX: small differences due to font bugs */
340 /* XXX: 1px difference due to border stupidity */
341 margin: -5px 5px -3px -6px;
345 panel
> fieldset
> a
[type
="comment"] {
346 border-bottom-style: dashed
;
349 fieldset
> a
[type
="comment"] > div:first-of-type
{
350 -webkit-background-size: 44px;
355 fieldset
> a
[type
="profile"] > div:first-of-type
{
360 fieldset
> a
[type
="thumb"] > div:first-of-type
{
365 fieldset
> a
[type
="comment"] > div:first-of-type
,
366 fieldset
> a
[type
="profile"] > div:first-of-type
,
367 fieldset
> a
[type
="thumb"] > div:first-of-type
{
368 background-repeat: no-repeat
;
369 background-position: center center
;
370 display: inline-block
;
371 /* XXX: small differences due to font bugs */
372 /* XXX: 1px difference due to border stupidity */
373 margin: -14px 7px -11px -15px;
376 fieldset
> a
> img
.icon
,
377 fieldset
> div
> img
.icon
{
379 /* XXX: small differences due to font bugs */
380 margin: -7px 6px -9px -8px;
389 fieldset
> div
> ul
{
394 fieldset
> div
> ul
{
403 fieldset
> div
> p:first-child
,
404 fieldset
> div
> ul:first-child
{
408 fieldset
> div
> p:last-child
,
409 fieldset
> div
> ul:last-child
{
419 fieldset
> div
> input
,
420 fieldset
> div
> select
{
422 -webkit-box-shadow: none
;
423 -webkit-appearance: none
;
428 fieldset
> a
[href
]:not
([type
="ad"]),
429 fieldset
> div
> select
{
430 background-repeat: no-repeat
;
431 background-image: url
(chevron.png);
432 background-position-y: center
;
437 list
> fieldset
> a
[href
] {
438 background-position-x: 295px;
441 panel
> fieldset
> a
[href
] {
442 background-position-x: 275px;
445 panel
> fieldset
> a
[href
].half
{
446 background-position-x: 125px;
449 list
> fieldset
> a:not
([href
]) > select
,
450 list
> fieldset
> div
> select
{
451 background-position-x: 183px;
454 panel
> fieldset
> a:not
([href
]) > select
,
455 panel
> fieldset
> div
> select
{
456 background-position-x: 163px;
462 fieldset
> div
> input
,
463 fieldset
> div
> select
,
464 fieldset
> a
> div
> label:nth-of-type
(2),
465 fieldset
> div
> div
> label:nth-of-type
(2) {
470 fieldset
> div
> input
,
471 fieldset
> div
> select
{
475 fieldset
> div
> input
{
480 fieldset
> div
> select
,
481 fieldset
> div
> input
{
485 margin: -11px -13px -11px -14px;
488 panel
> fieldset
> div
> select
,
489 panel
> fieldset
> div
> input
{
493 list
> fieldset
> div
> select
,
494 list
> fieldset
> div
> input
{
498 fieldset
> textarea
{
503 fieldset
> div
> div
,
505 display: inline-block
;
508 fieldset
> div
> div
{
512 fieldset
> a
[type
="ad"] > div:nth-of-type
(2) {
516 fieldset
> a:not
([type
]) > div
{
520 fieldset
> div
> img
.icon
+ div
{
524 fieldset
> a
> img
.icon
+ div
{
528 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) > label:nth-of-type
(1).unknown
{
532 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) > label:only-of-type
{
538 fieldset
> a
[type
="thumb"] > div:nth-of-type
(2) > label:only-of-type
{
543 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) > label:nth-of-type
(2) {
549 fieldset
> a
[type
="thumb"] > div:nth-of-type
(2) > label:nth-of-type
(2) {
554 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) {
558 fieldset
> a
[type
="thumb"] > div:nth-of-type
(2) {
562 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) {
563 margin: -6px 0 -5px 0;
566 fieldset
> a
[type
="profile"] > div:nth-of-type
(2),
567 fieldset
> a
[type
="thumb"] > div:nth-of-type
(2) {
571 fieldset
> a
> label:first-of-type
,
572 fieldset
> a
> div
> label:first-of-type
,
573 fieldset
> div
> label:first-of-type
,
574 fieldset
> div
> div
> label:first-of-type
{
578 /* XXX: this doesn't handle icon offsets */
579 list
> fieldset
> a:not
([type
]) > div
> label:nth-of-type
(2),
580 list
> fieldset
> div
> div
> label:nth-of-type
(2) {
584 panel
> fieldset
> a:not
([type
]) > div
> label:nth-of-type
(2),
585 panel
> fieldset
> div
> div
> label:nth-of-type
(2) {
592 margin: 9px auto
4px auto
;
597 fieldset
> a
[type
="ad"] {
600 fieldset
> a
[type
="ad"] > div:nth-of-type
(2) {
605 fieldset
> a
[type
="ad"] > div
> label:nth-of-type
(1) {
612 fieldset
> a
[type
="ad"] > div
> label:nth-of-type
(2) {
620 panel
> fieldset
> a
.right
{
621 border-left: 1px solid
#999999;
624 panel
> fieldset
> a
.half
{
625 display: inline-block
;
631 background-position-x: 120px;
634 fieldset
.half
> a
> img
.icon
+ div
{
643 block
+ fieldset
.right
,
644 fieldset
+ fieldset
.right
{
652 panel
> fieldset
.dashed
> a
,
653 panel
> fieldset
.dashed
> div
,
654 panel
> fieldset
.dashed
> textarea
,
655 list
> fieldset
.dashed
> a
,
656 list
> fieldset
.dashed
> div
,
657 list
> fieldset
.dashed
> textarea
{
658 border-style: dashed
;
661 fieldset
> a
[type
="thumb"]:first-child
> back
{
662 -webkit-border-top-right-radius: 9px;
665 fieldset
> a
[type
="thumb"]:last-child
> back
{
666 -webkit-border-bottom-right-radius: 9px;
669 fieldset
> a
[type
="thumb"] > back
{
670 background-repeat: no-repeat
;
671 border: 1px solid
#999999;
682 border: 1px solid
#999999;
683 -webkit-border-radius: 9px;
701 fieldset
> a
.small label
{
702 display: inline-block
;
707 fieldset
> a
.small
> img
.icon
{
713 fieldset
> a
.small
.half
> img
.icon
+ div
{
717 panel
.centered
> label
{
727 /* Rating Stars {{{ */
734 display: inline-block
;
749 display: inline-block
;
756 background: url
(http://cache
.saurik
.com
/crystal
/16x16/actions
/knewstuff
.png
);
766 display: inline-block
;
775 /*border-right: 1px solid #999999;*/