Commit 8fd20f3a authored by JC Brand's avatar JC Brand

More CSS/styling updates

- Remove currently unused pure modules (forms and menus)
- Update forms (not all yet) markup and css
- Move all controlbox mockups to mockup/controlbox.html

Forms look much better now in mockups but JS and templates still needs updating.
parent 1fb18eef
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -73,8 +73,7 @@ ...@@ -73,8 +73,7 @@
} }
#converse-register, #converse-login { #converse-register, #converse-login {
margin: 2em 1em 1em 1em; margin-top: 2em;
background: white;
.login-anon { .login-anon {
height: auto; height: auto;
white-space: normal; white-space: normal;
...@@ -91,8 +90,7 @@ ...@@ -91,8 +90,7 @@
} }
input { input {
width: 100%; width: 100%;
height: 30px; margin: 0.5em 0;
margin: 1em 0;
} }
} }
#users { #users {
...@@ -102,35 +100,24 @@ ...@@ -102,35 +100,24 @@
} }
#chatrooms { #chatrooms {
overflow-y: auto;
form.add-chatroom { form.add-chatroom {
background: none;
padding: 0.5em;
input[type=button], input[type=button],
input[type=submit], input[type=submit],
input[type=text] { input[type=text] {
margin: 0;
width: 100%; width: 100%;
padding: 0.25em;
}
span.spinner,
input[type=button],
input[type=submit] {
margin-top: 0.5em;
display: table-cell;
width: auto;
} }
input[type=submit] { input[type=submit] {
color: $save-button-color; color: $save-button-color;
} }
} }
#available-chatrooms { #available-chatrooms {
padding: 0 1em 2em 1em;
text-align: left; text-align: left;
dt { dt {
font-weight: normal;
color: $text-color;
border: none; border: none;
padding: 0.5em; color: $text-color;
font-weight: normal;
padding: 0;
text-shadow: 0 1px 0 $text-shadow-color; text-shadow: 0 1px 0 $text-shadow-color;
} }
dd.available-chatroom { dd.available-chatroom {
...@@ -140,7 +127,8 @@ ...@@ -140,7 +127,8 @@
display: block; display: block;
font-weight: bold; font-weight: bold;
overflow: hidden; overflow: hidden;
padding: 0.25em 0.5em; padding: 0;
padding-top: 0.5em;
text-overflow: ellipsis; text-overflow: ellipsis;
text-shadow: 0 1px 0 $text-shadow-color; text-shadow: 0 1px 0 $text-shadow-color;
white-space: nowrap; white-space: nowrap;
...@@ -341,7 +329,7 @@ ...@@ -341,7 +329,7 @@
width: 100%; width: 100%;
height: 289px; height: 289px;
@include calc(height, '100% - #{$chat-head-height}'); @include calc(height, '100% - #{$chat-head-height}');
overflow-y: hidden; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
label { label {
font-size: $font-size; font-size: $font-size;
......
...@@ -115,10 +115,6 @@ ...@@ -115,10 +115,6 @@
.error { .error {
color: red; color: red;
} }
input.error {
border: 1px solid red;
}
.reg-feedback { .reg-feedback {
font-size: 85%; font-size: 85%;
} }
...@@ -164,14 +160,35 @@ ...@@ -164,14 +160,35 @@
display: block !important; display: block !important;
} }
.pure-button {
border-radius: $chatbox-border-radius;
}
form { form {
&.pure-form.converse-form { &.pure-form.converse-form {
padding: 1.5em; background: white;
margin: 1em;
legend {
color: $text-color;
}
label { label {
margin-top: 1em; margin-top: 1em;
} }
input { input[type=text],
margin-bottom: 1em; input[type=password],
input[type=number],
input[type=button],
input[type=submit] {
height: 2.2em;
}
input[type=button],
input[type=submit] {
padding-left: 1em;
padding-right: 1em;
}
input.error {
border: 1px solid red;
color: $text-color;
} }
.form-help { .form-help {
color: gray; color: gray;
......
#conversejs { #conversejs {
@import "pure/base"; @import "pure/base";
@import "pure/grids";
@import "pure/forms"; @import "pure/forms";
@import "pure/buttons"; @import "pure/buttons";
@import "pure/menus";
@include box-sizing(border-box); @include box-sizing(border-box);
*, *:before, *:after { *, *:before, *:after {
...@@ -66,17 +64,4 @@ ...@@ -66,17 +64,4 @@
color: $link-color; color: $link-color;
text-shadow: none; text-shadow: none;
} }
form {
&.pure-form.converse-form {
padding: 1.5em;
label {
margin-top: 1em;
}
input {
margin-bottom: 1em;
}
}
}
} }
<form class="pure-form pure-form-stacked" id="converse-login" method="post"> <form class="pure-form pure-form-stacked converse-form" id="converse-login" method="post">
{[ if (auto_login) { ]} {[ if (auto_login) { ]}
<span class="spinner login-submit"/> <span class="spinner login-submit"/>
{[ } ]} {[ } ]}
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<input type="text" name="jid" placeholder="{{placeholder_username}}"> <input type="text" name="jid" placeholder="{{placeholder_username}}">
<label>{{label_password}}</label> <label>{{label_password}}</label>
<input type="password" name="password" placeholder="{{placeholder_password}}"> <input type="password" name="password" placeholder="{{placeholder_password}}">
<input class="submit" type="submit" value="{{label_login}}"> <input class="pure-button" type="submit" value="{{label_login}}">
<span class="conn-feedback"></span> <span class="conn-feedback"></span>
{[ } ]} {[ } ]}
{[ if (authentication == ANONYMOUS) { ]} {[ if (authentication == ANONYMOUS) { ]}
......
<form id="converse-register" class="pure-form"> <form id="converse-register" class="pure-form converse-form">
<span class="reg-feedback"></span> <span class="reg-feedback"></span>
<label>{{label_domain}}</label> <label>{{label_domain}}</label>
<input type="text" name="domain" placeholder="{{domain_placeholder}}"> <input type="text" name="domain" placeholder="{{domain_placeholder}}">
......
<span class="spinner login-submit"/> <span class="spinner login-submit"/>
<p class="info">{{info_message}}</p> <p class="info">{{info_message}}</p>
<button class="cancel hor_centered">{{cancel}}</button> <button class="pure-button cancel hor_centered">{{cancel}}</button>
<form class="add-chatroom" action="" method="post"> <form class="pure-form pure-form-stacked converse-form add-chatroom" action="" method="post">
<label>{{label_room_name}}</label> <fieldset>
<input type="text" name="chatroom" class="new-chatroom-name" <label>{{label_room_name}}</label>
placeholder="{{label_room_name}}"/> <input type="text" name="chatroom" class="new-chatroom-name" placeholder="{{label_room_name}}"/>
<label>{{label_nickname}}</label> <label>{{label_nickname}}</label> <input type="text" name="nick" class="new-chatroom-nick" placeholder="{{label_nickname}}"/>
<input type="text" name="nick" class="new-chatroom-nick" <input type="submit" class="pure-button" name="join" value="{{label_join}}"/>
placeholder="{{label_nickname}}"/> </fieldset>
{[ if (server_input_type != 'hidden') { ]} <fieldset>
<label{{server_label_global_attr}}>{{label_server}}</label> {[ if (server_input_type != 'hidden') { ]}
{[ } ]} <label{{server_label_global_attr}}>{{label_server}}</label>
<input type="{{server_input_type}}" name="server" class="new-chatroom-server" {[ } ]}
placeholder="{{label_server}}"/> <input type="{{server_input_type}}" name="server" class="new-chatroom-server" placeholder="{{label_server}}"/>
<div class="button-group"> <input type="button" class="pure-button" name="show" id="show-rooms" value="{{label_show_rooms}}"/>
<input type="submit" class="left" name="join" value="{{label_join}}"/> </fieldset>
<input type="button" class="right" name="show" id="show-rooms" value="{{label_show_rooms}}"/>
</div>
</form> </form>
<dl id="available-chatrooms"></dl> <dl id="available-chatrooms"></dl>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
var XFORM_TYPE_MAP = { var XFORM_TYPE_MAP = {
'text-private': 'password', 'text-private': 'password',
'text-single': 'textline', 'text-single': 'text',
'fixed': 'label', 'fixed': 'label',
'boolean': 'checkbox', 'boolean': 'checkbox',
'hidden': 'hidden', 'hidden': 'hidden',
......
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