Commit df0bb231 authored by Alain Takoudjou's avatar Alain Takoudjou

more fixes on web interface

parent 760cafe0
...@@ -38,14 +38,14 @@ ...@@ -38,14 +38,14 @@
} }
.shadow { .shadow {
box-shadow: 0 .15rem 1.75rem 0 rgba(31,45,65,.15)!important; box-shadow: 0 .15rem 1.75rem 0 rgba(31,45,65,.15);
} }
.bg-white { .bg-white {
background-color: #fff!important; background-color: #fff;
} }
.bg-gray { .bg-gray {
background-color: #eee!important; background-color: #eee;
} }
...@@ -228,6 +228,7 @@ ...@@ -228,6 +228,7 @@
margin: 0; margin: 0;
z-index: 1000; z-index: 1000;
} }
.reply textarea { .reply textarea {
width: 100%; width: 100%;
resize: none; resize: none;
...@@ -452,7 +453,7 @@ h1 { ...@@ -452,7 +453,7 @@ h1 {
#statdiv { #statdiv {
white-space: nowrap; white-space: nowrap;
margin-bottom: 2pt; margin-bottom: 16px;
} }
#errspan { #errspan {
...@@ -509,10 +510,6 @@ h1 { ...@@ -509,10 +510,6 @@ h1 {
text-align-last: center; text-align-last: center;
} }
#mutebutton {
margin-right: 0.4em;
}
#sharebutton, #unsharebutton { #sharebutton, #unsharebutton {
white-space: nowrap; white-space: nowrap;
} }
...@@ -537,13 +534,14 @@ h1 { ...@@ -537,13 +534,14 @@ h1 {
} }
#chat { #chat {
padding: 0 !important; padding: 0;
margin: 0 !important; margin: 0;
background-color: #f9f9f9; background-color: #f9f9f9;
background-size: cover; background-size: cover;
overflow-y: scroll; overflow-y: scroll;
border: none; border: none;
border-right: 4px solid #e6e6e6; border-right: 4px solid #e6e6e6;
/* force to fill height */
height: 100% !important; height: 100% !important;
min-width: 300px; min-width: 300px;
} }
...@@ -622,7 +620,8 @@ h1 { ...@@ -622,7 +620,8 @@ h1 {
} }
.media-failed { .media-failed {
opacity: 0.7; opacity: 0.5;
filter:blur(5px);
} }
#inputform { #inputform {
...@@ -637,6 +636,7 @@ h1 { ...@@ -637,6 +636,7 @@ h1 {
-webkit-transition: all .2s ease-out; -webkit-transition: all .2s ease-out;
transition: all .2s ease-out; transition: all .2s ease-out;
width: 0px; width: 0px;
/* on top of everything */
z-index: 2999; z-index: 2999;
top: 0; top: 0;
right: 0; right: 0;
...@@ -652,7 +652,7 @@ h1 { ...@@ -652,7 +652,7 @@ h1 {
color: #dbd9d9; color: #dbd9d9;
display: block; display: block;
transition: 0.3s; transition: 0.3s;
line-height: 1.4; line-height: 1.2;
} }
.sidenav a:hover { .sidenav a:hover {
...@@ -844,7 +844,7 @@ header .collapse { ...@@ -844,7 +844,7 @@ header .collapse {
#users { #users {
padding: 0; padding: 0;
margin: 0; margin: 0;
height: 100%; height: calc(100% - 84px);
width: 100%; width: 100%;
z-index: 1; z-index: 1;
position: relative; position: relative;
...@@ -854,7 +854,7 @@ header .collapse { ...@@ -854,7 +854,7 @@ header .collapse {
border: 1px solid #f7f7f7; border: 1px solid #f7f7f7;
} }
#users > div { #users .user-p {
position: relative; position: relative;
padding: 10px !important; padding: 10px !important;
border-bottom: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0;
...@@ -862,6 +862,8 @@ header .collapse { ...@@ -862,6 +862,8 @@ header .collapse {
line-height: 18px; line-height: 18px;
margin: 0 !important; margin: 0 !important;
cursor: pointer; cursor: pointer;
overflow: hidden;
white-space: pre;
} }
#left-sidebar.active #users > div { #left-sidebar.active #users > div {
...@@ -901,9 +903,22 @@ header .collapse { ...@@ -901,9 +903,22 @@ header .collapse {
display: none; display: none;
} }
.topnav {
height: 3.5rem;
}
.users-header {
height: 3.5rem;
}
.full-width {
height: calc(var(--vh, 1vh) * 100 - 56px);
}
.video-container { .video-container {
position: fixed; position: fixed;
top: 64px; height: calc(var(--vh, 1vh) * 100 - 56px);
top: 56px;
right: 0; right: 0;
left: 0; left: 0;
margin-bottom: 60px; margin-bottom: 60px;
...@@ -911,7 +926,8 @@ header .collapse { ...@@ -911,7 +926,8 @@ header .collapse {
.login-container { .login-container {
position: fixed; position: fixed;
top: 64px; height: calc(var(--vh, 1vh) * 100 - 56px);
top: 56px;
right: 0; right: 0;
left: 0; left: 0;
background: #eff3f9; background: #eff3f9;
...@@ -963,6 +979,10 @@ header .collapse { ...@@ -963,6 +979,10 @@ header .collapse {
display: block; display: block;
} }
.sidenav-header h2 {
line-height: 36px;
}
#peers { #peers {
padding: 3px; padding: 3px;
} }
...@@ -980,7 +1000,8 @@ header .collapse { ...@@ -980,7 +1000,8 @@ header .collapse {
} }
.dropdown-content { .dropdown-content {
margin-top: 14px; margin-top: 10px;
} }
} }
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<html lang="en"> <html lang="en">
<head> <head>
<title>SFU</title> <title>SFU</title>
<!--<meta name="viewport" content="width=device-width, initial-scale=1.0">--> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="minimal-ui, width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta http-equiv="ScreenOrientation" content="autoRotate:disabled">
<link rel="stylesheet" type="text/css" href="/common.css"/> <link rel="stylesheet" type="text/css" href="/common.css"/>
<link rel="stylesheet" type="text/css" href="/sfu.css"/> <link rel="stylesheet" type="text/css" href="/sfu.css"/>
<link rel="author" href="https://www.irif.fr/~jch/"/> <link rel="author" href="https://www.irif.fr/~jch/"/>
......
...@@ -209,10 +209,16 @@ function setLocalMute(mute) { ...@@ -209,10 +209,16 @@ function setLocalMute(mute) {
localMute = mute; localMute = mute;
muteLocalTracks(localMute); muteLocalTracks(localMute);
let button = document.getElementById('mutebutton'); let button = document.getElementById('mutebutton');
if(localMute) let icon = button.querySelector("span .fa");
if(localMute){
icon.classList.add('fa-microphone-slash');
icon.classList.remove('fa-microphone');
button.classList.add('muted'); button.classList.add('muted');
else } else {
icon.classList.remove('fa-microphone-slash');
icon.classList.add('fa-microphone');
button.classList.remove('muted'); button.classList.remove('muted');
}
} }
document.getElementById('videoselect').onchange = function(e) { document.getElementById('videoselect').onchange = function(e) {
...@@ -699,6 +705,7 @@ function addUser(id, name) { ...@@ -699,6 +705,7 @@ function addUser(id, name) {
let div = document.getElementById('users'); let div = document.getElementById('users');
let user = document.createElement('div'); let user = document.createElement('div');
user.id = 'user-' + id; user.id = 'user-' + id;
user.classList.add("user-p");
user.textContent = name ? name : '(anon)'; user.textContent = name ? name : '(anon)';
div.appendChild(user); div.appendChild(user);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment