From d37344e27bfc348303d2072d808ce203a62259d2 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Mon, 14 Nov 2022 09:07:37 -0600 Subject: [PATCH] Merge pull request #10387 from overleaf/jel-input-padding [web] Decrease input padding for new CSS build GitOrigin-RevId: 5c1513aea854d09d8dc13f1697188f6dc9696737 --- services/web/frontend/stylesheets/components/forms.less | 2 +- services/web/frontend/stylesheets/variables/all.less | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/stylesheets/components/forms.less b/services/web/frontend/stylesheets/components/forms.less index cbed72f5fa..fae2983279 100755 --- a/services/web/frontend/stylesheets/components/forms.less +++ b/services/web/frontend/stylesheets/components/forms.less @@ -156,7 +156,7 @@ output { display: block; width: 100%; height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border) - padding: @padding-base-vertical @padding-base-horizontal; + padding: @input-padding; font-size: @font-size-base; line-height: @line-height-base; color: @input-color; diff --git a/services/web/frontend/stylesheets/variables/all.less b/services/web/frontend/stylesheets/variables/all.less index 31289cee8f..453fcd78e4 100644 --- a/services/web/frontend/stylesheets/variables/all.less +++ b/services/web/frontend/stylesheets/variables/all.less @@ -195,6 +195,7 @@ @input-border-focus: @blue-50; //** Bordersize for inputs @input-border-size: @border-size; +@input-padding: @padding-sm; //** Placeholder text color @input-color-placeholder: @neutral-60;