From bba5f8f7d6c2820b11e36d2d0340dc8ffa5342a4 Mon Sep 17 00:00:00 2001 From: Josef Citrine Date: Fri, 5 Aug 2016 04:31:58 +0100 Subject: [PATCH] Updated track buttons and modals --- gulpfile.js | 50 +++++----- .../directives/favourite-button.html | 20 ++-- public/templates/partials/credits-dialog.html | 3 +- .../partials/playlist-share-dialog.html | 33 +++---- .../partials/track-share-dialog.html | 38 ++++---- public/templates/tracks/frame.html | 96 ++++++++----------- .../scripts/app/controllers/track.coffee | 32 +++++-- resources/assets/scripts/shared/layout.coffee | 2 +- resources/assets/styles/app.less | 2 - resources/assets/styles/forms.less | 10 ++ resources/assets/styles/layout.less | 12 +++ resources/assets/styles/mobile.less | 7 ++ resources/views/shared/_layout.blade.php | 1 + 13 files changed, 163 insertions(+), 143 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 6241af60..f71621a9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -81,8 +81,8 @@ gulp.task("webpack-dev-server", function () { gulp.task("styles-app", function () { var includedStyles = [ - "resources/assets/styles/base/colorbox.css", - "resources/assets/styles/app.less" + "node_modules/angular-material/angular-material.css", + "resources/assets/styles/app.less", ]; if (!argv.production) { @@ -108,30 +108,32 @@ gulp.task("styles-app", function () { // note that we're not doing autoprefixer on dev builds for now to shave off roughly 600-700 milliseconds per // build. It's already taking forever to recompile the less - return argv.production + if (argv.production) { // Production pipeline - ? gulp.src(includedStyles, {base: "resources/assets/styles"}) - .pipe(plug.plumber(plumberOptions)) - .pipe(plug.if(/\.less/, plug.less())) - .pipe(plug.autoprefixer({ - browsers: ["last 2 versions"], - cascade: false - })) - .pipe(plug.concat("app.css")) - .pipe(plug.cleanCss()) - .pipe(header(licenseHeader)) - .pipe(gulp.dest("public/build/styles")) - + return gulp.src(includedStyles) + .pipe(plug.plumber(plumberOptions)) + .pipe(plug.if(/\.less/, plug.less())) + .pipe(plug.autoprefixer({ + browsers: ["last 2 versions"], + cascade: false + })) + .pipe(plug.concat("app.css")) + .pipe(plug.cleanCss()) + .pipe(header(licenseHeader)) + .pipe(gulp.dest("public/build/styles")); + } else { // Development pipeline - : gulp.src(includedStyles, {base: "resources/assets/styles"}) - .pipe(plug.plumber(plumberOptions)) - .pipe(plug.cached("styles")) - .pipe(plug.sourcemaps.init()) - .pipe(plug.if(/\.less/, plug.less())) - .pipe(header(licenseHeader)) - .pipe(plug.sourcemaps.write()) - .pipe(gulp.dest("public/build/styles")) - .pipe(plug.livereload()); + return gulp.src(includedStyles) + .pipe(plug.plumber(plumberOptions)) + .pipe(plug.cached("styles")) + .pipe(plug.sourcemaps.init()) + .pipe(plug.if(/\.less/, plug.less())) + .pipe(plug.concat("app.css")) + .pipe(header(licenseHeader)) + .pipe(plug.sourcemaps.write()) + .pipe(gulp.dest("public/build/styles")) + .pipe(plug.livereload()); + } }); gulp.task("styles-embed", function () { diff --git a/public/templates/directives/favourite-button.html b/public/templates/directives/favourite-button.html index f9778b26..649bab6e 100644 --- a/public/templates/directives/favourite-button.html +++ b/public/templates/directives/favourite-button.html @@ -1,10 +1,10 @@ - - - Favourite This! - favorite_border - - - In Your Favourites - favorite - - +
+ + Favourite + favorite_border + + + In your favourites + favorite + +
diff --git a/public/templates/partials/credits-dialog.html b/public/templates/partials/credits-dialog.html index a8a860b1..039f3390 100644 --- a/public/templates/partials/credits-dialog.html +++ b/public/templates/partials/credits-dialog.html @@ -2,7 +2,6 @@ @@ -59,6 +58,6 @@ - Close + Close diff --git a/public/templates/partials/playlist-share-dialog.html b/public/templates/partials/playlist-share-dialog.html index 4f9e630e..12ed5fac 100644 --- a/public/templates/partials/playlist-share-dialog.html +++ b/public/templates/partials/playlist-share-dialog.html @@ -1,19 +1,16 @@ -