summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLootyhoof <lootyhoofer@gmail.com>2018-04-25 20:54:42 +0100
committerLootyhoof <lootyhoofer@gmail.com>2018-04-25 20:54:42 +0100
commitd0145afa9f4ed5411483d5a749ab6267c6e7e2a0 (patch)
tree55a8893ba60d02fd2849605fb4edb26624279f71 /src
parent39a8165c9bbf7a55857c8c4c25fc73436cf570b4 (diff)
Style tabs using pure CSS
Diffstat (limited to 'src')
-rw-r--r--src/chrome/browser/browser.css28
1 files changed, 18 insertions, 10 deletions
diff --git a/src/chrome/browser/browser.css b/src/chrome/browser/browser.css
index 8ba9ec5..a27657a 100644
--- a/src/chrome/browser/browser.css
+++ b/src/chrome/browser/browser.css
@@ -1297,20 +1297,28 @@ toolbarbutton[type="socialmark"] > .toolbarbutton-icon {
1297.tabbrowser-tab, 1297.tabbrowser-tab,
1298.tabs-newtab-button { 1298.tabs-newtab-button {
1299 -moz-appearance: none; 1299 -moz-appearance: none;
1300 background-color: transparent; 1300 background: rgb(23,23,23);
1301 background-image: -moz-linear-gradient(rgba(23,23,23,1), rgba(23,23,23,1));
1302 background-origin: border-box; 1301 background-origin: border-box;
1303 background-position: 1px 2px;
1304 background-size: -moz-calc(100% - 2px) -moz-calc(100% - 2px);
1305 background-repeat: no-repeat; 1302 background-repeat: no-repeat;
1303 /* top margin of 0 is important for Fitts' Law in ToT/FS */
1306 margin: 0; 1304 margin: 0;
1307 padding: 2px 0 4px; 1305 padding: 3px 3px 4px 1px;
1308 border-width: 4px 3px 0; 1306 border: 1px solid rgba(64,72,81,.4);
1309 border-style: solid; 1307 border-bottom: 0px;
1310 -moz-border-image: url(chrome://browser/skin/tabbrowser/tab.png) 4 3 0 / 4px 3px 0 repeat stretch; 1308 border-radius: 2.5px 2.5px 0 0;
1311 border-radius: 0; 1309 box-shadow: inset 0.5px 1px 1px rgba(255,255,255,.2);
1312 -moz-margin-start: -1px; 1310 -moz-margin-start: -1px;
1313 color: #fff; 1311}
1312
1313.tabs-newtab-button {
1314 padding: 3px 1px 4px 1px;
1315}
1316
1317/* Make sure extra margin is added when tabs are not in the title bar so it doesn't
1318 "glue" right up against the AppMenu button/caption */
1319#main-window[sizemode="normal"][tabsontop=true] .tabbrowser-tab,
1320#main-window[sizemode="normal"][tabsontop=true] .tabs-newtab-button {
1321 margin-top: 5px;
1314} 1322}
1315 1323
1316.tabbrowser-tab:-moz-lwtheme, 1324.tabbrowser-tab:-moz-lwtheme,