From a930cd92f28217b47bc8563456e3cb045e2245bc Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 25 Oct 2013 15:11:03 -0400 Subject: [PATCH] Enhances appearance of action ui input --- Gruntfile.js | 29 +++++++++++++++++++++++++++-- src/elements/input.less | 11 +---------- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index f49bfa861..81ec2bf24 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -11,6 +11,9 @@ module.exports = function(grunt) { // compiles less to docs 'less:buildDocsCSS', + // auto prefix doc files + 'autoprefixer:prefixDocs', + // copies assets and js over to docs 'copy:srcToDocs', @@ -52,7 +55,7 @@ module.exports = function(grunt) { // creates minified css of each file 'cssmin:minifyCSS', - // creates custom license in header + // adds custom license in header 'cssmin:addBanner', // create concatenated css release @@ -73,6 +76,8 @@ module.exports = function(grunt) { // creates custom license in header 'cssmin:addBanner', + // auto prefix build files + 'autoprefixer:prefixBuild', // cleans previous generated release 'clean:release', @@ -90,7 +95,13 @@ module.exports = function(grunt) { 'copy:examplesToDocs', // copies files over to docs - 'copy:buildToDocs' + 'copy:buildToDocs', + + // generate code docs + 'docco:generate', + + // copies spec files over to docs + 'copy:specToDocs' ], setWatchTests = function(action, filePath) { @@ -118,6 +129,7 @@ module.exports = function(grunt) { if(filePath.search('.less') !== -1) { grunt.config('less.buildDocsCSS.src', filePath); grunt.config('less.buildDocsCSS.dest', buildPath); + grunt.config('autoprefixer.prefixDocs.src', buildPath); } else { grunt.config('less.buildDocsCSS.src', 'non/existant/path'); @@ -187,6 +199,17 @@ module.exports = function(grunt) { /******************************* Build *******************************/ + autoprefixer: { + options: { + browsers: ['last 2 version', 'ie 9'] + }, + prefixBuild: { + src : 'build/**/*.css' + }, + prefixDocs: { + src : 'docs/build/**/*.css' + } + }, clean: { options: { @@ -558,6 +581,8 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-watch'); + + grunt.loadNpmTasks('grunt-autoprefixer'); grunt.loadNpmTasks('grunt-docco-multi'); grunt.loadNpmTasks('grunt-cssjanus'); grunt.loadNpmTasks('grunt-clear'); diff --git a/src/elements/input.less b/src/elements/input.less index 8f65a2704..27d91c79b 100755 --- a/src/elements/input.less +++ b/src/elements/input.less @@ -287,20 +287,11 @@ border-top-left-radius: 0px; border-bottom-left-radius: 0px; - - -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; - -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; - box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; white-space: nowrap; } .ui.action.input > .button > .icon { display: inline; -} - -.ui.action.input > input:focus ~ .button { - -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset; - -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset; - box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset; + vertical-align: top; } /*--------------------