Commit 51f725e4 authored by Alain Takoudjou's avatar Alain Takoudjou

Improve design of login box

Reorganize radio buttons also.
parent 4de29530
...@@ -138,6 +138,7 @@ ...@@ -138,6 +138,7 @@
.btn { .btn {
display: inline-block; display: inline-block;
font-weight: 400; font-weight: 400;
font-size: 1em;
text-align: center; text-align: center;
white-space: nowrap; white-space: nowrap;
vertical-align: middle; vertical-align: middle;
...@@ -512,15 +513,21 @@ textarea.form-reply { ...@@ -512,15 +513,21 @@ textarea.form-reply {
.login-container { .login-container {
height: calc(var(--vh, 1vh) * 100 - 56px); height: calc(var(--vh, 1vh) * 100 - 56px);
position: relative; position: relative;
display: block; display: flex;
justify-content: center;
} }
.login-box { .login-box {
position: absolute; width: 20em;
top: 15%; padding: 1em;
left: 25%; margin: 5em auto;
width: 35em; height: 23em;
padding: 2em; background: #fcfcfc;
}
.login-box .connect {
width: 100%;
text-align: center;
} }
.login-box h2 { .login-box h2 {
...@@ -629,6 +636,20 @@ h1 { ...@@ -629,6 +636,20 @@ h1 {
display: inline display: inline
} }
.userform label {
min-width: 3em;
display: inline-block;
padding-top: 10px;
}
.userform input[type="text"], .userform input[type="password"] {
width: 100%;
}
.switch-radio {
margin: 0;
}
.invisible { .invisible {
display: none; display: none;
} }
...@@ -741,8 +762,8 @@ h1 { ...@@ -741,8 +762,8 @@ h1 {
} }
#connectbutton { #connectbutton {
margin-left: 80px; margin-top: 1em;
margin-top: 15px; padding: 0.37rem 1.5rem;
} }
#input { #input {
...@@ -1163,7 +1184,7 @@ header .collapse { ...@@ -1163,7 +1184,7 @@ header .collapse {
} }
.login-box { .login-box {
left: calc(100vw / 2 - 10.5em); background: transparent;
} }
.coln-left { .coln-left {
......
...@@ -110,21 +110,31 @@ ...@@ -110,21 +110,31 @@
<div class="login-container invisible" id="login-container"> <div class="login-container invisible" id="login-container">
<div class="login-box"> <div class="login-box">
<form id="userform" class="userform"> <form id="userform" class="userform">
<label for="username">Username:</label> <label for="username">Username</label>
<input id="username" type="text" name="username" <input id="username" type="text" name="username"
autocomplete="username" class="form-control"/> autocomplete="username" class="form-control"/>
<label for="password">Password:</label> <label for="password">Password</label>
<input id="password" type="password" name="password" <input id="password" type="password" name="password"
autocomplete="current-password" class="form-control"/> autocomplete="current-password" class="form-control"/>
<label>Present:</label> <label>Auto ready</label>
<input id="presentoff" type="radio" name="presentradio" value="" checked/> <div class="present-switch">
<label for="presentoff">nothing</label> <p class="switch-radio">
<input id="presentmike" type="radio" name="presentradio" value="mike"/> <input id="presentoff" type="radio" name="presentradio" value="" checked/>
<label for="presentmike">microphone</label> <label for="presentoff">Disabled</label>
<input id="presentboth" type="radio" name="presentradio" value="both"/> </p>
<label for="presentboth">camera and microphone</label> <p class="switch-radio">
<input id="presentmike" type="radio" name="presentradio" value="mike"/>
<label for="presentmike">Enable microphone</label>
</p>
<p class="switch-radio">
<input id="presentboth" type="radio" name="presentradio" value="both"/>
<label for="presentboth">Enable camera and microphone</label>
</p>
</div>
<div class="clear"></div> <div class="clear"></div>
<input id="connectbutton" type="submit" class="btn btn-blue" value="Connect"/> <div class="connect">
<input id="connectbutton" type="submit" class="btn btn-blue" value="Connect"/>
</div>
</form> </form>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
......
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