ndarville / pony-forum

A modern alternative to ancient forum CMSes like vBulletin and PHPBB in Python on Django. (Alpha stage.) (NB: dotCloud have since removed their free Sandbox tier.)
http://pony-forum.com
26 stars 7 forks source link

Log-in and registration form icons #110

Closed ndarville closed 11 years ago

ndarville commented 11 years ago
/****          *****
***** ACCOUNTS *****
*****          ****/
#content-body input[name="username"] {
    background: url(/static/glyphish/111-user.png) no-repeat left;
    background-size: 1.5em;
    background-position: 5px 50%;
    padding-left: 35px;
}

#content-body input[name="email"] {
    background: url(/static/glyphish/18-envelope.png) no-repeat left;
    background-size: 1.5em;
    background-position: 7px 50%;
    padding-left: 35px;
}

#content-body input[name="password"] {
    background: url(/static/glyphish/54-lock.png) no-repeat left;
    background-size: 1.5em;
    background-position: 5px 50%;
    padding-left: 35px;
}

#content-body input[name="password1"] {
    background: url(/static/glyphish/54-lock.png) no-repeat left;
    background-size: 1.5em;
    background-position: 5px 50%;
    padding-left: 35px;
}

#content-body input[name="password2"] {
    background: url(/static/glyphish/54-lock.png) no-repeat left;
    background-size: 1.5em;
    background-position: 5px 50%;
    padding-left: 35px;
}

All input forums: size:="30".

<form action="" method="post" id="account-form">

#account-form label { display: none; }

Screen Shot 2013-03-20 at 22 03 40

Screen Shot 2013-03-20 at 22 09 51

To do:

ndarville commented 11 years ago

I removed hid the labels to everyone not using screenreaders and used placehodler text instead. This is not particularly friendly to older, stupider browsers, but I think it is better to implement backwards compatibility that provide the same look, rather than to create a 90s-looking design that works across all browsers.

Final results:

Screen Shot 2013-03-21 at 00 47 05

Screen Shot 2013-03-21 at 00 15 00

Not digging the look of the #login-helpers font, but it is not due to any bugged CSS.

ndarville commented 11 years ago

Password Reset

Screen Shot 2013-03-21 at 00 48 44

E-mail Change

Screen Shot 2013-03-21 at 01 02 12

ndarville commented 11 years ago

Problem: Error (Errow, Hurr) Indentation

Screen Shot 2013-03-21 at 01 01 37

Solutions:

ndarville commented 11 years ago

Addressed the problem by using the—admittedly bugged—original error display and ditching the arrows:

Screen Shot 2013-03-21 at 13 42 04

ndarville commented 11 years ago

The look on the iPhone and especially on the iPad are not satisfactory. The forms are way too small on the iPad.

Clipboard01

Clipboard02

The screenshots actually make the forms look bigger than they appear on the viewports, so they aren’t the best example.

The forms aren’t smaller than they used to, though.

ndarville commented 11 years ago

The container div also appears to exceed the viewport of the iPhone (portrait and landscape), which leads it to zoom in when interacting with a form. That needs to be fixed as well.

This could be responsible:

#board,
#content,
#credits,
#header,
#navigation {
    width: 95%;
}

Or not; the container is bigger than the iPhone viewport, which lets you scroll horizontally, which is not the case on the iPad.


Changing the value to 100% removes the horizontal scrolling problem, but the forms are still zoomed in on when clicked.

Still, the CSS from now on should probably be something like:

#content,
#credits,
#navigation {
    width: 100%;
}

.categories,
.threads,
#board,
#header {
    width: 95%;
}
ndarville commented 11 years ago
ndarville commented 11 years ago

Changing the input and textarea font-size: 16px; according to this did not work. Perhaps because I added line-height?

ndarville commented 11 years ago

Spinning off the iPhone zoom problem to a separate issue.