forked from istitutoculturaitaliana/sf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.php
179 lines (133 loc) · 2.8 KB
/
style.php
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<?php
/**
* A stylesheet which can be interpolated
* through PHP using the functions offered
* by browser.php
*
* This file will be served to the
* client as style.css (see .htaccess file)
*
* @package browser.php
*/
/**
* Load the required library. We don't use
* "sf.php" but "browser.php", which contains a
* subset of the functions there used, plus
* specific functions to handle stylesheets
* browser-targetted
*/
include 'browser.php';
// we must specify the content-type to
// let the client interpreting it correctly
header('Content-type: text/css');
//FOLLOWS A "CSS-RESET" VALID FOR THE ENTIRE WEBSITE
echo '
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video, a {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
line-height: 1;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
display: block;
}
nav ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: "";
content: none;
}
/* change colours to suit your needs */
ins {
background-color: #ff9;
color: #000;
text-decoration: none;
}
/* change colours to suit your needs */
mark {
background-color: #ff9;
color: #000;
font-style: italic;
font-weight: bold;
}
del {
text-decoration: line-through;
}
abbr[title], dfn[title] {
border-bottom: ' . __px__(1) . ' dotted;
cursor: help;
}
table {
border-collapse: separate;
border-spacing: 0;
cell-spacing: 0;
cell-padding: 0;
}
/* change border colour to suit your needs */
hr {
display:block;
height:' . __px__(1) . ';
border:0;
border-top:' . __px__(1) . ' solid #000;
margin: 1em 0;
padding: 0;
}
input, select {
vertical-align: middle;
}
/*
select[size] {
appearance: list-menu;
display: inline-block;
height: attr(size,em);
box-sizing:content-box;
}
*/
h1 {
margin: ' . __px__(21.4333,0) . ';
font-size: ' . __px__(32) . ';
}
h2 {
margin: ' . __px__(19.9167,0) . ';
font-size: ' . __px__(24) . ';
}
h3 {
margin: ' . __px__(18.7167,0), ';
font-size: ' . __px__(18.7167,0) . ';
}
p {
margin:' . __px__(16) . ' 0;
}
hr {
margin:' . __px__(8) . ' 0;
}
th,td {
vertical-align: middle;
}
th {
padding:' . __px__(8) . ';
}
';