-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css.php
69 lines (55 loc) · 1.17 KB
/
style.css.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
<?php
if (!defined('IN_SPYOGAME')) {
exit('Hacking attempt!');
}
?>
<style type="text/css">
.mv-table,
.mv-legend {
border-collapse: collapse;
}
.mv-table td,
.mv-legend td {
color: white;
font-weight: bold;
}
.mv-legend {
width: 985px;
}
.mv-table td {
width: 0.5em;
height: 30px;
text-align: center;
}
.mv-legend tr {
height: 20px;
}
.mv-color {
width: 50px;
}
.mv-legend-cell {
padding-left: 10px;
}
.mv-table-cell {
padding-right: 15px;
}
.mv-space {
padding: 0px;
width: 1px;
}
.mv-jour-u{
background-color: black!important;
padding: 0px;
}
<?php $colors = generateColorVariation($nb_jour+1);; ?>
<?php for ($i = 0; $i < $nb_jour + 1; $i++) : ?>
.mv-jour-<?php echo $i;?> {
<?php if (isset($colors[$i])) :?>
background-color: <?php echo $colors[$i];?>!important;;
<?php else :?>
background-color:<?php echo $colors[$nb_jour];?>;
<?php endif;?>
padding: 0px;
}
<?php endfor; ?>
</style>