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-bottom: 1px solid
#999999;
258 panel
> fieldset
> a
.left:nth-last-child
(2),
259 panel
> fieldset
> a:last-child
,
260 panel
> fieldset
> div:last-child
,
261 panel
> fieldset
> textarea:last-child
{
266 list
> fieldset
> div
,
267 list
> fieldset
> textarea
{
268 border-bottom: 1px solid
#e0e0e0;
271 fieldset
> a:not
([type
="ad"]),
273 fieldset
> textarea
{
274 /* XXX: small differences due to font bugs */
275 padding: 12px 14px 10px 14px;
278 /*fieldset > a:not([type="ad"]):last-child,
279 fieldset > div:last-child {
280 padding-bottom: 10px;
283 fieldset
> a
[type
="ad"] {
284 /* XXX: small differences due to font bugs */
285 padding: 4px 4px 2px 5px;
288 panel
> fieldset
> a
[type
="ad"]:first-child
> div:first-of-type
,
289 panel
> fieldset
> a
[type
="comment"]:first-child
> div:first-of-type
,
290 panel
> fieldset
> a
[type
="profile"]:first-child
> div:first-of-type
,
291 panel
> fieldset
> a
[type
="thumb"]:first-child
> div:first-of-type
{
292 -webkit-border-top-left-radius: 9px;
295 panel
> fieldset
> a
[type
="ad"]:last-child
> div:first-of-type
,
296 panel
> fieldset
> a
[type
="comment"]:last-child
> div:first-of-type
,
297 panel
> fieldset
> a
[type
="profile"]:last-child
> div:first-of-type
,
298 panel
> fieldset
> a
[type
="thumb"]:last-child
> div:first-of-type
{
299 -webkit-border-bottom-left-radius: 9px;
302 fieldset
> a
[type
="ad"] > div:first-of-type
{
303 border: 1px solid
#999999;
306 list
> fieldset
> a
[type
="comment"] > div:first-of-type
,
307 list
> fieldset
> a
[type
="profile"] > div:first-of-type
,
308 list
> fieldset
> a
[type
="thumb"] > div:first-of-type
{
309 border: 1px solid
#e0e0e0;
312 panel
> fieldset
> a
[type
="comment"] > div:first-of-type
{
313 border: 1px solid
#999999;
314 border-bottom-style: dashed
;
317 panel
> fieldset
> a
[type
="profile"] > div:first-of-type
,
318 panel
> fieldset:not
(.header
) > a
[type
="thumb"] > div:first-of-type
{
319 border: 1px solid
#999999;
328 div
[tile
="app"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/app
.png
); }
329 div
[tile
="call"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/call
.png
); }
330 div
[tile
="map"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/map
.png
); }
331 div
[tile
="media"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/media
.png
); }
332 div
[tile
="music"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/video
.png
); }
333 div
[tile
="site"] { background-image: url
(http://cache
.saurik
.com
/cydia
/tile
/site
.png
); }
335 fieldset
> a
[type
="ad"] > div:first-of-type
{
336 background-repeat: no-repeat
;
337 background-position: center center
;
339 display: inline-block
;
342 /* XXX: small differences due to font bugs */
343 /* XXX: 1px difference due to border stupidity */
344 margin: -5px 5px -3px -6px;
348 panel
> fieldset
> a
[type
="comment"] {
349 border-bottom-style: dashed
;
352 fieldset
> a
[type
="comment"] > div:first-of-type
{
353 -webkit-background-size: 44px;
358 fieldset
> a
[type
="header"] > div:first-of-type
{
363 fieldset
> a
[type
="profile"] > div:first-of-type
{
364 -webkit-background-size: 50px;
369 fieldset
> a
[type
="thumb"] > div:first-of-type
{
374 fieldset
> a
[type
="comment"] > div:first-of-type
,
375 fieldset
> a
[type
="header"] > div:first-of-type
,
376 fieldset
> a
[type
="profile"] > div:first-of-type
,
377 fieldset
> a
[type
="thumb"] > div:first-of-type
{
378 background-repeat: no-repeat
;
379 background-position: center center
;
380 display: inline-block
;
381 /* XXX: small differences due to font bugs */
382 /* XXX: 1px difference due to border stupidity */
383 margin: -13px 7px -11px -15px;
386 fieldset
> a
> img
.icon
,
387 fieldset
> div
> img
.icon
{
389 /* XXX: small differences due to font bugs */
390 margin: -7px 6px -9px -8px;
399 fieldset
> div
> ul
{
404 fieldset
> div
> ul
{
413 fieldset
> div
> p:first-child
,
414 fieldset
> div
> ul:first-child
{
418 fieldset
> div
> p:last-child
,
419 fieldset
> div
> ul:last-child
{
429 fieldset
> div
> input
,
430 fieldset
> div
> select
{
432 -webkit-box-shadow: none
;
433 -webkit-appearance: none
;
438 fieldset
> a
[href
]:not
([type
="ad"]),
439 fieldset
> div
> select
{
440 background-repeat: no-repeat
;
441 background-image: url
(chevron.png);
442 background-position-y: center
;
447 list
> fieldset
> a
[href
] {
448 background-position-x: 295px;
451 panel
> fieldset
> a
[href
] {
452 background-position-x: 275px;
455 panel
> fieldset
> a
[href
].half
{
456 background-position-x: 125px;
459 list
> fieldset
> a:not
([href
]) > select
,
460 list
> fieldset
> div
> select
{
461 background-position-x: 183px;
464 panel
> fieldset
> a:not
([href
]) > select
,
465 panel
> fieldset
> div
> select
{
466 background-position-x: 163px;
472 fieldset
> div
> input
,
473 fieldset
> div
> select
,
474 fieldset
> a
> div
> label:nth-of-type
(2),
475 fieldset
> div
> div
> label:nth-of-type
(2) {
480 fieldset
> div
> input
,
481 fieldset
> div
> select
{
485 fieldset
> div
> input
{
490 fieldset
> div
> select
,
491 fieldset
> div
> input
{
495 margin: -11px -13px -11px -14px;
498 panel
> fieldset
> div
> select
,
499 panel
> fieldset
> div
> input
{
503 list
> fieldset
> div
> select
,
504 list
> fieldset
> div
> input
{
508 fieldset
> textarea
{
513 fieldset
> div
> div
,
515 display: inline-block
;
518 fieldset
> div
> div
{
522 fieldset
> a
[type
="ad"] > div:nth-of-type
(2) {
526 fieldset
> a:not
([type
]) > div
{
530 fieldset
> a:not
([href
]) > img
.icon
+ div
,
531 fieldset
> div
> img
.icon
+ div
{
535 fieldset
> a
[href
] > img
.icon
+ div
{
539 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) > label:nth-of-type
(1).unknown
{
543 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) > label:only-of-type
{
549 fieldset
> a
[type
="thumb"] > div:nth-of-type
(2) > label:only-of-type
{
554 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) > label:nth-of-type
(2) {
560 fieldset
> a
[type
="thumb"] > div:nth-of-type
(2) > label:nth-of-type
(2) {
565 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) {
569 fieldset
> a
[type
="thumb"] > div:nth-of-type
(2) {
573 fieldset
> a
[type
="profile"] > div:nth-of-type
(2) {
577 fieldset
> a
[type
="profile"] > div:nth-of-type
(2),
578 fieldset
> a
[type
="thumb"] > div:nth-of-type
(2) {
582 fieldset
> a
> label:first-of-type
,
583 fieldset
> a
> div
> label:first-of-type
,
584 fieldset
> div
> label:first-of-type
,
585 fieldset
> div
> div
> label:first-of-type
{
589 /* XXX: this doesn't handle icon offsets */
590 list
> fieldset
> a:not
([type
]) > div
> label:nth-of-type
(2),
591 list
> fieldset
> div
> div
> label:nth-of-type
(2) {
595 panel
> fieldset
> a:not
([type
]) > div
> label:nth-of-type
(2),
596 panel
> fieldset
> div
> div
> label:nth-of-type
(2) {
603 margin: 9px auto
4px auto
;
608 fieldset
> a
[type
="ad"] {
611 fieldset
> a
[type
="ad"] > div:nth-of-type
(2) {
616 fieldset
> a
[type
="ad"] > div
> label:nth-of-type
(1) {
623 fieldset
> a
[type
="ad"] > div
> label:nth-of-type
(2) {
631 panel
> fieldset
> a
.right
{
632 border-left: 1px solid
#999999;
635 panel
> fieldset
> a
.half
{
636 display: inline-block
;
642 background-position-x: 120px;
645 fieldset
.half
> a
> img
.icon
+ div
{
654 block
+ fieldset
.right
,
655 fieldset
+ fieldset
.right
{
663 panel
> fieldset
.dashed
> a
,
664 panel
> fieldset
.dashed
> div
,
665 panel
> fieldset
.dashed
> textarea
,
666 list
> fieldset
.dashed
> a
,
667 list
> fieldset
.dashed
> div
,
668 list
> fieldset
.dashed
> textarea
{
669 border-style: dashed
;
672 fieldset
> a
[type
="thumb"]:first-child
> back
{
673 -webkit-border-top-right-radius: 9px;
676 fieldset
> a
[type
="thumb"]:last-child
> back
{
677 -webkit-border-bottom-right-radius: 9px;
680 fieldset
> a
[type
="thumb"] > back
{
681 background-repeat: no-repeat
;
682 border: 1px solid
#999999;
693 border: 1px solid
#999999;
694 -webkit-border-radius: 9px;
712 fieldset
> a
.small label
{
713 display: inline-block
;
718 fieldset
> a
.small
> img
.icon
{
724 fieldset
> a
.small
.half
> img
.icon
+ div
{
728 panel
.centered
> label
{
738 panel
> iframe
+ iframe
{
742 /* Rating Stars {{{ */
749 display: inline-block
;
764 display: inline-block
;
771 background: url
(http://cache
.saurik
.com
/crystal
/16x16/actions
/knewstuff
.png
);
781 display: inline-block
;
790 /*border-right: 1px solid #999999;*/
795 panel
> fieldset
.header
{
796 background-color: transparent
;
798 margin: -5px 0 -11px 0;
801 panel
> fieldset
.header
> a
> div
> label
{
803 text-shadow: rgba
(255, 255, 255, 0.75) 1px 1px 0;