Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Aris-t2 committed Oct 7, 2017
1 parent ea3638d commit 9e89a8d
Show file tree
Hide file tree
Showing 12 changed files with 266 additions and 16 deletions.
5 changes: 1 addition & 4 deletions classic/css/locationbar/ac_popup_classic.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
}

/* Hide "Visit/Search" items */
#PopupAutoCompleteRichResult richlistitem:first-of-type[type*="heuristic"],
#PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="searchengine"],
#PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="visiturl"],
#PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="keyword"],
#PopupAutoCompleteRichResult richlistitem:first-of-type:-moz-any([type*="heuristic"],[actiontype="searchengine"],[actiontype="visiturl"],[actiontype="keyword"],[actiontype="searchengine"]),
#PopupAutoCompleteRichResult richlistitem[anonid="type-icon-spacer"] {
display: none !important;
}
Expand Down
15 changes: 15 additions & 0 deletions classic/css/locationbar/ac_popup_keysearch_bold.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*AGENT_SHEET*/

/* Firefox 57+ userChrome.css tweaks ****************************************************/
/* code mostly taken from 'Classic Theme Restorer' & 'Classic Toolbar Buttons' add-ons **/
/* by Aris ([email protected])*********************************************************/
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/

#PopupAutoCompleteRichResult richlistitem :-moz-any(.ac-emphasize-text-title, .ac-emphasize-text-tag, .ac-emphasize-text-url,.ac-emphasize-text) {
font-weight: bold !important;
/*box-shadow: unset !important;
background-color: unset !important;
border-radius: unset !important;
text-shadow: unset !important;*/
}
15 changes: 15 additions & 0 deletions classic/css/locationbar/ac_popup_keysearch_underline.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*AGENT_SHEET*/

/* Firefox 57+ userChrome.css tweaks ****************************************************/
/* code mostly taken from 'Classic Theme Restorer' & 'Classic Toolbar Buttons' add-ons **/
/* by Aris ([email protected])*********************************************************/
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/

#PopupAutoCompleteRichResult richlistitem :-moz-any(.ac-emphasize-text-title, .ac-emphasize-text-tag, .ac-emphasize-text-url,.ac-emphasize-text) {
text-decoration: underline !important;
/*box-shadow: unset !important;
background-color: unset !important;
border-radius: unset !important;
text-shadow: unset !important;*/
}
61 changes: 61 additions & 0 deletions classic/css/locationbar/ac_popup_result_highlighting_aero.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*AGENT_SHEET*/

/* Firefox 57+ userChrome.css tweaks ****************************************************/
/* code mostly taken from 'Classic Theme Restorer' & 'Classic Toolbar Buttons' add-ons **/
/* by Aris ([email protected])*********************************************************/
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/

/* Aero-like appearance */
#PopupAutoCompleteRichResult .autocomplete-richlistitem[selected="true"],
#PopupAutoCompleteRichResult .autocomplete-richlistitem[selected="true"][current="true"],
#PopupAutoCompleteRichResult .autocomplete-richlistitem:hover {
color: inherit !important;
background-color: transparent !important;
background-image:
linear-gradient(to right, rgba(255,255,255,0.4) 0px, transparent 0px),
linear-gradient(to left, rgba(255,255,255,0.4) 0px, transparent 0px),
linear-gradient(to top, rgba(255,255,255,0.3) 0px, transparent 0px),
linear-gradient(to bottom, rgba(163,196,247,0.2), rgba(122,180,246,0.2)) !important;
border-radius: 6px !important;
outline: 1px solid rgba(124,163,206,0.7) !important;
-moz-outline-radius: 3px !important;
outline-offset: -1px !important;
}

/* replace inverted text colors with default ones */
#PopupAutoCompleteRichResult .ac-title-text[selected] .ac-emphasize-text,
#PopupAutoCompleteRichResult .ac-title[selected=true] {
color: hsl(0, 0%, 0%) !important;
}
#PopupAutoCompleteRichResult .ac-url-text[selected] .ac-emphasize-text,
#PopupAutoCompleteRichResult .ac-url[selected=true] {
color: hsl(210, 77%, 47%) !important;
}
#PopupAutoCompleteRichResult .ac-action-text[selected] .ac-emphasize-text,
#PopupAutoCompleteRichResult .ac-action[selected=true] {
color: hsl(178, 100%, 28%) !important;
}

/* replace inverted icons with default ones */
#PopupAutoCompleteRichResult .ac-type-icon[type=keyword][selected],
#PopupAutoCompleteRichResult .ac-site-icon[type=searchengine][selected],
#PopupAutoCompleteRichResult .ac-type-icon[type=switchtab][selected],
#PopupAutoCompleteRichResult .ac-type-icon[type=remotetab][selected],
#PopupAutoCompleteRichResult .ac-type-icon[type=bookmark][selected][current] {
fill: #b2b2b2 !important;
}

#PopupAutoCompleteRichResult richlistitem[selected="true"]:not([collapse="true"]) {
border-top: 1px solid transparent !important;
border-bottom: 1px solid transparent !important;
}

#PopupAutoCompleteRichResult richlistitem[selected="true"] + richlistitem:not([collapse="true"]) {
border-top: 1px solid transparent !important;
border-bottom: 1px solid transparent !important;
}

#PopupAutoCompleteRichResult .autocomplete-richlistbox {
padding: 1px !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/

#PopupAutoCompleteRichResult richlistitem + richlistitem:not([collapse="true"]) {
border-top: 1px solid lightgrey !important;
border-bottom: 1px solid transparent !important;
}
41 changes: 41 additions & 0 deletions classic/css/locationbar/ac_popup_title_and_url_50percent_width.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*AGENT_SHEET*/

/* Firefox 57+ userChrome.css tweaks ****************************************************/
/* code mostly taken from 'Classic Theme Restorer' & 'Classic Toolbar Buttons' add-ons **/
/* by Aris ([email protected])*********************************************************/
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/


/* To hide seach engines at popups bottom open 'about:config' and set ************
** browser.urlbar.oneOffSearches to 'false' *************************************/

/* remove unneeded padding around results */
#PopupAutoCompleteRichResult .autocomplete-richlistbox {
padding: 0 !important;
}

/* make sure there is not unneded space before results (Fx58+) */
#PopupAutoCompleteRichResult .autocomplete-richlistitem {
-moz-margin-start: 0 !important;
-moz-padding-start: 0 !important;
}

/* make sure there is not unneded space before results (Fx57+) */
#PopupAutoCompleteRichResult .autocomplete-richlistitem spacer{
display: none !important;
}

/* remove separator between title and url */
#PopupAutoCompleteRichResult .autocomplete-richlistitem .ac-separator {
display: none !important;
}

/* calculate width of title and url: width = 1/2 * (window size - 100px) */
#PopupAutoCompleteRichResult .autocomplete-richlistitem .ac-title-text,
#PopupAutoCompleteRichResult .autocomplete-richlistitem .ac-url-text {
min-width: calc((100vw - 100px)/2) !important;
width: calc((100vw - 100px)/2) !important;
}

/**/
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
** browser.urlbar.oneOffSearches to 'false' *************************************/

/* Hide "Visit/Search" items */
#PopupAutoCompleteRichResult richlistitem:first-of-type[type*="heuristic"],
#PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="searchengine"],
#PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="visiturl"],
#PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="keyword"],
#PopupAutoCompleteRichResult richlistitem:first-of-type:-moz-any([type*="heuristic"],[actiontype="searchengine"],[actiontype="visiturl"],[actiontype="keyword"],[actiontype="searchengine"]),
#PopupAutoCompleteRichResult richlistitem[anonid="type-icon-spacer"] {
display:none !important;
}
Expand Down
46 changes: 46 additions & 0 deletions classic/css/locationbar/ac_popup_url_and_title_50percent_width.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*AGENT_SHEET*/

/* Firefox 57+ userChrome.css tweaks ****************************************************/
/* code mostly taken from 'Classic Theme Restorer' & 'Classic Toolbar Buttons' add-ons **/
/* by Aris ([email protected])*********************************************************/
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/

@import url(./ac_popup_title_and_url_50percent_width.css);

/* To hide seach engines at popups bottom open 'about:config' and set ************
** browser.urlbar.oneOffSearches to 'false' *************************************/


/* reorder content to switch title and url posions */

.ac-type-icon{
-moz-box-ordinal-group: 0 !important;
}
.ac-site-icon{
-moz-box-ordinal-group: 1 !important;
}
.ac-title{
-moz-box-ordinal-group: 5 !important;
-moz-margin-start: 10px !important;
-moz-margin-end: 0px !important;
}
.ac-tags{
-moz-box-ordinal-group: 3 !important;
}
.ac-separator{
-moz-box-ordinal-group: 4 !important;
}
.ac-url{
-moz-box-ordinal-group: 2 !important;
}
.ac-action{
-moz-box-ordinal-group: 6 !important;
}

/* prevent url/title overlapping */
#PopupAutoCompleteRichResult richlistitem:-moz-any([type*="heuristic"],[actiontype="searchengine"],[actiontype="visiturl"],[actiontype="keyword"],[actiontype="searchengine"]) .ac-title {
-moz-margin-start: 0px !important;
-moz-margin-end: 10px !important;
}
/**/
36 changes: 32 additions & 4 deletions classic/css/tabs/classic_squared_tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,11 @@
}

/* tab top border roundness */
.tabs-newtab-button,.tabbrowser-tab,
.tab-stack,
.tab-background,
.tabbrowser-tab .tab-content {
#TabsToolbar .tabs-newtab-button,
#TabsToolbar .tabbrowser-tab,
#TabsToolbar .tabbrowser-tab .tab-stack,
#TabsToolbar .tabbrowser-tab .tab-background,
#TabsToolbar .tabbrowser-tab .tab-content {
border-top-left-radius: 3px !important;
border-top-right-radius: 3px !important;
}
Expand Down Expand Up @@ -289,3 +290,30 @@
display: unset !important;
}
/**/

/* remove crap set by Firefox 58+ */
.tabbrowser-tab,
.tab-stack,
.tab-background {
border: unset !important;
}

.tabbrowser-tab::after,
.tabbrowser-tab::before {
border-left: unset !important;
border-image: unset !important;
border-image-slice: unset !important;
border-top-left-radius: 3px !important;
border-top-right-radius: 3px !important;
}

:root[tabsintitlebar]:not([extradragspace]) #toolbar-menubar[autohide=true] ~ #TabsToolbar > #tabbrowser-tabs > .tabbrowser-tab::after,
:root[tabsintitlebar]:not([extradragspace]) #toolbar-menubar[autohide=true] ~ #TabsToolbar > #tabbrowser-tabs > .tabbrowser-tab::before,
.tabbrowser-tab:hover::before,
.tabbrowser-tab[last-visible-tab]:hover::after,
#tabbrowser-tabs:not([movingtab]) > .tabbrowser-tab[afterhovered]::before {
border-image: unset !important;
border-image-slice: unset !important;
border-top-left-radius: 3px !important;
border-top-right-radius: 3px !important;
}
26 changes: 26 additions & 0 deletions classic/css/tabs/classic_squared_tabs_australized.css
Original file line number Diff line number Diff line change
Expand Up @@ -297,3 +297,29 @@
display: unset !important;
}
/**/
/* remove crap set by Firefox 58+ */
.tabbrowser-tab,
.tab-stack,
.tab-background {
border: unset !important;
}

.tabbrowser-tab::after,
.tabbrowser-tab::before {
border-left: unset !important;
border-image: unset !important;
border-image-slice: unset !important;
border-top-left-radius: 3px !important;
border-top-right-radius: 3px !important;
}

:root[tabsintitlebar]:not([extradragspace]) #toolbar-menubar[autohide=true] ~ #TabsToolbar > #tabbrowser-tabs > .tabbrowser-tab::after,
:root[tabsintitlebar]:not([extradragspace]) #toolbar-menubar[autohide=true] ~ #TabsToolbar > #tabbrowser-tabs > .tabbrowser-tab::before,
.tabbrowser-tab:hover::before,
.tabbrowser-tab[last-visible-tab]:hover::after,
#tabbrowser-tabs:not([movingtab]) > .tabbrowser-tab[afterhovered]::before {
border-image: unset !important;
border-image-slice: unset !important;
border-top-left-radius: 3px !important;
border-top-right-radius: 3px !important;
}
19 changes: 17 additions & 2 deletions classic/css/tabs/tabs_below_navigation_toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
#tabbrowser-tabs,
#tabbrowser-tabs > .tabbrowser-arrowscrollbox,
.tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned] {
min-height: 0px !important;
height: 25px !important;
min-height: 25px !important;
}

#print-preview-toolbar,
Expand All @@ -52,6 +51,7 @@
#navigator-toolbox toolbar {
-moz-box-ordinal-group: 10 !important;
}
/**/
#navigator-toolbox #TabsToolbar {
-moz-box-ordinal-group: 100 !important;
}
Expand Down Expand Up @@ -103,3 +103,18 @@
border-top: none !important;
border-bottom: none !important;
}

/* remove 'dragging tab' margin/padding nonsense */
#TabsToolbar[movingtab] {
padding-bottom: unset !important;
}

#TabsToolbar[movingtab] > .tabbrowser-tabs {
padding-bottom: unset !important;
margin-bottom: unset !important;
}

#TabsToolbar[movingtab] + #nav-bar {
margin-top: unset !important;
}
/**/
9 changes: 7 additions & 2 deletions classic/userChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,15 @@
/* Location bars autocomplete popup appearance ******************************************/
/****************************************************************************************/

@import url(./css/locationbar/ac_popup_title_and_url_in_2_lines.css);
/*@import url(./css/locationbar/ac_popup_title_and_url_50percent_width.css);*/
@import url(./css/locationbar/ac_popup_url_and_title_50percent_width.css);
/*@import url(./css/locationbar/ac_popup_title_and_url_in_2_lines.css);*/
/*@import url(./css/locationbar/ac_popup_classic.css);*/
/*@import url(./css/locationbar/ac_popup_hide_item_title.css);*/
/*@import url(./css/locationbar/ac_popup_show_item_title_only_on_hover.css);*/

/*@import url(./css/locationbar/ac_popup_result_highlighting_aero.css);*/
/*@import url(./css/locationbar/ac_popup_keysearch_bold.css);*/
/*@import url(./css/locationbar/ac_popup_keysearch_underline.css);*/
/*@import url(./css/locationbar/ac_popup_result_separator.css);*/

/**/

0 comments on commit 9e89a8d

Please sign in to comment.