Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
bootstrap: Remove bootstrap CSS for url type inputs.
Sahil Batraa860e717bb01
diff --git a/web/styles/modal.css b/web/styles/modal.cssindex c683344f193..29a11d027f5 100644--- a/web/styles/modal.css+++ b/web/styles/modal.css@@ -356,7 +356,8 @@width: 206px;}-.modal_password_input {+.modal_password_input,+.modal_url_input {padding: 4px 6px;color: hsl(0deg 0% 33%);border-radius: 4px;diff --git a/web/styles/settings.css b/web/styles/settings.cssindex d581ea6f4b9..2c876a645b3 100644--- a/web/styles/settings.css+++ b/web/styles/settings.css@@ -1945,3 +1945,20 @@ $option_title_width: 180px;opacity: 0.7;}}++.settings_url_input {+ padding: 4px 6px;+ color: hsl(0deg 0% 33%);+ border-radius: 4px;+ border: 1px solid hsl(0deg 0% 80%);+ box-shadow: inset 0 1px 1px hsl(0deg 0% 0% / 7.5%);+ transition: border linear 0.2s, box-shadow linear 0.2s;+ margin-bottom: 10px;++ &:focus {+ border-color: hsl(206deg 80% 62% / 80%);+ outline: 0;+ box-shadow: inset 0 1px 1px hsl(0deg 0% 0% / 7.5%),+ 0 0 8px hsl(206deg 80% 62% / 60%);+ }+}diff --git a/web/templates/settings/add_new_custom_profile_field_form.hbs b/web/templates/settings/add_new_custom_profile_field_form.hbsindex 558d5d3e5e4..fec863b0cce 100644--- a/web/templates/settings/add_new_custom_profile_field_form.hbs+++ b/web/templates/settings/add_new_custom_profile_field_form.hbs@@ -34,7 +34,7 @@</div><div class="input-group" id="custom_external_account_url_pattern"><label for="custom_field_url_pattern" >{{t "URL pattern" }}</label>- <input type="url" id="custom_field_url_pattern" name="url_pattern" autocomplete="off" maxlength="1024" placeholder="https://example.com/path/%(username)s"/>+ <input type="url" id="custom_field_url_pattern" class="modal_url_input" name="url_pattern" autocomplete="off" maxlength="1024" placeholder="https://example.com/path/%(username)s"/></div><div class="input-group"><label class="checkbox profile_field_display_label" for="profile_field_display_in_profile_summary">diff --git a/web/templates/settings/custom_user_profile_field.hbs b/web/templates/settings/custom_user_profile_field.hbsindex cc62d02a322..a0c2f79dd36 100644--- a/web/templates/settings/custom_user_profile_field.hbs+++ b/web/templates/settings/custom_user_profile_field.hbs@@ -21,7 +21,7 @@value="{{ field_value.value }}" /><span class="remove_date"><i class="fa fa-close"></i></span>{{else if is_url_field }}- <input class="custom_user_field_value {{#if for_manage_user_modal}}modal_text_input{{else}}settings_text_input{{/if}}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="2048" />+ <input class="custom_user_field_value {{#if for_manage_user_modal}}modal_text_input modal_url_input{{else}}settings_text_input settings_url_input{{/if}}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="2048" />{{else if is_pronouns_field}}<input class="custom_user_field_value pronouns_type_field {{#if for_manage_user_modal}}modal_text_input{{else}}settings_text_input{{/if}}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="50" />{{else}}diff --git a/web/templates/settings/edit_custom_profile_field_form.hbs b/web/templates/settings/edit_custom_profile_field_form.hbsindex 5b446268881..c86ae985683 100644--- a/web/templates/settings/edit_custom_profile_field_form.hbs+++ b/web/templates/settings/edit_custom_profile_field_form.hbs@@ -33,7 +33,7 @@</div><div class="input-group custom_external_account_detail"><label for="url_pattern">{{t "URL pattern" }}</label>- <input type="url" name="url_pattern" autocomplete="off" maxlength="80" />+ <input type="url" class="modal_url_input" name="url_pattern" autocomplete="off" maxlength="80" /></div>{{/if}}{{#if valid_to_display_in_summary}}diff --git a/web/third/bootstrap/css/bootstrap.css b/web/third/bootstrap/css/bootstrap.cssindex e308a32fe1d..b17771e5fba 100644--- a/web/third/bootstrap/css/bootstrap.css+++ b/web/third/bootstrap/css/bootstrap.css@@ -420,8 +420,7 @@ label {display: block;margin-bottom: 5px;}-input[type="text"],-input[type="url"] {+input[type="text"] {display: inline-block;height: 20px;padding: 4px 6px;@@ -434,8 +433,7 @@ input[type="url"] {border-radius: 4px;vertical-align: middle;}-input[type="text"],-input[type="url"] {+input[type="text"] {background-color: #ffffff;border: 1px solid #cccccc;-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);@@ -446,8 +444,7 @@ input[type="url"] {-o-transition: border linear .2s, box-shadow linear .2s;transition: border linear .2s, box-shadow linear .2s;}-input[type="text"]:focus,-input[type="url"]:focus {+input[type="text"]:focus {border-color: rgba(82, 168, 236, 0.8);outline: 0;-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);