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
c421c0fe
Commit
c421c0fe
authored
Sep 25, 2015
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add .flyout class to templates. Declare more vars in Sass.
parent
7c544105
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
64 deletions
+56
-64
css/converse.css
css/converse.css
+23
-33
sass/_core.scss
sass/_core.scss
+28
-28
sass/_variables.scss
sass/_variables.scss
+2
-0
src/templates/chatbox.html
src/templates/chatbox.html
+1
-1
src/templates/chatroom.html
src/templates/chatroom.html
+1
-1
src/templates/controlbox.html
src/templates/controlbox.html
+1
-1
No files found.
css/converse.css
View file @
c421c0fe
...
...
@@ -903,7 +903,7 @@
#conversejs
.chatroom
.chat-area
{
float
:
left
;
height
:
100%
;
width
:
200px
;
}
min-
width
:
200px
;
}
#conversejs
.chatroom
.invited-contact
{
margin
:
-1px
0
0
-1px
;
width
:
100px
;
...
...
@@ -1111,7 +1111,7 @@
padding
:
0
;
position
:
relative
;
height
:
87px
;
width
:
200px
;
}
min-
width
:
200px
;
}
@media
screen
and
(
max-width
:
480px
)
{
#conversejs
form
.sendXMPPMessage
{
width
:
100%
;
}
}
...
...
@@ -1250,24 +1250,18 @@
padding
:
0.75em
0.5em
0.5em
0.5em
;
}
#conversejs
.set-xmpp-status
.dropdown
dd
ul
{
z-index
:
22
;
}
#conversejs
.minimized-chats-flyout
,
#conversejs
.box-flyout
{
#conversejs
.flyout
{
border-radius
:
4px
;
bottom
:
6px
;
box-shadow
:
1px
3px
5px
3px
rgba
(
0
,
0
,
0
,
0.4
);
display
:
block
;
height
:
400px
;
position
:
absolute
;
}
#conversejs
.box-flyout
{
height
:
400px
;
}
@media
screen
and
(
max-width
:
480px
)
{
#conversejs
.minimized-chats-flyout
,
#conversejs
.box-flyout
{
height
:
400px
;
}
}
#conversejs
.minimized-chats-flyout
{
border-radius
:
4px
;
bottom
:
35px
;
box-shadow
:
1px
3px
5px
3px
rgba
(
0
,
0
,
0
,
0.4
);
display
:
block
;
position
:
absolute
;
height
:
auto
;
width
:
130px
;
}
#conversejs
.minimized-chats-flyout
.chat-head-chatroom
,
...
...
@@ -1284,25 +1278,21 @@
margin
:
0
;
position
:
absolute
;
top
:
0
;
z-index
:
20
;
}
z-index
:
20
;
}
#conversejs
.dragresize-top
{
cursor
:
n-resize
;
height
:
5px
;
width
:
100%
;
}
width
:
100%
;
}
#conversejs
.dragresize-left
{
cursor
:
w-resize
;
width
:
5px
;
height
:
100%
;
left
:
0
;
}
left
:
0
;
}
#conversejs
.dragresize-topleft
{
cursor
:
nw-resize
;
width
:
15px
;
height
:
15px
;
top
:
0
;
left
:
0
;
}
left
:
0
;
}
/*# sourceMappingURL=converse.css.map */
sass/_core.scss
View file @
c421c0fe
...
...
@@ -297,8 +297,8 @@
.toggle-controlbox
,
#minimized-chats
{
border-top-left-radius
:
4px
;
border-top-right-radius
:
4px
;
border-top-left-radius
:
$chatbox-border-radius
;
border-top-right-radius
:
$chatbox-border-radius
;
float
:
right
;
margin
:
0
$chat-gutter
;
font-weight
:
bold
;
...
...
@@ -334,8 +334,8 @@
width
:
130px
;
#toggle-minimized-chats
{
border-top-left-radius
:
4px
;
border-top-right-radius
:
4px
;
border-top-left-radius
:
$chatbox-border-radius
;
border-top-right-radius
:
$chatbox-border-radius
;
background-color
:
ivory
;
position
:
relative
;
padding
:
10px
0
0
0
;
...
...
@@ -370,7 +370,7 @@
.chat-head
{
font-size
:
100%
;
border-radius
:
4px
;
border-radius
:
$chatbox-border-radius
;
padding
:
3px
0
0
5px
;
margin
:
0
0
1px
0
;
box-shadow
:
1px
3px
5px
3px
rgba
(
0
,
0
,
0
,
0
.4
);
...
...
@@ -382,8 +382,8 @@
.chat-body
{
background-color
:
white
;
border-bottom-right-radius
:
4px
;
border-bottom-left-radius
:
4px
;
border-bottom-right-radius
:
$chatbox-border-radius
;
border-bottom-left-radius
:
$chatbox-border-radius
;
height
:
289px
;
@include
calc
(
height
,
'100% -
#{
$chat-head-height
}
'
);
border-top
:
0
;
...
...
@@ -423,8 +423,8 @@
overflow-y
:
auto
;
text-overflow
:
ellipsis
;
background
:
#27774A
;
border-bottom-right-radius
:
4px
;
border-bottom-left-radius
:
4px
;
border-bottom-right-radius
:
$chatbox-border-radius
;
border-bottom-left-radius
:
$chatbox-border-radius
;
}
.chat-blink
{
...
...
@@ -686,8 +686,8 @@
height
:
100%
;
color
:
$text-color
;
overflow-y
:
auto
;
border-bottom-right-radius
:
4px
;
border-bottom-left-radius
:
4px
;
border-bottom-right-radius
:
$chatbox-border-radius
;
border-bottom-left-radius
:
$chatbox-border-radius
;
}
.chatroom-form
{
...
...
@@ -1027,7 +1027,7 @@
.chat-area
{
float
:
left
;
height
:
100%
;
width
:
$chat-width
;
min-
width
:
$chat-width
;
}
.invited-contact
{
margin
:
-1px
0
0
-1px
;
...
...
@@ -1043,7 +1043,7 @@
overflow-y
:
auto
;
overflow-x
:
hidden
;
border-left
:
1px
solid
#AAA
;
border-bottom-right-radius
:
4px
;
border-bottom-right-radius
:
$chatbox-border-radius
;
width
:
100px
;
height
:
100%
;
label
{
...
...
@@ -1058,8 +1058,8 @@
.chatroom-form
,
.controlbox-pane
{
background-color
:
white
;
border-bottom-left-radius
:
4px
;
border-bottom-right-radius
:
4px
;
border-bottom-left-radius
:
$chatbox-border-radius
;
border-bottom-right-radius
:
$chatbox-border-radius
;
border
:
0
;
font-size
:
$font-size
;
overflow-y
:
auto
;
...
...
@@ -1214,16 +1214,16 @@
/* @group Tabs */
.chat-head
{
border-top-left-radius
:
4px
;
border-top-right-radius
:
4px
;
border-top-left-radius
:
$chatbox-border-radius
;
border-top-right-radius
:
$chatbox-border-radius
;
color
:
#ffffff
;
font-size
:
100%
;
margin
:
0
;
padding
:
6px
;
&
.controlbox-head
{
background-color
:
$chat-head-color
;
border-top-left-radius
:
4px
;
border-top-right-radius
:
4px
;
border-top-left-radius
:
$chatbox-border-radius
;
border-top-right-radius
:
$chatbox-border-radius
;
color
:
$chat-head-inverse-text-color
;
height
:
$chat-head-height
;
margin
:
0
;
...
...
@@ -1259,8 +1259,8 @@
a
{
background-color
:
white
;
border-bottom
:
1px
solid
$border-color
;
border-top-left-radius
:
4px
;
border-top-right-radius
:
4px
;
border-top-left-radius
:
$chatbox-border-radius
;
border-top-right-radius
:
$chatbox-border-radius
;
box-shadow
:
inset
2px
-2px
20px
rgba
(
0
,
0
,
0
,
0
.3
);
color
:
#888
;
display
:
block
;
...
...
@@ -1284,12 +1284,12 @@
form
.sendXMPPMessage
{
-moz-background-clip
:
padding
;
-moz-border-radius
:
4px
;
-moz-border-radius
:
$chatbox-border-radius
;
-webkit-background-clip
:
padding-box
;
-webkit-border-radius
:
4px
;
-webkit-border-radius
:
$chatbox-border-radius
;
background-clip
:
padding-box
;
background
:
white
;
border-radius
:
4px
;
border-radius
:
$chatbox-border-radius
;
border-top-left-radius
:
0
;
border-top-right-radius
:
0
;
border-top
:
1px
solid
#BBB
;
...
...
@@ -1298,7 +1298,7 @@
padding
:
0
;
position
:
relative
;
height
:
#{
$chat-textarea-height
+
$toolbar-height
}
;
width
:
$chat-width
;
min-
width
:
$chat-width
;
@media
screen
and
(
max-width
:
$mobile-landscape-length
)
{
width
:
100%
;
}
...
...
@@ -1505,8 +1505,8 @@
}
.flyout
{
border-radius
:
4px
;
bottom
:
$
bottom-gutt
er-height
;
border-radius
:
$chatbox-border-radius
;
bottom
:
$
chatbox-hov
er-height
;
box-shadow
:
1px
3px
5px
3px
rgba
(
0
,
0
,
0
,
0
.4
);
display
:
block
;
position
:
absolute
;
...
...
@@ -1524,7 +1524,7 @@
width
:
$minimized-chats-width
;;
.chat-head-chatroom
,
.chat-head
{
border-radius
:
4px
;
border-radius
:
$chatbox-border-radius
;
width
:
$minimized-chats-width
;
height
:
35px
;
margin-bottom
:
1px
;
...
...
sass/_variables.scss
View file @
c421c0fe
...
...
@@ -22,7 +22,9 @@
$roster-height
:
194px
!
default
;
$controlbox-dropdown-height
:
25px
!
default
;
$chatbox-border-radius
:
4px
!
default
;
$bottom-gutter-height
:
35px
!
default
;
$chatbox-hover-height
:
6px
!
default
;
$mobile_landscape_length
:
480px
!
default
;
...
...
src/templates/chatbox.html
View file @
c421c0fe
<div
class=
"box-flyout"
style=
"{[ if (height) { ]} height: {{height}}px; {[ } ]} {[ if (width) { ]} width: {{width}}px; {[ } ]}"
>
<div
class=
"
flyout
box-flyout"
style=
"{[ if (height) { ]} height: {{height}}px; {[ } ]} {[ if (width) { ]} width: {{width}}px; {[ } ]}"
>
<div
class=
"dragresize dragresize-top"
></div>
<div
class=
"dragresize dragresize-topleft"
></div>
<div
class=
"dragresize dragresize-left"
></div>
...
...
src/templates/chatroom.html
View file @
c421c0fe
<div
class=
"box-flyout"
style=
"{[ if (height) { ]} height: {{height}}px; {[ } ]} {[ if (width) { ]} width: {{width}}px; {[ } ]}"
>
<div
class=
"
flyout
box-flyout"
style=
"{[ if (height) { ]} height: {{height}}px; {[ } ]} {[ if (width) { ]} width: {{width}}px; {[ } ]}"
>
<div
class=
"dragresize dragresize-top"
></div>
<div
class=
"dragresize dragresize-topleft"
></div>
<div
class=
"dragresize dragresize-left"
></div>
...
...
src/templates/controlbox.html
View file @
c421c0fe
<div
class=
"box-flyout"
style=
"{[ if (height) { ]} height: {{height}}px; {[ } ]} {[ if (width) { ]} width: {{width}}px; {[ } ]}"
>
<div
class=
"
flyout
box-flyout"
style=
"{[ if (height) { ]} height: {{height}}px; {[ } ]} {[ if (width) { ]} width: {{width}}px; {[ } ]}"
>
<div
class=
"dragresize dragresize-top"
></div>
<div
class=
"dragresize dragresize-topleft"
></div>
<div
class=
"dragresize dragresize-left"
></div>
...
...
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