Skip to content

Commit

Permalink
Login Page. CSSex (#998)
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Muravja <[email protected]>
  • Loading branch information
Aleksandr Muravja committed Jan 11, 2023
1 parent 5d062fb commit 1c4daa4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
26 changes: 25 additions & 1 deletion frontend/css/axe_form_styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,35 @@

.axe-compact-form {
background: var(--axe-compact-area-color);
max-width: min(761px, 97%);
max-width: min(761px, 95%);
align-self: center;
width: min-content !important;
}

.space-after-submit-button {
width: 100%;
}

@media (max-width: 355px) {
vaadin-form-item vaadin-text-field, vaadin-password-field {
max-width: calc(100% - 2rem);
}
}

@media (min-width: 356px) and (max-width: 361px) {
vaadin-form-item vaadin-text-field, vaadin-password-field {
max-width: calc(100% - 1.7rem);
}
}

@media (min-width: 361px) and (max-width: 375px) {
vaadin-form-item vaadin-text-field, vaadin-password-field {
max-width: calc(100% - 1rem);
}
}

@media (min-width: 376px) and (max-width: 417px) {
vaadin-form-item vaadin-text-field, vaadin-password-field {
max-width: calc(100% - 0.5rem);
}
}
1 change: 1 addition & 0 deletions src/main/java/pm/axe/Endpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public static class UI {
public static final String REGISTRATION_FAILED_PAGE = "registrationFailed";
public static final String LOGIN_PAGE = "login";
public static final String REGISTRATION_PAGE = "register";
public static final String FORGOT_PASSWORD_PAGE = "forgot-password";
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/pm/axe/ui/pages/user/LoginPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private void init() {
getSubmitButton().addClickShortcut(Key.ENTER);
getSubmitButton().addClickListener(this::onLogin);

forgotPasswordLink.setHref(Endpoint.UI.PASSWORD_RESET_PAGE);
forgotPasswordLink.setHref(Endpoint.UI.FORGOT_PASSWORD_PAGE);
forgotPasswordLink.setText("Forgot your password?");
forgotPasswordLink.setClassName("forgot-password-link");
forgotPasswordSection.add(forgotPasswordLink);
Expand Down

0 comments on commit 1c4daa4

Please sign in to comment.