Register   Login
     
  Latest Posts  
RE: Google Maps
by smcculloch on 11/23/2008 10:29 AM
RE: I cant get rss feeds to work correctly
by smcculloch on 11/23/2008 10:27 AM
captcha still proken
by StatisticsIO on 11/23/2008 6:11 AM
RE: Comments RSS feeds
by StatisticsIO on 11/23/2008 6:09 AM
Regions and Copuntry List scripts for Location Types
by rodneyjoyce on 11/23/2008 4:56 AM
RE: BUG: Sort by: Price
by usheen on 11/23/2008 1:23 AM
RE: News Articles 301 Redirect
by mcox on 11/22/2008 11:16 PM
RE: I cant get rss feeds to work correctly
by davidthomson on 11/22/2008 11:14 PM
Google Maps
by bmurphy on 11/22/2008 11:11 PM
RE: News Articles 301 Redirect
by swebster on 11/22/2008 10:47 PM
  Forums  
Subject: Background color of detail view
Prev Next
You are not authorized to post a reply.

Page 1 of 3123 > >>
Author Messages
Haris SheikhUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:43

4/14/2006 3:53 AM  
Detail view of the article is currently showing text with yellow background, how can I change this yellow background to white or anyother color without modifying the code? Right now I have simply uploaded the downloaded PA.
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


4/14/2006 6:15 AM  
You can add the style (override it) in your portal or skin stylesheet. To change the colour it would be something like:-

.articleTextCell { background-color: #F0F0F0; }

Scott McCulloch
Site Administrator
Haris SheikhUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:43

5/16/2006 2:37 AM  
I just gave a demo to the client and they themselves want to be able change the colors (yellow article background and green date background) according to the skin. I tried to find the tags in Admin->Site Settings->Stylesheet Editor but could not find the tag.

They are not technical people due to which manually updating css file is not possisble for them so there must be a form where they can change the colors. How earliest it can be done?
Haris SheikhUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:43

5/16/2006 3:29 AM  
one more thing. Please tell me precedence of portal.css and skin.css. Which is overloaded by the other?
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


5/16/2006 6:56 AM  
Hi haris,

You need to take the styles from the module.css and move them to the portal or skin stylesheet.

The portal stylesheet trumps everything else to answer your questions.

I also use templates, /Templates of the module directory, this will allow you to further customize the look and allow your users to select from a number of styles. I've included some in the module already, they can be selected in admin options.

Scott McCulloch
Site Administrator
Haris SheikhUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:43

5/16/2006 7:37 AM  
I can change colors through templates, right?
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


5/16/2006 9:08 PM  
Yep, you can change both the colours and the actual layout.

Scott McCulloch
Site Administrator
Haris SheikhUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:43

5/16/2006 11:02 PM  
thanks for the info.

I can do it myself but my cleint cannot play with css files or templates so I need to provide them some way to update css through screen.
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


5/17/2006 6:35 AM  
If they use the default template, you can let them know the styles to add to their own portal stylesheet to customize.

Scott McCulloch
Site Administrator
Haris SheikhUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:43

5/18/2006 12:04 AM  
Scott the problem is that they know nothin about css so asking them to add their own styles to portal stylesheet is out of question.
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


5/18/2006 1:32 AM  
I'm not sure what you are asking for, are you asking for a config option to change the background colour?

What I suggest is to create a number of templates with different background colours, and get them to choose a template in admin options to allow them to change the background colour.

Scott McCulloch
Site Administrator
Gym MediaUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:38


5/19/2006 9:27 PM  

I changed the sites style sheet, but the detail view still has a green title background. Below is my stylesheet entry for the news article in my site settings. Example of the green is here.

 

 

/* News Articles Custom Styles */
.NormalWhite { font-family: Tahoma, Arial, Helvetica; font-size: 11px; font-weight: bold; color: #FFFFFF; }
.articleQuote { font-family: Tahoma, Arial, Helvetica; font-size: 8pt; border-top: solid 1px #999999; border-bottom: solid 1px #999999; }
 
.articleTitle { font-size : 14px; font-weight : bolder; color : #fe8e16; }

.articleTable { background-color: black; margin: 0px; }
.articleTopCell { background-color: #fe8e16; color: white; font-weight: bold; padding: 6px; height: 25px; }
.articleTopCell{ background-color: #fe8e16; color: white; font-weight: bold; padding: 6px; height: 25px; }

.featuredTopCell{ background-color: #fe8e16; color: white; font-weight: bold; padding: 6px; height: 25px; }
.articleContentCell { color: black; padding: 6px; background-color: #ffffff; }
.articleTextCell { color: black; padding: 6px; background-color: #ffffff; }
.articleIconCell { background-color: #D0D0D0; width: 20px; }
.articleFooterCell { color: #FFFFFF; padding: 3px; background-color: #fe8e16; height: 25px; }

.articleTabstrip {
 background: url(images/tab_background.gif) repeat-x bottom; 
 width: 100%;
 padding: 0px 0px 0px 7px;
 line-height: normal;
 
}
  
.articleTabstrip ul {
 padding: 0;
 margin: 0;
 list-style: none;
 }
  
.articleTabstrip li {
 float: left;
 display:inline;
 margin: 0;
 padding: 0;
 
 }
 
.articleTabstrip a {
 font: normal 11px Tahoma, Arial, Verdana, sans-serif; 
 float:left;
 background:url(images/left_both.gif) no-repeat left top;
 margin: 0;
 padding: 0 0 0 4px;
 border-bottom: 1px solid #fe8e16;
 text-decoration: none;
 cursor: hand;
 }
 
.articleTabstrip a span {
 float: left;
 display: block;
 background: url(images/right_both.gif) no-repeat right top;
 padding: 5px 6px 2px 2px;
 font-weight: normal;
 color: black;
 width: 100px;
 text-align: center;
 line-height: normal;
 font: normal 11px Tahoma, Arial, Verdana, sans-serif;
 text-decoration: none;
 }

.articleTabstrip ul li a:visited {
 font: normal 11px Tahoma, Arial, Verdana, sans-serif;
 text-decoration: none;
 color: black;
 }
 
/* Commented Backslash Hack hides rule from IE5-Mac \*/
.articleTabstrip a span {float:none;}
/* End IE5-Mac hack */
 
.articleTabstrip a:hover span {
 color:black;
 }

.articleTabstrip .selected a {
 font: normal 11px Tahoma, Arial, Verdana, sans-serif; 
    background-position: 0 -34px;
    border-width: 0;
 margin-top: -2x;
    }
 
.articleTabstrip .selected a:hover {
    background-position:0 -34px;
    }

.articleTabstrip .selected a:hover span {
    background-position: 100% -34px;
    }  
   
.articleTabstrip .selected a span {
 background-position: 100% -34px;
 padding-top: 3px;
 padding-bottom: 5px;
 /*color:#333;*/
 margin-top: 0px;
 }
   
li.articleTab .selected
 {
 margin-top: 5px;
 }
  
.articleTabstrip a:hover {
 background-position: 0% -32px;
    }

.articleTabstrip a:hover span {
 background-position: 100% -32px;
 }

.articleTabpanel {
 padding-left: 5px;
 padding-right: 5px;
 padding-top: 8px;
 padding-bottom: 20px;
 margin: 0px;
 background-color: #FFFFFF;
 float: none;
 border-left: 1px solid #FFFFFF;
 border-right: 1px solid #FFFFFF;
 border-bottom: 1px solid #FFFFFF;
 border-top: 1px solid #FFFFFF;
 }
 
.articleOptionpanel {
 padding-left: 2px;
 padding-right: 2px;
 padding-top: 2px;
 padding-bottom: 2px; 
 margin: 4px;
 margin-bottom: 4px;
 margin-top: 0px;
 margin-left: 0px;
 margin-right: 0px;
 background-color: #FFFFFF;
 float: none;
 border-left: 1px solid #FFFFFF;
 border-right: 1px solid #FFFFFF;
 border-bottom: 1px solid #FFFFFF;
 border-top: 1px solid #FFFFFF;
 text-align: center;
 }


GymnasticsMedia.com
The Ultimate Portal for the Ultimate Sport.
y01nkUser is Offline
Registered Users
Nuke Master
Nuke Master
Posts:201


5/19/2006 11:00 PM  
I think that there are TWO style sheets at work here- one is the module css, and another is the template css in the resources folder.

I think Scott is referring to the latter, the template css, for providing a variety of pre-set colors to a customer.


generated by sloganizer.net
Gym MediaUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:38


5/19/2006 11:14 PM  
Changing the template.css worked. Though be much better if the site settings style sheet overroad module or template settings.That way each portal could have its own color scheme.

GymnasticsMedia.com
The Ultimate Portal for the Ultimate Sport.
y01nkUser is Offline
Registered Users
Nuke Master
Nuke Master
Posts:201


5/20/2006 9:09 AM  
That is the way it is supposed to work:

Quoting the DNN Skinning PDF:
DotNetNuke uses an external style sheet ( or CSS ) specification which takes full
advantage of their cascading nature. Essentially this means that DotNetNuke has
multiple external style sheet references on a page – each style sheet reference is
specified in prioritized order so that hierarchical overriding can occur. The
cascading order of style sheets is summarized below ( with each item overriding the
previous items ):
  • Modules – styles for custom modules defined in PortalModuleControl.StyleSheet
  • Default – default host level styles – default.css
  • Skin – skin styles – skin.css or skinfilename.css
  • Container – container styles – container.css or containerfilename.css
  • Portal – custom styles defined by portal Administrator – portal.css

I believe that the "template" css is actually an order above even the module level... that is to say that the module level css (in this case NewsArticles) is actually designed to allow the template css to act on its own... but all of them can and should be overridden at the default or skin level css.

Try going into ADMIN>SITE SETTINGS and scroll to the bottom to the stylesheet editor, scroll to the bottom of that css and insert the ...TopCell definitions there.

That has worked for me.

PS- I am still struggling to understand the whole DNN-CSS hierarchy myself, so take this with a grain of salt.
Maybe two grains- until confirmed by a third party.

generated by sloganizer.net
Gym MediaUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:38


5/20/2006 9:22 AM  
Posted By y01nk on 5/20/2006 9:09 AM
That is the way it is supposed to work:


Try going into ADMIN>SITE SETTINGS and scroll to the bottom to the stylesheet editor, scroll to the bottom of that css and insert the ...TopCell definitions there.



That is where I have the previously posted styleshee settings. And that worked for everything EXCEPT the detail view of the article. Wasn't until I made the template.css change did it override.

My main concern is getting it working for GymnasticsMedia.com, but in the future be nice to have other portals use the module, but with a different color scheme.


GymnasticsMedia.com
The Ultimate Portal for the Ultimate Sport.
y01nkUser is Offline
Registered Users
Nuke Master
Nuke Master
Posts:201


5/20/2006 9:57 AM  
Posted By gymnasticsmedia on 5/20/2006 9:22 AM
Posted By y01nk on 5/20/2006 9:09 AM
That is the way it is supposed to work:


Try going into ADMIN>SITE SETTINGS and scroll to the bottom to the stylesheet editor, scroll to the bottom of that css and insert the ...TopCell definitions there.



That is where I have the previously posted styleshee settings. And that worked for everything EXCEPT the detail view of the article. Wasn't until I made the template.css change did it override.

My main concern is getting it working for GymnasticsMedia.com, but in the future be nice to have other portals use the module, but with a different color scheme.

Wah?


So much for the hierarchy, and my understanding thereof.



Maybe the thing to do is REMOVE the ...topcell references from the template css, as that seems to act as a css delinquent, violating the laws, commiting acts of lewd behavior, and staying out late.

I say we punish it.


Alternatively, maybe your ..topcell-  well, it just didn't want to be ORANGE. It had been green and happy for so long.

j/k






generated by sloganizer.net
y01nkUser is Offline
Registered Users
Nuke Master
Nuke Master
Posts:201


5/20/2006 3:22 PM  
I just tried every possible and conceivable combination of overriding stylesheets... and have come to the same conclusion as gymnasticsmedia (just several long hours later)

Without acting as the portal HOST, or having ftp access- there seems to be no way to override the detail view's green-ness.




"It's not easy being green"
~Kermit The Frog

generated by sloganizer.net
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


5/21/2006 4:13 PM  
I think the problem with the portal stylesheet, is that when using EditURl (or the admin skin), it doesn't append the portal stylesheet, so if "Launch Links" is set to false (unchecked), it should work by changing the portal stylesheet.

Otherwise, you have to add it to the SKIN stylesheet, or a CUSTOM TEMPLATE.

Scott McCulloch
Site Administrator
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


5/21/2006 4:14 PM  
I looked at your site, y01nk, it looks ok now?

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Page 1 of 3123 > >>

Forums > Modules > News Articles > Background color of detail view



ActiveForums 3.7