Page 1 of 1

How to move a button?

Posted: 24 Oct 2016, 15:51
by Sciamano
Hello, me again :)
By copying here and there I've finally managed to recreate my beloved Google Reader look in tt-rss.
I only have one problem, and I can't seem to find the solution (sorry, I really don't understand much in coding): I would like to move the "Mark all read" button before the other buttons (see attached image).
How can I achieve this? Thanks

EDIT: it seems like the screenshot failed to upload. Anyway, here it is:
Image

Re: How to move a button?

Posted: 24 Oct 2016, 18:57
by sleeper_service
there's something to be said for adaptability, and not clinging desperately to the dead past.

Re: How to move a button?

Posted: 24 Oct 2016, 19:28
by fox
beloved google reader, huh

Re: How to move a button?

Posted: 24 Oct 2016, 20:21
by Sciamano
Well, it's clear, compact and simple. Of course I could survive with a different theme, but what's wrong in sticking with what's more familiar?
Anyway, I was interested in moving the button in order to learn something new. If it's too much to ask or too complicated to explain, just say so, it's not a big deal.

Re: How to move a button?

Posted: 25 Oct 2016, 00:20
by levito
You could do it in a hacky way with a custom stylesheet (Preferences > Customize stylesheet) containing:

Code: Select all

#main_toolbar_form {
   position: relative;
}
#main_toolbar_form > :last-child {
   position: absolute;
   top: 2px;
   left: -320px; /* tune that value so it looks okay for your language setting */
}

Re: How to move a button?

Posted: 25 Oct 2016, 10:19
by Sciamano
Thank you so much, this worked perfectly!
I didn't know items could be moved by editing the CSS... I thought the modifications had to be "deeper" inside the code. Very cool!

Re: How to move a button?

Posted: 25 Oct 2016, 17:42
by martywd
Sciamano wrote:Thank you so much, this worked perfectly!...


I second that. I too much prefer having the 'Mark as read' button on the left aka more toward the middle of the page in my _beloved_tt-rss_ reader. This bit of code does the trick. Thanks again @levito .
.

Re: How to move a button?

Posted: 26 Oct 2016, 15:36
by Sciamano
martywd wrote:I second that. I too much prefer having the 'Mark as read' button on the left aka more toward the middle of the page in my _beloved_tt-rss_ reader. This bit of code does the trick. Thanks again @levito .
.


Glad my taking the beating was useful to others too. :mrgreen: