-
Notifications
You must be signed in to change notification settings - Fork 60
/
tile.scss
97 lines (75 loc) · 1.96 KB
/
tile.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
@import "./settings";
@import "./mixins";
@import "./functions";
/*!
.fd-tile+()
.fd-tile__media+()
.fd-tile__content+()
.fd-tile__title+()
.fd-tile__actions+()
*/
$block: #{$fd-namespace}-tile;
.#{$block} {
// VARS
color: var(--sapTile_TextColor);
background-color: var(--sapTile_Background);
$fd-tile-content-padding: fd-space(4) fd-space("reg") !default;
$fd-tile-content-padding-x: fd-space("small") !default;
$fd-tile-content-padding-y: fd-space(2) + 2px !default;
// anim
$fd-tile-transition-params: $fd-animation--speed ease-in !default;
@include fd-reset();
display: flex;
&__text {
@include fd-reset();
}
// MODIFICATIONS
&--button,
&[role="button"] {
@include action-cursor();
transition: box-shadow $fd-tile-transition-params;
&:hover {
box-shadow: 0 0 5px 0 rgba(var(--sapTile_BorderColor), 0.4);
position: relative;
z-index: map-get($fd-z-index-levels, "first");
}
}
// STATES
&.is-disabled {
opacity: 0.4;
}
// ELEMENTS
&__media {
@include fd-reset();
padding: $fd-tile-content-padding-y 0 $fd-tile-content-padding-y $fd-tile-content-padding-x;
@include fd-rtl() {
padding-right: $fd-tile-content-padding-x;
padding-left: 0;
}
}
&__content {
@include fd-reset();
flex: 1;
padding: $fd-tile-content-padding-y $fd-tile-content-padding-x $fd-tile-content-padding-y fd-space(3);
@include fd-rtl() {
padding-right: fd-space(3);
padding-left: $fd-tile-content-padding-x;
}
align-self: center;
&:first-child {
padding-left: $fd-tile-content-padding-x;
@include fd-rtl() {
padding-right: $fd-tile-content-padding-x;
}
}
}
&__title {
@include fd-type("0");
color: var(--sapTile_TitleTextColor);
@include fd-reset-spacing();
}
&__actions {
@include fd-reset();
padding: fd-space(3) $fd-tile-content-padding-x fd-space(3) fd-space(3);
}
}