File: style-sheet.asp

package info (click to toggle)
libcolor-calc-perl 1.074-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 240 kB
  • ctags: 40
  • sloc: perl: 398; makefile: 7
file content (26 lines) | stat: -rw-r--r-- 549 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<%
  # This example script uses Apache::ASP, which allows embedding perl in HTML
  # or other text files, see http://search.cpan.org/perldoc?Apache::ASP

  use Color::Calc::WWW;
  $Response->{'ContentType'} = 'text/css; charset=utf-8';

  $col1 = '#EEE';
  $col2 = '#908';

  $bkg = $col1;
  $fg  = color_contrast(color_grey($bkg));

  $bk2 = $col2;
  $fg2 = color_contrast(color_grey($bk2));
%>

body		      {
			background:	<%= $bkg %>;
			color:		<%= $fg %>;
		      }

h1 		      {	
			background:	<%= $bk2 %>;
			color:		<%= $fg2 %>;
		      }