Bug 687468 - Misc design tweaks on tab thumbnails in tablet mode (r=mbrubeck)
authorLucas Rocha <lucasr@mozilla.com>
Mon, 19 Sep 2011 15:54:19 -0700
changeset 77166 fc81b89dc4acc5435d74260931433950e3a678ca
parent 77165 5629b31668efef405f7535237bc30948fc2c3975
child 77167 1b5705431f5ae7d7127498e08e30c08ed0368947
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersmbrubeck
bugs687468
milestone9.0a1
Bug 687468 - Misc design tweaks on tab thumbnails in tablet mode (r=mbrubeck)
mobile/chrome/content/tabs.xml
mobile/themes/core/tablet.css
--- a/mobile/chrome/content/tabs.xml
+++ b/mobile/chrome/content/tabs.xml
@@ -38,17 +38,17 @@
       <method name="updateTabletLayout">
         <parameter name="thumbnail"/>
         <body>
           <![CDATA[
             let tabWidth, tabHeight;
 
             if (Util.isTablet()) {
               tabWidth = 176;
-              tabHeight = 110;
+              tabHeight = 108;
             } else {
               tabWidth = 104;
               tabHeight = 65;
             }
 
             if (tabWidth != thumbnail.width) {
               let reload = this._reload;
               let closeContainer = this._closeContainer;
--- a/mobile/themes/core/tablet.css
+++ b/mobile/themes/core/tablet.css
@@ -57,34 +57,35 @@
   margin-bottom: 0px;
 }
 
 #tabs[tablet] documenttab[selected="true"] {
   background: none;
 }
 
 .documenttab-thumbnail[tablet] {
-  border-radius: @border_radius_tiny@;
+  border-radius: @border_radius_xsmall@;
+  border: 0px;
 }
 
 .documenttab-close-container[tablet] {
   left: 0px;
   -moz-margin-end: 0px;
   -moz-margin-start: 145px;
   -moz-box-pack: end;
   -moz-box-align: center;
   -moz-margin-end: -11px;
   padding-right: 11px;
 }
 
 documenttab[selected="true"] > vbox > stack > .documenttab-close-container[tablet] {
   background: url("chrome://browser/skin/images/close-background-hdpi.png");
   background-repeat: no-repeat;
   background-position: right;
-  -moz-margin-start: 150px;
+  -moz-margin-start: 146px;
   padding-right: 0px;
 }
 
 .documenttab-close[tablet] {
   width: 30px;
   height: 44px;
   list-style-image: url("chrome://browser/skin/images/close-inactive-tab-tablet-hdpi.png");
 }
@@ -98,18 +99,18 @@ documenttab[selected="true"] > vbox > st
 }
 
 .documenttab-reload[tablet] {
   background: url("chrome://browser/skin/images/tab-reopen-tablet-hdpi.png");
 }
 
 .documenttab-title[tablet] {
   color: #FFF;
-  font-size: @font_xtiny@ !important;
-  padding: @padding_small@;
+  font-size: @font_xxtiny@ !important;
+  padding: @padding_snormal@;
   margin: 0px;
   text-align: center;
   display: -moz-box;
 }
 
 #newtab-button[tablet] {
   list-style-image: url("images/newtab-default-tablet-hdpi.png");
 }