translator: insert and delete segments

You can now insert new segments anywhere, now just at the end.
You can now delete any segment, not just the last one.
This commit is contained in:
hallgren
2012-06-21 14:14:36 +00:00
parent 7c0c90c7a0
commit 9d32b629a9
2 changed files with 91 additions and 47 deletions

View File

@@ -42,15 +42,16 @@ div.document h2, div.document h3 { color: #009; }
table.segments { margin-left: auto; margin-right: auto; }
.current_segment, .segment:hover { background: #ff9; }
td.source, td.options, td.target {
padding: 1ex;
}
td.actions { padding: 1ex 1em 1ex 0.5em; }
td.options { padding: 1ex 1em; }
td.source, td.target {
padding: 1ex;
border-bottom: 2px solid #ccc;
vertical-align: baseline;
}
td.options > div { position: relative; margin: 0; }
td.options:hover > div > dl { display: block; }
td.options > div > dl {
td.options > div, td.actions > div { position: relative; margin: 0; }
td.options:hover > div > dl,td.actions:hover > div > dl { display: block; }
td.options > div > dl, td.actions > div > dl {
left: 0.8em;
padding: 0.6ex;
font-family: sans-serif;
@@ -70,7 +71,7 @@ table.paralleltexts td {
label { font-family: sans-serif; }
div.document form {
form.import {
min-width: 90%; /* extend to availiable width for Safari */
/*background: #eee;*/
margin: 10px; /* extend to available width for other browsers */
@@ -78,6 +79,8 @@ div.document form {
box-shadow: 4px 4px 12px rgba(0,0,0,0.33);
}
span.arrow { color: blue; }
span.actions { visibility: hidden; }
tr:hover div > span.actions { visibility: visible; }
span.arrow, span.actions { color: blue; }
span.error { color: red; }
span.choices { color: blue; font-weight: bold; font-family: sans-serif; }