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
9f94d0f4
Commit
9f94d0f4
authored
Dec 07, 2014
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nicer styling for the chat room configuration form.
parent
3bf5eeb4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
17 deletions
+42
-17
converse.js
converse.js
+2
-2
css/converse.css
css/converse.css
+19
-7
less/converse.less
less/converse.less
+21
-8
No files found.
converse.js
View file @
9f94d0f4
...
...
@@ -2420,8 +2420,8 @@
_
.
each
(
$fields
,
function
(
field
)
{
$form
.
append
(
utils
.
xForm2webForm
(
$
(
field
),
$stanza
));
});
$form
.
append
(
'
<input type="submit" value="
'
+
__
(
'
Save
'
)
+
'
"/>
'
);
$form
.
append
(
'
<input type="button" value="
'
+
__
(
'
Cancel
'
)
+
'
"/>
'
);
$form
.
append
(
'
<input type="submit"
class="save-submit"
value="
'
+
__
(
'
Save
'
)
+
'
"/>
'
);
$form
.
append
(
'
<input type="button"
class="cancel-submit"
value="
'
+
__
(
'
Cancel
'
)
+
'
"/>
'
);
$form
.
on
(
'
submit
'
,
$
.
proxy
(
this
.
saveConfiguration
,
this
));
$form
.
find
(
'
input[type=button]
'
).
on
(
'
click
'
,
$
.
proxy
(
this
.
cancelConfiguration
,
this
));
},
...
...
css/converse.css
View file @
9f94d0f4
...
...
@@ -923,11 +923,6 @@ dl.add-converse-contact {
border-bottom-right-radius
:
4px
;
border-bottom-left-radius
:
4px
;
}
#conversejs
.chatroom-form
{
background
:
white
;
font-size
:
12px
;
padding
:
10px
5px
;
}
#conversejs
.chat-body
p
{
font-size
:
14px
;
color
:
#666
;
...
...
@@ -937,7 +932,7 @@ dl.add-converse-contact {
#conversejs
.chatroom-form
legend
{
font-size
:
14px
;
font-weight
:
bold
;
margin
-bottom
:
5px
;
margin
:
5px
0
;
}
#conversejs
.chatroom-form
label
{
height
:
30px
;
...
...
@@ -1129,6 +1124,7 @@ dl.add-converse-contact {
#conversejs
.chatroom
{
width
:
300px
;
}
#conversejs
.chatroom-form
,
#conversejs
.controlbox-pane
{
text-align
:
center
;
background-color
:
white
;
...
...
@@ -1164,6 +1160,10 @@ dl.add-converse-contact {
color
:
gray
;
font-size
:
85%
;
}
#conversejs
.chatroom-form
.instructions
{
color
:
gray
;
font-size
:
95%
;
}
#conversejs
.form-help
:hover
,
#conversejs
#converse-register
.instructions
:hover
{
color
:
#4f4f4f
;
...
...
@@ -1198,19 +1198,31 @@ dl.add-converse-contact {
width
:
100%
;
}
#conversejs
#converse-register
.cancel
,
#conversejs
.chatroom-form
.cancel-submit
,
#conversejs
#converse-register
.cancel-submit
{
color
:
darkred
;
}
#conversejs
.chatroom-form
.save-submit
,
#conversejs
#converse-register
.save-submit
{
color
:
darkgreen
;
}
#conversejs
.chatroom-form
.save-submit
,
#conversejs
.chatroom-form
.cancel-submit
,
#conversejs
#converse-register
.cancel-submit
,
#conversejs
#converse-register
.save-submit
{
width
:
45%
;
margin
:
5px
3px
0
3px
;
margin
:
5px
3px
5px
3px
;
}
#conversejs
.chatroom-form
input
{
width
:
80%
;
padding
:
5px
;
text-align
:
center
;
}
#conversejs
.chatroom-form
label
,
#conversejs
#converse-register
label
,
#conversejs
#converse-login
label
{
height
:
auto
;
font-size
:
14px
;
margin-top
:
0.5em
;
font-weight
:
bold
;
}
...
...
less/converse.less
View file @
9f94d0f4
...
...
@@ -1028,12 +1028,6 @@ dl.add-converse-contact {
border-bottom-left-radius: 4px;
}
#conversejs .chatroom-form {
background: white;
font-size: 12px;
padding: 10px 5px;
}
#conversejs .chat-body p {
font-size: 14px;
color: #666;
...
...
@@ -1044,7 +1038,7 @@ dl.add-converse-contact {
#conversejs .chatroom-form legend {
font-size: 14px;
font-weight: bold;
margin
-bottom: 5px
;
margin
: 5px 0
;
}
#conversejs .chatroom-form label {
...
...
@@ -1274,6 +1268,7 @@ dl.add-converse-contact {
width: 300px;
}
#conversejs .chatroom-form,
#conversejs .controlbox-pane {
text-align: center;
background-color: white;
...
...
@@ -1315,6 +1310,11 @@ dl.add-converse-contact {
font-size: 85%;
}
#conversejs .chatroom-form .instructions {
color: gray;
font-size: 95%;
}
#conversejs .form-help:hover,
#conversejs #converse-register .instructions:hover {
color: #4f4f4f;
...
...
@@ -1357,22 +1357,35 @@ dl.add-converse-contact {
}
#conversejs #converse-register .cancel,
#conversejs .chatroom-form .cancel-submit,
#conversejs #converse-register .cancel-submit {
color: darkred;
}
#conversejs .chatroom-form .save-submit,
#conversejs #converse-register .save-submit {
color: darkgreen;
}
#conversejs .chatroom-form .save-submit,
#conversejs .chatroom-form .cancel-submit,
#conversejs #converse-register .cancel-submit,
#conversejs #converse-register .save-submit {
width: 45%;
margin: 5px 3px
0
3px;
margin: 5px 3px
5px
3px;
}
#conversejs .chatroom-form input {
width: 80%;
padding: 5px;
text-align: center;
}
#conversejs .chatroom-form label,
#conversejs #converse-register label,
#conversejs #converse-login label {
height: auto;
font-size: 14px;
margin-top: 0.5em;
font-weight: bold;
}
...
...
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