portico: Remove usage of `control-group` and `control-label` class.

This commit is contained in:
Ganesh Pawar 2022-08-12 22:25:01 +05:30 committed by Tim Abbott
parent eae3e1c3cc
commit f6f85f98a7
5 changed files with 86 additions and 98 deletions

View File

@ -854,11 +854,7 @@ input.new-organization-button {
.login-form, .login-form,
.register-form { .register-form {
.control-label { .controls {
margin-bottom: 2px;
}
.control-group {
margin-right: 10px; margin-right: 10px;
} }
} }
@ -924,10 +920,6 @@ input.new-organization-button {
margin-top: 20px; margin-top: 20px;
} }
.control-group .control-label {
display: block;
}
.pitch { .pitch {
width: auto; width: auto;
} }
@ -1018,6 +1010,17 @@ input.new-organization-button {
text-align: center; text-align: center;
} }
#registration-email {
label {
float: left;
padding-top: 5px;
width: 100%;
display: block;
margin: 0;
text-align: left;
}
}
.center-block { .center-block {
text-align: left; text-align: left;
display: inline-block; display: inline-block;
@ -1027,21 +1030,10 @@ input.new-organization-button {
margin-bottom: 20px; margin-bottom: 20px;
} }
.control-group {
margin-bottom: 10px;
label {
width: 100%;
display: block;
margin: 0;
text-align: left;
}
.controls { .controls {
margin: 0; margin: 0;
text-align: left; text-align: left;
} }
}
#send_confirm input[type="text"] { #send_confirm input[type="text"] {
margin-top: 20px; margin-top: 20px;

View File

@ -303,7 +303,7 @@ html {
.center-block { .center-block {
max-width: 800px; max-width: 800px;
.control-group { .controls {
margin-bottom: 5px; margin-bottom: 5px;
} }
} }

View File

@ -16,8 +16,8 @@ the registration flow has its own (nearly identical) copy of the fields below in
<div class="form-horizontal white-box"> <div class="form-horizontal white-box">
<form method="post" class="form-horizontal" id="registration" action="{{ url('accept_terms') }}"> <form method="post" class="form-horizontal" id="registration" action="{{ url('accept_terms') }}">
{{ csrf_input }} {{ csrf_input }}
<div class="control-group"> <div id="registration-email">
<label for="id_email" class="control-label">{{ _("Email") }}</label> <label for="id_email">{{ _("Email") }}</label>
<div class="controls fakecontrol"> <div class="controls fakecontrol">
<p>{{ email }}</p> <p>{{ email }}</p>
</div> </div>
@ -52,12 +52,10 @@ the registration flow has its own (nearly identical) copy of the fields below in
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>
<div class="control-group">
<div class="controls"> <div class="controls">
<button id="accept_tos_button" type="submit">{{ _('Accept') }}</button> <button id="accept_tos_button" type="submit">{{ _('Accept') }}</button>
<input type="hidden" name="next" value="{{ next }}" /> <input type="hidden" name="next" value="{{ next }}" />
</div> </div>
</div>
</form> </form>
</div> </div>
</div> </div>

View File

@ -16,7 +16,6 @@ page can be easily identified in it's respective JavaScript file -->
<p class="devlogin_subheader">(Or visit the <a href="/login/">normal login page</a>.)</p> <p class="devlogin_subheader">(Or visit the <a href="/login/">normal login page</a>.)</p>
<form name="direct_login_form" id="direct_login_form" method="post" class="login-form"> <form name="direct_login_form" id="direct_login_form" method="post" class="login-form">
<input type="hidden" name="next" value="{{ next }}" /> <input type="hidden" name="next" value="{{ next }}" />
<div class="control-group">
<div class="controls"> <div class="controls">
<div class="group"> <div class="group">
{% if realm_web_public_access_enabled %} {% if realm_web_public_access_enabled %}
@ -86,7 +85,6 @@ page can be easily identified in it's respective JavaScript file -->
{% endif %} {% endif %}
</div> </div>
</div> </div>
</div>
</form> </form>
<form name="change_realm" action="{{ url('login_page') }}" method="post"> <form name="change_realm" action="{{ url('login_page') }}" method="post">
{{ csrf_input }} {{ csrf_input }}

View File

@ -90,7 +90,7 @@ page can be easily identified in it's respective JavaScript file. -->
<input id="id_password" name="password" class="required" type="password" autocomplete="off" <input id="id_password" name="password" class="required" type="password" autocomplete="off"
{% if email %} autofocus {% endif %} {% if email %} autofocus {% endif %}
required /> required />
<label for="id_password" class="control-label">{{ _('Password') }}</label> <label for="id_password">{{ _('Password') }}</label>
<i class="fa fa-eye-slash password_visibility_toggle" role="button"></i> <i class="fa fa-eye-slash password_visibility_toggle" role="button"></i>
</div> </div>
{% else %} {% else %}