This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
based on Vue 0.11
- Loading branch information
Showing
23 changed files
with
785 additions
and
614 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
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
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
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
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,18 @@ | ||
.nps-fade { | ||
opacity: 1; | ||
transition: opacity 500ms; | ||
} | ||
.nps-fade-enter, | ||
.nps-fade-leave { | ||
opacity: 0; | ||
} | ||
|
||
.nps-expand { | ||
max-height: 400px; | ||
overflow: hidden; | ||
transition: max-height 500ms; | ||
} | ||
.nps-expand-enter, | ||
.nps-expand-leave { | ||
max-height: 0px; | ||
} |
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,16 @@ | ||
<div | ||
class="nps-Dialog | ||
nps-Dialog--{{vertical}} | ||
nps-Dialog--{{horizontal}}" | ||
v-show="visible" | ||
> | ||
|
||
<button | ||
class="nps-Dialog-close nps-fade" | ||
v-if="showCloseIcon" | ||
v-on="click: close" | ||
>✕</button> | ||
|
||
<content> | ||
|
||
</div> |
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,116 @@ | ||
.nps-Dialog { | ||
border-width: 2px; | ||
border-style: solid; | ||
} | ||
|
||
@each $theme, $base in $themes { | ||
.nps-Survey--#{$theme} .nps-Dialog { | ||
border-color: $base; | ||
box-shadow: rgba($base, 0.4) 0 1px 4px 0; | ||
} | ||
} | ||
|
||
.nps-Dialog { | ||
width: 417px; | ||
position: fixed; | ||
z-index: 2147483646; | ||
|
||
padding: 20px; | ||
margin: auto; | ||
|
||
font-size: 14px; | ||
} | ||
.nps-Dialog.nps-Dialog--top { | ||
top: 20px; | ||
} | ||
|
||
.nps-Dialog.nps-Dialog--middle { | ||
top: 50%; | ||
transform: translate(0, -50%); | ||
} | ||
|
||
.nps-Dialog.nps-Dialog--bottom { | ||
bottom: 20px; | ||
} | ||
|
||
.nps-Dialog.nps-Dialog--left { | ||
transition: left 500ms; | ||
left: 20px; | ||
} | ||
.nps-Dialog.nps-Dialog--left.nps-show-enter, | ||
.nps-Dialog.nps-Dialog--left.nps-show-leave { | ||
left: -500px; | ||
} | ||
|
||
.nps-Dialog.nps-Dialog--center { | ||
left: 0; | ||
right: 0; | ||
} | ||
|
||
.nps-Dialog.nps-Dialog--center.nps-Dialog--top { | ||
transition: top 500ms; | ||
} | ||
.nps-Dialog.nps-Dialog--center.nps-Dialog--top.nps-show-enter, | ||
.nps-Dialog.nps-Dialog--center.nps-Dialog--top.nps-show-leave { | ||
top: -500px; | ||
} | ||
|
||
.nps-Dialog.nps-Dialog--center.nps-Dialog--middle { | ||
transform: translate(0, -50%) scale(1); | ||
transition: all 500ms; | ||
} | ||
.nps-Dialog.nps-Dialog--center.nps-Dialog--middle.nps-show-enter, | ||
.nps-Dialog.nps-Dialog--center.nps-Dialog--middle.nps-show-leave { | ||
transform: translate(0, -50%) scale(0); | ||
} | ||
|
||
.nps-Dialog.nps-Dialog--center.nps-Dialog--bottom { | ||
transition: bottom 500ms; | ||
bottom: 20px; | ||
} | ||
.nps-Dialog.nps-Dialog--center.nps-Dialog--bottom.nps-show-enter, | ||
.nps-Dialog.nps-Dialog--center.nps-Dialog--bottom.nps-show-leave { | ||
bottom: -500px; | ||
} | ||
|
||
.nps-Dialog.nps-Dialog--right { | ||
transition: right 500ms; | ||
right: 20px; | ||
} | ||
.nps-Dialog.nps-Dialog--right.nps-show-enter, | ||
.nps-Dialog.nps-Dialog--right.nps-show-leave { | ||
right: -500px; | ||
} | ||
|
||
.nps-Dialog .nps-Title { | ||
margin-right: 20px; | ||
font-size: 16px; | ||
} | ||
|
||
.nps-Dialog-close { | ||
float: right; | ||
font-weight: bold; | ||
padding: 0; | ||
cursor: pointer; | ||
background: transparent; | ||
border: 0; | ||
|
||
font-size: 16px; | ||
width: 30px; | ||
height: 30px; | ||
color: white; | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
} | ||
.nps-Dialog-close:focus { | ||
outline: 0; | ||
} | ||
@each $theme, $base in $themes { | ||
.nps-Survey--#{$theme} .nps-Dialog-close { | ||
background-color: $base; | ||
&:hover { | ||
background-color: mix($base, white, 90%); | ||
} | ||
} | ||
} |
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
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,34 @@ | ||
.nps-Feedback-textContainer { | ||
height: 80px; | ||
margin-top: 14px; | ||
overflow: hidden; | ||
transition: height 500ms; | ||
} | ||
.nps-Feedback-textContainer.nps-enter, | ||
.nps-Feedback-textContainer.nps-leave { | ||
height: 0px; | ||
} | ||
|
||
.nps-Feedback-text { | ||
border-width: 2px; | ||
border-style: solid; | ||
font-size: 14px; | ||
padding: 7px 10px; | ||
width: 100%; | ||
height: 100%; | ||
resize: none; | ||
} | ||
.nps-Feedback-text:focus { | ||
outline: 0; | ||
} | ||
@each $theme, $base in $themes { | ||
.nps-Survey--#{$theme} { | ||
.nps-Feedback-text { | ||
border-color: mix($base, white, 20%); | ||
} | ||
.nps-Feedback-text:focus { | ||
border-color: mix($base, white, 80%); | ||
background-color: mix($base, white, 4%); | ||
} | ||
} | ||
} |
Oops, something went wrong.