change font size of history sidebar

User Help for Mozilla Firefox
Post Reply
pleasejust
Posts: 40
Joined: August 11th, 2018, 6:09 am

change font size of history sidebar

Post by pleasejust »

anyone know the css to change font size of history sidebar? Thanks.
User avatar
dfoulkes
Posts: 22525
Joined: June 28th, 2008, 10:31 pm
Location: Mesquite, Nevada

Re: change font size of history sidebar

Post by dfoulkes »

This old code is a carry over from my old profile but enlarging the History sidebar font seems to still work.

Code: Select all

/* Searchbar history drop down menu */
   #searchbar .autocomplete-history-dropmarker {
   -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#history-dropmarker");
   display: -moz-box; } 

  .tabbrowser-tab {
  -moz-border-radius: 8px !important;}
As you can see she's (The CAT) always alert and on the prowl for Meoware !!
User avatar
dickvl
Posts: 54163
Joined: July 18th, 2005, 3:25 am

Re: change font size of history sidebar

Post by dickvl »

Add code to the userChrome.css file below the default @namespace line.
http://kb.mozillazine.org/userChrome.css

This code work for places treechildren list in the sidebar (bookmarks and history).
If you really want this only for the history then prefix the selector with "#history-panel" (use a space as separator).
You can also try a #history-panel * {font-size: } rule.
The header has ID: #sidebar-header {}

Code: Select all

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

.sidebar-placesTreechildren::-moz-tree-cell-text {
 font-size: 12pt !important;
}
pleasejust
Posts: 40
Joined: August 11th, 2018, 6:09 am

Re: change font size of history sidebar

Post by pleasejust »

Your code worked dickvl, thanks. Now how do I increase the maxwidth of the bookmarks/history sidebar beyond the default maximum? I tried:

.sidebar-placesTreechildren::-moz-tree-cell-text
{font-size: 10.5pt !important;
max-width: 900px !important;
width: 900px !important;}

didn't work. Thanks.
User avatar
dickvl
Posts: 54163
Joined: July 18th, 2005, 3:25 am

Re: change font size of history sidebar

Post by dickvl »

That would be this code:

Code: Select all

#sidebar { 
 min-width:0px !important;
 max-width:none !important;
}
pleasejust
Posts: 40
Joined: August 11th, 2018, 6:09 am

Re: change font size of history sidebar

Post by pleasejust »

Thanks! Worked like a charm.
Post Reply