Code Monkey home page Code Monkey logo

Comments (5)

Mr-nUUb avatar Mr-nUUb commented on May 29, 2024 1

Something like this?
grafik

step by step guide (not sure if something is missing):

  1. remove line
    position: relative !important;
  2. add following code to your userChrome.css:
/* Client Side Decorations / Window Controls */

/* reserve space for buttons */
#nav-bar {
  margin-right: 92px;
}

/* move buttons next to menu button */
#TabsToolbar .titlebar-buttonbox-container {
  visibility: visible !important;
  position: absolute;
  display:block;
  top: 8px;
  right: 0;
}

/* fix ugly background color */
#navigator-toolbox {
  background-color: #484d51 !important;
}

/* hide buttons in fullscreen mode (video player and F11) */
#main-window[inFullscreen="true"] .titlebar-buttonbox-container,
#main-window[inDOMFullscreen="true"] .titlebar-buttonbox-container {
  /* display: none !important; */
  visibility: hidden !important;
}

/* remove empty space when in fullscreen mode (F11) */
#main-window[inFullscreen="true"] #nav-bar {
  margin-right: 0px !important;;
}

/* END Client Side Decorations / Window Controls */

from firefoxsidebar.

drannex42 avatar drannex42 commented on May 29, 2024

I am a little confused. But I'll try to answer this? Maybe?

If you want the minimize/max/close buttons, you will need to click on the hamburger menu (top right) -> More Tools -> Customize Toolbar, and then at the bottom left of the screen enable the titlebar.

I am not a 100% if this is what you are looking for, I am a bit frazzled at the moment but hopefully this helps!

from firefoxsidebar.

Xanaxus avatar Xanaxus commented on May 29, 2024

Yes just like that

I prefer my controls on the left, so I Have made the following adjustment to the above given code.

/* Client Side Decorations / Window Controls */

/* reserve space for buttons */
#nav-bar {
  margin-left: 150px;
}

/* move buttons next to menu button */
#TabsToolbar .titlebar-buttonbox-container {
  visibility: visible !important;
  position: absolute;
  display:block;
  top: 10px;
  left: 50px;
}

/* fix ugly background color */
#navigator-toolbox {
  background-color: #484d51 !important;
}

/* hide buttons in fullscreen mode (video player and F11) */
#main-window[inFullscreen="true"] .titlebar-buttonbox-container,
#main-window[inDOMFullscreen="true"] .titlebar-buttonbox-container {
  /* display: none !important; */
  visibility: hidden !important;
}

/* remove empty space when in fullscreen mode (F11) */
#main-window[inFullscreen="true"] #nav-bar {
  margin-right: 0px !important;;
}

/* END Client Side Decorations / Window Controls */

Thank you @Mr-nUUb
image

from firefoxsidebar.

Mr-nUUb avatar Mr-nUUb commented on May 29, 2024

@Xanaxus please see my PR for updated code which doesn't involve deleting line #152 ;-)

@drannex42 I hope my PR fits your needs. As I'm not a CSS guru, I don't know how to make all this optional. It seems nested comments aren't possible (to enable/disable everything at once without deleting tons of comments). Maybe we should put it in another file and add something like add contents of userChrome.csd.css to the end of userChrome.css to enable CSD to the readme?

from firefoxsidebar.

drannex42 avatar drannex42 commented on May 29, 2024

@Xanaxus @Mr-nUUb I have broken the entire extension into components for easier adding and removal of features, along with a designated preferences folder. I have made a new branch below for testing purposes. I have merged this with the main branch. I have also made it easier to specify if the CSd extension is on the left or right side, and removed the need for that background on the titlebar buttons.

#15 (comment)

from firefoxsidebar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.