On Thu, Jul 3, 2008 at 5:55 AM, doahh <[EMAIL PROTECTED]> wrote: > > I am trying to customise the CSS in CAS but would prefer not to use cas.css > as I have my CSS split across several files. I have tried to include the > CSS > into the template in several different ways but none seem to work the way I > would like. > > 1) <link rel="stylesheet" > href=" > http://localhost:8080/tootired.net/cas/root-context-css/user/column-layout.css > " > type="text/css" media="screen" /> Works but I would prefer not to have the > FQDN; > > 2) <link rel="stylesheet" href="/root-context-css/user/column-layout.css" > type="text/css" media="screen" /> Returns a blank page with no CSS styles > defines in it;
This doesn't work because you're making a normal HTTP request so what you're actually requesting is http://localhost:8080/root-context-css/user/column-layout.css > > > 3) <link rel="stylesheet" href="<spring:theme code="css" />" > type="text/css" > media="all" /> Theme 'default': No message found under code 'css' for > locale > 'en'. Adding an entry into messages.properties does not change the error > message and there is no messages_en.properties; You need to define a css attribute in the default.properties file for the theme (though it follows the same restrictions as #2) > > > 4) <link rel="stylesheet" > href="../../../../../root-context-css/user/column-layout.css" > type="text/css" media="screen" /> Does nothing; I would have absolutely no clue what HTTP request is being made for that page. > > > 5) <style type="text/css" media="screen">@import 'css/cas.css'/**/;</style> > Doesn't work either; Isn't this what's there already? > > > 6) Adding a new option to default_views.properties but it doesn't work > doing > that alone and I am not sure what else I would need to change to make it > work. That wouldn't do anything at all. > > > What else can I try? The pages are only HTML pages so they follow the same limitations that normal HTML pages have. So just do what you would do for any other HTML page. > > > -- > View this message in context: > http://www.nabble.com/Adding-custom-CSS-tp18255852p18255852.html > Sent from the CAS Users mailing list archive at Nabble.com. > > _______________________________________________ > Yale CAS mailing list > [email protected] > http://tp.its.yale.edu/mailman/listinfo/cas >
_______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
