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
b00567a0
Commit
b00567a0
authored
Jun 01, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix styles for mobile view
parent
2ca382b7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
124 additions
and
53 deletions
+124
-53
css/converse.css
css/converse.css
+88
-43
sass/_chatrooms.scss
sass/_chatrooms.scss
+28
-2
sass/_controlbox.scss
sass/_controlbox.scss
+3
-3
sass/_core.scss
sass/_core.scss
+5
-2
src/converse-chatboxes.js
src/converse-chatboxes.js
+0
-3
No files found.
css/converse.css
View file @
b00567a0
...
...
@@ -6870,9 +6870,11 @@ body.reset {
z-index
:
1031
;
}
#conversejs
.converse-overlayed
>
.row
{
flex-direction
:
row-reverse
;
}
#conversejs
.converse-fullscreen
.converse-chatboxes
{
#conversejs
.converse-fullscreen
.converse-chatboxes
,
#conversejs
.converse-mobile
.converse-chatboxes
{
width
:
100vw
;
right
:
15px
;
}
#conversejs
.converse-overlayed
{
height
:
3em
;
}
#conversejs
.brand-heading
{
font-family
:
"Century Gothic"
,
futura
,
"URW Gothic L"
,
Verdana
,
sans-serif
;
}
#conversejs
.brand-heading
.icon-conversejs
{
...
...
@@ -6883,7 +6885,6 @@ body.reset {
z-index
:
1031
;
position
:
fixed
;
bottom
:
0
;
height
:
3em
;
right
:
0
;
}
#conversejs
::-webkit-input-placeholder
{
/* Chrome/Opera/Safari */
...
...
@@ -8006,7 +8007,6 @@ body.reset {
#conversejs
:not
(
.converse-embedded
)
.converse-chatboxes
.converse-chatroom
{
font-size
:
14px
;
}
#conversejs
:not
(
.converse-embedded
)
.converse-chatboxes
.chatbox
.box-flyout
{
top
:
-100vh
;
margin-left
:
15px
;
left
:
0
;
bottom
:
0
;
...
...
@@ -8024,21 +8024,21 @@ body.reset {
display
:
none
;
}
#conversejs
:not
(
.converse-embedded
)
.converse-chatboxes.sidebar-open
#controlbox
.controlbox-pane
{
display
:
block
;
}
}
#conversejs
:not
(
.converse-fullscreen
)
#controlbox
{
#conversejs
.converse-overlayed
#controlbox
{
order
:
-1
;
min-width
:
250px
!important
;
width
:
250px
;
}
#conversejs
:not
(
.converse-fullscreen
)
#controlbox
.box-flyout
{
#conversejs
.converse-overlayed
#controlbox
.box-flyout
{
min-width
:
250px
!important
;
width
:
250px
;
}
#conversejs
:not
(
.converse-fullscreen
)
#controlbox
:not
(
.logged-out
)
.controlbox-head
{
#conversejs
.converse-overlayed
#controlbox
:not
(
.logged-out
)
.controlbox-head
{
height
:
15px
;
}
#conversejs
:not
(
.converse-fullscreen
)
#controlbox
.controlbox-head
{
#conversejs
.converse-overlayed
#controlbox
.controlbox-head
{
display
:
flex
;
flex-direction
:
row-reverse
;
flex-wrap
:
nowrap
;
justify-content
:
space-between
;
}
#conversejs
:not
(
.converse-fullscreen
)
#controlbox
.controlbox-head
.brand-heading
{
#conversejs
.converse-overlayed
#controlbox
.controlbox-head
.brand-heading
{
position
:
relative
;
width
:
100%
;
min-height
:
1px
;
...
...
@@ -8048,19 +8048,20 @@ body.reset {
max-width
:
66.6666666667%
;
color
:
#666
;
font-size
:
2em
;
}
#conversejs
:not
(
.converse-fullscreen
)
#controlbox
.controlbox-head
.chatbox-btn
{
#conversejs
.converse-overlayed
#controlbox
.controlbox-head
.chatbox-btn
{
color
:
#578EA9
;
margin
:
0
;
}
#conversejs
:not
(
.converse-fullscreen
)
#controlbox
#converse-register
,
#conversejs
:not
(
.converse-fullscreen
)
#controlbox
#converse-login
{
#conversejs
.converse-overlayed
#controlbox
#converse-register
,
#conversejs
.converse-overlayed
#controlbox
#converse-login
{
flex
:
0
0
100%
;
max-width
:
100%
;
padding-bottom
:
0
;
}
#conversejs
:not
(
.converse-fullscreen
)
#controlbox
#converse-register
.button-cancel
{
#conversejs
.converse-overlayed
#controlbox
#converse-register
.button-cancel
{
font-size
:
90%
;
}
#conversejs
:not
(
.converse-fullscreen
)
#controlbox
.controlbox-panes
{
#conversejs
.converse-overlayed
#controlbox
.controlbox-panes
{
border-radius
:
4px
;
}
#conversejs
.converse-fullscreen
#controlbox
{
#conversejs
.converse-fullscreen
#controlbox
,
#conversejs
.converse-mobile
#controlbox
{
position
:
relative
;
width
:
100%
;
min-height
:
1px
;
...
...
@@ -8068,43 +8069,56 @@ body.reset {
padding-left
:
15px
;
margin
:
0
;
}
@media
(
min-width
:
768px
)
{
#conversejs
.converse-fullscreen
#controlbox
{
#conversejs
.converse-fullscreen
#controlbox
,
#conversejs
.converse-mobile
#controlbox
{
flex
:
0
0
25%
;
max-width
:
25%
;
}
}
@media
(
min-width
:
1200px
)
{
#conversejs
.converse-fullscreen
#controlbox
{
#conversejs
.converse-fullscreen
#controlbox
,
#conversejs
.converse-mobile
#controlbox
{
flex
:
0
0
16.6666666667%
;
max-width
:
16.6666666667%
;
}
}
#conversejs
.converse-fullscreen
#controlbox
.logged-out
{
#conversejs
.converse-fullscreen
#controlbox
.logged-out
,
#conversejs
.converse-mobile
#controlbox
.logged-out
{
flex
:
0
0
100%
;
max-width
:
100%
;
}
#conversejs
.converse-fullscreen
#controlbox
.controlbox-pane
{
#conversejs
.converse-fullscreen
#controlbox
.controlbox-pane
,
#conversejs
.converse-mobile
#controlbox
.controlbox-pane
{
border-radius
:
0
;
}
#conversejs
.converse-fullscreen
#controlbox
.flyout
{
#conversejs
.converse-fullscreen
#controlbox
.flyout
,
#conversejs
.converse-mobile
#controlbox
.flyout
{
border-radius
:
0
;
}
#conversejs
.converse-fullscreen
#controlbox
#converse-login-panel
{
#conversejs
.converse-fullscreen
#controlbox
#converse-login-panel
,
#conversejs
.converse-mobile
#controlbox
#converse-login-panel
{
border-radius
:
0
;
}
#conversejs
.converse-fullscreen
#controlbox
#converse-login-panel
.converse-form
{
#conversejs
.converse-fullscreen
#controlbox
#converse-login-panel
.converse-form
,
#conversejs
.converse-mobile
#controlbox
#converse-login-panel
.converse-form
{
padding
:
3em
2em
3em
;
}
#conversejs
.converse-fullscreen
#controlbox
.toggle-register-login
{
#conversejs
.converse-fullscreen
#controlbox
.toggle-register-login
,
#conversejs
.converse-mobile
#controlbox
.toggle-register-login
{
line-height
:
24px
;
}
#conversejs
.converse-fullscreen
#controlbox
.brand-heading-container
{
#conversejs
.converse-fullscreen
#controlbox
.brand-heading-container
,
#conversejs
.converse-mobile
#controlbox
.brand-heading-container
{
flex
:
0
0
100%
;
max-width
:
100%
;
text-align
:
center
;
}
#conversejs
.converse-fullscreen
#controlbox
.brand-heading-container
.brand-heading
{
#conversejs
.converse-fullscreen
#controlbox
.brand-heading-container
.brand-heading
,
#conversejs
.converse-mobile
#controlbox
.brand-heading-container
.brand-heading
{
font-size
:
150%
;
font-size
:
600%
;
padding
:
0.7em
0
0
0
;
opacity
:
0.8
;
color
:
#387592
;
}
#conversejs
.converse-fullscreen
#controlbox
.brand-heading-container
.brand-subtitle
{
#conversejs
.converse-fullscreen
#controlbox
.brand-heading-container
.brand-subtitle
,
#conversejs
.converse-mobile
#controlbox
.brand-heading-container
.brand-subtitle
{
font-size
:
90%
;
padding
:
0.5em
;
}
@media
screen
and
(
max-width
:
480px
)
{
#conversejs
.converse-fullscreen
#controlbox
.brand-heading-container
.brand-heading
{
#conversejs
.converse-fullscreen
#controlbox
.brand-heading-container
.brand-heading
,
#conversejs
.converse-mobile
#controlbox
.brand-heading-container
.brand-heading
{
font-size
:
400%
;
}
}
#conversejs
.converse-fullscreen
#controlbox
.logged-out
{
#conversejs
.converse-fullscreen
#controlbox
.logged-out
,
#conversejs
.converse-mobile
#controlbox
.logged-out
{
flex
:
0
0
100%
;
max-width
:
100%
;
opacity
:
0
;
...
...
@@ -8122,16 +8136,21 @@ body.reset {
-moz-animation-timing-function
:
ease
;
animation-timing-function
:
ease
;
width
:
100%
;
}
#conversejs
.converse-fullscreen
#controlbox
.logged-out
.box-flyout
{
#conversejs
.converse-fullscreen
#controlbox
.logged-out
.box-flyout
,
#conversejs
.converse-mobile
#controlbox
.logged-out
.box-flyout
{
width
:
100%
;
}
#conversejs
.converse-fullscreen
#controlbox
.box-flyout
{
#conversejs
.converse-fullscreen
#controlbox
.box-flyout
,
#conversejs
.converse-mobile
#controlbox
.box-flyout
{
border
:
0
;
width
:
100%
;
z-index
:
1
;
background-color
:
#578EA9
;
}
#conversejs
.converse-fullscreen
#controlbox
.box-flyout
.controlbox-head
{
#conversejs
.converse-fullscreen
#controlbox
.box-flyout
.controlbox-head
,
#conversejs
.converse-mobile
#controlbox
.box-flyout
.controlbox-head
{
display
:
none
;
}
#conversejs
.converse-fullscreen
#controlbox
#converse-register
,
#conversejs
.converse-fullscreen
#controlbox
#converse-login
{
#conversejs
.converse-fullscreen
#controlbox
#converse-register
,
#conversejs
.converse-fullscreen
#controlbox
#converse-login
,
#conversejs
.converse-mobile
#controlbox
#converse-register
,
#conversejs
.converse-mobile
#controlbox
#converse-login
{
position
:
relative
;
width
:
100%
;
min-height
:
1px
;
...
...
@@ -8141,25 +8160,39 @@ body.reset {
max-width
:
66.6666666667%
;
margin-left
:
16.6666666667%
;
}
@media
(
min-width
:
576px
)
{
#conversejs
.converse-fullscreen
#controlbox
#converse-register
,
#conversejs
.converse-fullscreen
#controlbox
#converse-login
{
#conversejs
.converse-fullscreen
#controlbox
#converse-register
,
#conversejs
.converse-fullscreen
#controlbox
#converse-login
,
#conversejs
.converse-mobile
#controlbox
#converse-register
,
#conversejs
.converse-mobile
#controlbox
#converse-login
{
flex
:
0
0
66.6666666667%
;
max-width
:
66.6666666667%
;
margin-left
:
16.6666666667%
;
}
}
@media
(
min-width
:
768px
)
{
#conversejs
.converse-fullscreen
#controlbox
#converse-register
,
#conversejs
.converse-fullscreen
#controlbox
#converse-login
{
#conversejs
.converse-fullscreen
#controlbox
#converse-register
,
#conversejs
.converse-fullscreen
#controlbox
#converse-login
,
#conversejs
.converse-mobile
#controlbox
#converse-register
,
#conversejs
.converse-mobile
#controlbox
#converse-login
{
flex
:
0
0
66.6666666667%
;
max-width
:
66.6666666667%
;
margin-left
:
16.6666666667%
;
}
}
@media
(
min-width
:
992px
)
{
#conversejs
.converse-fullscreen
#controlbox
#converse-register
,
#conversejs
.converse-fullscreen
#controlbox
#converse-login
{
#conversejs
.converse-fullscreen
#controlbox
#converse-register
,
#conversejs
.converse-fullscreen
#controlbox
#converse-login
,
#conversejs
.converse-mobile
#controlbox
#converse-register
,
#conversejs
.converse-mobile
#controlbox
#converse-login
{
flex
:
0
0
50%
;
max-width
:
50%
;
margin-left
:
25%
;
}
}
#conversejs
.converse-fullscreen
#controlbox
#converse-register
.title
,
#conversejs
.converse-fullscreen
#controlbox
#converse-register
.instructions
,
#conversejs
.converse-fullscreen
#controlbox
#converse-login
.title
,
#conversejs
.converse-fullscreen
#controlbox
#converse-login
.instructions
{
#conversejs
.converse-fullscreen
#controlbox
#converse-register
.title
,
#conversejs
.converse-fullscreen
#controlbox
#converse-register
.instructions
,
#conversejs
.converse-fullscreen
#controlbox
#converse-login
.title
,
#conversejs
.converse-fullscreen
#controlbox
#converse-login
.instructions
,
#conversejs
.converse-mobile
#controlbox
#converse-register
.title
,
#conversejs
.converse-mobile
#controlbox
#converse-register
.instructions
,
#conversejs
.converse-mobile
#controlbox
#converse-login
.title
,
#conversejs
.converse-mobile
#controlbox
#converse-login
.instructions
{
margin
:
1em
0
;
}
#conversejs
.converse-fullscreen
#controlbox
#converse-register
input
[
type
=
submit
],
#conversejs
.converse-fullscreen
#controlbox
#converse-register
input
[
type
=
button
],
#conversejs
.converse-fullscreen
#controlbox
#converse-login
input
[
type
=
submit
],
#conversejs
.converse-fullscreen
#controlbox
#converse-login
input
[
type
=
button
]
{
#conversejs
.converse-fullscreen
#controlbox
#converse-login
input
[
type
=
button
],
#conversejs
.converse-mobile
#controlbox
#converse-register
input
[
type
=
submit
],
#conversejs
.converse-mobile
#controlbox
#converse-register
input
[
type
=
button
],
#conversejs
.converse-mobile
#controlbox
#converse-login
input
[
type
=
submit
],
#conversejs
.converse-mobile
#controlbox
#converse-login
input
[
type
=
button
]
{
width
:
auto
;
}
#conversejs
.list-container
{
...
...
@@ -8651,25 +8684,37 @@ body.reset {
max-width
:
66.6666666667%
;
}
#conversejs
.converse-overlayed
.chatbox.chatroom
.chatbox-title
.chatroom-description
{
font-size
:
80%
;
}
#conversejs
.converse-overlayed
.chatbox.chatroom
.chatbox-buttons
{
flex
:
0
0
33.3333333333%
;
max-width
:
33.3333333333%
;
}
#conversejs
.converse-overlayed
.chatbox.chatroom
.chatroom-body
.occupants
.chatroom-features
.feature
{
font-size
:
12px
;
}
#conversejs
.converse-overlayed
.chatbox.chatroom
.chatroom-body
.chat-area
{
min-width
:
250px
;
}
/* ******************* Fullpage styles *************************** */
#conversejs
.converse-fullscreen
.chatroom
.box-flyout
.chatbox-title
{
flex
:
0
0
75%
;
max-width
:
75%
;
}
#conversejs
.converse-fullscreen
.chatroom
.box-flyout
.chatbox-buttons
{
flex
:
0
0
25%
;
max-width
:
25%
;
}
@media
(
max-width
:
767.98px
)
{
.chatroom
.box-flyout
.chatbox-title
{
flex
:
0
0
66.6666666667%
;
max-width
:
66.6666666667%
;
}
.chatroom
.box-flyout
.chatbox-buttons
{
flex
:
0
0
33.3333333333%
;
max-width
:
33.3333333333%
;
}
}
#conversejs
.converse-fullscreen
.chatroom
.box-flyout
,
#conversejs
.converse-mobile
.chatroom
.box-flyout
{
background-color
:
#E77051
;
border
:
1.2em
solid
#E77051
;
border-top
:
0.8em
solid
#E77051
;
width
:
100%
;
}
#conversejs
.converse-fullscreen
.chatroom
.box-flyout
.chatbox-title
,
#conversejs
.converse-mobile
.chatroom
.box-flyout
.chatbox-title
{
flex
:
0
0
75%
;
max-width
:
75%
;
}
#conversejs
.converse-fullscreen
.chatroom
.box-flyout
.chatbox-title
.chatroom-description
,
#conversejs
.converse-mobile
.chatroom
.box-flyout
.chatbox-title
.chatroom-description
{
font-size
:
70%
;
}
#conversejs
.converse-fullscreen
.chatroom
.box-flyout
.chatbox-title
.chatroom-description
,
#conversejs
.converse-mobile
.chatroom
.box-flyout
.chatbox-title
.chatroom-description
{
font-size
:
70%
;
}
#conversejs
.converse-fullscreen
.chatroom
.box-flyout
.chatroom-body
,
#conversejs
.converse-mobile
.chatroom
.box-flyout
.chatroom-body
{
border-top-left-radius
:
4px
;
...
...
sass/_chatrooms.scss
View file @
b00567a0
...
...
@@ -300,6 +300,9 @@
font-size
:
80%
;
}
}
.chatbox-buttons
{
@include
make-col
(
4
);
}
.chatroom-body
{
.occupants
{
.chatroom-features
{
...
...
@@ -316,7 +319,31 @@
}
}
/* ******************* Fullpage styles *************************** */
#conversejs
.converse-fullscreen
{
.chatroom
{
.box-flyout
{
.chatbox-title
{
@include
make-col
(
9
);
}
.chatbox-buttons
{
@include
make-col
(
3
);
}
}
}
}
@include
media-breakpoint-down
(
sm
)
{
.chatroom
{
.box-flyout
{
.chatbox-title
{
@include
make-col
(
8
);
}
.chatbox-buttons
{
@include
make-col
(
4
);
}
}
}
}
#conversejs
.converse-fullscreen
,
#conversejs
.converse-mobile
{
...
...
@@ -329,7 +356,6 @@
width
:
100%
;
.chatbox-title
{
@include
make-col
(
9
);
.chatroom-description
{
font-size
:
70%
;
}
...
...
sass/_controlbox.scss
View file @
b00567a0
...
...
@@ -357,7 +357,6 @@
.chatbox
{
.box-flyout
{
top
:
-100vh
;
margin-left
:
15px
;
// Counteracts Bootstrap margins, but
// not clear why needed...
left
:
0
;
...
...
@@ -393,7 +392,7 @@
}
}
#conversejs
:not
(
.converse-fullscreen
)
{
#conversejs
.converse-overlayed
{
#controlbox
{
order
:
-1
;
min-width
:
$controlbox-width
!
important
;
...
...
@@ -445,7 +444,8 @@
}
}
#conversejs
.converse-fullscreen
{
#conversejs
.converse-fullscreen
,
#conversejs
.converse-mobile
{
#controlbox
{
@include
make-col-ready
();
@include
media-breakpoint-up
(
md
)
{
...
...
sass/_core.scss
View file @
b00567a0
...
...
@@ -67,12 +67,16 @@ body.reset {
}
}
&
.converse-fullscreen
{
&
.converse-fullscreen
,
&
.converse-mobile
{
.converse-chatboxes
{
width
:
100vw
;
right
:
15px
;
// Hack due to padding added by bootstrap
}
}
&
.converse-overlayed
{
height
:
3em
;
}
.brand-heading
{
font-family
:
$heading-font
;
...
...
@@ -89,7 +93,6 @@ body.reset {
z-index
:
1031
;
// One more than bootstrap navbar
position
:
fixed
;
bottom
:
0
;
height
:
3em
;
right
:
0
;
}
...
...
src/converse-chatboxes.js
View file @
b00567a0
...
...
@@ -722,9 +722,6 @@
_converse
.
root
.
appendChild
(
el
);
}
}
if
(
_
.
includes
([
'
mobile
'
,
'
fullscreen
'
],
_converse
.
view_mode
))
{
el
.
classList
.
add
(
'
fullscreen
'
);
}
el
.
innerHTML
=
''
;
this
.
setElement
(
el
,
false
);
}
else
{
...
...
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