From 026b19925e199c75c6f35f0cb96527a316d3431f Mon Sep 17 00:00:00 2001 From: Volker E Date: Tue, 19 Jul 2022 04:17:50 -0700 Subject: [PATCH] styles: Use mediawiki.skin.variables `transition-duration` vars Bug: T313243 Change-Id: Ic592dfe0a8711f33196d84a222ffa1d6214545e8 --- resources/common/components/MenuDropdown.less | 2 +- resources/common/components/SearchBox.less | 2 +- resources/common/variables.less | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/common/components/MenuDropdown.less b/resources/common/components/MenuDropdown.less index 899743066..6e2277e1e 100644 --- a/resources/common/components/MenuDropdown.less +++ b/resources/common/components/MenuDropdown.less @@ -57,7 +57,7 @@ opacity: 0; visibility: hidden; transition-property: opacity; - transition-duration: 100ms; + transition-duration: @transition-duration-base; z-index: @z-index-menu; } diff --git a/resources/common/components/SearchBox.less b/resources/common/components/SearchBox.less index 3db4127d6..6c585feb5 100644 --- a/resources/common/components/SearchBox.less +++ b/resources/common/components/SearchBox.less @@ -29,7 +29,7 @@ font-size: @font-size-search-input; direction: ltr; transition-property: border-color, box-shadow; - transition-duration: 250ms; + transition-duration: @transition-duration-medium; // Undo the proprietary styles, we provide our own. // Support: Safari/iOS `none` needed, Chrome would accept `textfield` as well. See T247299. diff --git a/resources/common/variables.less b/resources/common/variables.less index f31875f0a..f8b1fb4be 100644 --- a/resources/common/variables.less +++ b/resources/common/variables.less @@ -181,7 +181,6 @@ // @z-index-ui-tooltip: 9999; // Transitions -@transition-duration-base: 100ms; // Sticky header hide/show transition @transition-sticky-header: transform 250ms linear;