Skip to content

Commit

Permalink
Add modal clear view with timeout, title, actions and slideshow with
Browse files Browse the repository at this point in the history
customisable delay

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Feb 26, 2019
1 parent f0f4526 commit 0b49d2e
Show file tree
Hide file tree
Showing 7 changed files with 269 additions and 48 deletions.
1 change: 1 addition & 0 deletions src/assets/iconfont/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/iconfont/more.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/iconfont/pause.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/iconfont/play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/components/Action/Action.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
v-on="isSingleAction && firstAction.action ? { click: firstAction.action } : {}">
<!-- If more than one action, create a popovermenu -->
<template v-if="!isSingleAction">
<div v-click-outside="closeMenu" tabindex="0" class="action-item__menutoggle icon-more"
<div v-click-outside="closeMenu" tabindex="0" class="icon action-item__menutoggle"
@click.prevent="toggleMenu" />
<div :class="{ 'open': opened }" class="action-item__menu popovermenu">
<popover-menu :menu="actions" />
Expand Down Expand Up @@ -105,12 +105,15 @@ export default {
</script>

<style lang="scss" scoped>
@import '~Fonts/scss/iconfont-vue';

.action-item {
display: inline-block;

// icons
&--single,
&__menutoggle {
box-sizing: border-box;
padding: 14px;
height: 44px;
width: 44px;
Expand All @@ -119,6 +122,7 @@ export default {
// icon-more
&__menutoggle {
display: inline-block;
@include iconfont('more');
}
// properly position the menu
&--multiple {
Expand Down
Loading

0 comments on commit 0b49d2e

Please sign in to comment.