forked from EKT1/valence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolored.mak
105 lines (100 loc) · 2.72 KB
/
colored.mak
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
# -*- coding: utf-8 -*-
<h5>${_('Emotion detector')} <span style="font-size:80%;color:gray">v1.0</span></h5>
% if c.lexiconbased:
<p>Lõigu vasakus servas on leksikonipõhine hinnang.</p>
% endif
<p>
${_('Keywords are')}
<span class="word positiveW">${_('positive')}</span>,
<span class="word negativeW">${_('negative')}</span>
${_('or')}
<span class="word extremeW">${_('extreme')}</span>.
</p>
<p>
${_('Paragraphs are')}
<span class="para positiveP" style="padding:0px; margin-left:0px">${_('positive')}</span>,
<span class="para negativeP" style="padding:0px; margin-left:0px">${_('negative')}</span>,
<span class="para mixedP" style="padding:0px; margin-left:0px">${_('ambivalent')}</span>,
<span class="para neutralP" style="padding:0px; margin-left:0px">${_('neutral2')}</span>
${_('or')}
<span class="para extremeP" style="padding:0px; margin-left:0px">${_('extreme')}</span>.
</p>
<p><i>Lõigu paremas servas on statistiline hinnang.</i></p>
${c.text}
<%def name="styles()">\
<style>
.wide {
max-width:720px;
}
.text {
padding-top:2em;
}
.word,.tile {
border-radius: 5px;
box-shadow:2px 2px 2px #989898;
}
.positiveW,.positiveT { background-color: rgb(146, 208, 80); }
.negativeW,.negativeT { background-color: #b7a6dd; }
.mixedW,.mixedT { background-color: #d9ddb4; }
.neutralW,.neutralT { background-color: white; }
.extremeW,.extremeT { background-color: darkgray; }
.para {
padding:1em;
border-left:5px solid white;
border-right:5px solid white;
border-radius: 10px;
margin-left:10%;
}
% if c.lexiconbased:
.neutralP { }
.positiveP { border-left-color: rgb(146, 208, 80); }
.negativeP { border-left-color: #b7a6dd; }
.extremeP { border-left-color: darkgray; }
.mixedP { border-left-color: #d9ddb4; border-left-style: dotted; }
% else:
.neutralB { }
.positiveB { border-right-color: rgb(146, 208, 80); }
.negativeB { border-right-color: #b7a6dd; }
% endif
div.chart {
position:relative;
padding-top:48px;
margin:0;
height:48px;
width:100%;
}
.chart a {
text-decoration:none;
color:#555;
}
div.bar {
/*only needed for height * position:relative;*/
padding:0px;
margin:0px;
height:24px;
float:left;
box-shadow:2px 2px 5px #989898;
}
span.info {
display: none;
width: 120px;
position: absolute;
margin-top: 28px;
padding:6px 0px 6px 10px;
font-size:70%;
}
.bar:hover {
padding: 4px 0 4px 0;
margin-top: -4px;
}
.bar:hover .info {
display: block;
font-weight: bold;
background-color:lightyellow;
border-radius: 5px;
box-shadow:2px 2px 5px #989898;
}
</style>
</%def>\
<div class="buttons"><a href="/valence">${_('Back')}</a></div>
<%inherit file="/layout.mak"/>\