-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #10380 - New Component: SpeedDial
- Loading branch information
1 parent
1520552
commit c34060d
Showing
2 changed files
with
417 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
.p-speeddial { | ||
position: absolute; | ||
display: flex; | ||
z-index: 1; | ||
} | ||
|
||
.p-speeddial-list { | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
transition: top 0s linear 0.2s; | ||
pointer-events: none; | ||
} | ||
|
||
.p-speeddial-item { | ||
transform: scale(0); | ||
opacity: 0; | ||
transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 0.8s; | ||
will-change: transform; | ||
} | ||
|
||
.p-speeddial-action { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
border-radius: 50%; | ||
position: relative; | ||
overflow: hidden; | ||
cursor: pointer; | ||
} | ||
|
||
.p-speeddial-circle .p-speeddial-item, | ||
.p-speeddial-semi-circle .p-speeddial-item, | ||
.p-speeddial-quarter-circle .p-speeddial-item { | ||
position: absolute; | ||
} | ||
|
||
.p-speeddial-rotate { | ||
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; | ||
will-change: transform; | ||
} | ||
|
||
.p-speeddial-mask { | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 100%; | ||
opacity: 0; | ||
transition: opacity 250ms cubic-bezier(0.25, 0.8, 0.25, 1); | ||
} | ||
|
||
.p-speeddial-mask-visible { | ||
pointer-events: none; | ||
opacity: 1; | ||
transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1); | ||
} | ||
|
||
.p-speeddial-opened .p-speeddial-list { | ||
pointer-events: auto; | ||
} | ||
|
||
.p-speeddial-opened .p-speeddial-item { | ||
transform: scale(1); | ||
opacity: 1; | ||
} | ||
|
||
.p-speeddial-opened .p-speeddial-rotate { | ||
transform: rotate(45deg); | ||
} | ||
|
||
/* Direction */ | ||
.p-speeddial-direction-up { | ||
align-items: center; | ||
flex-direction: column-reverse; | ||
} | ||
|
||
.p-speeddial-direction-up .p-speeddial-list { | ||
flex-direction: column-reverse; | ||
} | ||
|
||
.p-speeddial-direction-down { | ||
align-items: center; | ||
flex-direction: column; | ||
} | ||
|
||
.p-speeddial-direction-down .p-speeddial-list { | ||
flex-direction: column; | ||
} | ||
|
||
.p-speeddial-direction-left { | ||
justify-content: center; | ||
flex-direction: row-reverse; | ||
} | ||
|
||
.p-speeddial-direction-left .p-speeddial-list { | ||
flex-direction: row-reverse; | ||
} | ||
|
||
.p-speeddial-direction-right { | ||
justify-content: center; | ||
flex-direction: row; | ||
} | ||
|
||
.p-speeddial-direction-right .p-speeddial-list { | ||
flex-direction: row; | ||
} |
Oops, something went wrong.