Skip to content

Commit 7f284b0

Browse files
BychekRUmathjazz
authored andcommitted
Bug 1329003: improve diff experience
* Use diff-match-patch options for better readability * Hide diff by default and use toggle to turn it on and off
1 parent b3b54b4 commit 7f284b0

File tree

5 files changed

+1674
-157
lines changed

5 files changed

+1674
-157
lines changed

pontoon/base/static/css/style.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ body > .container {
11841184
text-align: left;
11851185
}
11861186

1187-
#helpers > section ul li > p.translation-raw {
1187+
#helpers > section ul li > p.translation {
11881188
display: none;
11891189
}
11901190

@@ -1195,12 +1195,12 @@ body > .container {
11951195

11961196
#helpers > section ul li > p ins {
11971197
background: #4B6259;
1198-
color: #7BC876;
1198+
color: #9CD699;
11991199
}
12001200

12011201
#helpers > section ul li > p del {
12021202
background: #674B54;
1203-
color: #FE7777;
1203+
color: #FE8F8F;
12041204
}
12051205

12061206
#helpers > section ul li > p ins mark,

pontoon/base/static/css/translate.css

+8
Original file line numberDiff line numberDiff line change
@@ -1708,6 +1708,14 @@ p#sign-in-required > a#sidebar-signin {
17081708
float: left;
17091709
}
17101710

1711+
#helpers > section ul li > header .toggle-diff {
1712+
margin-right: 6px;
1713+
}
1714+
1715+
#helpers > section ul li > header .toggle-diff.active {
1716+
color: #7BC876;
1717+
}
1718+
17111719
#helpers > section ul li > header .toolbar {
17121720
float: right;
17131721
}

0 commit comments

Comments
 (0)