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
e1f41777
Commit
e1f41777
authored
Oct 29, 2015
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated button styles and update buttons all over the place.
parent
f37fadc3
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
39 additions
and
37 deletions
+39
-37
converse.js
converse.js
+4
-4
css/converse.css
css/converse.css
+5
-7
mockup/chatroom.html
mockup/chatroom.html
+2
-2
mockup/controlbox.html
mockup/controlbox.html
+4
-4
mockup/index.html
mockup/index.html
+5
-2
sass/_controlbox.scss
sass/_controlbox.scss
+0
-7
sass/_core.scss
sass/_core.scss
+7
-3
sass/_variables.scss
sass/_variables.scss
+2
-1
src/templates/chatroom_password_form.html
src/templates/chatroom_password_form.html
+4
-1
src/templates/login_panel.html
src/templates/login_panel.html
+2
-2
src/templates/register_panel.html
src/templates/register_panel.html
+1
-1
src/templates/registration_request.html
src/templates/registration_request.html
+1
-1
src/templates/room_panel.html
src/templates/room_panel.html
+2
-2
No files found.
converse.js
View file @
e1f41777
...
@@ -3193,8 +3193,8 @@
...
@@ -3193,8 +3193,8 @@
_
.
each
(
$fields
,
function
(
field
)
{
_
.
each
(
$fields
,
function
(
field
)
{
$form
.
append
(
utils
.
xForm2webForm
(
$
(
field
),
$stanza
));
$form
.
append
(
utils
.
xForm2webForm
(
$
(
field
),
$stanza
));
});
});
$form
.
append
(
'
<input type="submit" class="
save-submit
" value="
'
+
__
(
'
Save
'
)
+
'
"/>
'
);
$form
.
append
(
'
<input type="submit" class="
pure-button button-primary
" value="
'
+
__
(
'
Save
'
)
+
'
"/>
'
);
$form
.
append
(
'
<input type="button" class="
cancel-submit
" value="
'
+
__
(
'
Cancel
'
)
+
'
"/>
'
);
$form
.
append
(
'
<input type="button" class="
pure-button button-cancel
" value="
'
+
__
(
'
Cancel
'
)
+
'
"/>
'
);
$form
.
on
(
'
submit
'
,
this
.
saveConfiguration
.
bind
(
this
));
$form
.
on
(
'
submit
'
,
this
.
saveConfiguration
.
bind
(
this
));
$form
.
find
(
'
input[type=button]
'
).
on
(
'
click
'
,
this
.
cancelConfiguration
.
bind
(
this
));
$form
.
find
(
'
input[type=button]
'
).
on
(
'
click
'
,
this
.
cancelConfiguration
.
bind
(
this
));
},
},
...
@@ -5737,9 +5737,9 @@
...
@@ -5737,9 +5737,9 @@
}.
bind
(
this
));
}.
bind
(
this
));
}
}
if
(
this
.
fields
)
{
if
(
this
.
fields
)
{
$form
.
append
(
'
<input type="submit" class="
save-submit
" value="
'
+
__
(
'
Register
'
)
+
'
"/>
'
);
$form
.
append
(
'
<input type="submit" class="
pure-button button-primary
" value="
'
+
__
(
'
Register
'
)
+
'
"/>
'
);
$form
.
on
(
'
submit
'
,
this
.
submitRegistrationForm
.
bind
(
this
));
$form
.
on
(
'
submit
'
,
this
.
submitRegistrationForm
.
bind
(
this
));
$form
.
append
(
'
<input type="button" class="
cancel-submit
" value="
'
+
__
(
'
Cancel
'
)
+
'
"/>
'
);
$form
.
append
(
'
<input type="button" class="
pure-button button-cancel
" value="
'
+
__
(
'
Cancel
'
)
+
'
"/>
'
);
$form
.
find
(
'
input[type=button]
'
).
on
(
'
click
'
,
this
.
cancelRegistration
.
bind
(
this
));
$form
.
find
(
'
input[type=button]
'
).
on
(
'
click
'
,
this
.
cancelRegistration
.
bind
(
this
));
}
else
{
}
else
{
$form
.
append
(
'
<input type="button" class="submit" value="
'
+
__
(
'
Return
'
)
+
'
"/>
'
);
$form
.
append
(
'
<input type="button" class="submit" value="
'
+
__
(
'
Return
'
)
+
'
"/>
'
);
...
...
css/converse.css
View file @
e1f41777
...
@@ -1180,10 +1180,13 @@
...
@@ -1180,10 +1180,13 @@
display
:
block
!important
;
}
display
:
block
!important
;
}
#conversejs
.pure-button
{
#conversejs
.pure-button
{
border-radius
:
4px
;
}
border-radius
:
4px
;
}
#conversejs
.button-
success
{
#conversejs
.button-
primary
{
color
:
white
;
color
:
white
;
background-color
:
#2AC611
;
}
background-color
:
#2AC611
;
}
#conversejs
.button-warn
{
#conversejs
.button-secondary
{
color
:
white
;
background-color
:
#83A0D6
;
}
#conversejs
.button-cancel
{
color
:
white
;
color
:
white
;
background-color
:
#D24E2B
;
}
background-color
:
#D24E2B
;
}
#conversejs
form
.pure-form.converse-form
{
#conversejs
form
.pure-form.converse-form
{
...
@@ -1529,11 +1532,6 @@
...
@@ -1529,11 +1532,6 @@
#conversejs
#controlbox
#converse-register
.login-anon
,
#conversejs
#controlbox
#converse-login
.login-anon
{
#conversejs
#controlbox
#converse-register
.login-anon
,
#conversejs
#controlbox
#converse-login
.login-anon
{
height
:
auto
;
height
:
auto
;
white-space
:
normal
;
}
white-space
:
normal
;
}
#conversejs
#controlbox
#converse-register
.cancel-submit
,
#conversejs
#controlbox
#converse-register
.save-submit
,
#conversejs
#controlbox
#converse-login
.cancel-submit
,
#conversejs
#controlbox
#converse-login
.save-submit
{
width
:
45%
;
margin
:
5px
3px
5px
3px
;
}
#conversejs
#controlbox
#converse-register
.cancel
,
#conversejs
#controlbox
#converse-register
.cancel-submit
,
#conversejs
#controlbox
#converse-login
.cancel
,
#conversejs
#controlbox
#converse-login
.cancel-submit
{
color
:
#D24E2B
;
}
#conversejs
#controlbox
#converse-register
.save-submit
,
#conversejs
#controlbox
#converse-login
.save-submit
{
#conversejs
#controlbox
#converse-register
.save-submit
,
#conversejs
#controlbox
#converse-login
.save-submit
{
color
:
#436F64
;
}
color
:
#436F64
;
}
#conversejs
#controlbox
#converse-register
input
,
#conversejs
#controlbox
#converse-login
input
{
#conversejs
#controlbox
#converse-register
input
,
#conversejs
#controlbox
#converse-login
input
{
...
...
mockup/chatroom.html
View file @
e1f41777
...
@@ -83,8 +83,8 @@
...
@@ -83,8 +83,8 @@
<input
name=
"muc#roomconfig_historylength"
type=
"number"
value=
"20"
>
<input
name=
"muc#roomconfig_historylength"
type=
"number"
value=
"20"
>
</fieldset>
</fieldset>
<fieldset>
<fieldset>
<input
type=
"submit"
class=
"pure-button
save-submit
"
value=
"Save"
>
<input
type=
"submit"
class=
"pure-button
button-primary
"
value=
"Save"
>
<input
type=
"button"
class=
"pure-button
cancel-submit
"
value=
"Cancel"
></form>
<input
type=
"button"
class=
"pure-button
button-cancel
"
value=
"Cancel"
></form>
</fieldset>
</fieldset>
</div>
</div>
</div>
</div>
...
...
mockup/controlbox.html
View file @
e1f41777
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<input
type=
"text"
name=
"jid"
placeholder=
"user@server"
>
<input
type=
"text"
name=
"jid"
placeholder=
"user@server"
>
<label>
Password:
</label>
<label>
Password:
</label>
<input
type=
"password"
name=
"password"
placeholder=
"password"
>
<input
type=
"password"
name=
"password"
placeholder=
"password"
>
<input
class=
"pure-button button-
success
"
type=
"submit"
value=
"Log In"
>
<input
class=
"pure-button button-
primary
"
type=
"submit"
value=
"Log In"
>
<span
class=
"conn-feedback"
></span>
<span
class=
"conn-feedback"
></span>
</form>
</form>
</div>
</div>
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
Tip: A list of public XMPP providers is available
Tip: A list of public XMPP providers is available
<a
href=
"https://xmpp.net/directory.php"
class=
"url"
target=
"_blank"
>
here
</a>
.
<a
href=
"https://xmpp.net/directory.php"
class=
"url"
target=
"_blank"
>
here
</a>
.
</p>
</p>
<input
class=
"pure-button
submit
"
type=
"submit"
value=
"Fetch registration form"
>
<input
class=
"pure-button
button-primary
"
type=
"submit"
value=
"Fetch registration form"
>
</form>
</form>
</div>
</div>
</div>
</div>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
<input
type=
"text"
name=
"chatroom"
class=
"new-chatroom-name"
placeholder=
"Room name"
>
<input
type=
"text"
name=
"chatroom"
class=
"new-chatroom-name"
placeholder=
"Room name"
>
<label>
Nickname
</label>
<label>
Nickname
</label>
<input
type=
"text"
name=
"nick"
class=
"new-chatroom-nick"
placeholder=
"Nickname"
>
<input
type=
"text"
name=
"nick"
class=
"new-chatroom-nick"
placeholder=
"Nickname"
>
<input
type=
"submit"
class=
"pure-button button-
success
"
name=
"join"
value=
"Open Room"
>
<input
type=
"submit"
class=
"pure-button button-
primary
"
name=
"join"
value=
"Open Room"
>
</fieldset>
</fieldset>
<fieldset>
<fieldset>
...
@@ -261,7 +261,7 @@
...
@@ -261,7 +261,7 @@
<p class="form-help">Rooms are hosted on XMPP servers. You need to specify a server on which the room you want to join is hosted. </p>
<p class="form-help">Rooms are hosted on XMPP servers. You need to specify a server on which the room you want to join is hosted. </p>
-->
-->
<input
type=
"text"
name=
"server"
class=
"new-chatroom-server"
placeholder=
"Server"
>
<input
type=
"text"
name=
"server"
class=
"new-chatroom-server"
placeholder=
"Server"
>
<input
type=
"button"
class=
"pure-button button-s
uccess
"
name=
"show"
id=
"show-rooms"
value=
"Show rooms"
>
<input
type=
"button"
class=
"pure-button button-s
econdary
"
name=
"show"
id=
"show-rooms"
value=
"Show rooms"
>
</fieldset>
</fieldset>
</form>
</form>
<dl
id=
"available-chatrooms"
>
<dl
id=
"available-chatrooms"
>
...
...
mockup/index.html
View file @
e1f41777
...
@@ -213,7 +213,7 @@
...
@@ -213,7 +213,7 @@
<input
type=
"text"
name=
"chatroom"
class=
"new-chatroom-name"
placeholder=
"Room name"
>
<input
type=
"text"
name=
"chatroom"
class=
"new-chatroom-name"
placeholder=
"Room name"
>
<label>
Nickname
</label>
<label>
Nickname
</label>
<input
type=
"text"
name=
"nick"
class=
"new-chatroom-nick"
placeholder=
"Nickname"
>
<input
type=
"text"
name=
"nick"
class=
"new-chatroom-nick"
placeholder=
"Nickname"
>
<input
type=
"submit"
class=
"pure-button button-
success
"
name=
"join"
value=
"Open Room"
>
<input
type=
"submit"
class=
"pure-button button-
primary
"
name=
"join"
value=
"Open Room"
>
</fieldset>
</fieldset>
<fieldset>
<fieldset>
...
@@ -222,7 +222,7 @@
...
@@ -222,7 +222,7 @@
<p class="form-help">Rooms are hosted on XMPP servers. You need to specify a server on which the room you want to join is hosted. </p>
<p class="form-help">Rooms are hosted on XMPP servers. You need to specify a server on which the room you want to join is hosted. </p>
-->
-->
<input
type=
"text"
name=
"server"
class=
"new-chatroom-server"
placeholder=
"Server"
>
<input
type=
"text"
name=
"server"
class=
"new-chatroom-server"
placeholder=
"Server"
>
<input
type=
"button"
class=
"pure-button button-s
uccess
"
name=
"show"
id=
"show-rooms"
value=
"Show rooms"
>
<input
type=
"button"
class=
"pure-button button-s
econdary
"
name=
"show"
id=
"show-rooms"
value=
"Show rooms"
>
</fieldset>
</fieldset>
</form>
</form>
<dl
id=
"available-chatrooms"
>
<dl
id=
"available-chatrooms"
>
...
@@ -423,6 +423,9 @@
...
@@ -423,6 +423,9 @@
<label>
Password:
</label>
<label>
Password:
</label>
<input
type=
"password"
name=
"password"
>
<input
type=
"password"
name=
"password"
>
</fieldset>
</fieldset>
<fieldset>
<input
class=
"pure-button button-primary"
type=
"submit"
value=
"Submit"
/>
</fieldset>
</form>
</form>
</div>
</div>
</div>
</div>
...
...
sass/_controlbox.scss
View file @
e1f41777
...
@@ -78,13 +78,6 @@
...
@@ -78,13 +78,6 @@
height
:
auto
;
height
:
auto
;
white-space
:
normal
;
white-space
:
normal
;
}
}
.cancel-submit
,
.save-submit
{
width
:
45%
;
margin
:
5px
3px
5px
3px
;
}
.cancel
,
.cancel-submit
{
color
:
$warning-color
;
}
.save-submit
{
.save-submit
{
color
:
$save-button-color
;
color
:
$save-button-color
;
}
}
...
...
sass/_core.scss
View file @
e1f41777
...
@@ -161,11 +161,15 @@
...
@@ -161,11 +161,15 @@
.pure-button
{
.pure-button
{
border-radius
:
$chatbox-border-radius
;
border-radius
:
$chatbox-border-radius
;
}
}
.button-
success
{
.button-
primary
{
color
:
white
;
color
:
white
;
background-color
:
$
success
-color
;
background-color
:
$
primary
-color
;
}
}
.button-warn
{
.button-secondary
{
color
:
white
;
background-color
:
$secondary-color
;
}
.button-cancel
{
color
:
white
;
color
:
white
;
background-color
:
$warning-color
;
background-color
:
$warning-color
;
}
}
...
...
sass/_variables.scss
View file @
e1f41777
...
@@ -24,7 +24,8 @@ $roster-height: 194px !default;
...
@@ -24,7 +24,8 @@ $roster-height: 194px !default;
$controlbox-head-color
:
#577BDD
!
default
;
$controlbox-head-color
:
#577BDD
!
default
;
$controlbox-dropdown-height
:
25px
!
default
;
$controlbox-dropdown-height
:
25px
!
default
;
$success-color
:
#2AC611
!
default
;
$primary-color
:
#2AC611
!
default
;
$secondary-color
:
#83A0D6
!
default
;
$warning-color
:
#D24E2B
!
default
;
$warning-color
:
#D24E2B
!
default
;
$light-background-border-color
:
#B1BFC4
!
default
;
$light-background-border-color
:
#B1BFC4
!
default
;
...
...
src/templates/chatroom_password_form.html
View file @
e1f41777
...
@@ -4,7 +4,10 @@
...
@@ -4,7 +4,10 @@
<legend>
{{heading}}
</legend>
<legend>
{{heading}}
</legend>
<label>
{{label_password}}
</label>
<label>
{{label_password}}
</label>
<input
type=
"password"
name=
"password"
/>
<input
type=
"password"
name=
"password"
/>
<input
type=
"submit"
value=
"{{label_submit}}"
/>
<input
class=
"pure-button button-primary"
type=
"submit"
value=
""
/>
</fieldset>
<fieldset>
<input
class=
"pure-button button-primary"
type=
"submit"
value=
"{{label_submit}}"
/>
</fieldset>
</fieldset>
</form>
</form>
</div>
</div>
src/templates/login_panel.html
View file @
e1f41777
...
@@ -8,11 +8,11 @@
...
@@ -8,11 +8,11 @@
<input
type=
"text"
name=
"jid"
placeholder=
"{{placeholder_username}}"
>
<input
type=
"text"
name=
"jid"
placeholder=
"{{placeholder_username}}"
>
<label>
{{label_password}}
</label>
<label>
{{label_password}}
</label>
<input
type=
"password"
name=
"password"
placeholder=
"{{placeholder_password}}"
>
<input
type=
"password"
name=
"password"
placeholder=
"{{placeholder_password}}"
>
<input
class=
"pure-button"
type=
"submit"
value=
"{{label_login}}"
>
<input
class=
"pure-button
button-primary
"
type=
"submit"
value=
"{{label_login}}"
>
<span
class=
"conn-feedback"
></span>
<span
class=
"conn-feedback"
></span>
{[ } ]}
{[ } ]}
{[ if (authentication == ANONYMOUS) { ]}
{[ if (authentication == ANONYMOUS) { ]}
<input
type=
"pure-button button-
success
"
class=
"submit login-anon"
value=
"{{label_anon_login}}"
/>
<input
type=
"pure-button button-
primary
"
class=
"submit login-anon"
value=
"{{label_anon_login}}"
/>
{[ } ]}
{[ } ]}
{[ if (authentication == PREBIND) { ]}
{[ if (authentication == PREBIND) { ]}
<p>
Disconnected.
</p>
<p>
Disconnected.
</p>
...
...
src/templates/register_panel.html
View file @
e1f41777
...
@@ -3,5 +3,5 @@
...
@@ -3,5 +3,5 @@
<label>
{{label_domain}}
</label>
<label>
{{label_domain}}
</label>
<input
type=
"text"
name=
"domain"
placeholder=
"{{domain_placeholder}}"
>
<input
type=
"text"
name=
"domain"
placeholder=
"{{domain_placeholder}}"
>
<p
class=
"form-help"
>
{{help_providers}}
<a
href=
"{{href_providers}}"
class=
"url"
target=
"_blank"
>
{{help_providers_link}}
</a>
.
</p>
<p
class=
"form-help"
>
{{help_providers}}
<a
href=
"{{href_providers}}"
class=
"url"
target=
"_blank"
>
{{help_providers_link}}
</a>
.
</p>
<input
class=
"pure-button
submit
"
type=
"submit"
value=
"{{label_register}}"
>
<input
class=
"pure-button
button-primary
"
type=
"submit"
value=
"{{label_register}}"
>
</form>
</form>
src/templates/registration_request.html
View file @
e1f41777
<span
class=
"spinner login-submit"
/>
<span
class=
"spinner login-submit"
/>
<p
class=
"info"
>
{{info_message}}
</p>
<p
class=
"info"
>
{{info_message}}
</p>
<button
class=
"pure-button cancel hor_centered"
>
{{cancel}}
</button>
<button
class=
"pure-button
button-
cancel hor_centered"
>
{{cancel}}
</button>
src/templates/room_panel.html
View file @
e1f41777
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
<label>
{{label_room_name}}
</label>
<label>
{{label_room_name}}
</label>
<input
type=
"text"
name=
"chatroom"
class=
"new-chatroom-name"
placeholder=
"{{label_room_name}}"
/>
<input
type=
"text"
name=
"chatroom"
class=
"new-chatroom-name"
placeholder=
"{{label_room_name}}"
/>
<label>
{{label_nickname}}
</label>
<input
type=
"text"
name=
"nick"
class=
"new-chatroom-nick"
placeholder=
"{{label_nickname}}"
/>
<label>
{{label_nickname}}
</label>
<input
type=
"text"
name=
"nick"
class=
"new-chatroom-nick"
placeholder=
"{{label_nickname}}"
/>
<input
type=
"submit"
class=
"pure-button button-
success
"
name=
"join"
value=
"{{label_join}}"
/>
<input
type=
"submit"
class=
"pure-button button-
primary
"
name=
"join"
value=
"{{label_join}}"
/>
</fieldset>
</fieldset>
<fieldset>
<fieldset>
{[ if (server_input_type != 'hidden') { ]}
{[ if (server_input_type != 'hidden') { ]}
<label
{{
server_label_global_attr
}}
>
{{label_server}}
</label>
<label
{{
server_label_global_attr
}}
>
{{label_server}}
</label>
{[ } ]}
{[ } ]}
<input
type=
"{{server_input_type}}"
name=
"server"
class=
"new-chatroom-server"
placeholder=
"{{label_server}}"
/>
<input
type=
"{{server_input_type}}"
name=
"server"
class=
"new-chatroom-server"
placeholder=
"{{label_server}}"
/>
<input
type=
"button"
class=
"pure-button button-s
uccess
"
name=
"show"
id=
"show-rooms"
value=
"{{label_show_rooms}}"
/>
<input
type=
"button"
class=
"pure-button button-s
econdary
"
name=
"show"
id=
"show-rooms"
value=
"{{label_show_rooms}}"
/>
</fieldset>
</fieldset>
</form>
</form>
<dl
id=
"available-chatrooms"
></dl>
<dl
id=
"available-chatrooms"
></dl>
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