ここでは、ploneサイトの色とフォントを変更する方法について記述します。
ploneサイトのフォントや色を変更するためには、どこをどのように変更すればよいかについて説明します。
ploneサイトの色やフォントの設定は、CSS(Cascading Style Sheet)で行なわれています。
ploneサイトの色やフォントを変更するためには、ロゴの変更
で説明した base_properties のプロパティの値を変更します。
また、実際にここで変更したフォントや色についての設定は、plonePresentation.css というcssファイル上で定義されて見た目を変更しています。
フォントは初期状態では、
"Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif
と設定されています。
なお、フォントを設定する項目は2種類あります。
fontFamily 全体的に使用されるフォント。headingFontFamily heading(見出し)に使用されるフォント。
ここをどのように変更するかは好みの問題なのですが、ここでは
Verdana, Arial, sans-serif
と設定することにします。
主なフォントのサンプルです。
色もフォントの変更と同様に base_properties で値を変更します。
色の設定項目と初期設定の値を以下に載せます。
fontColor BlackbackgroundColor WhiteglobalBorderColor #8cacbbglobalBackgroundColor #dee7ecglobalFontColor #436976
linkColor #436976linkActiveColor RedlinkVisitedColor Purple
contentViewBorderColor #74ae0bcontentViewBackgroundColor #cde2a7contentViewFontColor #578308notifyBorderColor #ffa500notifyBackgroundColor #ffce7b
evenRowBackgroundColor #f7f9faoddRowBackgroundColor transparentdiscreetColor #76797chelpBackgroundColor #ffffe1inputFontColor Black