LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-22-2018, 02:24 AM   #1
Johng
Member
 
Registered: Feb 2002
Location: NZ
Distribution: Kubuntu, Mint
Posts: 408

Rep: Reputation: 31
Combine two userChrome.css files


I have found two userChrome.css files which separately work as intended in Firefox.

The first creates curved tabs and moves them below the navigation bar

Code:
/* Tab bar below Navigation & Bookmarks Toolbars */
#nav-bar { /* main toolbar */
  -moz-box-ordinal-group: 1 !important;
  box-shadow: none !important;
}
#PersonalToolbar { /* bookmarks toolbar */
  -moz-box-ordinal-group: 2 !important;
}
#TabsToolbar { /* tab bar */
  -moz-box-ordinal-group: 3 !important;
  padding-top: 0 !important;
}
/* Clean up spacing */
.titlebar-placeholder {
  display: none !important;
}
toolbarbutton.bookmark-item {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}


.tabbrowser-tab::after, .tabbrowser-tab::before {
   border-left: none !important;
}
.tab-background {
  border-radius: 10px 10px 0px 0px !important;
  border-image: none !important;
  border-left: 1px solid !important;
  border-right: 1px solid !important;
  border-top: 1px solid !important;
  background-color: #e4f2f4 !important;
}
.tab-line {
  display: none !important;
}
and the second adds colour to the active tab

Code:
    /* Change Color of Active tab */
    tab{
    -moz-appearance: none !important; }
    tab[selected=”true”] {
    background-color: rgb(222,218,210) !important;
    color: black !important; }
How do you combine the two?
 
Old 05-22-2018, 08:14 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Code:
cat userChrome1.css userChrome2.css > userChrome.css
 
Old 05-23-2018, 12:41 AM   #3
Johng
Member
 
Registered: Feb 2002
Location: NZ
Distribution: Kubuntu, Mint
Posts: 408

Original Poster
Rep: Reputation: 31
Thank you keefaz

Unfortunately it is not as simple as tacking one on the end of the other, I tried that.

If userChrome1.css precedes userChrome2.css, userChrome2.css is ignored.
If userChrome2.css precedes userChrome1.css, userChrome1.css is ignored.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
combine mutiple files using a particular column but files can have different rows bioinfo17 Linux - Newbie 29 05-02-2017 11:03 PM
Firefox 24 userChrome.css Stragonian Slackware 1 12-15-2013 01:17 AM
[SOLVED] Where to place userChrome.css? (Debian Lenny) mike11 Linux - Desktop 3 08-02-2009 10:55 PM
Firefox, fonts and userChrome.css dwmorton Linux - Software 2 11-05-2004 07:02 PM
Best way to combine files? JockVSJock Programming 4 04-25-2004 07:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration