diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index e5fb505..22157b6 100644 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -25,6 +25,7 @@ $light: #fff; @import 'bulma/bulma'; +@import "checkmark-icon"; @import './demo'; .is-font-logo { @@ -64,88 +65,7 @@ body { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); } -.animation-ctn { - text-align: center; - margin-top: 5em; -} - -@-webkit-keyframes checkmark { - 0% { - stroke-dashoffset: 100px - } - - 100% { - stroke-dashoffset: 200px - } -} - -@-ms-keyframes checkmark { - 0% { - stroke-dashoffset: 100px - } - - 100% { - stroke-dashoffset: 200px - } -} - -@keyframes checkmark { - 0% { - stroke-dashoffset: 100px - } - - 100% { - stroke-dashoffset: 0px - } -} - -@-webkit-keyframes checkmark-circle { - 0% { - stroke-dashoffset: 480px - } - - 100% { - stroke-dashoffset: 960px; - - } -} - -@-ms-keyframes checkmark-circle { - 0% { - stroke-dashoffset: 240px - } - - 100% { - stroke-dashoffset: 480px - } -} - -@keyframes checkmark-circle { - 0% { - stroke-dashoffset: 480px - } - - 100% { - stroke-dashoffset: 960px - } -} - -@keyframes colored-circle { - 0% { - opacity: 0 - } - - 100% { - opacity: 100 - } -} - -/* other styles */ -/* .svg svg { - display: none -} - */ -.inlinesvg .svg svg { +.inline-svg svg { display: inline } @@ -153,25 +73,4 @@ body { align-items: center; display: inline-flex; justify-content: center; - height: 154px; - width: 154px; -} - -/* .svg img { - display: none -} */ - -.svg-icon--order-success svg polyline { - -webkit-animation: checkmark 0.30s ease-in-out 0.9s backwards; - animation: checkmark 0.30s ease-in-out 0.9s backwards -} - -.svg-icon--order-success svg circle { - -webkit-animation: checkmark-circle 0.8s ease-in-out backwards; - animation: checkmark-circle 0.8s ease-in-out backwards; -} - -.svg-icon--order-success svg circle#colored { - -webkit-animation: colored-circle 0.8s ease-in-out 0.9s backwards; - animation: colored-circle 0.8s ease-in-out 0.9s backwards; } \ No newline at end of file diff --git a/app/assets/stylesheets/checkmark-icon.css.scss b/app/assets/stylesheets/checkmark-icon.css.scss new file mode 100644 index 0000000..78e2612 --- /dev/null +++ b/app/assets/stylesheets/checkmark-icon.css.scss @@ -0,0 +1,89 @@ +@-webkit-keyframes checkmark { + 0% { + stroke-dashoffset: 100px + } + + 100% { + stroke-dashoffset: 200px + } +} + +@-ms-keyframes checkmark { + 0% { + stroke-dashoffset: 100px + } + + 100% { + stroke-dashoffset: 200px + } +} + +@keyframes checkmark { + 0% { + stroke-dashoffset: 100px + } + + 100% { + stroke-dashoffset: 0px + } +} + +@-webkit-keyframes checkmark-circle { + 0% { + stroke-dashoffset: 480px + } + + 100% { + stroke-dashoffset: 960px; + + } +} + +@-ms-keyframes checkmark-circle { + 0% { + stroke-dashoffset: 240px + } + + 100% { + stroke-dashoffset: 480px + } +} + +@keyframes checkmark-circle { + 0% { + stroke-dashoffset: 480px + } + + 100% { + stroke-dashoffset: 960px + } +} + +@keyframes colored-circle { + 0% { + opacity: 0 + } + + 100% { + opacity: 100 + } +} + +.svg-icon-checkmark svg polyline { + -webkit-animation: checkmark 0.30s ease-in-out 0.9s backwards; + animation: checkmark 0.30s ease-in-out 0.9s backwards +} + +.svg-icon-checkmark svg g { + stroke: $success; +} +.svg-icon-checkmark svg circle { + -webkit-animation: checkmark-circle 0.8s ease-in-out backwards; + animation: checkmark-circle 0.8s ease-in-out backwards; +} + +.svg-icon-checkmark svg circle#colored { + -webkit-animation: colored-circle 0.8s ease-in-out 0.9s backwards; + animation: colored-circle 0.8s ease-in-out 0.9s backwards; + fill: $success; +} diff --git a/app/views/submissions/create.html.erb b/app/views/submissions/create.html.erb index 74ebe42..7021320 100644 --- a/app/views/submissions/create.html.erb +++ b/app/views/submissions/create.html.erb @@ -1,32 +1,24 @@
We received your submission.
We received your submission.
++ +