Changed login form html structure to div elements #215
No reviewers
Labels
No labels
Component: User interface
Component: Wymeditor
Help wanted
Level: Difficult
Level: Easy
Level: Moderate
Pagetype: Festival
Pagetype: Mailinglist
Pagetype: Peer reviewed article
Pagetype: Text
Privacy GDPR AVG
status: has conflicts
Status: Needs changes
Status: Needs discussion
Status: Needs review
Status: Ready to merge
Status: Waiting for response
Type: Bug
Type: Enhancement
Type: Question
Usecase: De Stadsbron
Usecase: Koppelting
Usecase: MeetjeStad
Value: Coders
Value: Security
Value: Users
Value: Visitors
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
harmen/hypha!215
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "login-html-structure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The login form was structured in a table which is not easy to style.
In order to be more flexible with the way the login form can be styled
the html structure needed to be updated to div elements.
Looks like a good change. However:
hypha.php, since that does not include the main CSS but instead has a bit of minimal inline CSS that now no longer applies. We could change this inhypha.phpfor consistency with the main code, but that would break consistency with the rest ofhypha.php(that still uses tables).Not sure if this is within the scope of this PR, but ideaslly there should be no styling in the HTML. Currently there is in the HTML:
<div id="popup" style="left: 0px; top: 25px; visibility: visible;">Please also take out the style statements.
I've added some styling in the pull request.
@tammoterhark, you seem to have moved button CSS to another place in the CSS file. Initially, I thought it was accidental, or at least unrelated to this change, but later I noticed that you're overriding the .button handling for the login form, so I suppose that the button CSS needs to be above the login form, hence you moved it. In this case, it would have been better to mention this in the commit message, or even put this in a separate commit, so it is easier to say something like "This only moves CSS, without any modifications".
However, I actually wonder if we should be reusing the same
buttonclass here. In other places, there is aninputelement with abuttonclass, but here we're adding adivwithbuttonclass around a button, which is actually a different kind of thing. So it's probably best to make sure that the same rules do not apply to both (either by doinginput.buttonanddiv.button, or replacing the newbuttonclass withbutton_wrapperperhaps?). Though I wonder, do we really need that wrapper at all? You now use it to put the buttons side by side withinline-blockand add some padding in between, but I'd think you could just make the input elementinline(isn't that even the default) and use margin?I also noticed some changes to the
#popupCSS, but as we discussed this afternoon, I think we should move this into its own PR later.Removed changes in
hypha.php.Looks good right now. Just one minor comment about indentation, if that's fixed this looks good to merge.
@ -331,0 +343,4 @@background: #ddd;color: #000000;}There are mixed spaces/tabs here.
Also, all this new CSS uses tabs or 3 spaces for indentation, where the rest of the file uses single spaces.
@ -331,0 +343,4 @@background: #ddd;color: #000000;}fixed