mirror of
				https://codeberg.org/claui/mobile-config-firefox.git
				synced 2025-11-03 12:05:55 +00:00 
			
		
		
		
	create bookmarks_toolbar_on_newtabs_only.css
This commit is contained in:
		
							parent
							
								
									1ba9cafab4
								
							
						
					
					
						commit
						e4beaafb9e
					
				
					 3 changed files with 31 additions and 1 deletions
				
			
		
							
								
								
									
										28
									
								
								chrome/bookmarks_toolbar_on_newtabs_only.css
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								chrome/bookmarks_toolbar_on_newtabs_only.css
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,28 @@
 | 
			
		|||
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/bookmarks_toolbar_on_newtabs_only.css made available under Mozilla Public License v. 2.0
 | 
			
		||||
See the above repository for updates as well as full license text. */
 | 
			
		||||
 | 
			
		||||
/* "Real" show-bookmarks toolbar on new-tabs only - requires extension: https://addons.mozilla.org/addon/ntp_titler/ */
 | 
			
		||||
 | 
			
		||||
/* This is NOT compatible with autohide_bookmarks_toolbar.css because the collapsing methods are different */
 | 
			
		||||
 | 
			
		||||
#PersonalToolbar{
 | 
			
		||||
  --uc-bm-height: 20px; /* Might need to adjust if the toolbar has other buttons */
 | 
			
		||||
  --uc-bm-padding: 4px; /* Vertical padding to be applied to bookmarks */
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
:root[uidensity="compact"] #PersonalToolbar{ --uc-bm-padding: 1px }
 | 
			
		||||
:root[uidensity="touch"] #PersonalToolbar{ --uc-bm-padding: 7px }
 | 
			
		||||
 | 
			
		||||
#PersonalToolbar:not([customizing]){
 | 
			
		||||
  margin-bottom: calc(0px - var(--uc-bm-height) - 2 * var(--uc-bm-padding));
 | 
			
		||||
  visibility: hidden;
 | 
			
		||||
  transition: margin-bottom 135ms ease !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* The prefixes are set by the above linked extension */
 | 
			
		||||
:root[titlepreface="NewTab - "] #PersonalToolbar,
 | 
			
		||||
:root[titlepreface="Home - "] #PersonalToolbar,
 | 
			
		||||
:root[titlepreface="PrivateBrowsing - "] #PersonalToolbar{
 | 
			
		||||
  visibility: visible;
 | 
			
		||||
  margin-bottom: 0px;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -100,5 +100,6 @@
 | 
			
		|||
"vertical_menubar.css":["menubar","hack"],
 | 
			
		||||
"window_control_placeholder_support.css":["window-control","patch"],
 | 
			
		||||
"vertical_popup_menubar.css":["menubar","menu","toolbars","popup"],
 | 
			
		||||
"classic_firefox_menu_button.css":["classic","menu"]
 | 
			
		||||
"classic_firefox_menu_button.css":["classic","menu"],
 | 
			
		||||
"bookmarks_toolbar_on_newtabs_only.css":["bookmarks","toolbars","autohide","hiding"]
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										1
									
								
								tags.csv
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								tags.csv
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -100,3 +100,4 @@ vertical_menubar.css,menubar,hack
 | 
			
		|||
window_control_placeholder_support.css,window-control,patch
 | 
			
		||||
vertical_popup_menubar.css,menubar,menu,toolbars,popup
 | 
			
		||||
classic_firefox_menu_button.css,classic,menu
 | 
			
		||||
bookmarks_toolbar_on_newtabs_only.css,bookmarks,toolbars,autohide,hiding
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		
		
			
  | 
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue