This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
fabToolbar.scss
117 lines (91 loc) · 1.92 KB
/
fabToolbar.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
md-fab-toolbar {
$icon-delay: 200ms;
display: block;
/*
* Closed styling
*/
.md-fab-toolbar-wrapper {
display: block;
position: relative;
overflow: hidden;
// Account for the size of the trigger (5.6rem) plus it's margin/shadow (0.6rem * 2)
height: 6.8rem;
}
md-fab-trigger {
position: absolute;
z-index: $z-index-fab;
button {
overflow: visible !important;
}
.md-fab-toolbar-background {
display: block;
position: absolute;
z-index: $z-index-fab + 1;
opacity: 1;
transition: $swift-ease-in;
}
md-icon {
position: relative;
z-index: $z-index-fab + 2;
opacity: 1;
// Hide the icon very quickly
transition: all $icon-delay ease-in;
}
}
&.md-left {
md-fab-trigger {
left: 0;
}
.md-toolbar-tools {
flex-direction: row;
}
}
&.md-right {
md-fab-trigger {
right: 0;
}
.md-toolbar-tools {
flex-direction: row-reverse;
> .md-button:first-child {
margin-left: 0.6rem;
}
> .md-button:first-child {
margin-right: -0.8rem;
}
> .md-button:last-child {
margin-right: 8px;
}
}
}
md-toolbar {
background-color: transparent !important;
z-index: $z-index-fab + 3;
.md-toolbar-tools {
// Fix some spacing issues with the icons and the trigger
padding: 0 20px;
margin-top: 3px;
}
.md-fab-action-item {
opacity: 0;
transform: scale(0);
transition: $swift-ease-in;
// Cut the action item's animation time in half since we delay it in the JS
transition-duration: $swift-ease-in-duration / 2;
}
}
/*
* Hover styling
*/
&.md-is-open {
md-fab-trigger > button {
box-shadow: none;
md-icon {
opacity: 0;
}
}
.md-fab-action-item {
opacity: 1;
transform: scale(1);
}
}
}