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
0b710b80
Commit
0b710b80
authored
May 11, 2014
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mockup with new theme and fix css
parent
d1aead81
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
65 deletions
+70
-65
css/converse.css
css/converse.css
+23
-21
index.html
index.html
+5
-5
less/converse.less
less/converse.less
+27
-23
mockup/index.html
mockup/index.html
+11
-12
mockup/minimized.html
mockup/minimized.html
+4
-4
No files found.
css/converse.css
View file @
0b710b80
...
...
@@ -406,6 +406,12 @@ you can use the generic selector below, but it's slower:
-moz-box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
;
}
#conversejs
div
{
box-sizing
:
border-box
;
}
#conversejs
ul
li
{
height
:
auto
;
}
#conversejs
div
,
#conversejs
span
,
#conversejs
h1
,
...
...
@@ -535,11 +541,10 @@ span.spinner.hor_centered {
height
:
auto
;
}
#conversejs
#offscreen-chatboxes
.box-flyout
.chat-head
{
margin
:
0
;
font-size
:
100%
;
border-radius
:
4px
;
padding
:
3px
0
0
5px
;
margin
-bottom
:
2px
;
margin
:
0
0
2px
2px
;
box-shadow
:
1px
3px
5px
3px
rgba
(
0
,
0
,
0
,
0.4
);
height
:
24px
;
}
...
...
@@ -555,11 +560,11 @@ span.spinner.hor_centered {
}
#conversejs
.chat-head
{
color
:
#ffffff
;
margin
:
0
;
font-size
:
100%
;
border-top-right-radius
:
4px
;
border-top-left-radius
:
4px
;
padding
:
3px
0
0
3px
;
padding
:
2px
2px
2px
4px
;
margin
:
0
;
}
#conversejs
.chat-head-chatbox
{
background-color
:
#2D617A
;
...
...
@@ -571,18 +576,9 @@ span.spinner.hor_centered {
background-color
:
white
;
border-bottom-right-radius
:
4px
;
border-bottom-left-radius
:
4px
;
height
:
289px
;
border-top
:
0
;
}
#conversejs
.chatbox
.chat-body
{
height
:
-moz-calc
(
62%
);
height
:
-o-calc
(
62%
);
height
:
calc
(
62%
);
}
#conversejs
.chatroom
.chat-body
{
height
:
-moz-calc
(
62%
);
height
:
-o-calc
(
62%
);
height
:
calc
(
62%
);
}
#conversejs
.chatroom
.chat-area
{
float
:
left
;
width
:
200px
;
...
...
@@ -590,12 +586,12 @@ span.spinner.hor_centered {
}
#conversejs
.chatroom
.participants
{
float
:
left
;
height
:
100%
;
background-color
:
white
;
overflow
:
auto
;
border-left
:
1px
solid
#AAA
;
max-width
:
98
px
;
width
:
100
px
;
border-bottom-right-radius
:
4px
;
height
:
289px
;
}
#conversejs
.participants
ul
.participant-list
li
{
overflow
:
hidden
;
...
...
@@ -702,12 +698,11 @@ input.error {
margin-right
:
6px
;
}
#conversejs
.chat-title
{
padding
:
1px
0
;
color
:
white
;
font-weight
:
bold
;
line-height
:
15px
;
display
:
block
;
margin-top
:
2px
;
margin-right
:
20px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
...
...
@@ -732,6 +727,7 @@ input.error {
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
margin
:
0
;
padding
:
1px
0
;
}
#conversejs
div
.chat-head-chatbox
a
.user-custom-message
{
color
:
white
;
...
...
@@ -1159,6 +1155,9 @@ select#select-xmpp-status {
resize
:
none
;
height
:
62px
;
}
#conversejs
.chatroom
.chat-textarea
{
border-bottom-right-radius
:
0
;
}
#conversejs
ul
.chat-toolbar
{
font-size
:
14px
;
margin
:
0
;
...
...
@@ -1329,16 +1328,19 @@ input.custom-xmpp-status {
z-index
:
22
;
}
#conversejs
.box-flyout
{
position
:
absolute
;
display
:
block
;
border-radius
:
4px
;
bottom
:
6px
;
box-shadow
:
1px
3px
5px
3px
rgba
(
0
,
0
,
0
,
0.4
);
border-radius
:
4px
;
display
:
block
;
height
:
324px
;
position
:
absolute
;
}
#conversejs
.box-flyout.minimized
{
height
:
auto
;
}
#conversejs
.box-flyout.minimized
.chat-head
{
border-radius
:
4px
;
}
#conversejs
.chatbox
.box-flyout
{
width
:
200px
;
}
...
...
index.html
View file @
0b710b80
...
...
@@ -8,10 +8,10 @@
<meta
name=
"description"
content=
"Converse.js: A free chat client for your website"
/>
<meta
name=
"author"
content=
"JC Brand"
/>
<meta
name=
"keywords"
content=
"xmpp chat webchat converse.js"
/>
<link
href=
"http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"
rel=
"stylesheet"
type=
"text/css"
>
<link
href=
"http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css"
rel=
"stylesheet"
type=
"text/css"
>
<link
href=
"css/theme.css"
rel=
"stylesheet"
type=
"text/css"
media=
"screen
"
/>
<link
href=
"css/converse.css"
rel=
"stylesheet"
type=
"text/css"
media=
"screen
"
/>
<link
type=
"text/css"
rel=
"stylesheet"
media=
"screen"
href=
"http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"
/
>
<link
type=
"text/css"
rel=
"stylesheet"
media=
"screen"
href=
"http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css"
/
>
<link
type=
"text/css"
rel=
"stylesheet"
media=
"screen"
href=
"css/theme.css
"
/>
<link
type=
"text/css"
rel=
"stylesheet"
media=
"screen"
href=
"css/converse.css
"
/>
<script
data-main=
"main"
src=
"components/requirejs/require.js"
></script>
</head>
...
...
@@ -211,7 +211,7 @@
</section>
<!-- Core JavaScript Files -->
<script
src=
"
https://ajax.googleapis.com/ajax/libs/jquery/1.10.2
/jquery.min.js"
></script>
<script
src=
"
../components/jquery/dist
/jquery.min.js"
></script>
<script
src=
"http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"
></script>
<script
src=
"http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"
></script>
<!-- Custom Theme JavaScript -->
...
...
less/converse.less
View file @
0b710b80
...
...
@@ -416,6 +416,14 @@ you can use the generic selector below, but it's slower:
-webkit-box-sizing: border-box;
}
#conversejs div {
box-sizing: border-box;
}
#conversejs ul li {
height: auto;
}
#conversejs div,
#conversejs span,
#conversejs h1,
...
...
@@ -560,11 +568,10 @@ span.spinner.hor_centered {
}
#conversejs #offscreen-chatboxes .box-flyout .chat-head {
margin: 0;
font-size: 100%;
border-radius: 4px;
padding: 3px 0 0 5px;
margin
-bottom:
2px;
margin
: 0 0 2px
2px;
box-shadow: 1px 3px 5px 3px rgba(0,0,0,0.4);
height: 24px;
}
...
...
@@ -584,11 +591,11 @@ span.spinner.hor_centered {
#conversejs .chat-head {
color: #ffffff;
margin: 0;
font-size: 100%;
border-top-right-radius: 4px;
border-top-left-radius: 4px;
padding: 3px 0 0 3px;
padding: 2px 2px 2px 4px;
margin: 0;
}
#conversejs .chat-head-chatbox {
...
...
@@ -603,21 +610,10 @@ span.spinner.hor_centered {
background-color: white;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
height: 289px;
border-top: 0;
}
#conversejs .chatbox .chat-body {
height: -moz-calc(100% - 38px);
height: -o-calc(100% - 38px);
height: calc(100% - 38px);
}
#conversejs .chatroom .chat-body {
height: -moz-calc(100% - 38px);
height: -o-calc(100% - 38px);
height: calc(100% - 38px);
}
#conversejs .chatroom .chat-area {
float: left;
width: 200px;
...
...
@@ -626,12 +622,12 @@ span.spinner.hor_centered {
#conversejs .chatroom .participants {
float: left;
height: 100%;
background-color: white;
overflow: auto;
border-left: 1px solid #AAA;
max-width: 98
px;
width: 100
px;
border-bottom-right-radius: 4px;
height: 289px;
}
#conversejs .participants ul.participant-list li {
...
...
@@ -761,12 +757,11 @@ input.error {
}
#conversejs .chat-title {
padding: 1px 0;
color: white;
font-weight: bold;
line-height: 15px;
display: block;
margin-top: 2px;
margin-right: 20px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
...
...
@@ -794,6 +789,7 @@ input.error {
text-overflow: ellipsis;
white-space: nowrap;
margin: 0;
padding: 1px 0;
}
#conversejs div.chat-head-chatbox a.user-custom-message {
...
...
@@ -1293,6 +1289,10 @@ select#select-xmpp-status {
height: 62px;
}
#conversejs .chatroom .chat-textarea {
border-bottom-right-radius: 0;
}
#conversejs ul.chat-toolbar {
font-size: 14px;
margin: 0;
...
...
@@ -1498,18 +1498,22 @@ input.custom-xmpp-status {
}
#conversejs .box-flyout {
position: absolute;
display: block;
border-radius: 4px;
bottom: 6px;
box-shadow: 1px 3px 5px 3px rgba(0,0,0,0.4);
border-radius: 4px
;
display: block
;
height: 324px;
position: absolute;
}
#conversejs .box-flyout.minimized {
height: auto;
}
#conversejs .box-flyout.minimized .chat-head {
border-radius: 4px;
}
#conversejs .chatbox .box-flyout {
width: 200px;
}
...
...
mockup/index.html
View file @
0b710b80
...
...
@@ -4,12 +4,13 @@
<title
id=
"pageTitle"
>
Converse.js: Mockup
</title>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<meta
name=
"description"
content=
"Converse.js:
Chat Client for Websites
"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"../stylesheets/stylesheet.css"
>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"../converse.css"
>
<meta
name=
"description"
content=
"Converse.js:
Mockup
"
/>
<link
type=
"text/css"
href=
"../css/theme.css"
rel=
"stylesheet"
media=
"screen"
/
>
<link
type=
"text/css"
href=
"../css/converse.css"
rel=
"stylesheet"
media=
"screen"
/
>
<script
src=
"../components/jquery/dist/jquery.min.js"
></script>
</head>
<body>
<body
id=
"page-top"
data-spy=
"scroll"
data-target=
".navbar-custom"
>
<!-- HEADER -->
<div
id=
"header_wrap"
class=
"outer"
>
<header
class=
"inner"
>
...
...
@@ -201,7 +202,7 @@
<div
class=
"chat-head chat-head-chatbox"
>
<a
class=
"close-chatbox-button icon-close"
></a>
<a
class=
"toggle-chatbox-button icon-minus"
></a>
<canvas
height=
"3
3px"
width=
"33
px"
class=
"avatar"
style=
"background-color: black"
></canvas>
<canvas
height=
"3
1px"
width=
"31
px"
class=
"avatar"
style=
"background-color: black"
></canvas>
<div
class=
"chat-title"
>
<a
href=
"http://opkode.com"
target=
"_blank"
class=
"user"
>
JC Brand
...
...
@@ -438,12 +439,10 @@ $(document).ready(function () {
$tab_panel
=
$
(
$tab
.
attr
(
'
href
'
)),
$sibling_panel
=
$
(
$sibling
.
attr
(
'
href
'
));
$sibling_panel
.
fadeOut
(
'
fast
'
,
function
()
{
$sibling
.
removeClass
(
'
current
'
);
$tab
.
addClass
(
'
current
'
);
$tab_panel
.
fadeIn
(
'
fast
'
,
function
()
{
});
});
$sibling_panel
.
hide
();
$sibling
.
removeClass
(
'
current
'
);
$tab
.
addClass
(
'
current
'
);
$tab_panel
.
show
();
}
$
(
function
()
{
...
...
@@ -459,7 +458,7 @@ $(document).ready(function () {
$
(
'
.toggle-chatbox-button
'
).
click
(
function
(
ev
)
{
var
$grandparent
=
$
(
ev
.
target
).
parent
().
parent
().
parent
();
$grandparent
.
find
(
'
.chat-body
'
).
slideToggle
(
300
);
$grandparent
.
find
(
'
.chat-body
'
).
slideToggle
(
'
fast
'
);
var
flyout
=
$grandparent
.
find
(
'
.box-flyout
'
);
if
(
flyout
.
hasClass
(
'
minimized
'
))
{
flyout
.
removeClass
(
'
minimized
'
);
...
...
mockup/minimized.html
View file @
0b710b80
...
...
@@ -5,9 +5,9 @@
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<meta
name=
"description"
content=
"Converse.js: Chat Client for Websites"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"../stylesheets/stylesheet.css"
>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"../converse.css"
>
<script
src=
"../components/jquery/jquery.min.js"
></script>
<link
type=
"text/css"
href=
"../css/theme.css"
rel=
"stylesheet"
media=
"screen"
/
>
<link
type=
"text/css"
href=
"../css/converse.css"
rel=
"stylesheet"
media=
"screen"
/
>
<script
src=
"../components/jquery/
dist/
jquery.min.js"
></script>
</head>
<body>
<!-- HEADER -->
...
...
@@ -27,7 +27,7 @@
<div
class=
"chat-head-message-count"
style=
"display:block"
>
3
</div>
<a
class=
"close-chatbox-button icon-close"
></a>
<a
class=
"toggle-chatbox-button icon-minus"
></a>
<canvas
height=
"3
3px"
width=
"33
px"
class=
"avatar"
style=
"background-color: black"
></canvas>
<canvas
height=
"3
1px"
width=
"31
px"
class=
"avatar"
style=
"background-color: black"
></canvas>
<div
class=
"chat-title"
>
<a
href=
"http://opkode.com"
target=
"_blank"
class=
"user"
>
JC Brand
...
...
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