diff options
| author | Lootyhoof <lootyhoofer@gmail.com> | 2016-10-30 17:03:07 +0000 |
|---|---|---|
| committer | Lootyhoof <lootyhoofer@gmail.com> | 2016-10-30 17:03:07 +0000 |
| commit | aa3671a1b1de0ceda69475d72402f7ba46e06108 (patch) | |
| tree | e9d9098fc51b7241dc8cd88468fa5ea5732eb0bc /src | |
| parent | e252280768c99457d3489c8f0a7095e1dded188e (diff) | |
Make bookmarks toolbar items more theme-native
Diffstat (limited to 'src')
| -rw-r--r-- | src/chrome/browser/browser.css | 54 |
1 files changed, 34 insertions, 20 deletions
diff --git a/src/chrome/browser/browser.css b/src/chrome/browser/browser.css index a310347..f8d2506 100644 --- a/src/chrome/browser/browser.css +++ b/src/chrome/browser/browser.css | |||
| @@ -16,11 +16,11 @@ | |||
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | #menubar-items { | 18 | #menubar-items { |
| 19 | -moz-box-orient: vertical; | 19 | -moz-box-orient: vertical; |
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | #main-menubar { | 22 | #main-menubar { |
| 23 | -moz-box-flex: 1; | 23 | -moz-box-flex: 1; |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | #navigator-toolbox { | 26 | #navigator-toolbox { |
| @@ -33,7 +33,7 @@ | |||
| 33 | #navigator-toolbox::after { | 33 | #navigator-toolbox::after { |
| 34 | content: ""; | 34 | content: ""; |
| 35 | display: -moz-box; | 35 | display: -moz-box; |
| 36 | -moz-box-ordinal-group: 101; | 36 | -moz-box-ordinal-group: 101; |
| 37 | height: 1px; | 37 | height: 1px; |
| 38 | background-color: rgba(75,75,75,1); | 38 | background-color: rgba(75,75,75,1); |
| 39 | } | 39 | } |
| @@ -281,7 +281,7 @@ | |||
| 281 | -moz-image-region: rect(16px, 32px, 32px, 16px); | 281 | -moz-image-region: rect(16px, 32px, 32px, 16px); |
| 282 | } | 282 | } |
| 283 | 283 | ||
| 284 | .bookmark-item[container][livemark] { | 284 | .bookmark-item[container][livemark] { |
| 285 | list-style-image: url("chrome://browser/skin/livemark-folder.png"); | 285 | list-style-image: url("chrome://browser/skin/livemark-folder.png"); |
| 286 | -moz-image-region: auto; | 286 | -moz-image-region: auto; |
| 287 | } | 287 | } |
| @@ -330,6 +330,20 @@ | |||
| 330 | opacity: 0.7; | 330 | opacity: 0.7; |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | toolbarbutton.bookmark-item { | ||
| 334 | -moz-appearance: none; | ||
| 335 | border-radius: 3px; | ||
| 336 | border-color: transparent; | ||
| 337 | } | ||
| 338 | |||
| 339 | toolbarbutton.bookmark-item:hover { | ||
| 340 | background-color: rgb(75,75,75); | ||
| 341 | } | ||
| 342 | |||
| 343 | toolbarbutton.bookmark-item:hover:active { | ||
| 344 | background-color: rgb(23,23,23); | ||
| 345 | } | ||
| 346 | |||
| 333 | /* ::::: primary toolbar buttons ::::: */ | 347 | /* ::::: primary toolbar buttons ::::: */ |
| 334 | 348 | ||
| 335 | .toolbarbutton-1 { | 349 | .toolbarbutton-1 { |
| @@ -556,7 +570,7 @@ toolbar[mode=full] .toolbarbutton-1 > .toolbarbutton-menubutton-button { | |||
| 556 | window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] > :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) > #unified-back-forward-button > #forward-button > .toolbarbutton-icon { | 570 | window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] > :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) > #unified-back-forward-button > #forward-button > .toolbarbutton-icon { |
| 557 | -moz-margin-start: -4px !important; | 571 | -moz-margin-start: -4px !important; |
| 558 | -moz-margin-end: -2px !important; | 572 | -moz-margin-end: -2px !important; |
| 559 | 573 | ||
| 560 | padding-left: 2px; | 574 | padding-left: 2px; |
| 561 | padding-right: 2px; | 575 | padding-right: 2px; |
| 562 | } | 576 | } |
| @@ -969,7 +983,7 @@ window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icon | |||
| 969 | .ac-result-type-tag, | 983 | .ac-result-type-tag, |
| 970 | .autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage) { | 984 | .autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage) { |
| 971 | list-style-image: url("chrome://browser/skin/places/tag.png"); | 985 | list-style-image: url("chrome://browser/skin/places/tag.png"); |
| 972 | width: 16px; | 986 | width: 16px; |
| 973 | height: 16px; | 987 | height: 16px; |
| 974 | } | 988 | } |
| 975 | 989 | ||
| @@ -996,8 +1010,8 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action- | |||
| 996 | color: GrayText; | 1010 | color: GrayText; |
| 997 | } | 1011 | } |
| 998 | 1012 | ||
| 999 | .autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment), | 1013 | .autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment), |
| 1000 | .autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) | 1014 | .autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) |
| 1001 | { | 1015 | { |
| 1002 | color: GrayText; | 1016 | color: GrayText; |
| 1003 | font-size: smaller; | 1017 | font-size: smaller; |
| @@ -1150,7 +1164,7 @@ toolbarbutton[type="socialmark"] > .toolbarbutton-icon { | |||
| 1150 | background: linear-gradient(to bottom, #f0f4f7, #fafbfc); | 1164 | background: linear-gradient(to bottom, #f0f4f7, #fafbfc); |
| 1151 | width: 330px; | 1165 | width: 330px; |
| 1152 | height: 150px; | 1166 | height: 150px; |
| 1153 | 1167 | ||
| 1154 | transition: height 100ms ease-out, width 100ms ease-out; | 1168 | transition: height 100ms ease-out, width 100ms ease-out; |
| 1155 | } | 1169 | } |
| 1156 | 1170 | ||
| @@ -1203,7 +1217,7 @@ toolbarbutton[type="socialmark"] > .toolbarbutton-icon { | |||
| 1203 | 1217 | ||
| 1204 | #star-button:hover { | 1218 | #star-button:hover { |
| 1205 | background-image: -moz-radial-gradient(center, circle closest-side, hsla(45,100%,73%,.3), hsla(45,100%,73%,0)); | 1219 | background-image: -moz-radial-gradient(center, circle closest-side, hsla(45,100%,73%,.3), hsla(45,100%,73%,0)); |
| 1206 | -moz-image-region: rect(0px 32px 16px 16px); | 1220 | -moz-image-region: rect(0px 32px 16px 16px); |
| 1207 | } | 1221 | } |
| 1208 | 1222 | ||
| 1209 | #star-button:hover:active { | 1223 | #star-button:hover:active { |
| @@ -1312,12 +1326,12 @@ toolbarbutton[type="socialmark"] > .toolbarbutton-icon { | |||
| 1312 | .tabbrowser-tab:-moz-lwtheme-darktext, | 1326 | .tabbrowser-tab:-moz-lwtheme-darktext, |
| 1313 | .tabs-newtab-button:-moz-lwtheme-darktext { | 1327 | .tabs-newtab-button:-moz-lwtheme-darktext { |
| 1314 | background: -moz-linear-gradient(rgba(235,235,235,.4), rgba(235,235,235,.4)); | 1328 | background: -moz-linear-gradient(rgba(235,235,235,.4), rgba(235,235,235,.4)); |
| 1315 | } | 1329 | } |
| 1316 | 1330 | ||
| 1317 | .tabbrowser-tab:-moz-lwtheme-brighttext, | 1331 | .tabbrowser-tab:-moz-lwtheme-brighttext, |
| 1318 | .tabs-newtab-button:-moz-lwtheme-brighttext { | 1332 | .tabs-newtab-button:-moz-lwtheme-brighttext { |
| 1319 | background: -moz-linear-gradient(rgba(105,105,105,.4), rgba(105,105,105,.4)); | 1333 | background: -moz-linear-gradient(rgba(105,105,105,.4), rgba(105,105,105,.4)); |
| 1320 | } | 1334 | } |
| 1321 | 1335 | ||
| 1322 | .tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox { | 1336 | .tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox { |
| 1323 | -moz-padding-start: 1px; | 1337 | -moz-padding-start: 1px; |
| @@ -1385,7 +1399,7 @@ toolbarbutton[type="socialmark"] > .toolbarbutton-icon { | |||
| 1385 | } | 1399 | } |
| 1386 | 1400 | ||
| 1387 | #tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned] { | 1401 | #tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned] { |
| 1388 | min-height: 16px; | 1402 | min-height: 16px; |
| 1389 | } | 1403 | } |
| 1390 | 1404 | ||
| 1391 | .tab-throbber[pinned], | 1405 | .tab-throbber[pinned], |
| @@ -1418,7 +1432,7 @@ toolbarbutton[type="socialmark"] > .toolbarbutton-icon { | |||
| 1418 | 1432 | ||
| 1419 | .tab-close-button:-moz-lwtheme-darktext { | 1433 | .tab-close-button:-moz-lwtheme-darktext { |
| 1420 | filter: url("chrome://global/skin/icons/invert.svg#invert"); | 1434 | filter: url("chrome://global/skin/icons/invert.svg#invert"); |
| 1421 | } | 1435 | } |
| 1422 | 1436 | ||
| 1423 | .tab-close-button:-moz-system-metric(touch-enabled) { | 1437 | .tab-close-button:-moz-system-metric(touch-enabled) { |
| 1424 | -moz-transform: scale(1.2); | 1438 | -moz-transform: scale(1.2); |
| @@ -1474,7 +1488,7 @@ toolbarbutton[type="socialmark"] > .toolbarbutton-icon { | |||
| 1474 | } | 1488 | } |
| 1475 | 1489 | ||
| 1476 | .tab-content { | 1490 | .tab-content { |
| 1477 | min-height: -moz-calc(6.8mozmm - 7px); | 1491 | min-height: -moz-calc(6.8mozmm - 7px); |
| 1478 | } | 1492 | } |
| 1479 | } | 1493 | } |
| 1480 | 1494 | ||
| @@ -1544,7 +1558,7 @@ toolbarbutton[type="socialmark"] > .toolbarbutton-icon { | |||
| 1544 | 1558 | ||
| 1545 | #alltabs-button:hover:active { | 1559 | #alltabs-button:hover:active { |
| 1546 | -moz-image-region: rect(0, 28px, 16px, 14px); | 1560 | -moz-image-region: rect(0, 28px, 16px, 14px); |
| 1547 | } | 1561 | } |
| 1548 | 1562 | ||
| 1549 | #alltabs-button[type="menu"] { | 1563 | #alltabs-button[type="menu"] { |
| 1550 | list-style-image: url("chrome://browser/skin/toolbarbutton-dropdown-arrow.png"); | 1564 | list-style-image: url("chrome://browser/skin/toolbarbutton-dropdown-arrow.png"); |
| @@ -1621,7 +1635,7 @@ toolbarbutton.chevron > .toolbarbutton-icon { | |||
| 1621 | } | 1635 | } |
| 1622 | 1636 | ||
| 1623 | toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon { | 1637 | toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon { |
| 1624 | display: -moz-box; | 1638 | display: -moz-box; |
| 1625 | } | 1639 | } |
| 1626 | 1640 | ||
| 1627 | #sidebar-throbber[loading="true"] { | 1641 | #sidebar-throbber[loading="true"] { |
| @@ -1643,7 +1657,7 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] { | |||
| 1643 | 1657 | ||
| 1644 | .menupopup-drop-indicator-bar { | 1658 | .menupopup-drop-indicator-bar { |
| 1645 | position: relative; | 1659 | position: relative; |
| 1646 | 1660 | ||
| 1647 | margin-top: -1px; | 1661 | margin-top: -1px; |
| 1648 | margin-bottom: -1px; | 1662 | margin-bottom: -1px; |
| 1649 | } | 1663 | } |
| @@ -1851,7 +1865,7 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] { | |||
| 1851 | 1865 | ||
| 1852 | #notification-popup-box { | 1866 | #notification-popup-box { |
| 1853 | position: relative; | 1867 | position: relative; |
| 1854 | 1868 | ||
| 1855 | background-clip: padding-box; | 1869 | background-clip: padding-box; |
| 1856 | padding-left: 3px; | 1870 | padding-left: 3px; |
| 1857 | padding-right: 2px; | 1871 | padding-right: 2px; |
| @@ -3273,4 +3287,4 @@ html|div#UITourHighlight { | |||
| 3273 | -moz-appearance: none; | 3287 | -moz-appearance: none; |
| 3274 | min-width: 0px; | 3288 | min-width: 0px; |
| 3275 | list-style-image: url("chrome://browser/skin/feeds/feedIcon16.png"); | 3289 | list-style-image: url("chrome://browser/skin/feeds/feedIcon16.png"); |
| 3276 | } \ No newline at end of file | 3290 | } |
