Browse Source

fix styling issues found during testing

sisyphus
Dustin Falgout 10 years ago
parent
commit
ed4324f855
  1. 19
      themes/antergos/css/bootstrap/theme.css
  2. 4
      themes/antergos/index.html
  3. 6
      themes/antergos/js/greeter.js

19
themes/antergos/css/bootstrap/theme.css vendored

@ -126,7 +126,8 @@ a {
} }
#user-list2 img { #user-list2 img {
width: 40px; width: 32px;
height: 32px;
margin-right: 10px; margin-right: 10px;
} }
@ -333,9 +334,13 @@ div.password, div.status, div.timer {
.password { .password {
font-size: 14px !important; font-size: 14px !important;
line-height: 37px;
height: 37px; height: 37px;
} }
input.password.form-control:focus {
-webkit-box-shadow: inset 0 -2px 0 #2196f3 !important;
box-shadow: inset 0 -2px 0 #2196f3 !important;
border-bottom: 2px solid #2196f3 !important;
}
#passwordArea .btn { #passwordArea .btn {
padding-top: 6.5px; padding-top: 6.5px;
padding-bottom: 6.5px; padding-bottom: 6.5px;
@ -592,7 +597,15 @@ padding: 0px;
} }
.list-group-item { .list-group-item {
padding: 0px 15px; padding: 5px 15px;
}
.list-group-item img {
position: relative;
bottom: 2px;
}
.list-group-item span:first-of-type {
position: relative;
top: 2px;
} }
a.list-group-item:focus, a.list-group-item:hover, a.list-group-item.hovered a.list-group-item:focus, a.list-group-item:hover, a.list-group-item.hovered

4
themes/antergos/index.html

@ -249,7 +249,7 @@
<i class="fa fa-sign-in"></i> <i class="fa fa-sign-in"></i>
</button> </button>
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span> <i class="fa fa-caret-down"></i>
</button> </button>
<ul class="dropdown-menu pull-right"> <ul class="dropdown-menu pull-right">
<li> <li>
@ -301,7 +301,7 @@
<div class="panel-footer"> <div class="panel-footer">
<div id="session-list" class="btn-group pull-left hidden"> <div id="session-list" class="btn-group pull-left hidden">
<button type="button" class="btn btn-default selected"></button> <button type="button" class="btn btn-default selected"></button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-caret-down"></i></button>
<ul id="sessions" class="dropdown-menu"> <ul id="sessions" class="dropdown-menu">
</ul> </ul>
</div> </div>

6
themes/antergos/js/greeter.js

@ -8,7 +8,7 @@ function buildUserList() {
var userList = document.getElementById('user-list2'); var userList = document.getElementById('user-list2');
for (var i in lightdm.users) { for (var i in lightdm.users) {
var user = lightdm.users[i]; var user = lightdm.users[i];
var tux = 'img/antergos-logo-user.png'; var tux = 'img/screenshot1.jpg';
var imageSrc = user.image.length > 0 ? user.image : tux; var imageSrc = user.image.length > 0 ? user.image : tux;
var lastSession = localStorage.getItem(user.name); var lastSession = localStorage.getItem(user.name);
if (lastSession == null || lastSession == undefined) { if (lastSession == null || lastSession == undefined) {
@ -17,7 +17,7 @@ function buildUserList() {
} }
log('Last Session (' + user.name + '): ' + lastSession); log('Last Session (' + user.name + '): ' + lastSession);
var li = '<a href="#' + user.name + '" class="list-group-item ' + user.name + '" onclick="startAuthentication(\'' + user.name + '\')" session="' + lastSession + '">' + var li = '<a href="#' + user.name + '" class="list-group-item ' + user.name + '" onclick="startAuthentication(\'' + user.name + '\')" session="' + lastSession + '">' +
'<img src="' + imageSrc + '" class="img-square" alt="' + user.display_name + '" onerror="imgNotFound(this)"/> ' + '<img src="' + imageSrc + '" class="img-circle" alt="' + user.display_name + '" onerror="imgNotFound(this)"/> ' +
'<span>' + user.display_name + '</span>' + '<span>' + user.display_name + '</span>' +
'<span class="badge"><i class="fa fa-check"></i></span>' + '<span class="badge"><i class="fa fa-check"></i></span>' +
'</a>'; '</a>';
@ -258,7 +258,7 @@ function submitPassword() {
*/ */
function imgNotFound(source) { function imgNotFound(source) {
source.src = 'img/antergos-logo-user.png'; source.src = 'img/screenshot1.jpg';
source.onerror = ""; source.onerror = "";
return true; return true;
} }

Loading…
Cancel
Save