Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
9c78f450
Commit
9c78f450
authored
Jan 25, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better styling for keyboard badges
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
00dc9bdd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
weblate/static/loader-bootstrap.js
weblate/static/loader-bootstrap.js
+3
-3
weblate/static/style-bootstrap.css
weblate/static/style-bootstrap.css
+8
-0
No files found.
weblate/static/loader-bootstrap.js
View file @
9c78f450
...
...
@@ -236,7 +236,7 @@ function processMachineTranslation(data, textStatus, jqXHR) {
if
(
idx
<
10
)
{
var
key
=
getNumericKey
(
idx
);
$
(
this
).
find
(
'
.mt-number
'
).
html
(
"
<span class='badge' title='
"
+
"
<span class='badge
kbd-badge
' title='
"
+
interpolate
(
gettext
(
'
Alt+M then %s
'
),
[
key
])
+
"
'>
"
+
key
+
...
...
@@ -629,13 +629,13 @@ $(function () {
Mousetrap
.
bindGlobal
(
"
alt+i
"
+
i
,
function
(
e
)
{});
}
if
(
$
(
"
.check
"
).
length
>
0
&&
false
)
{
if
(
$
(
"
.check
"
).
length
>
0
)
{
$
(
$
(
'
.check
'
)[
0
].
parentNode
).
children
(
"
.check
"
).
each
(
function
(
idx
){
var
$this
=
$
(
this
);
if
(
idx
<
10
)
{
var
key
=
getNumericKey
(
idx
);
$
(
this
).
find
(
'
.check-number
'
).
html
(
"
<span class='badge' title='
"
+
"
<span class='badge
kbd-badge
' title='
"
+
interpolate
(
gettext
(
'
Alt+I then %s
'
),
[
key
])
+
"
'>
"
+
key
+
...
...
weblate/static/style-bootstrap.css
View file @
9c78f450
...
...
@@ -259,4 +259,12 @@ img.engage-icon {
vertical-align
:
middle
;
width
:
10%
;
text-align
:
center
;
}
.kbd-badge
{
background
:
#eee
!important
;
color
:
#444
!important
;
box-shadow
:
inset
0
0
1px
rgb
(
255
,
255
,
255
),
inset
0
0
.4em
rgb
(
200
,
200
,
200
),
0
.1em
0
rgb
(
130
,
130
,
130
),
0
.11em
0
rgba
(
0
,
0
,
0
,
.4
),
0
.1em
.11em
rgba
(
0
,
0
,
0
,
.9
);
-moz-border-radius
:
.3em
;
-webkit-border-radius
:
.3em
;
border-radius
:
.3em
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment