Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit e4d39b4

Browse files
har79nshahan
authored andcommitted
Part of a sequence of CLs refactoring css/material into separate, smaller libraries
PiperOrigin-RevId: 225357911
1 parent f985b4a commit e4d39b4

File tree

2 files changed

+40
-34
lines changed

2 files changed

+40
-34
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
// Duration and easing constants.
6+
//
7+
// Spec: https://material.io/guidelines/motion/duration-easing.html
8+
9+
// Common Durations.
10+
//
11+
// Multiply the mobile values by 1.3 for tablets, and 0.7 for wearables.
12+
$mat-transition-desktop: 150ms;
13+
$mat-transition-desktop-complex: 200ms;
14+
$mat-transition-mobile: 300ms;
15+
$mat-transition-mobile-complex: 375ms;
16+
$mat-transition-mobile-entering: 225ms;
17+
$mat-transition-mobile-leaving: 195ms;
18+
19+
// Standard natural easing curve.
20+
$mat-transition-standard: cubic-bezier(.4, 0, .2, 1);
21+
22+
// Curves for movement, in and out of the screen bounds, of independent elements
23+
// (those which don't affect the position of other on-screen content).
24+
//
25+
// Spec: https://material.io/guidelines/motion/movement.html
26+
//
27+
// * Deceleration is used for content entering the screen.
28+
// * Acceleration is used for content leaving the screen permanently.
29+
// * Sharp is used for content leaving the screen temporarily.
30+
$mat-transition-deceleration: cubic-bezier(0, 0, .2, 1);
31+
$mat-transition-acceleration: cubic-bezier(.4, 0, 1, 1);
32+
$mat-transition-sharp: cubic-bezier(.4, 0, .6, 1);
33+
34+
// Deprecated: use the new values, above.
35+
// TODO(google): remove.
36+
$mat-transition: 218ms;
37+
$mat-transition-slow: $mat-transition * 2;
38+
$mat-transition-fast: 130ms;

angular_components/lib/css/material/const/_settings.scss

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
//
1010
// #############################################################################
1111

12+
@import 'package:angular_components/css/transition_material';
13+
1214
// Options that can be set before importing
1315
$mat-option-inline-icons: false !default;
1416
$mat-option-export-classes: false !default;
@@ -32,37 +34,3 @@ $mat-icon-dark-opacity-hover: 1;
3234
$mat-grid: 8px;
3335
$mat-grid-type: 4px;
3436

35-
// Duration and easing constants.
36-
//
37-
// Spec: https://material.io/guidelines/motion/duration-easing.html
38-
39-
// Common Durations.
40-
//
41-
// Multiply the mobile values by 1.3 for tablets, and 0.7 for wearables.
42-
$mat-transition-desktop: 150ms;
43-
$mat-transition-desktop-complex: 200ms;
44-
$mat-transition-mobile: 300ms;
45-
$mat-transition-mobile-complex: 375ms;
46-
$mat-transition-mobile-entering: 225ms;
47-
$mat-transition-mobile-leaving: 195ms;
48-
49-
// Standard natural easing curve.
50-
$mat-transition-standard: cubic-bezier(.4, 0, .2, 1);
51-
52-
// Curves for movement, in and out of the screen bounds, of independent elements
53-
// (those which don't affect the position of other on-screen content).
54-
//
55-
// Spec: https://material.io/guidelines/motion/movement.html
56-
//
57-
// * Deceleration is used for content entering the screen.
58-
// * Acceleration is used for content leaving the screen permanently.
59-
// * Sharp is used for content leaving the screen temporarily.
60-
$mat-transition-deceleration: cubic-bezier(0, 0, .2, 1);
61-
$mat-transition-acceleration: cubic-bezier(.4, 0, 1, 1);
62-
$mat-transition-sharp: cubic-bezier(.4, 0, .6, 1);
63-
64-
// Deprecated: use the new values, above.
65-
// TODO(google): remove.
66-
$mat-transition: 218ms;
67-
$mat-transition-slow: $mat-transition * 2;
68-
$mat-transition-fast: 130ms;

0 commit comments

Comments
 (0)