Code Monkey home page Code Monkey logo

Comments (7)

Madis0 avatar Madis0 commented on August 11, 2024 1

That is a bit hard to fix, since the position is fixed and even if I somehow set a second position for when sidebar is opened, you can adjust sidebar's width too, making it still "break".

As a workaround, I would suggest setting right: 1em; to a value you prefer, such as 19em.

from userchrome-tweaks.

Timvde avatar Timvde commented on August 11, 2024

Alternatively, would left: 1em move it to the top left?

from userchrome-tweaks.

Madis0 avatar Madis0 commented on August 11, 2024

In that case, one can remove that line entirely (default is left with zero margin).

from userchrome-tweaks.

Timvde avatar Timvde commented on August 11, 2024

I suppose that there is no way to check in CSS whether the sidebar is open, and on which side it is?

from userchrome-tweaks.

Madis0 avatar Madis0 commented on August 11, 2024

I guess it might be, but I don't have the time/tools to find out at the moment.

from userchrome-tweaks.

Madis0 avatar Madis0 commented on August 11, 2024

I have now found out that there is a parameter called ordinal that says whether the sidebar is on the left or right, so as an example one could do this:

#sidebar-box[ordinal="2"]{ /* red if left */
  background-color: red !important;
}

#sidebar-box[ordinal="4"]{ /* green if right */
  background-color: green !important;
}

Only question is, how to use that to adjust the find bar? Something like

#sidebar-box[ordinal="4"] > .browserContainer > findbar {
  left: 0em !important;
}

didn't do the trick.

from userchrome-tweaks.

Timvde avatar Timvde commented on August 11, 2024

I think some magic with the :has selector could do the trick: https://developer.mozilla.org/en-US/docs/Web/CSS/:has

But that compatibility table looks kinda depressing :P I don't think this is currently possible.

from userchrome-tweaks.

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.