Skip to content

Commit

Permalink
CSS minificado
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Oct 1, 2014
1 parent f8acb54 commit d40be92
Show file tree
Hide file tree
Showing 6 changed files with 219 additions and 23 deletions.
55 changes: 34 additions & 21 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,25 @@ module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
phk: grunt.file.readJSON('package.json'),
concat: {
js:{
src:['app/plugin/flexiColorPicker/colorpicker.js',
'app/script/app.js',
'app/script/factory/*.js',
'app/script/comandos/*.js',
'app/script/editor.js',
'app/script/edittext.js',
'app/script/start.js'],
dest: 'builds/js/app.js'
}
},
phk: grunt.file.readJSON('package.json'),
concat: {
css: {
src: ['app/css/edittext.css',
'app/css/icons.css'],
dest: 'builds/css/edittext.css'
},
js: {
src: ['app/plugin/flexiColorPicker/colorpicker.js',
'app/script/app.js',
'app/script/factory/*.js',
'app/script/comandos/*.js',
'app/script/editor.js',
'app/script/edittext.js',
'app/script/start.js'
],
dest: 'builds/js/app.js'
}
},
// Task configuration.
jshint: {
options: {
Expand All @@ -37,13 +43,19 @@ module.exports = function(grunt) {
src: 'Gruntfile.js'
}
},
uglify : {
options : {
mangle : false
cssmin: {
css: {
src: 'builds/css/edittext.css',
dest: 'builds/css/edittext.min.css'
}
},
uglify: {
options: {
mangle: false
},
my_target : {
files : {
'builds/js/edittext.min.js' : [ 'builds/js/app.js' ]
my_target: {
files: {
'builds/js/edittext.min.js': ['builds/js/app.js']
}
}
}
Expand All @@ -53,8 +65,9 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');

// Default task.
grunt.registerTask('default', ['jshint', 'concat', 'uglify']);
grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'cssmin']);

};
};
File renamed without changes.
8 changes: 8 additions & 0 deletions app/script/editorFactory.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

edittext.editorFactory = {
criar: function(editor) {

return new edittext.Editor(editor);
}
};
173 changes: 173 additions & 0 deletions builds/css/edittext.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
.edittext{
}

.edittext button {
background-color: transparent;
border: 0px;
width: 40px;
height: 40px;
cursor: pointer;
}

.edittext button:hover{
color: #428bca;
}

.edittext button.ativo{
color: #428bca;
}


.edittext button span{
font-size: 18px;
}

.edittext-input {
width: 100%;
}

.edittext-input iframe{
overflow: auto;
width: 100%;
border: 1px solid #000000;
}

.edittext-controles {
position: relative;
width: 100%;
border: 1px solid #000000;
}

.icon-icon-bold, .icon-icon-underline, .icon-icon-italic{
font-size: 20px !important;
}

.icon-font-size{
font-size: 17px !important;
}

.edittext-color-picker {
position: absolute;
width: 130px !important;
height: 150px !important;
display: none;
top: 15px;
left: 200px

}

.edittext-color-picker .picker-wrapper {
width: 70%;
height: 100% !important;
display: inline-block;
background-color: white;
position: relative;
}

.edittext-color-picker .slider-wrapper {
width: 10%;
height: 100% !important;
display: inline-block;
background-color: white;
position: relative;
}

.picker-indicator {
width: 3px;
height: 3px;
position: absolute;
border: 2px solid white;
border-radius: 5px
}
.slider-indicator {
width: 90%;
height: 5px;
position: absolute;
border: 1px solid black;
}

.edittext-color-picker .edittext-color-picker-control {
width: 10%;
display: inline-block;
}

.edittext-color-picker-control button {
width: 20px;
height: 20px;
font-size: 10px;
}

.edittext-color-picker-control button:hover {
color: #cccccc;
}

@charset "UTF-8";

@font-face {
font-family: "untitled-font-1";
src:url("fonts/untitled-font-1.eot");
src:url("fonts/untitled-font-1.eot?#iefix") format("embedded-opentype"),
url("fonts/untitled-font-1.woff") format("woff"),
url("fonts/untitled-font-1.ttf") format("truetype"),
url("fonts/untitled-font-1.svg#untitled-font-1") format("svg");
font-weight: normal;
font-style: normal;

}

[data-icon]:before {
font-family: "untitled-font-1" !important;
content: attr(data-icon);
font-style: normal !important;
font-weight: normal !important;
font-variant: normal !important;
text-transform: none !important;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

[class^="icon-"]:before,
[class*=" icon-"]:before {
font-family: "untitled-font-1" !important;
font-style: normal !important;
font-weight: normal !important;
font-variant: normal !important;
text-transform: none !important;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.icon-bold:before {
content: "a";
}
.icon-italic:before {
content: "b";
}
.icon-underline:before {
content: "c";
}
.icon-font-size:before {
content: "d";
}
.icon-color-picker:before {
content: "e";
}
.icon-list-ordered:before {
content: "f";
}
.icon-list-unordered:before {
content: "g";
}
.icon-link:before {
content: "h";
}
.icon-unlink:before {
content: "i";
}
.icon-cancel:before {
content: "j";
}
1 change: 1 addition & 0 deletions builds/css/edittext.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-qunit": "~0.5.2",
"grunt-contrib-watch": "~0.6.1",
"grunt-contrib-concat": "~0.4.0",
"grunt-contrib-uglify": "*",
"grunt-contrib-concat": "~0.4.0",
"grunt-contrib-uglify": "*",
"grunt-contrib-cssmin" : "0.6.1",
"jasmine": "2.0.1",
"karma": "*",
"karma-chrome-launcher": "^0.1.4",
Expand Down

0 comments on commit d40be92

Please sign in to comment.