diff --git a/browser/themes/linux/jar.mn b/browser/themes/linux/jar.mn index 05687520ebf6..78db05c76b99 100644 --- a/browser/themes/linux/jar.mn +++ b/browser/themes/linux/jar.mn @@ -118,6 +118,7 @@ browser.jar: * skin/classic/browser/newtab/newTab.css (newtab/newTab.css) skin/classic/browser/newtab/controls.png (../shared/newtab/controls.png) skin/classic/browser/newtab/controls@2x.png (../shared/newtab/controls@2x.png) + skin/classic/browser/newtab/controls.svg (../shared/newtab/controls.svg) skin/classic/browser/newtab/texture.png (../shared/newtab/texture.png) skin/classic/browser/places/bookmarksMenu.png (places/bookmarksMenu.png) skin/classic/browser/places/bookmarksToolbar.png (places/bookmarksToolbar.png) diff --git a/browser/themes/osx/jar.mn b/browser/themes/osx/jar.mn index dee8d74f063d..d1edfa50c0dd 100644 --- a/browser/themes/osx/jar.mn +++ b/browser/themes/osx/jar.mn @@ -185,6 +185,7 @@ browser.jar: * skin/classic/browser/newtab/newTab.css (newtab/newTab.css) skin/classic/browser/newtab/controls.png (../shared/newtab/controls.png) skin/classic/browser/newtab/controls@2x.png (../shared/newtab/controls@2x.png) + skin/classic/browser/newtab/controls.svg (../shared/newtab/controls.svg) skin/classic/browser/newtab/texture.png (../shared/newtab/texture.png) skin/classic/browser/setDesktopBackground.css skin/classic/browser/monitor.png diff --git a/browser/themes/shared/newtab/controls.svg b/browser/themes/shared/newtab/controls.svg new file mode 100644 index 000000000000..a37a3a7a42a3 --- /dev/null +++ b/browser/themes/shared/newtab/controls.svg @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/browser/themes/shared/newtab/newTab.inc.css b/browser/themes/shared/newtab/newTab.inc.css index cde2467674c8..16a6a44e1b9e 100644 --- a/browser/themes/shared/newtab/newTab.inc.css +++ b/browser/themes/shared/newtab/newTab.inc.css @@ -169,56 +169,53 @@ /* CONTROLS */ .newtab-control { - width: 24px; - height: 24px; - padding: 1px 2px 3px; + background-color: transparent; border: none; - background: transparent url(chrome://browser/skin/newtab/controls.png); + height: 32px; + width: 32px; } -@media (min-resolution: 2dppx) { - .newtab-control { - background-image: url(chrome://browser/skin/newtab/controls@2x.png); - background-size: 296px; - } -} - -.newtab-control-pin:hover { - background-position: -24px 0; -} - -.newtab-control-pin:active { - background-position: -48px 0; -} - -.newtab-site[pinned] .newtab-control-pin { - background-position: -72px 0; +.newtab-control-pin, +.newtab-site[pinned] .newtab-control-pin:hover:active { + background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 96, 32, 64); } +.newtab-control-pin:hover, .newtab-site[pinned] .newtab-control-pin:hover { - background-position: -96px 0; + background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 128, 32, 96); } -.newtab-site[pinned] .newtab-control-pin:active { - background-position: -120px 0; +.newtab-control-pin:hover:active, +.newtab-site[pinned] .newtab-control-pin { + background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 160, 32, 128); } .newtab-control-block { - background-position: -144px 0; + background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 192, 32, 160); } .newtab-control-block:hover { - background-position: -168px 0; + background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 224, 32, 192); } -.newtab-control-block:active { - background-position: -192px 0; +.newtab-control-block:hover:active { + background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 256, 32, 224); } .newtab-control-sponsored { + width: 24px; + height: 24px; + background-image: url(chrome://browser/skin/newtab/controls.png); background-position: -249px -1px; } +@media (min-resolution: 2dppx) { + .newtab-control-sponsored { + background-image: url(chrome://browser/skin/newtab/controls@2x.png); + background-size: 296px; + } +} + .newtab-control-sponsored:hover { background-position: -265px -1px; } diff --git a/browser/themes/windows/jar.mn b/browser/themes/windows/jar.mn index 864faa1d7516..51778f7bb138 100644 --- a/browser/themes/windows/jar.mn +++ b/browser/themes/windows/jar.mn @@ -140,6 +140,7 @@ browser.jar: * skin/classic/browser/newtab/newTab.css (newtab/newTab.css) skin/classic/browser/newtab/controls.png (../shared/newtab/controls.png) skin/classic/browser/newtab/controls@2x.png (../shared/newtab/controls@2x.png) + skin/classic/browser/newtab/controls.svg (../shared/newtab/controls.svg) skin/classic/browser/newtab/texture.png (../shared/newtab/texture.png) skin/classic/browser/places/places.css (places/places.css) * skin/classic/browser/places/organizer.css (places/organizer.css) @@ -557,6 +558,7 @@ browser.jar: * skin/classic/aero/browser/newtab/newTab.css (newtab/newTab.css) skin/classic/aero/browser/newtab/controls.png (../shared/newtab/controls.png) skin/classic/aero/browser/newtab/controls@2x.png (../shared/newtab/controls@2x.png) + skin/classic/aero/browser/newtab/controls.svg (../shared/newtab/controls.svg) skin/classic/aero/browser/newtab/texture.png (../shared/newtab/texture.png) * skin/classic/aero/browser/places/places.css (places/places-aero.css) * skin/classic/aero/browser/places/organizer.css (places/organizer-aero.css)