Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

templates: Fix styles on reset_confirm template.

Lauryn Menard5afbbf4f7cf1
diff --git a/templates/zerver/reset_confirm.html b/templates/zerver/reset_confirm.html
index d463e49d22e..1af97d98060 100644
--- a/templates/zerver/reset_confirm.html
+++ b/templates/zerver/reset_confirm.html
@@ -7,18 +7,14 @@
{% block portico_content %}
-<div class="password-container flex full-page new-style">
-
- <!-- wrapper for flex content -->
- <div>
- <div class="get-started">
- <h1>{{ _('Set a new password.') }}</h1>
+<div class="flex full-page new-style">
+ <div id="password-reset-confirm" >
+ <div class="registration-lead-section">
+ <h1 class="registration-lead-title">{{ _('Set a new password') }}</h1>
</div>
- <div class="password-reset white-box">
- <!-- TODO: Ask about meta viewport 1:1 scaling -->
-
+ <div class="white-box">
{% if validlink %}
- <form method="post" id="password_reset" autocomplete="off">
+ <form class="form-inline" method="post" id="password_reset" autocomplete="off">
{{ csrf_input }}
<div class="input-box" id="email-section">
<label for="id_email">{{ _("Email") }}</label>
@@ -28,7 +24,7 @@
</div>
<div class="input-box password-div">
- <label for="id_new_password1" class="">{{ _('Password') }}</label>
+ <label for="id_new_password1">{{ _('Password') }}</label>
<input id="id_new_password1" class="required" type="password" name="new_password1" autocomplete="new-password"
value="{% if form.new_password1.value() %}{{ form.new_password1.value() }}{% endif %}"
data-max-length="{{ password_max_length }}"
@@ -41,15 +37,12 @@
{% endfor %}
{% endif %}
</div>
- <div class="input-box">
- <div class="">
- <div class="progress" id="pw_strength">
- <div class="bar bar-danger" style="width: 10%;"></div>
- </div>
- </div>
+ <div class="progress" id="pw_strength">
+ <div class="bar bar-danger" style="width: 10%;"></div>
</div>
+
<div class="input-box password-div">
- <label for="id_new_password2" class="">{{ _('Confirm password') }}</label>
+ <label for="id_new_password2">{{ _('Confirm password') }}</label>
<input id="id_new_password2" class="required" type="password" name="new_password2" autocomplete="off"
value="{% if form.new_password2.value() %}{{ form.new_password2.value() }}{% endif %}"
maxlength="100" required />
@@ -74,15 +67,13 @@
{% endif %}
{% endif %}
- <div class="input-box m-t-30">
- <div class="centered-button">
- <button type="submit" class="" value="Submit">Submit</button>
- </div>
+ <div class="input-box">
+ <button type="submit" class="password-reset-button" value="Submit">Submit</button>
</div>
</form>
{% else %}
- <p>{{ _('Sorry, the link you provided is invalid or has already been used.') }}</p>
+ <p class="password-reset-invalid">{{ _('Sorry, the link you provided is invalid or has already been used.') }}</p>
{% endif %}
</div>
</div>
diff --git a/web/styles/portico/legacy_portico.css b/web/styles/portico/legacy_portico.css
index 5119de9fb52..b1896c69450 100644
--- a/web/styles/portico/legacy_portico.css
+++ b/web/styles/portico/legacy_portico.css
@@ -837,56 +837,6 @@ input#terminal:checked ~ #tab-terminal {
text-align: center;
}
-/* -- password reset container -- */
-.password-reset {
- display: inline-block;
- text-align: left;
- width: 328px;
-
- & form {
- margin: 0;
- }
-
- #pw_strength {
- width: 328px;
- margin-top: 20px;
- }
-
- .pitch {
- width: auto;
- }
-
- .input-group {
- margin: 15px 0;
-
- & input[type="text"],
- input[type="password"] {
- width: calc(100% - 14px);
- }
-
- #pw_strength {
- width: 100%;
- }
-
- &.m-t-30 {
- margin-top: 30px;
- }
- }
-
- & p {
- margin: 0;
- }
-
- .progress {
- margin: 0;
- }
-
- #email-section .fakecontrol {
- display: inline-block;
- margin: 0;
- }
-}
-
.input-group {
.progress {
margin: 0;
@@ -1177,12 +1127,6 @@ input#terminal:checked ~ #tab-terminal {
}
}
-@media (height <= 600px) {
- .password-container {
- margin-top: 10px;
- }
-}
-
@media (width <= 558px) {
.team {
.bdfl {
diff --git a/web/styles/portico/marketing_page.css b/web/styles/portico/marketing_page.css
index a6b67cd5452..9afca22480b 100644
--- a/web/styles/portico/marketing_page.css
+++ b/web/styles/portico/marketing_page.css
@@ -491,56 +491,6 @@ input#terminal:checked ~ #tab-terminal {
text-align: center;
}
-/* -- password reset container -- */
-.password-reset {
- display: inline-block;
- text-align: left;
- width: 328px;
-
- & form {
- margin: 0;
- }
-
- #pw_strength {
- width: 328px;
- margin-top: 20px;
- }
-
- .pitch {
- width: auto;
- }
-
- .input-group {
- margin: 15px 0;
-
- & input[type="text"],
- input[type="password"] {
- width: calc(100% - 14px);
- }
-
- #pw_strength {
- width: 100%;
- }
-
- &.m-t-30 {
- margin-top: 30px;
- }
- }
-
- & p {
- margin: 0;
- }
-
- .progress {
- margin: 0;
- }
-
- #email-section .fakecontrol {
- display: inline-block;
- margin: 0;
- }
-}
-
.input-group {
.progress {
margin: 0;
@@ -827,12 +777,6 @@ input#terminal:checked ~ #tab-terminal {
}
}
-@media (height <= 600px) {
- .password-container {
- margin-top: 10px;
- }
-}
-
@media (width <= 558px) {
.team {
.bdfl {
diff --git a/web/styles/portico/portico_signin.css b/web/styles/portico/portico_signin.css
index 645056b0d9b..d9ac67feeda 100644
--- a/web/styles/portico/portico_signin.css
+++ b/web/styles/portico/portico_signin.css
@@ -972,6 +972,7 @@ button#register_auth_button_gitlab {
}
}
+#password-reset-confirm,
#realm-import-post-process,
#realm-creation-form-slack-import,
#account-deactivated-success-page-details,
@@ -1220,19 +1221,40 @@ button#register_auth_button_gitlab {
}
}
-#password_reset .input-group {
- & label {
- font-size: 1rem;
+#password-reset-confirm {
+ .white-box {
+ display: inline-block;
+ text-align: left;
+ width: 328px;
+ }
- &.inline-block {
- margin-top: -1px;
- }
+ #pw_strength {
+ width: 328px;
+ }
+
+ .password-reset-button {
+ margin-top: 10px;
+ width: 328px;
+ }
- &.marketing_emails_checkbox {
- text-indent: -24px;
- margin-left: 24px;
+ #password_reset .input-group {
+ & label {
+ font-size: 1rem;
+
+ &.inline-block {
+ margin-top: -1px;
+ }
+
+ &.marketing_emails_checkbox {
+ text-indent: -24px;
+ margin-left: 24px;
+ }
}
}
+
+ .password-reset-invalid {
+ margin: 0;
+ }
}
#billing-page-details {