TinyPortal

Development => Feedback => Topic started by: [chrisB] on January 09, 2023, 10:50:20 PM

Title: More options for the roundframe style
Post by: [chrisB] on January 09, 2023, 10:50:20 PM
Can more control be given to this option? Such as the ability to turn it off in certain areas (rather than it being on for all locations).

(https://i.imgur.com/rOhsHlQ.png)


I thought I might be able to hide the roundframe from showing on my forums index page with CSS, allowing to show in every other location other than that.


It looks awesome in pages, giving it a different look but it looks off in the forum IMO.


More options to customise this would be great.
Title: Re: More options for the roundframe style
Post by: tino on January 09, 2023, 11:04:48 PM
You can do it on a per block setting? Although if you want it on different pages then you'd need to clone the block and only show ones on certain pages.

TinyPortal is already complex enough with its options. I'm not sure adding more complexity is good when I think you can already do what you're asking.
Title: Re: More options for the roundframe style
Post by: [chrisB] on January 09, 2023, 11:15:18 PM
Quote from: tino on January 09, 2023, 11:04:48 PM
You can do it on a per block setting? Although if you want it on different pages then you'd need to clone the block and only show ones on certain pages.

Could you show me where? I don't see it inside the block settings.

.roundframe {
    margin: 10px 0 0 0;
    padding: 12px 16px
px
;
    background: #f8f8f8;
    border: 1px solid #c5c5c5;
    border-radius: 7px;
    box-shadow: 0 -2px 2px rgb(0 0 0 / 10%);
    overflow: auto;
}


I see styling options which I have used, but I see nothing regarding roundframe (the above CSS).
Title: Re: More options for the roundframe style
Post by: @rjen on January 10, 2023, 06:03:05 AM
Roundframe is a panel setting, not a block. And I agree with Tino on not adding more settings for cases that are not more commonly requested.

I think the roundframe option is a bit dated personally, and I have seriously considered removing it completely...
Title: Re: More options for the roundframe style
Post by: [chrisB] on January 10, 2023, 10:35:40 AM
It could easily be handled with CSS, if the panels had a way that targeted it. Hence why I originally asked in a support post if it can be done.
Title: Re: More options for the roundframe style
Post by: [chrisB] on January 13, 2023, 12:27:08 AM
toggle_tprightbarHeader

This is the class that hides the right bar, can this be used alongside the board index (if there's a class for it).

So like;

boardindex + togglerightbarheader {
.roundframe {
  display: none;
}


I'm not sure how to explain it but on one of my IPS sites, a theme designer once told me how to target certain areas but I don't know SMF setup that well. The last time I really got this in-depth was with the SMF 1.
Title: Re: More options for the roundframe style
Post by: @rjen on January 15, 2023, 05:36:52 PM
Off course the panel can be targeted, IF there was a higher level  element that is specific to the areas that you want to target.

These elements do not exist in TinyPortal and I do not think they exist in SMF.

Perhaps a solution can be found if you specify exactly what forum pages you want to target and which not. Without that we can only guess
Title: Re: More options for the roundframe style
Post by: [chrisB] on January 15, 2023, 10:14:02 PM
I'm only trying to target the board index (the main forum page).

The round frame looks neat on the pages, in a way that makes the side panel standout away from the main page and I really like that.
Title: Re: More options for the roundframe style
Post by: @rjen on January 15, 2023, 10:43:25 PM
Well, like I said: there is no higher-level element on that page that indicates that it is the boardindex...

So there is nothing to target using css...

Title: Re: More options for the roundframe style
Post by: [chrisB] on January 16, 2023, 01:39:20 AM
That's fair enough, thank you for your time and explanation.
Title: Re: More options for the roundframe style
Post by: [chrisB] on January 27, 2023, 05:50:11 PM
Quote from: @rjen on January 15, 2023, 10:43:25 PM
Well, like I said: there is no higher-level element on that page that indicates that it is the boardindex...

So there is nothing to target using css...
This does what I want, but I'm not sure if it's the correct way to do it with all the '0' values. I tried with just the margin part, the other parts would return from the tinyportal css
.action_forum .roundframe {
    margin: 1px 0px 0px 0px;
    padding: 0;
    background: 0;
    border: 0;
    border-radius: 0;
    box-shadow: 0;
    overflow: 0;
}


Could someone please explain and tell me the code to override this please?
<div id="tprightbarContainer" style="width:305px;">

Nothing I have tried works so far.
Title: Re: More options for the roundframe style
Post by: @rjen on January 27, 2023, 05:53:40 PM
This is an in-line style: it will ALWAYS override anything set in css...

What are you trying to accomplish by overriding that?
Title: Re: More options for the roundframe style
Post by: [chrisB] on January 27, 2023, 06:06:25 PM
I would like the width for the forum to be 270px.
Title: Re: More options for the roundframe style
Post by: @rjen on January 27, 2023, 06:11:05 PM
You mean you want a different width for the right panel when you are forum, different from the standard width ...

This width is set by the TinyPortal panel width setting: that does not allow for different values depending on where you are
Title: Re: More options for the roundframe style
Post by: @rjen on January 27, 2023, 06:23:40 PM
Correction. I think this WILL work...

add to your css...

.action_forum #tprightbarContainer {
   width: 270px!important;
}
Title: Re: More options for the roundframe style
Post by: [chrisB] on January 27, 2023, 06:29:11 PM
Quote from: @rjen on January 27, 2023, 06:23:40 PM
Correction. I think this WILL work...

add to your css...

.action_forum #tprightbarContainer {
   width: 270px!important;
}

THANK YOU, thank you rjen! 👏🏻👏🏻