From a2b2bd4bf33c8b4bff51fb177575083aa38a2c86 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 12 May 2017 10:54:08 -0700 Subject: [PATCH] Fix relative paths // FREEBIE --- js/views/file_input_view.js | 2 +- stylesheets/_android.scss | 2 +- stylesheets/_ios.scss | 8 ++++---- stylesheets/android-dark.scss | 16 ++++++++-------- stylesheets/manifest.css | 26 +++++++++++++------------- 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/js/views/file_input_view.js b/js/views/file_input_view.js index 40597a895..3c4ee9440 100644 --- a/js/views/file_input_view.js +++ b/js/views/file_input_view.js @@ -131,7 +131,7 @@ this.addThumb(this.oUrl); break; default: - this.addThumb('/images/file.svg'); break; + this.addThumb('../images/file.svg'); break; } this.autoScale(file).then(function(blob) { diff --git a/stylesheets/_android.scss b/stylesheets/_android.scss index 30cd0579a..2b7038f77 100644 --- a/stylesheets/_android.scss +++ b/stylesheets/_android.scss @@ -49,7 +49,7 @@ } .incoming .bubble .fileView .icon { - @include color-svg('/images/file.svg', white); + @include color-svg('../images/file.svg', white); } button.clock { diff --git a/stylesheets/_ios.scss b/stylesheets/_ios.scss index 1d84f3c54..013772f97 100644 --- a/stylesheets/_ios.scss +++ b/stylesheets/_ios.scss @@ -206,15 +206,15 @@ $ios-border-color: rgba(0,0,0,0.1); } .outgoing .attachments .fileView .icon { - @include color-svg('/images/file.svg', white); + @include color-svg('../images/file.svg', white); &.audio { - @include color-svg('/images/audio.svg', white); + @include color-svg('../images/audio.svg', white); } &.video { - @include color-svg('/images/video.svg', white); + @include color-svg('../images/video.svg', white); } &.voice { - @include color-svg('/images/voice.svg', white); + @include color-svg('../images/voice.svg', white); } } diff --git a/stylesheets/android-dark.scss b/stylesheets/android-dark.scss index 1e182599a..0476d010f 100644 --- a/stylesheets/android-dark.scss +++ b/stylesheets/android-dark.scss @@ -196,28 +196,28 @@ $text-dark_l2: darken($text-dark, 30%); } .incoming .bubble .fileView .icon{ - @include color-svg('/images/file.svg', white); + @include color-svg('../images/file.svg', white); &.audio { - @include color-svg('/images/audio.svg', white); + @include color-svg('../images/audio.svg', white); } &.video { - @include color-svg('/images/video.svg', white); + @include color-svg('../images/video.svg', white); } &.voice { - @include color-svg('/images/voice.svg', white); + @include color-svg('../images/voice.svg', white); } } .outgoing .bubble .fileView .icon { - @include color-svg('/images/file.svg', #CCCCCC); + @include color-svg('../images/file.svg', #CCCCCC); &.audio { - @include color-svg('/images/audio.svg', #CCCCCC); + @include color-svg('../images/audio.svg', #CCCCCC); } &.video { - @include color-svg('/images/video.svg', #CCCCCC); + @include color-svg('../images/video.svg', #CCCCCC); } &.voice { - @include color-svg('/images/voice.svg', #CCCCCC); + @include color-svg('../images/voice.svg', #CCCCCC); } } diff --git a/stylesheets/manifest.css b/stylesheets/manifest.css index 06d20f57d..76e43871b 100644 --- a/stylesheets/manifest.css +++ b/stylesheets/manifest.css @@ -1958,19 +1958,19 @@ li.entry .error-icon-container { color: #454545; } .ios .outgoing .attachments .fileView .icon { - -webkit-mask: url("/images/file.svg") no-repeat center; + -webkit-mask: url("../images/file.svg") no-repeat center; -webkit-mask-size: 100%; background-color: white; } .ios .outgoing .attachments .fileView .icon.audio { - -webkit-mask: url("/images/audio.svg") no-repeat center; + -webkit-mask: url("../images/audio.svg") no-repeat center; -webkit-mask-size: 100%; background-color: white; } .ios .outgoing .attachments .fileView .icon.video { - -webkit-mask: url("/images/video.svg") no-repeat center; + -webkit-mask: url("../images/video.svg") no-repeat center; -webkit-mask-size: 100%; background-color: white; } .ios .outgoing .attachments .fileView .icon.voice { - -webkit-mask: url("/images/voice.svg") no-repeat center; + -webkit-mask: url("../images/voice.svg") no-repeat center; -webkit-mask-size: 100%; background-color: white; } @@ -2134,7 +2134,7 @@ li.entry .error-icon-container { color: #f3f3f3; } .android .incoming .bubble .fileView .icon { - -webkit-mask: url("/images/file.svg") no-repeat center; + -webkit-mask: url("../images/file.svg") no-repeat center; -webkit-mask-size: 100%; background-color: white; } @@ -2428,35 +2428,35 @@ li.entry .error-icon-container { .android-dark .incoming .bubble .content a { color: #f3f3f3; } .android-dark .incoming .bubble .fileView .icon { - -webkit-mask: url("/images/file.svg") no-repeat center; + -webkit-mask: url("../images/file.svg") no-repeat center; -webkit-mask-size: 100%; background-color: white; } .android-dark .incoming .bubble .fileView .icon.audio { - -webkit-mask: url("/images/audio.svg") no-repeat center; + -webkit-mask: url("../images/audio.svg") no-repeat center; -webkit-mask-size: 100%; background-color: white; } .android-dark .incoming .bubble .fileView .icon.video { - -webkit-mask: url("/images/video.svg") no-repeat center; + -webkit-mask: url("../images/video.svg") no-repeat center; -webkit-mask-size: 100%; background-color: white; } .android-dark .incoming .bubble .fileView .icon.voice { - -webkit-mask: url("/images/voice.svg") no-repeat center; + -webkit-mask: url("../images/voice.svg") no-repeat center; -webkit-mask-size: 100%; background-color: white; } .android-dark .outgoing .bubble .fileView .icon { - -webkit-mask: url("/images/file.svg") no-repeat center; + -webkit-mask: url("../images/file.svg") no-repeat center; -webkit-mask-size: 100%; background-color: #CCCCCC; } .android-dark .outgoing .bubble .fileView .icon.audio { - -webkit-mask: url("/images/audio.svg") no-repeat center; + -webkit-mask: url("../images/audio.svg") no-repeat center; -webkit-mask-size: 100%; background-color: #CCCCCC; } .android-dark .outgoing .bubble .fileView .icon.video { - -webkit-mask: url("/images/video.svg") no-repeat center; + -webkit-mask: url("../images/video.svg") no-repeat center; -webkit-mask-size: 100%; background-color: #CCCCCC; } .android-dark .outgoing .bubble .fileView .icon.voice { - -webkit-mask: url("/images/voice.svg") no-repeat center; + -webkit-mask: url("../images/voice.svg") no-repeat center; -webkit-mask-size: 100%; background-color: #CCCCCC; } .android-dark button.clock {