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: #ccd1d5;*/
185 /*background-color: white;*/
186 /*background-color: #c7ced5;*/
187 background-color: transparent
;
188 //background-color: #ffffff;
189 border-bottom: 1px solid
#999999;
190 border-top: 1px solid
#999999;
191 border-left: 1px dotted
#999999;
192 border-right: 1px dotted
#999999;
193 -webkit-border-radius: 9px;
194 //border: 1px solid
#999999;
201 panel
> fieldset
> div
> hr
,
203 border-top: 1px dashed
#999999;
207 background-color: #ffffff;
208 border: 1px solid
#999999;
209 -webkit-border-radius: 9px;
214 panel
> input
[type
="submit"] {
215 /*-webkit-border-image: url(whiteButton.png) 0 12 0 12;
216 -webkit-border-radius: 0;
217 border-width: 0px 12px;*/
231 background: #a7b3bc url
(cydia://uikit-image
/UISectionListHeaderBackground
.png
);
232 background-repeat: repeat-x no-repeat-y
;
234 padding: 4px 15px 1px 15px;
239 text-shadow: rgba
(0, 0, 0, 0.5) 0px 1px 0;
244 margin: 13px 0 -4px 24px;
249 text-shadow: rgba
(255, 255, 255, 0.75) 1px 1px 0;
252 panel
> fieldset
> a
,
253 panel
> fieldset
> div
,
254 panel
> fieldset
> textarea
{
255 border-top: 1px solid
#999999;
262 panel
> fieldset
> a
.right:nth-child
(2),
263 panel
> fieldset
> a:first-child
,
264 panel
> fieldset
> div:first-child
,
265 panel
> fieldset
> textarea:first-child
{
270 list
> fieldset
> div
,
271 list
> fieldset
> textarea
{
272 border-bottom: 1px solid
#e0e0e0;
275 fieldset
> a:not
([type
="ad"]),
277 fieldset
> textarea
{
278 /* XXX: small differences due to font bugs */
279 padding: 12px 14px 10px 14px;
282 /*fieldset > a:not([type="ad"]):last-child,
283 fieldset > div:last-child {
284 padding-bottom: 10px;
287 fieldset
> a
[type
="ad"] {
288 /* XXX: small differences due to font bugs */
289 padding: 4px 4px 2px 5px;
292 panel
> fieldset
> a
[type
="ad"]:first-child
> div:first-of-type
,
293 panel
> fieldset
> a
[type
="comment"]:first-child
> div:first-of-type
,
294 panel
> fieldset
> a
[type
="profile"]:first-child
> div:first-of-type
,
295 panel
> fieldset
> a
[type
="thumb"]:first-child
> div:first-of-type
{
296 -webkit-border-top-left-radius: 9px;
299 panel
> fieldset
> a
[type
="ad"]:last-child
> div:first-of-type
,
300 panel
> fieldset
> a
[type
="comment"]:last-child
> div:first-of-type
,
301 panel
> fieldset
> a
[type
="profile"]:last-child
> div:first-of-type
,
302 panel
> fieldset
> a
[type
="thumb"]:last-child
> div:first-of-type
{
303 -webkit-border-bottom-left-radius: 9px;
306 fieldset
> a
[type
="ad"] > div:first-of-type
{
307 border: 1px solid
#999999;
310 list
> fieldset
> a
[type
="comment"] > div:first-of-type
,
311 list
> fieldset
> a
[type
="profile"] > div:first-of-type
,
312 list
> fieldset
> a
[type
="thumb"] > div:first-of-type
{
313 border: 1px solid
#e0e0e0;
316 panel
> fieldset
> a
[type
="comment"] > div:first-of-type
{
317 border: 1px solid
#999999;
318 border-bottom-style: dashed
;
321 panel
> fieldset
> a
[type
="profile"] > div:first-of-type
,
322 panel
> fieldset:not
(.header
) > a
[type
="thumb"] > div:first-of-type
{
323 border: 1px solid
#999999;
332 div
[tile
="app"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/app
.png
); }
333 div
[tile
="call"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/call
.png
); }
334 div
[tile
="map"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/map
.png
); }
335 div
[tile
="media"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/media
.png
); }
336 div
[tile
="music"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/video
.png
); }
337 div
[tile
="site"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/site
.png
); }
339 fieldset
> a
[type
="ad"] > div:first-of-type
{
340 background-repeat: no-repeat
;
341 background-position: center center
;
343 display: inline-block
;
346 /* XXX: small differences due to font bugs */
347 /* XXX: 1px difference due to border stupidity */
348 margin: -5px 5px -3px -6px;
352 panel
> fieldset
> a
[type
="comment"] {
353 border-bottom-style: dashed
;
356 fieldset
> a
[type
="comment"] > div:first-of-type
{
357 -webkit-background-size: 44px;
362 fieldset
> a
[type
="header"] > div:first-of-type
{
367 fieldset
> a
[type
="profile"] > div:first-of-type
{
368 -webkit-background-size: 50px;
373 fieldset
> a
[type
="thumb"] > div:first-of-type
{
378 fieldset
> a
[type
="comment"] > div:first-of-type
,
379 fieldset
> a
[type
="header"] > div:first-of-type
,
380 fieldset
> a
[type
="profile"] > div:first-of-type
,
381 fieldset
> a
[type
="thumb"] > div:first-of-type
{
382 background-repeat: no-repeat
;
383 background-position: center center
;
384 display: inline-block
;
385 /* XXX: small differences due to font bugs */
386 /* XXX: 1px difference due to border stupidity */
387 margin: -13px 7px -11px -15px;
390 fieldset
> a
> img
.icon
,
391 fieldset
> div
> img
.icon
{
393 /* XXX: small differences due to font bugs */
394 margin: -7px 6px -9px -8px;
403 fieldset
> div
> ul
{
408 fieldset
> div
> ul
{
417 fieldset
> div
> p:first-child
,
418 fieldset
> div
> ul:first-child
{
422 fieldset
> div
> p:last-child
,
423 fieldset
> div
> ul:last-child
{
433 fieldset
> div
> input
,
434 fieldset
> div
> select
{
436 -webkit-box-shadow: none
;
437 -webkit-appearance: none
;
442 fieldset
> a
[href
]:not
([type
="ad"]),
443 fieldset
> div
> select
{
444 background-repeat: no-repeat
;
445 background-image: url
(chevron.png);
446 background-position-y: center
;
451 list
> fieldset
> a
[href
] {
452 background-position-x: 295px;
455 panel
> fieldset
> a
[href
] {
456 background-position-x: 275px;
459 panel
> fieldset
> a
[href
].half
{
460 background-position-x: 125px;
463 list
> fieldset
> a:not
([href
]) > select
,
464 list
> fieldset
> div
> select
{
465 background-position-x: 183px;
468 panel
> fieldset
> a:not
([href
]) > select
,
469 panel
> fieldset
> div
> select
{
470 background-position-x: 163px;
476 fieldset
> div
> input
,
477 fieldset
> div
> select
,
478 fieldset
> a
> div
> label:nth-of-type
(2),
479 fieldset
> div
> div
> label:nth-of-type
(2) {
484 fieldset
> div
> input
,
485 fieldset
> div
> select
{
489 fieldset
> div
> input
{
494 fieldset
> div
> select
,
495 fieldset
> div
> input
{
499 margin: -11px -13px -11px -14px;
502 panel
> fieldset
> div
> select
,
503 panel
> fieldset
> div
> input
{
507 list
> fieldset
> div
> select
,
508 list
> fieldset
> div
> input
{
512 fieldset
> textarea
{
517 fieldset
> div
> div
,
519 display: inline-block
;
522 fieldset
> div
> div
{
526 fieldset
> a
[type
="ad"] > div:nth-of-type
(2) {
530 fieldset
> a:not
([type
]) > div
{
534 fieldset
> a:not
([href
]) > img
.icon
+ div
,
535 fieldset
> div
> img
.icon
+ div
{
539 fieldset
> a
[href
] > img
.icon
+ div
{
543 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) > label:nth-of-type
(1).unknown
{
547 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) > label:only-of-type
{
553 fieldset
> a
[type
="thumb"] > div:nth-of-type
(2) > label:only-of-type
{
558 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) > label:nth-of-type
(2) {
564 fieldset
> a
[type
="thumb"] > div:nth-of-type
(2) > label:nth-of-type
(2) {
569 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) {
573 fieldset
> a
[type
="thumb"] > div:nth-of-type
(2) {
577 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) {
581 fieldset
> a
[type
="profile"] > div:nth-of-type
(2),
582 fieldset
> a
[type
="thumb"] > div:nth-of-type
(2) {
586 fieldset
> a
> label:first-of-type
,
587 fieldset
> a
> div
> label:first-of-type
,
588 fieldset
> div
> label:first-of-type
,
589 fieldset
> div
> div
> label:first-of-type
{
593 /* XXX: this doesn't handle icon offsets */
594 list
> fieldset
> a:not
([type
]) > div
> label:nth-of-type
(2),
595 list
> fieldset
> div
> div
> label:nth-of-type
(2) {
599 panel
> fieldset
> a:not
([type
]) > div
> label:nth-of-type
(2),
600 panel
> fieldset
> div
> div
> label:nth-of-type
(2) {
607 margin: 9px auto
4px auto
;
612 fieldset
> a
[type
="ad"] {
615 fieldset
> a
[type
="ad"] > div:nth-of-type
(2) {
620 fieldset
> a
[type
="ad"] > div
> label:nth-of-type
(1) {
627 fieldset
> a
[type
="ad"] > div
> label:nth-of-type
(2) {
635 panel
> fieldset
> a
.right
{
636 border-left: 1px solid
#999999;
639 panel
> fieldset
> a
.half
{
640 display: inline-block
;
646 background-position-x: 120px;
649 fieldset
.half
> a
> img
.icon
+ div
{
658 block
+ fieldset
.right
,
659 fieldset
+ fieldset
.right
{
667 panel
> fieldset
.dashed
> a
,
668 panel
> fieldset
.dashed
> div
,
669 panel
> fieldset
.dashed
> textarea
,
670 list
> fieldset
.dashed
> a
,
671 list
> fieldset
.dashed
> div
,
672 list
> fieldset
.dashed
> textarea
{
673 border-style: dashed
;
676 fieldset
> a
[type
="thumb"]:first-child
> back
{
677 -webkit-border-top-right-radius: 9px;
680 fieldset
> a
[type
="thumb"]:last-child
> back
{
681 -webkit-border-bottom-right-radius: 9px;
684 fieldset
> a
[type
="thumb"] > back
{
685 background-repeat: no-repeat
;
686 border: 1px solid
#999999;
697 border: 1px solid
#999999;
698 -webkit-border-radius: 9px;
716 fieldset
> a
.small label
{
717 display: inline-block
;
722 fieldset
> a
.small
> img
.icon
{
728 fieldset
> a
.small
.half
> img
.icon
+ div
{
732 panel
.centered
> label
{
742 panel
> iframe
+ iframe
{
746 /* Rating Stars {{{ */
753 display: inline-block
;
768 display: inline-block
;
775 background: url
(http://cache
.saurik
.com
/crystal
/16x16/actions
/knewstuff
.png
);
785 display: inline-block
;
794 /*border-right: 1px solid #999999;*/
799 panel
> fieldset
.header
{
800 background-color: transparent
;
802 margin: -5px 0 -11px 0;
805 panel
> fieldset
.header
> a
> div
> label
{
807 text-shadow: rgba
(255, 255, 255, 0.75) 1px 1px 0;