Commit 644ab41e authored by Christophe Siraut's avatar Christophe Siraut

Fixing css tooltips

parent a3cedd3f
......@@ -15,11 +15,11 @@ a:link, a:active, a:visited {
}
a:hover {
color: #222;
color: #333;
background-color: #c3d4e3;
}
h1 {color: #665;}
h1 {color: #5c5c49;}
h2, h3, h4 {color: #554;}
......@@ -112,37 +112,36 @@ input:focus, textarea:focus {
color: #555;
}
.subt {
.subl {
width: 30px;
height: 6px;
margin: 0 auto;
}
.subt:hover {
.subl:hover {
color: #557;
}
.com {
.tooltip {
position: relative;
left: 28px;
top: 18px;
display: none;
text-align: left;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
-moz-border-radius: 9px;
-webkit-border-radius: 9px;
background-color: #fff;
color: #332;
padding: 8px;
padding: 9px 10px 8px 11px;
border: 1px solid #bbf;
font-family:"Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif;
line-height: 16px;
width: 170px;
font-size: 12px;
max-width: 190px;
}
.msg {
width: 3px;
height: 3px;
background-color: #f4f4ff;
width: 4px;
height: 4px;
background-color: #fefeff;
border: 1px solid #999;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
......@@ -150,10 +149,11 @@ input:focus, textarea:focus {
.bigtable td:hover span {
display: block;
position: relative;
position: absolute;
margin: 21px 27px;
}
.bigtable td:hover div.msg, .bigtable td:hover div.subt {
.bigtable td:hover div.msg, .bigtable td:hover div.subl {
background-color: #c3d4e3; /*bbf; */
}
......@@ -161,7 +161,7 @@ input:focus, textarea:focus {
margin-left: 14px;
margin-right: 50px;
background-color: #f4f4f4;
color: #222;
color: #334;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
}
......@@ -235,13 +235,13 @@ input:focus, textarea:focus {
.False, .True {
margin: 0 auto;
background-color: #f4aaaa; /* #faa; */
background-color: #f4acaa; /* #faa; */
width: 19px;
height: 19px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
color: #ccb;
text-align: right;
text-align: left;
}
.True {
......
......@@ -24,7 +24,7 @@
<tr><td class='names'></td>
{% for choice in object.choice_set.all %}
<td class='subt'> {{ choice.choice|date:"d/m" }} <div class="subt"><span class="com"><b> {{ choice.choice|date:"l d F"}} </b> <br /><font class="blue">{{ choice.details }}</font></span></div></td>
<td> {{ choice.choice|date:"d/m" }} <span class="tooltip"><b> {{ choice.choice|date:"l d F"}} </b> <br /><font class="blue">{{ choice.details }}</font></span><div class="subl"><!-- --></div></td>
{% endfor %}
</tr>
......@@ -33,7 +33,7 @@
{% for bulletin in object.bulletin_set.all %}
<tr ><td class='names'>{{ bulletin.voter }}</td>
{% for vote in bulletin.vote_set.all|dictsort:'choice.choice' %}
<td class='cell'><div class="{{ vote.voice }}">{% if vote.comment %} <div class="msg"></div><span class="com"><font class="white">{{ vote.comment }}</font></span>{% endif %}</div></td>
<td class='cell'><div class="{{ vote.voice }}">{% if vote.comment %} <div class="msg"><!-- --></div><span class="tooltip"><font class="white">{{ vote.comment }}</font></span>{% endif %}</div></td>
{% endfor %}
</tr>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment