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.

css: Extract common bootstrap CSS rules for textarea in settings.

Sahil Batra1c0b9b8c7a66
diff --git a/static/styles/settings.css b/static/styles/settings.css
index d69987e18e0..9ce54c6c385 100644
--- a/static/styles/settings.css
+++ b/static/styles/settings.css
@@ -1664,6 +1664,31 @@ $option_title_width: 180px;
margin-bottom: 20px;
}
+.settings_textarea {
+ color: hsl(0, 0%, 33%);
+ background-color: hsl(0, 0%, 100%);
+ border-radius: 4px;
+ vertical-align: middle;
+ border: 1px solid hsl(0, 0%, 80%);
+ padding: 4px 6px;
+
+ box-shadow: inset 0 1px 1px hsla(0, 0%, 0%, 0.075);
+ transition: border linear 0.2s, box-shadow linear 0.2s;
+
+ &:focus {
+ border-color: hsla(206.5, 80%, 62%, 0.8);
+ outline: 0;
+
+ box-shadow: inset 0 1px 1px hsla(0, 0%, 0%, 0.075),
+ 0 0 8px hsla(206.5, 80%, 62%, 0.6);
+ }
+
+ &:disabled {
+ cursor: not-allowed;
+ background-color: hsl(0, 0%, 93%);
+ }
+}
+
@media (width < $lg_min) {
.user-avatar-section,
.realm-icon-section {
diff --git a/static/templates/confirm_dialog/confirm_deactivate_user.hbs b/static/templates/confirm_dialog/confirm_deactivate_user.hbs
index 630e8ab9a5a..9588886e3e3 100644
--- a/static/templates/confirm_dialog/confirm_deactivate_user.hbs
+++ b/static/templates/confirm_dialog/confirm_deactivate_user.hbs
@@ -41,6 +41,6 @@
{{/tr}}
</p>
<p>{{t "The administrators provided the following comment:" }}</p>
- <textarea class="email_field_textarea" rows="8" maxlength="2000"></textarea>
+ <textarea class="email_field_textarea settings_textarea" rows="8" maxlength="2000"></textarea>
</div>
</div>
diff --git a/static/templates/settings/custom_user_profile_field.hbs b/static/templates/settings/custom_user_profile_field.hbs
index 20040154272..5e10df1f890 100644
--- a/static/templates/settings/custom_user_profile_field.hbs
+++ b/static/templates/settings/custom_user_profile_field.hbs
@@ -4,7 +4,7 @@
<div class="field_hint">{{ field.hint }}</div>
<div class="field">
{{#if is_long_text_field}}
- <textarea maxlength="500" class="custom_user_field_value">{{ field_value.value }}</textarea>
+ <textarea maxlength="500" class="custom_user_field_value settings_textarea">{{ field_value.value }}</textarea>
{{else if is_select_field}}
<select class="custom_user_field_value">
<option value=""></option>
diff --git a/static/templates/settings/organization_profile_admin.hbs b/static/templates/settings/organization_profile_admin.hbs
index ce3da5f49a7..e5e35ef216d 100644
--- a/static/templates/settings/organization_profile_admin.hbs
+++ b/static/templates/settings/organization_profile_admin.hbs
@@ -34,7 +34,7 @@
help_link="/help/communities-directory"}}
<div class="input-group admin-realm">
<label for="realm_description">{{t "Organization description" }}</label>
- <textarea id="id_realm_description" name="realm_description" class="admin-realm-description setting-widget prop-element"
+ <textarea id="id_realm_description" name="realm_description" class="admin-realm-description setting-widget prop-element settings_textarea"
maxlength="1000" data-setting-widget-type="string">{{ realm_description }}</textarea>
</div>
</div>
diff --git a/static/templates/stream_settings/change_stream_info_modal.hbs b/static/templates/stream_settings/change_stream_info_modal.hbs
index 2827ff0ef22..482d2141a06 100644
--- a/static/templates/stream_settings/change_stream_info_modal.hbs
+++ b/static/templates/stream_settings/change_stream_info_modal.hbs
@@ -9,5 +9,5 @@
{{t 'Description' }}
{{> ../help_link_widget link="/help/change-the-stream-description" }}
</label>
- <textarea id="change_stream_description" maxlength="{{ max_stream_description_length }}">{{ stream_description }}</textarea>
+ <textarea id="change_stream_description" class="settings_textarea" maxlength="{{ max_stream_description_length }}">{{ stream_description }}</textarea>
</div>
diff --git a/static/templates/user_group_settings/change_user_group_info_modal.hbs b/static/templates/user_group_settings/change_user_group_info_modal.hbs
index 6a8808c1c13..da930524d57 100644
--- a/static/templates/user_group_settings/change_user_group_info_modal.hbs
+++ b/static/templates/user_group_settings/change_user_group_info_modal.hbs
@@ -8,5 +8,5 @@
<label for="change_user_group_description">
{{t 'User group description' }}
</label>
- <textarea id="change_user_group_description">{{ group_description }}</textarea>
+ <textarea id="change_user_group_description" class="settings_textarea">{{ group_description }}</textarea>
</div>