Page 2 of 2

Re: different styles for each category

Posted: Tue Nov 01, 2016 4:32 pm
by Ibedejo
stevemaury wrote:None of the the above is necessary.
When it comes to colouring the fora on the index page on a per category base it don't see a way to avoid it.

Using adjusted styles for categories/fora is a different matter - there this approach is okay.

----------------------------
Gobbetto wrote:why all styles that are downloaded have just edited that file ?
Which styles are you refering to?

Re: different styles for each category

Posted: Tue Nov 01, 2016 4:51 pm
by Gobbetto

Re: different styles for each category

Posted: Tue Nov 01, 2016 5:53 pm
by Ibedejo
This is one of Arty's (Artodia) styles - in certain aspects they are a little "special":
CSS files have been changed to Sass, a very powerful language for generating stylesheets. Style loads only 1 CSS file instead of multiple CSS files, reducing page loading speed.
(see => https://www.phpbb.com/customise/db/styl ... pic/141916 )
In standard prosilver and its direct derivates stylesheet.css contains the list of the corresponding style's stylesheets in the order they are being imported (= loaded) so there is nothing one should or could edit in this file (besides adding further, self-created stylesheets if needed).
All editing is done in the individual stylesheets.

In terms of technical correctness this may be somehow over-simplified:
Arty's style use SASS, providing a CSS compatible syntax with a lot more features than standard CSS. Compiling "translates" this into "regular" CSS and "writes" all of the resulting CSS code into one single file => stylesheet.css.
Each compiler run will re-create this file from scratch, whiping out any earlier versions of it.
That's why you never edit stylesheet.css - you edit either individual .scss files or, in certain cases, the ones I mentioned in an earlier post.
What matters is in this style you should never edit stylesheet.css!
(again see => https://www.phpbb.com/customise/db/styl ... pic/141916 )

You should follow Arty's directions to avoid running into problems in the process of further individualizing this style sooner or later.

Re: different styles for each category

Posted: Tue Nov 01, 2016 6:00 pm
by Gobbetto
thanks for reply

so what can i do ?

i have to "clean" my file stylesheet and modify the individual .scss ?
like this i have to remake all the style ? :(

and also how i can make it ? there is a guide o something ?

about your code, i try with

Code: Select all

.category-12.forabg ul.topiclist li.row {

    border: 2px solid;
	border-color: #999999;
but this make a border just on index page

thanks again

bye

Re: different styles for each category

Posted: Tue Nov 01, 2016 6:28 pm
by Ibedejo
As I wrote before:

Yes, to avoid possible future trouble you should "transfer" your stylesheet.css edits to the correct files.

In case it isn't too pressing (I'm off for a few days):
Ibedejo wrote:I'll have a look at this file over the weekend (hopefully) - in case you did all your edits there and not in one of the "regular" scss files there should be a way to recontruct it, though it might be a little time consuming.
Part of what you did is already transfered - it'll take some more time to adress the rest.

Re: different styles for each category

Posted: Tue Nov 01, 2016 6:52 pm
by Gobbetto
no problem, just for understand if wait or not

with your lasts messages I had not understand if anything had changed or not

i wait with out problem

thanks a lot for your help

Re: different styles for each category

Posted: Tue Nov 01, 2016 7:19 pm
by pit-PL
Try this

Code: Select all

.category-12 ul.topiclist li.row, .category-31 ul.topiclist li.row {
   border: 2px solid #999;
}

Re: different styles for each category

Posted: Wed Nov 02, 2016 7:47 am
by Gobbetto
is not working and anyway i think is better to wait and do as say Ibedejo

thkans

Re: different styles for each category

Posted: Wed Nov 02, 2016 8:00 pm
by pit-PL
Gobbetto wrote:is not working
On the contrary, but you didn't even try.

Re: different styles for each category

Posted: Wed Nov 02, 2016 8:32 pm
by Ibedejo
The code pit-PL provided does work, so what do you mean by "it's not working": "not at all" or "not the way as expected"?
If "not at all": did you recompile the stylesheet after adding the code to _custom.scss?
If "not as expected": which element(s) exactly do you want to add a border to?

Re: different styles for each category

Posted: Thu Nov 03, 2016 7:00 am
by Gobbetto
i will try again but if i remember right the border is just on index page of forum, if i open the category is with out border

thanks

Re: different styles for each category

Posted: Thu Nov 03, 2016 5:25 pm
by Gobbetto
sorry, i'm wrong

I was wrong, I'd put the code in the file _colors and not in the file _custom

now i have a border in the index and also if i open the category
but unfortunately there is no the border when I open the topics list

Re: different styles for each category

Posted: Sat Nov 05, 2016 10:05 am
by Gobbetto
on waiting I try to make other changes,

for modify the dimension of category and forum icon, it's ok if i modify the _content file ?

Code: Select all

dl a.icon-link {						// topic row icon links
	display: block;
	width: 40px;
	height: 40px;
	padding: 0;
	position: absolute;
	top: 50%;
	left: 0;
	margin-top: -15px;
	margin-left: 9px;
	z-index: 2;
}
thanks

Re: different styles for each category

Posted: Sun Nov 06, 2016 9:19 pm
by Gobbetto
I solved it by changing _content file here:

Code: Select all

dl.icon dt .list-inner {
	padding-left: 60px;	
60px before was 55px, i hope is right/correct