Jump to content

Which Style Sheet?


Bendensin

Recommended Posts

I am sure this has been posted before, but damned if I can find it.

I need to create a new theme for my site. Which style sheets should I change, and where are they? I downloaded all of the style sheets and searched through them for various colors I need to change, etc... but found nothing.

I also need to change the print font size. Where would I find that option?

Link to comment
Share on other sites

Thanks Steve for your reply! ^_^

I am using IPB 4.x... Where would I find custom.css? I'm in Customization => Themes, and I don't see it.

And since it is a print font, doesn't that need to be changed in a print.css style sheet somewhere?

Link to comment
Share on other sites

9 minutes ago, Bendensin said:

Thanks Steve for your reply! ^_^

I am using IPB 4.x... Where would I find custom.css? I'm in Customization => Themes, and I don't see it.

And since it is a print font, doesn't that need to be changed in a print.css style sheet somewhere?

far right of theme name click the Edit HTML/CSS button (</>) >> css tab

ALL css to be added to custom.css or any other css file you create in the custom section (where custom.css is located) ... do not make changes to the ipb default css files

Also, make sure not making changes to the IPB default theme (create a copy, name it what you want and make changes to that)

copy.jpg

Link to comment
Share on other sites

  • 2 months later...

I read the documentation on themes, and it tells a lot about what can be done, but isn't exactly a step-by-step guide.

First I copied the default theme and called it "Turkey Central Red." I saved it with the default theme as the parent, and also with no parent (while trying to figure out which would work).

Either way, I clicked the "Edit" button and the tab "Front-End Colors," and changed the background color. The new background color clearly shows in the text box "Body background" and the new color numbers are there. But it isn't showing in the new theme--it still has the old background color.

I tried a CTRL+F5 to clear the browser cache, but the old background color is still showing.

How can I get this background color to change?

Also, which is better? To have default theme as a parent or have it with no parent?

Link to comment
Share on other sites

33 minutes ago, Bendensin said:

I read the documentation on themes, and it tells a lot about what can be done, but isn't exactly a step-by-step guide.

First I copied the default theme and called it "Turkey Central Red." I saved it with the default theme as the parent, and also with no parent (while trying to figure out which would work).

Either way, I clicked the "Edit" button and the tab "Front-End Colors," and changed the background color. The new background color clearly shows in the text box "Body background" and the new color numbers are there. But it isn't showing in the new theme--it still has the old background color.

I tried a CTRL+F5 to clear the browser cache, but the old background color is still showing.

How can I get this background color to change?

Also, which is better? To have default theme as a parent or have it with no parent?

have you selected the theme from the drop down menu at bottom of the page when viewing forum ?

usually I DO NOT create child theme of any parent ... create a new theme and make it the parent then try making the changes (remember to make sure you select the them when viewing forum (also make sure the permissions are set to view theme when creating it)

Link to comment
Share on other sites

Quote

usually I DO NOT create child theme of any parent ... create a new theme and make it the parent then try making the changes (remember to make sure you select the them when viewing forum (also make sure the permissions are set to view theme when creating it)

OK I did right by not making it a child of the default.

For the other part? Operator error! I just realized that I had only made it visible to Admin, but when I was viewing it, I was viewing it as a super-moderator. Thanks Steve, for jarring my brain to make me realize my mistake. Everything is working now.

 

 

 

Link to comment
Share on other sites

54 minutes ago, Bendensin said:

OK I did right by not making it a child of the default.

For the other part? Operator error! I just realized that I had only made it visible to Admin, but when I was viewing it, I was viewing it as a super-moderator. Thanks Steve, for jarring my brain to make me realize my mistake. Everything is working now.

 

 

 

No problems .. glad you got it sorted ... enjoy

Link to comment
Share on other sites

Thanks for your help, Steve. I was pretty good at this with version 3.x.

I've been successful at changing most of the colors, but one is baffling me: The "alternating" color in the forums. I can't find it anywhere in the Front-End Colors. I'll attach an image to explain.

color-alternating-2.png

Link to comment
Share on other sites

23 minutes ago, Bendensin said:

Thanks for your help, Steve. I was pretty good at this with version 3.x.

I've been successful at changing most of the colors, but one is baffling me: The "alternating" color in the forums. I can't find it anywhere in the Front-End Colors. I'll attach an image to explain.

color-alternating-2.png

Unfortunately I do not use the Front end colors way of theming so cannot help

If you want to go the custom.css route then in custom.css add:

.ipsDataList.ipsDataList_zebra .ipsDataItem:nth-child(2n):not(.ipsDataItem_selected):not(.ipsModerated):not(.ipsDataItem_new):not(.ipsDataItem_success):not(.ipsDataItem_warning):not(.ipsDataItem_error):not(.ipsDataItem_info):not(.ipsDataItem_status) {
  background: #fff;
}

obviously use your own color

Link to comment
Share on other sites

29 minutes ago, Bendensin said:

Thank you Steve.

Is the "normal" way of creating a new them to create a new style sheet, which I assume over-rides the default style sheets?

no ... as has been posted at beginning of this topic ... custom.css (which should be there by default) ... far right of theme name click the Edit HTML/CSS button (</>) >> css tab

Link to comment
Share on other sites

Thanks again Steve. I am now sailing through this theme thing thanks to you.

Just a side note... I learned to run my forum many years ago from the way this Invision Power support forum is run, and the way the more experienced members are so ready to help others. You are a great example of that, Steve, and I appreciate it.

Link to comment
Share on other sites

1 hour ago, Bendensin said:

Thanks again Steve. I am now sailing through this theme thing thanks to you.

Just a side note... I learned to run my forum many years ago from the way this Invision Power support forum is run, and the way the more experienced members are so ready to help others. You are a great example of that, Steve, and I appreciate it.

Glad to help ... as I recall I was once new and needed help from members in those days .,... now and again need help regarding different matters but I try to help where poss.

If like any members posts (not just that may help you but any which you find interesting) you can always show by clicking the 'Like This' button t bottom right of posts (there is no obligation to though)

When you get to know more in later times then you can pass your knowledge on to those new members who may require help

Link to comment
Share on other sites

  • 1 year later...
On 6/17/2016 at 3:14 PM, Meddysong said:

I got everything done with my theme, but I am still having trouble making the font size larger when printing. The print font size is so small I have trouble reading it. I've created a print.css style sheet and added the code suggested in @Meddysongs post. I don't know if this is dated code, but I also added a change to the font size at the end, changing the printed font size to 1.5em (way too big) just to see if there was any difference in the printed article. The print.css. style sheet seems to have made no difference at all.

Can anyone see what I'm doing wrong, and how I might make the printed font size larger?

@media print {
	body {
		width: 100%;
		font-family: "Georgia", "Times New Roman", serif;
		background-color: #fff !important;
	}

	#ipsLayout_header > header {
		background-color: #fff !important;
		margin-bottom: 0 !important;
		padding: 10px 0 0 0 !important;
	}

	#elSiteTitle {
		color: #000 !important;
		font-size: 1.8em;
	}

	#elHeaderNavigation {
		background: #fff !important;
		padding: 0 0 15px 0 !important;
		border-bottom: 1px solid #ebebeb;
	}
	#elFooterNavigation {
		background: #fff !important;
		padding: 15px 0 0 0 !important;
		border-top: 1px solid #ebebeb;
	}

	.ipsLayout_container {
		max-width: 100% !important;
	}

	#ipsLayout_contentArea,
	.ipsBox {
		border: 0 !important;
	}

	#ipsLayout_mainArea {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	#ipsLayout_sidebar,
	#elSearchNavContainer, #elMobileNav,
	#elHeaderSubLinks,
	#elUserNav,
	#elWidgetControls,
	.ipsToolList,
	.ipsButtonBar,
	.ipsDataItem_lastPoster,
	.ipsComment_controls,
	.ipsFollow,
	.ipsPageHeader .ipsUserPhoto,
	.ipsLikeRep,
	.cTopicPostArea,
	[data-controller="core.front.core.sharelink"] {
		display: none !important;
	}

	.ipsType_richText {
		font-size: 1.2em;
	}

	.ipsType_sectionTitle {
		background: #333 !important;
		color: #fff !important;
		border-radius: 0 !important;
	}

	.ipsType_pageTitle {
		font-size: 2em;
		color: #000;
	}

	.ipsPageHeader {
		margin: 30px 0 !important;
	}

		.ipsPhotoPanel > div {
			margin: 0 !important;
		}

	.ipsComment {
		border-bottom: 4px solid #333 !important;
		margin-bottom: 0 !important;
	}

	.ipsComment.ipsColumns,
	.ipsComment.ipsColumns > .ipsColumn {
		display: block !important;
		width: 100% !important;
	}

	.ipsComment_author {
		text-align: left !important;
	}

		.ipsComment_author .cAuthorPane_photo,
		.ipsComment_author .cAuthorPane_photo ~ li {
			display: none !important;
		}
p {
  font-size: 1.5em;
  
  }
}

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...