| OLD | NEW |
| 1 /* Apps */ | 1 /* Apps */ |
| 2 | 2 |
| 3 .app, | 3 .app, |
| 4 .app[new=installed] { | 4 .app[new=installed] { |
| 5 -webkit-box-sizing: border-box; | 5 -webkit-box-sizing: border-box; |
| 6 -webkit-perspective: 400; | 6 -webkit-perspective: 400; |
| 7 border-radius: 10px; | 7 border-radius: 10px; |
| 8 color: black; | 8 color: black; |
| 9 display: inline-block; | 9 display: inline-block; |
| 10 margin: 5px 3px; | 10 margin: 5px 3px; |
| 11 position: relative; | 11 position: relative; |
| 12 height: 136px; | 12 height: 136px; |
| 13 width: 124px; /* 920 / 7 - margin * 2 */ | 13 width: 124px; /* 920 / 7 - margin * 2 */ |
| 14 } | 14 } |
| 15 | 15 |
| 16 .app > .front, | |
| 17 .app > .back, | |
| 18 .app a { | 16 .app a { |
| 19 border-radius: 10px; | 17 border-radius: 10px; |
| 20 bottom: 0; | 18 bottom: 0; |
| 21 left: 0; | 19 left: 0; |
| 22 position: absolute; | 20 position: absolute; |
| 23 right: 0; | 21 right: 0; |
| 24 top: 0; | 22 top: 0; |
| 25 } | 23 } |
| 26 | 24 |
| 27 .app > .front, | |
| 28 .app > .back { | |
| 29 -webkit-backface-visibility: hidden; | |
| 30 -webkit-transition: -webkit-transform .15s; | |
| 31 } | |
| 32 | |
| 33 .app a { | 25 .app a { |
| 34 -webkit-transition: background-color .5s; | 26 -webkit-transition: background-color .5s; |
| 35 background: rgba(255, 255, 255, 0) /* transparent white */ | 27 background: rgba(255, 255, 255, 0) /* transparent white */ |
| 36 no-repeat center 10px; | 28 no-repeat center 10px; |
| 37 background-size: 96px 96px; | 29 background-size: 96px 96px; |
| 38 font-family: Helvetica, Arial; | 30 font-family: Helvetica, Arial; |
| 39 font-size: 14px; | 31 font-size: 14px; |
| 40 overflow: hidden; | 32 overflow: hidden; |
| 41 padding: 111px 10px 10px; /* 10 + 96 + 5 */ | 33 padding: 111px 10px 10px; /* 10 + 96 + 5 */ |
| 42 text-align: center; | 34 text-align: center; |
| 43 text-decoration: none; | 35 text-decoration: none; |
| 44 text-overflow: ellipsis; | 36 text-overflow: ellipsis; |
| 45 white-space: nowrap; | 37 white-space: nowrap; |
| 46 } | 38 } |
| 47 | 39 |
| 48 .app .flip { | 40 .app .app-settings { |
| 49 background-color: transparent; | 41 background-color: transparent; |
| 42 background-position: center center; |
| 50 border: 0; | 43 border: 0; |
| 51 height: 14px; | 44 height: 14px; |
| 52 padding: 0; | 45 padding: 0; |
| 53 position: absolute; | 46 position: absolute; |
| 54 right: 5px; | 47 right: 5px; |
| 55 top: 5px; | 48 top: 5px; |
| 56 width: 14px; | 49 width: 14px; |
| 57 } | 50 } |
| 58 | 51 |
| 59 .app > .front > .flip { | 52 .app > .app-settings { |
| 60 -webkit-transition: opacity .3s; | 53 -webkit-transition: opacity .3s; |
| 61 -webkit-transition-delay: 0; | 54 -webkit-transition-delay: 0; |
| 62 background-image: url(chrome://theme/IDR_BALLOON_WRENCH); | 55 background-image: url(chrome://theme/IDR_BALLOON_WRENCH); |
| 63 opacity: 0; | 56 opacity: 0; |
| 64 } | 57 } |
| 65 | 58 |
| 66 .app > .front > .flip:hover { | 59 .app > .app-settings:hover { |
| 67 -webkit-transition: none; | 60 -webkit-transition: none; |
| 68 background-image: url(chrome://theme/IDR_BALLOON_WRENCH_H); | 61 background-image: url(chrome://theme/IDR_BALLOON_WRENCH_H); |
| 69 } | 62 } |
| 70 | 63 |
| 71 .app:hover > .front > .flip, | 64 .app:hover > .app-settings, |
| 72 .app > .front > .flip:focus { | 65 .app > .app-settings:focus { |
| 73 -webkit-transition-delay: .5s; | 66 -webkit-transition-delay: .5s; |
| 74 opacity: .9; | 67 opacity: .9; |
| 75 } | 68 } |
| 76 | 69 |
| 77 .app > .back > .flip { | |
| 78 background-image: url(chrome://theme/IDR_BALLOON_CLOSE); | |
| 79 opacity: .9; | |
| 80 } | |
| 81 | |
| 82 .app > .back > .flip:hover { | |
| 83 background-image: url(chrome://theme/IDR_BALLOON_CLOSE_HOVER); | |
| 84 } | |
| 85 | |
| 86 .app > .back { | |
| 87 padding: 10px; | |
| 88 } | |
| 89 | |
| 90 .app > .back > h2 { | |
| 91 font-size: 100%; | |
| 92 margin: 10px 0; | |
| 93 overflow: hidden; | |
| 94 text-overflow: ellipsis; | |
| 95 white-space: nowrap; | |
| 96 } | |
| 97 | |
| 98 .app > .back > button:not(.flip) { | |
| 99 width: 100%; | |
| 100 } | |
| 101 | |
| 102 @-webkit-keyframes bounce { | 70 @-webkit-keyframes bounce { |
| 103 0% { | 71 0% { |
| 104 -webkit-transform: scale(0, 0); | 72 -webkit-transform: scale(0, 0); |
| 105 } | 73 } |
| 106 | 74 |
| 107 60% { | 75 60% { |
| 108 -webkit-transform: scale(1.2, 1.2); | 76 -webkit-transform: scale(1.2, 1.2); |
| 109 } | 77 } |
| 110 | 78 |
| 111 100% { | 79 100% { |
| 112 -webkit-transform: scale(1, 1); | 80 -webkit-transform: scale(1, 1); |
| 113 } | 81 } |
| 114 } | 82 } |
| 115 | 83 |
| 116 .app[new=new] { | 84 .app[new=new] { |
| 117 opacity: 0; | 85 opacity: 0; |
| 118 } | 86 } |
| 119 | 87 |
| 120 .app[new=installed] { | 88 .app[new=installed] { |
| 121 -webkit-animation: bounce .5s ease-in-out; | 89 -webkit-animation: bounce .5s ease-in-out; |
| 122 -webkit-transition: opacity .5s; | 90 -webkit-transition: opacity .5s; |
| 123 } | 91 } |
| 124 | 92 |
| 125 a[app_id=web-store-entry] { | 93 a[app-id=web-store-entry] { |
| 126 background-image: url("web_store_icon.png"); | 94 background-image: url("web_store_icon.png"); |
| 127 } | 95 } |
| 128 | 96 |
| 129 /* Make items on the wrong side non focusable by hiding them. */ | 97 menu > button.default { |
| 130 .app:not(.config) > .back button, | 98 font-weight: bold; |
| 131 .app.config > .front button, | |
| 132 .app.config > .front a { | |
| 133 display: none; | |
| 134 } | 99 } |
| 135 | |
| 136 html[has_3d=true] .app.config > .front { | |
| 137 -webkit-transform: rotateY(180deg); | |
| 138 } | |
| 139 | |
| 140 html[has_3d=true] .app > .back { | |
| 141 -webkit-transform: rotateY(-180deg); | |
| 142 } | |
| 143 | |
| 144 html[has_3d=true] .app.config > .back { | |
| 145 -webkit-transform: rotateY(0deg); | |
| 146 } | |
| 147 | |
| 148 html[has_3d=false] .app.config > .front { | |
| 149 display: none; | |
| 150 } | |
| 151 | |
| 152 html[has_3d=false] .app > .back { | |
| 153 display: none; | |
| 154 } | |
| 155 | |
| 156 html[has_3d=false] .app.config > .back { | |
| 157 display: block; | |
| 158 } | |
| OLD | NEW |