Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8040 Posts in 1853 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Font in Admin Screens  (Read 647 times)
0 Members and 1 Guest are viewing this topic.
tobywallis
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: July 07, 2005, 12:32:00 AM »

Is there any way to make all Adminstration pages use Arial instead of default font (Times on PC)?

Many thanks

===Toby===

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: July 07, 2005, 09:11:00 PM »

I would think you should be able to add the necessary CSS code to the styles.css file in the administration template directory?

Dan O.

------------------

Logged
tobywallis
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: July 08, 2005, 02:57:00 AM »

As far as I can see the Admin pages don't use templates to that extent...

------------------

Logged
tobywallis
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #3 on: July 08, 2005, 02:57:00 AM »

(sorry, I meant stylesheets, not templates)

------------------

Logged
tobywallis
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #4 on: July 08, 2005, 03:07:00 AM »

Here is what I see in styles.css:

<style>
INPUT.button { background-color:<%=$AdminConfig->get("button-background-color")%>;font:arial;font-weight:bold;color:<%=$AdminConfig->get("button-text-color")%>; }
A.mainmenu { text-decoration:none; font-weight:bold; }
A.mainmenu:hover { text-decoration:underline; }
TD.thinborder { border:solid black 1px; }
</style>

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

Please don't PM me. Post in the open forum.


WWW
« Reply #5 on: July 08, 2005, 05:43:00 PM »

** Here is what I see in styles.css... **

You'd have to add the necessary CCS code to acheive what you want. *I* don't know what that is, I'm not a CSS wiz.

Dan O.

------------------

Logged
tobywallis
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #6 on: July 09, 2005, 01:50:00 AM »

I can do CSS OK, but if there is no style used in the pages (e.g. a style called "Maintext") then I can create as many styles as I like to no effect. Is there a way of getting a style name used in all generated HTML pages? If not then this route won't work.

Sounds to me as if it isn't going to be simple...

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

Please don't PM me. Post in the open forum.


WWW
« Reply #7 on: July 09, 2005, 04:41:00 PM »

** I can do CSS OK... Is there a way of getting a style name used in all generated HTML pages? **

If I'm not mistaken, it IS possible to assign font CSS attributes to the <body> tag, a <table> tag, a <td> tag, a <p> tag, etc. without them needing to have a specific class or ID specified for them. Check with someone that knows CSS or ask in a CSS related forum.

JMO

Dan O.

------------------

Logged
tobywallis
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #8 on: July 10, 2005, 03:19:00 AM »

I must be missing something here. Of course it is possible to apply CSS to a variety of elements in the page, but you do that by modifying the HTML in the page you want to format. As the HTML used in the calendar is either template based or automatically generated, I was asking if there is a simple way of changing the fonts *without* having to go into the code.

From your responses I now guess the answer is "no"...

Thanks anyway

===Toby===

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

Please don't PM me. Post in the open forum.


WWW
« Reply #9 on: July 10, 2005, 12:26:00 PM »

** Of course it is possible to apply CSS to a variety of elements in the page, but you do that by modifying the HTML in the page you want to format. **

It IS possible to apply CSS attributes to HTML tags globally without requiring those HTML tags to be modified in any way (ie. without the addition of a specific class or ID identifier to those tags).

Since all the administration pages' text is displayed inside <td> tags, if the font attribute for that tag was set, I would think it should be reflected on the pages? But you appear to be more knowledgeable in CSS than I am so I guess not???

Sorry, I guess the answer IS no. Maybe you can change your browser's default font so you can see those pages the way you want.

Dan O.

------------------

Logged
tobywallis
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #10 on: July 21, 2005, 10:18:00 PM »

Dear Dan O,

After some playing around I find that you are quite right - it is possible to change the font for all the administration pages.

The problem was, I was editing the wrong styles.css file!

The correct one of course is the one in the admin/ directory. I added the following:

table {
   font-family: Arial, Helvetica, sans-serif;
   font-size: 12;
}

after:

TD.thinborder { border:solid black 1px; }

- and all the Admin area now uses the font as specified (you can change the font characteristics to please yourself, of course)

- Sorry to be stupid 8-P

===Toby===

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: