Skip to content

Commit 86d740b

Browse files
committed
Improved behavior on small devices.
1 parent 72f99ab commit 86d740b

File tree

8 files changed

+42
-19
lines changed

8 files changed

+42
-19
lines changed

src/styles/components/_audiovideo.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,22 @@
2929
}
3030
}
3131

32-
.withChat,
32+
.withChat {
33+
// scss-lint:disable IdSelector
34+
#audiovideo {
35+
right: $chat-width;
36+
}
37+
}
38+
3339
.withBuddylist {
3440
// scss-lint:disable IdSelector
3541
#audiovideo {
36-
right: 260px;
42+
right: $buddylist-width;
3743
}
3844
}
3945

4046
.withBuddylist.withChat #audiovideo { // scss-lint:disable IdSelector
41-
right: 520px;
47+
right: $chat-width + $buddylist-width;
4248
}
4349

4450
#audiovideo { // scss-lint:disable IdSelector
@@ -50,7 +56,7 @@
5056
user-select: none;
5157

5258
@include breakpt($breakpoint-video-small, max-width, only screen) {
53-
right: 0;
59+
right: 0 !important;
5460
}
5561

5662
&.fullscreen {

src/styles/components/_buddylist.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
.withBuddylist #buddylist:before { // scss-lint:disable IdSelector
5959
content: '\f101';
6060
padding-right: 0;
61+
@include breakpt($breakpoint-medium, max-width) {
62+
display: block;
63+
}
6164
}
6265

6366
.withBuddylistAutoHide #buddylist:before { // scss-lint:disable IdSelector

src/styles/components/_chat.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,25 @@
2121

2222
#chat { // scss-lint:disable IdSelector
2323
bottom: 0;
24-
min-width: $chat-width;
24+
width: $chat-width;
25+
min-width: 200px;
2526
opacity: 0;
2627
pointer-events: none;
2728
position: absolute;
28-
right: $chat-width;
29+
right: $buddylist-width;
2930
top: 0;
30-
width: $chat-width;
3131
z-index: 45;
3232
}
3333

3434
.withChat {
3535
// scss-lint:disable IdSelector
3636
#chat {
3737
opacity: 1;
38+
39+
@include breakpt($chat-width + 200, max-width) {
40+
left: 0;
41+
width: auto;
42+
}
3843
}
3944

4045
&.withChatMaximized #chat {

src/styles/components/_rightslide.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@
2121

2222

2323
.withBuddylist #rightslide { // scss-lint:disable IdSelector
24-
right: 0;
24+
@include breakpt($breakpoint-medium, min-width) {
25+
right: 0;
26+
}
2527
}
2628

2729
#rightslide { // scss-lint:disable IdSelector
2830
bottom: 0;
2931
left: 0;
3032
pointer-events: none;
3133
position: absolute;
32-
right: -1 * $pane-width;
34+
right: -1 * $buddylist-width;
3335
top: $minbarheight;
3436
transition: right 200ms ease-in-out;
3537
z-index: 5;

src/styles/global/_base.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,20 @@ body {
2929
body {
3030
margin: 0;
3131
max-height: 100%;
32-
max-width: 100%;
33-
overflow: hidden;
32+
overflow-x: hidden;
33+
overflow-y: hidden;
3434
padding: 0;
35+
36+
@include breakpt($breakpoint-medium, max-width) {
37+
overflow-x: auto;
38+
}
39+
40+
> .ui {
41+
height: 100%;
42+
min-width: $buddylist-width;
43+
position: absolute;
44+
width: 100%;
45+
}
3546
}
3647

3748
a {

src/styles/global/_overlaybar.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
display: inline-block;
9696
margin-bottom: 0;
9797
margin-left: .5em;
98-
max-width: 60%;
9998

10099
> * {
101100
padding-right: .5em;

src/styles/global/_variables.scss

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ $action-enable: $actioncolor1 !default;
5454
$welcome: #aaa !default;
5555
$loading: #ddd !default;
5656

57-
// panes
58-
$pane-width: 320px !default;
59-
6057
// font
6158
$font-sans-serif: 'Helvetica Neue', Helvetica, Arial, sans-serif !default;
6259
$base-font-size: 13px; // compass vertical_rhythm mixin
@@ -97,7 +94,7 @@ $video-overlayactions: rgba(0, 0, 0, .9) !default;
9794
$settings-background: #fff !default;
9895

9996
// buddylist
100-
$buddylist-width: $pane-width !default;
97+
$buddylist-width: 300px !default;
10198
$buddylist-background: $componentbg !default;
10299
$buddylist-tab-color: rgba(0, 0, 0, .3) !default;
103100
$buddylist-tab-background: $componentbg !default;
@@ -107,7 +104,7 @@ $buddylist-buddy2: $componentfg2 !default;
107104
$buddylist-action-font-size: 1.6em;
108105

109106
// chat
110-
$chat-width: $pane-width !default;
107+
$chat-width: 300px !default;
111108
$chat-background: $specialbg1 !default;
112109
$chat-header: rgba(255, 255, 255, .9) !default;
113110
$chat-disabled: #aaa !default;

static/css/main.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)