Add initial logic for rendering the context menu

This commit is contained in:
Dane Everitt 2018-08-14 22:27:25 -07:00
parent 5aa57e0681
commit e0fda5865d
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 117 additions and 4 deletions

View file

@ -29,6 +29,39 @@
}
}
}
.context-menu {
@apply .absolute .bg-white .py-2 .border .rounded .text-grey-darker .text-sm .cursor-pointer;
& > div:not(:last-of-type) {
@apply .border-b .border-grey-lightest .pb-2 .mb-2;
}
& .context-row {
@apply .flex .flex-row .items-center .py-2 .px-8 .border-t .border-b .border-transparent;
& > .icon {
@apply .flex-none;
& > svg {
@apply .h-4;
}
}
& > .action {
@apply .flex-auto .pl-2;
}
&:hover {
@apply .bg-grey-lightest .border-t .border-b .border-grey-lighter;
}
&.danger:hover {
@apply .bg-red-lightest .border-t .border-b .border-red-lighter;
}
}
}
}
.filemanager-breadcrumbs {