source: trip-planner-front/node_modules/@angular/material/tooltip/_tooltip-theme.scss@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.7 KB
Line 
1@use 'sass:map';
2@use '../core/theming/theming';
3@use '../core/typography/typography';
4@use '../core/typography/typography-utils';
5@use '../core/style/private';
6
7$target-height: 22px;
8$font-size: 10px;
9$vertical-padding: private.private-div($target-height - $font-size, 2);
10
11$handset-target-height: 30px;
12$handset-font-size: 14px;
13$handset-vertical-padding:
14 private.private-div($handset-target-height - $handset-font-size, 2);
15
16@mixin color($config-or-theme) {
17 $config: theming.get-color-config($config-or-theme);
18 $background: map.get($config, background);
19
20 .mat-tooltip {
21 background: theming.get-color-from-palette($background, tooltip, 0.9);
22 }
23}
24
25@mixin typography($config-or-theme) {
26 $config: typography.private-typography-to-2014-config(
27 theming.get-typography-config($config-or-theme));
28 .mat-tooltip {
29 font-family: typography-utils.font-family($config);
30 font-size: $font-size;
31 padding-top: $vertical-padding;
32 padding-bottom: $vertical-padding;
33 }
34
35 .mat-tooltip-handset {
36 font-size: $handset-font-size;
37 padding-top: $handset-vertical-padding;
38 padding-bottom: $handset-vertical-padding;
39 }
40}
41
42@mixin _density($config-or-theme) {}
43
44@mixin theme($theme-or-color-config) {
45 $theme: theming.private-legacy-get-theme($theme-or-color-config);
46 @include theming.private-check-duplicate-theme-styles($theme, 'mat-tooltip') {
47 $color: theming.get-color-config($theme);
48 $density: theming.get-density-config($theme);
49 $typography: theming.get-typography-config($theme);
50
51 @if $color != null {
52 @include color($color);
53 }
54 @if $density != null {
55 @include _density($density);
56 }
57 @if $typography != null {
58 @include typography($typography);
59 }
60 }
61}
62
Note: See TracBrowser for help on using the repository browser.