Commit e5669639a3616e867f5fa153024c37d13b6d3cea
1 parent
f2c2d23dd7
Exists in
master
and in
1 other branch
merge #1759
Showing 3 changed files with 92 additions and 6 deletions Inline Diff
app/scripts/controllers/tshirtdesign.js
| 1 | define(['app'], function (app) { | 1 | define(['app'], function (app) { |
| 2 | //'use strict'; | 2 | //'use strict'; |
| 3 | 3 | ||
| 4 | app.controller('TshirtdesignCtrl', function ($scope, $rootScope, $illustration) { | 4 | app.controller('TshirtdesignCtrl', function ($scope, $rootScope, $illustration) { |
| 5 | var canvas = new fabric.Canvas('main-design-container'); | 5 | var canvas = new fabric.Canvas('main-design-container'); |
| 6 | fabric.Object.prototype.transparentCorners = false; | 6 | fabric.Object.prototype.transparentCorners = false; |
| 7 | 7 | ||
| 8 | canvas.on('after:render', function() { | 8 | canvas.on('after:render', function() { |
| 9 | }); | 9 | }); |
| 10 | canvas.on({ | 10 | canvas.on({ |
| 11 | 'object:added': onIllustrationAdded, | 11 | 'object:added': onIllustrationAdded, |
| 12 | 'object:moving': onIllustrationChange, | 12 | 'object:moving': onIllustrationChange, |
| 13 | 'object:scaling': onIllustrationChange, | 13 | 'object:scaling': onIllustrationChange, |
| 14 | 'object:rotating': onIllustrationChange, | 14 | 'object:rotating': onIllustrationChange, |
| 15 | 'object:selected': onIllustrationSelected, | 15 | 'object:selected': onIllustrationSelected, |
| 16 | 'object:modified': onIllustrationModifield, | 16 | 'object:modified': onIllustrationModifield, |
| 17 | 'selected:deselected' : onIllustrationOut, | 17 | 'selected:deselected' : onIllustrationOut, |
| 18 | //'selected:out' : onIllustrationOut, | 18 | //'selected:out' : onIllustrationOut, |
| 19 | //'mouse:up' : onIllustrationOut, | 19 | //'mouse:up' : onIllustrationOut, |
| 20 | }); | 20 | }); |
| 21 | 21 | ||
| 22 | var currentObj; | 22 | var currentObj; |
| 23 | var listObj = []; | 23 | var listObj = []; |
| 24 | var stateObj = []; | 24 | var stateObj = []; |
| 25 | var indexCurr = 0; | 25 | var indexCurr = 0; |
| 26 | var indexCurr2 = 0; | 26 | var indexCurr2 = 0; |
| 27 | var actionObj = false; | 27 | var actionObj = false; |
| 28 | var refreshObj = true; | 28 | var refreshObj = true; |
| 29 | 29 | ||
| 30 | function onIllustrationAdded(options){ | 30 | function onIllustrationAdded(options){ |
| 31 | var object = options.target; | 31 | var object = options.target; |
| 32 | console.log('object:added'); | 32 | console.log('object:added'); |
| 33 | 33 | ||
| 34 | if (actionObj === true) { | 34 | if (actionObj === true) { |
| 35 | stateObj = [stateObj[indexCurr2]]; | 35 | stateObj = [stateObj[indexCurr2]]; |
| 36 | listObj = [listObj[indexCurr2]]; | 36 | listObj = [listObj[indexCurr2]]; |
| 37 | 37 | ||
| 38 | actionObj = false; | 38 | actionObj = false; |
| 39 | console.log(stateObj); | 39 | console.log(stateObj); |
| 40 | indexCurr = 1; | 40 | indexCurr = 1; |
| 41 | } | 41 | } |
| 42 | object.saveState(); | 42 | object.saveState(); |
| 43 | 43 | ||
| 44 | console.log(object.originalState); | 44 | console.log(object.originalState); |
| 45 | stateObj[indexCurr] = JSON.stringify(object.originalState); | 45 | stateObj[indexCurr] = JSON.stringify(object.originalState); |
| 46 | listObj[indexCurr] = object; | 46 | listObj[indexCurr] = object; |
| 47 | indexCurr++; | 47 | indexCurr++; |
| 48 | indexCurr2 = indexCurr - 1; | 48 | indexCurr2 = indexCurr - 1; |
| 49 | refreshObj = true; | 49 | refreshObj = true; |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | function onIllustrationModifield(options){ | 52 | function onIllustrationModifield(options){ |
| 53 | var objOffset = canvas.getActiveObject().getBoundingRect(); | 53 | var objOffset = canvas.getActiveObject().getBoundingRect(); |
| 54 | var cH = canvas.height, cW = canvas.width, H0 = 50, W0 = 50; | 54 | var cH = canvas.height, cW = canvas.width, H0 = 50, W0 = 50; |
| 55 | //console.log(objOffset,canvas.height,canvas.width); | 55 | //console.log(objOffset,canvas.height,canvas.width); |
| 56 | if (objOffset.left<W0-objOffset.width || objOffset.left>cW-W0 || objOffset.top<H0-objOffset.height || objOffset.top>cH-H0){ | 56 | if (objOffset.left<W0-objOffset.width || objOffset.left>cW-W0 || objOffset.top<H0-objOffset.height || objOffset.top>cH-H0){ |
| 57 | if (confirm('削除してもよろしいですか')){ | 57 | if (confirm('削除してもよろしいですか')){ |
| 58 | canvas.getActiveObject().remove(); | 58 | canvas.getActiveObject().remove(); |
| 59 | }else{ | 59 | }else{ |
| 60 | undoCanvas(); | 60 | undoCanvas(); |
| 61 | return; | 61 | return; |
| 62 | } | 62 | } |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | var object = options.target; | 65 | var object = options.target; |
| 66 | console.log('object:modified'); | 66 | console.log('object:modified'); |
| 67 | if (actionObj === true) { | 67 | if (actionObj === true) { |
| 68 | stateObj = [stateObj[indexCurr2]]; | 68 | stateObj = [stateObj[indexCurr2]]; |
| 69 | listObj = [listObj[indexCurr2]]; | 69 | listObj = [listObj[indexCurr2]]; |
| 70 | 70 | ||
| 71 | actionObj = false; | 71 | actionObj = false; |
| 72 | console.log(stateObj); | 72 | console.log(stateObj); |
| 73 | indexCurr = 1; | 73 | indexCurr = 1; |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | object.saveState(); | 76 | object.saveState(); |
| 77 | 77 | ||
| 78 | stateObj[indexCurr] = JSON.stringify(object.originalState); | 78 | stateObj[indexCurr] = JSON.stringify(object.originalState); |
| 79 | listObj[indexCurr] = object; | 79 | listObj[indexCurr] = object; |
| 80 | indexCurr++; | 80 | indexCurr++; |
| 81 | indexCurr2 = indexCurr - 1; | 81 | indexCurr2 = indexCurr - 1; |
| 82 | console.log(stateObj); | 82 | console.log(stateObj); |
| 83 | refreshObj = true; | 83 | refreshObj = true; |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | function onIllustrationChange(options) { | 86 | function onIllustrationChange(options) { |
| 87 | // options.target.setCoords(); | 87 | // options.target.setCoords(); |
| 88 | // canvas.forEachObject(function(obj) { | 88 | // canvas.forEachObject(function(obj) { |
| 89 | // if (obj === options.target) return; | 89 | // if (obj === options.target) return; |
| 90 | // obj.setOpacity(options.target.intersectsWithObject(obj) ? 0.5 : 1); | 90 | // obj.setOpacity(options.target.intersectsWithObject(obj) ? 0.5 : 1); |
| 91 | // }); | 91 | // }); |
| 92 | 92 | ||
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | function onIllustrationOut() { | 95 | function onIllustrationOut() { |
| 96 | console.log('out object'); | 96 | console.log('out object'); |
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | function undoCanvas() { | 99 | function undoCanvas() { |
| 100 | if (indexCurr <= 0) { | 100 | if (indexCurr <= 0) { |
| 101 | indexCurr = 0; | 101 | indexCurr = 0; |
| 102 | return; | 102 | return; |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | if (refreshObj === true) { | 105 | if (refreshObj === true) { |
| 106 | indexCurr--; | 106 | indexCurr--; |
| 107 | refreshObj = false; | 107 | refreshObj = false; |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | console.log('undo'); | 110 | console.log('undo'); |
| 111 | 111 | ||
| 112 | indexCurr2 = indexCurr - 1; | 112 | indexCurr2 = indexCurr - 1; |
| 113 | currentObj = listObj[indexCurr2]; | 113 | currentObj = listObj[indexCurr2]; |
| 114 | if (currentObj){ | 114 | if (currentObj){ |
| 115 | currentObj.setOptions(JSON.parse(indexCurr[indexCurr2])); | 115 | currentObj.setOptions(JSON.parse(indexCurr[indexCurr2])); |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | indexCurr--; | 118 | indexCurr--; |
| 119 | currentObj.setCoords(); | 119 | currentObj.setCoords(); |
| 120 | canvas.renderAll(); | 120 | canvas.renderAll(); |
| 121 | actionObj = true; | 121 | actionObj = true; |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | function redoCanvas() { | 124 | function redoCanvas() { |
| 125 | actionObj = true; | 125 | actionObj = true; |
| 126 | if (indexCurr >= stateObj.length - 1) { | 126 | if (indexCurr >= stateObj.length - 1) { |
| 127 | return; | 127 | return; |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | console.log('redo'); | 130 | console.log('redo'); |
| 131 | 131 | ||
| 132 | indexCurr2 = indexCurr + 1; | 132 | indexCurr2 = indexCurr + 1; |
| 133 | currentObj = listObj[indexCurr2]; | 133 | currentObj = listObj[indexCurr2]; |
| 134 | currentObj.setOptions(JSON.parse(indexCurr[indexCurr2])); | 134 | currentObj.setOptions(JSON.parse(indexCurr[indexCurr2])); |
| 135 | 135 | ||
| 136 | indexCurr++; | 136 | indexCurr++; |
| 137 | currentObj.setCoords(); | 137 | currentObj.setCoords(); |
| 138 | canvas.renderAll(); | 138 | canvas.renderAll(); |
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | $scope.currentObject = null; | 141 | $scope.currentObject = null; |
| 142 | function onIllustrationSelected(options) { | 142 | function onIllustrationSelected(options) { |
| 143 | var object = options.target; | 143 | var object = options.target; |
| 144 | $scope.typeObject = object.type; | 144 | $scope.typeObject = object.type; |
| 145 | switch ($scope.typeObject) { | 145 | switch ($scope.typeObject) { |
| 146 | case 'i-text' : | 146 | case 'i-text' : |
| 147 | $rootScope.isShowLeftPanel = 'text'; | 147 | $rootScope.isShowLeftPanel = 'text'; |
| 148 | $('#input-design-text').focus(function() { | 148 | $('#input-design-text').focus(function() { |
| 149 | 149 | ||
| 150 | }); | 150 | }); |
| 151 | break; | 151 | break; |
| 152 | 152 | ||
| 153 | case 'path-group' : | 153 | case 'path-group' : |
| 154 | $rootScope.isShowLeftPanel = 'illustration'; | 154 | $rootScope.isShowLeftPanel = 'illustration'; |
| 155 | break; | 155 | break; |
| 156 | |||
| 157 | case 'image': | ||
| 158 | $rootScope.isShowLeftPanel = 'image'; | ||
| 159 | break; | ||
| 156 | 160 | ||
| 157 | default : | 161 | default : |
| 158 | $rootScope.isShowLeftPanel = 'default'; | 162 | $rootScope.isShowLeftPanel = 'default'; |
| 159 | break; | 163 | break; |
| 160 | } | 164 | } |
| 161 | $rootScope.safeApply(); | 165 | $rootScope.safeApply(); |
| 162 | } | 166 | } |
| 163 | 167 | ||
| 164 | // Illustration process | 168 | // Illustration process |
| 165 | $scope.changeIllustrationCategory = function(currentIllustration){ | 169 | $scope.changeIllustrationCategory = function(currentIllustration){ |
| 166 | $scope.currentIllustrationCate = $illustration.getList(currentIllustration); | 170 | $scope.currentIllustrationCate = $illustration.getList(currentIllustration); |
| 167 | //console.log($scope.currentIllustrationCate); | 171 | //console.log($scope.currentIllustrationCate); |
| 168 | }; | 172 | }; |
| 169 | 173 | ||
| 170 | $scope.insertSvg = function(item){ | 174 | $scope.insertSvg = function(item){ |
| 171 | fabric.loadSVGFromURL(item.path, function(objects, options) { | 175 | fabric.loadSVGFromURL(item.path, function(objects, options) { |
| 172 | var shape = fabric.util.groupSVGElements(objects, options); | 176 | var shape = fabric.util.groupSVGElements(objects, options); |
| 173 | // shape.setFill('green'); | 177 | // shape.setFill('green'); |
| 174 | canvas.add(shape.scale(0.6)); | 178 | canvas.add(shape.scale(0.6)); |
| 175 | shape.set({ left: 150, top: 200 }).setCoords(); | 179 | shape.set({ left: 150, top: 200 }).setCoords(); |
| 176 | canvas.renderAll(); | 180 | canvas.renderAll(); |
| 177 | canvas.setActiveObject(shape); | 181 | canvas.setActiveObject(shape); |
| 178 | }); | 182 | }); |
| 179 | }; | 183 | }; |
| 180 | 184 | ||
| 181 | // color pattern | 185 | // color pattern |
| 182 | $scope.listColorPatterns = [ | 186 | $scope.listColorPatterns = [ |
| 183 | '#000000','#ffff00','#ff6600','#ff0000','#ff6262','#ffa19c','#ff9933','#c45d01','#5d2b03','#ffffcc', | 187 | '#000000','#ffff00','#ff6600','#ff0000','#ff6262','#ffa19c','#ff9933','#c45d01','#5d2b03','#ffffcc', |
| 184 | '#ffff99','#ffd500','#c0db50','#21a52a','#00663f','#abfcab','#36ffaa','#89eaea','#00938c','#005450', | 188 | '#ffff99','#ffd500','#c0db50','#21a52a','#00663f','#abfcab','#36ffaa','#89eaea','#00938c','#005450', |
| 185 | '#0badff','#006cff','#839aff','#0410a0','#ffb2ff','#f93fff','#6600ca','#ff6699','#999999','#666666', | 189 | '#0badff','#006cff','#839aff','#0410a0','#ffb2ff','#f93fff','#6600ca','#ff6699','#999999','#666666', |
| 186 | '#333333' | 190 | '#333333' |
| 187 | ]; | 191 | ]; |
| 188 | //Font | 192 | //Font |
| 189 | $scope.listFontFamily = [ | 193 | $scope.listFontFamily = [ |
| 190 | { | 194 | { |
| 191 | name : 'GN Aki iro Sesami Cookies', | 195 | name : 'GN Aki iro Sesami Cookies', |
| 192 | slug : 'gn_aki_iro_sesami_cookies', | 196 | slug : 'gn_aki_iro_sesami_cookies', |
| 193 | }, | 197 | }, |
| 194 | { | 198 | { |
| 195 | name : 'GN-Fuyu-iro_Script_Bold', | 199 | name : 'GN-Fuyu-iro_Script_Bold', |
| 196 | slug : 'gn_fuyu_iro_script_bold' | 200 | slug : 'gn_fuyu_iro_script_bold' |
| 197 | }, | 201 | }, |
| 198 | { | 202 | { |
| 199 | name : 'GN Killgothic U Kanana', | 203 | name : 'GN Killgothic U Kanana', |
| 200 | slug : 'gn_killgothic_u_kanana' | 204 | slug : 'gn_killgothic_u_kanana' |
| 201 | }, | 205 | }, |
| 202 | { | 206 | { |
| 203 | name : 'GN-Kin-iro_Alphabet_Cookies', | 207 | name : 'GN-Kin-iro_Alphabet_Cookies', |
| 204 | slug : 'gn_kin_iro_alphabet_cookies' | 208 | slug : 'gn_kin_iro_alphabet_cookies' |
| 205 | 209 | ||
| 206 | }, | 210 | }, |
| 207 | { | 211 | { |
| 208 | name : 'GN-Kin-iro_SansSerif', | 212 | name : 'GN-Kin-iro_SansSerif', |
| 209 | slug : 'gn_kin_iro_sansserif' | 213 | slug : 'gn_kin_iro_sansserif' |
| 210 | 214 | ||
| 211 | }, | 215 | }, |
| 212 | { | 216 | { |
| 213 | name : 'GN-Koharuiro_Sunray', | 217 | name : 'GN-Koharuiro_Sunray', |
| 214 | slug : 'gn_koharuiro_sunray' | 218 | slug : 'gn_koharuiro_sunray' |
| 215 | 219 | ||
| 216 | }, | 220 | }, |
| 217 | { | 221 | { |
| 218 | name : 'GN-Kyu-pin', | 222 | name : 'GN-Kyu-pin', |
| 219 | slug : 'gn_kyu_pin' | 223 | slug : 'gn_kyu_pin' |
| 220 | }, | 224 | }, |
| 221 | { | 225 | { |
| 222 | name : 'gn_natsu_iro_schedule', | 226 | name : 'gn_natsu_iro_schedule', |
| 223 | slug : 'gn_natsu_iro_schedule' | 227 | slug : 'gn_natsu_iro_schedule' |
| 224 | 228 | ||
| 225 | }, | 229 | }, |
| 226 | { | 230 | { |
| 227 | name : 'gnkana_kiniro_sansserif_l', | 231 | name : 'gnkana_kiniro_sansserif_l', |
| 228 | slug : 'gnkana_kiniro_sansserif_l' | 232 | slug : 'gnkana_kiniro_sansserif_l' |
| 229 | 233 | ||
| 230 | }, | 234 | }, |
| 231 | { | 235 | { |
| 232 | name : 'gnkana_kiniro_sansserif_st', | 236 | name : 'gnkana_kiniro_sansserif_st', |
| 233 | slug : 'gnkana_kiniro_sansserif_st' | 237 | slug : 'gnkana_kiniro_sansserif_st' |
| 234 | }, | 238 | }, |
| 235 | { | 239 | { |
| 236 | name : 'gnkana_kon_iro_nightfall', | 240 | name : 'gnkana_kon_iro_nightfall', |
| 237 | slug : 'gnkana_kon_iro_nightfall' | 241 | slug : 'gnkana_kon_iro_nightfall' |
| 238 | 242 | ||
| 239 | }, | 243 | }, |
| 240 | { | 244 | { |
| 241 | name : 'ms_gothic', | 245 | name : 'ms_gothic', |
| 242 | slug : 'ms_gothic' | 246 | slug : 'ms_gothic' |
| 243 | 247 | ||
| 244 | }, | 248 | }, |
| 245 | { | 249 | { |
| 246 | name : 'msmincho', | 250 | name : 'msmincho', |
| 247 | slug : 'msmincho' | 251 | slug : 'msmincho' |
| 248 | }, | 252 | }, |
| 249 | { | 253 | { |
| 250 | name : 'ufonts_com_ms_pgothic', | 254 | name : 'ufonts_com_ms_pgothic', |
| 251 | slug : 'ufonts_com_ms_pgothic' | 255 | slug : 'ufonts_com_ms_pgothic' |
| 252 | } | 256 | } |
| 253 | ]; | 257 | ]; |
| 254 | 258 | ||
| 255 | $scope.changeColorPattern = function(color){ | 259 | $scope.changeColorPattern = function(color){ |
| 256 | if (canvas.getActiveObject()){ | 260 | if (canvas.getActiveObject()){ |
| 257 | canvas.getActiveObject().set("fill", color); | 261 | canvas.getActiveObject().set("fill", color); |
| 258 | canvas.renderAll(); | 262 | canvas.renderAll(); |
| 259 | } | 263 | } |
| 260 | }; | 264 | }; |
| 261 | 265 | ||
| 262 | // layer process | 266 | // layer process |
| 263 | $scope.layerProcess = function(mode){ | 267 | $scope.layerProcess = function(mode){ |
| 264 | var activeObject = canvas.getActiveObject() | 268 | var activeObject = canvas.getActiveObject() |
| 265 | if (activeObject){ | 269 | if (activeObject){ |
| 266 | switch (mode) { | 270 | switch (mode) { |
| 267 | case 1: | 271 | case 1: |
| 268 | activeObject.bringForward(); | 272 | activeObject.bringForward(); |
| 269 | break; | 273 | break; |
| 270 | case 2: | 274 | case 2: |
| 271 | activeObject.sendBackwards(); | 275 | activeObject.sendBackwards(); |
| 272 | break; | 276 | break; |
| 273 | case 3: | 277 | case 3: |
| 274 | activeObject.bringToFront(); | 278 | activeObject.bringToFront(); |
| 275 | break; | 279 | break; |
| 276 | case 4: | 280 | case 4: |
| 277 | activeObject.sendToBack(); | 281 | activeObject.sendToBack(); |
| 278 | break; | 282 | break; |
| 279 | } | 283 | } |
| 280 | canvas.renderAll(); | 284 | canvas.renderAll(); |
| 281 | } | 285 | } |
| 282 | }; | 286 | }; |
| 283 | 287 | ||
| 284 | 288 | ||
| 285 | 289 | ||
| 286 | $scope.focusInputText = function() { | 290 | $scope.focusInputText = function() { |
| 287 | if($scope.typeObject != 'i-text') | 291 | if($scope.typeObject != 'i-text') |
| 288 | $scope.iText = new fabric.IText('', { | 292 | $scope.iText = new fabric.IText('', { |
| 289 | left: 150, | 293 | left: 150, |
| 290 | top: 200, | 294 | top: 200, |
| 291 | fontFamily: 'Arial', | 295 | fontFamily: 'Arial', |
| 292 | fontWeight: 'normal', | 296 | fontWeight: 'normal', |
| 293 | fontSize: 28, | 297 | fontSize: 28, |
| 294 | fill: 'black' | 298 | fill: 'black' |
| 295 | }); | 299 | }); |
| 296 | }; | 300 | }; |
| 297 | 301 | ||
| 298 | //Design text | 302 | //Design text |
| 299 | $scope.inputText = function(e) { | 303 | $scope.inputText = function(e) { |
| 300 | var iText = $scope.iText; | 304 | var iText = $scope.iText; |
| 301 | if(e != '') { | 305 | if(e != '') { |
| 302 | iText.text = e; | 306 | iText.text = e; |
| 303 | iText.set().setCoords(); | 307 | iText.set().setCoords(); |
| 304 | canvas.add(iText); | 308 | canvas.add(iText); |
| 305 | canvas.renderAll(); | 309 | canvas.renderAll(); |
| 306 | canvas.setActiveObject(iText); | 310 | canvas.setActiveObject(iText); |
| 307 | } | 311 | } |
| 308 | }; | 312 | }; |
| 309 | $scope.setFontFamily = function(font) { | 313 | $scope.setFontFamily = function(font) { |
| 310 | if(canvas.getActiveObject()) { | 314 | if(canvas.getActiveObject()) { |
| 311 | var currentObject = canvas.getActiveObject(); | 315 | var currentObject = canvas.getActiveObject(); |
| 312 | if(currentObject.type == 'i-text') { | 316 | if(currentObject.type == 'i-text') { |
| 313 | currentObject.set('fontFamily', font); | 317 | currentObject.set('fontFamily', font); |
| 314 | canvas.renderAll(); | 318 | canvas.renderAll(); |
| 315 | canvas.setActiveObject(currentObject); | 319 | canvas.setActiveObject(currentObject); |
| 316 | } | 320 | } |
| 317 | 321 | ||
| 318 | } | 322 | } |
| 319 | }; | 323 | }; |
| 320 | //Set letter spacing text | 324 | //Set letter spacing text |
| 321 | var spacingNum = 0; | 325 | var spacingNum = 0; |
| 322 | $scope.setLetterSpacingText = function(e) { | 326 | $scope.setLetterSpacingText = function(e) { |
| 323 | if(canvas.getActiveObject()) { | 327 | if(canvas.getActiveObject()) { |
| 324 | var currentObject = canvas.getActiveObject(); | 328 | var currentObject = canvas.getActiveObject(); |
| 325 | if(currentObject.type == 'i-text') { | 329 | if(currentObject.type == 'i-text') { |
| 326 | if(e == 'plus') | 330 | if(e == 'plus') |
| 327 | spacingNum = spacingNum + 30; | 331 | spacingNum = spacingNum + 30; |
| 328 | else if (spacingNum>=30){ | 332 | else if (spacingNum>=30){ |
| 329 | spacingNum = spacingNum - 30; | 333 | spacingNum = spacingNum - 30; |
| 330 | } | 334 | } |
| 331 | currentObject.set('charSpacing', spacingNum); | 335 | currentObject.set('charSpacing', spacingNum); |
| 332 | canvas.renderAll(); | 336 | canvas.renderAll(); |
| 333 | canvas.setActiveObject(currentObject); | 337 | canvas.setActiveObject(currentObject); |
| 334 | } | 338 | } |
| 335 | 339 | ||
| 336 | } | 340 | } |
| 341 | } | ||
| 342 | |||
| 343 | |||
| 344 | /**** process insert image */ | ||
| 345 | $scope.chooseImage = function(e){console.log(e); | ||
| 346 | var reader = new FileReader(); | ||
| 347 | reader.onload = function (event) { console.log('fdsf'); | ||
| 348 | var imgObj = new Image(); | ||
| 349 | imgObj.src = event.target.result; | ||
| 350 | imgObj.onload = function () { | ||
| 351 | // start fabricJS stuff | ||
| 352 | |||
| 353 | var image = new fabric.Image(imgObj); | ||
| 354 | image.set({ | ||
| 355 | left: 50, | ||
| 356 | top: 50 | ||
| 357 | }); | ||
| 358 | //image.scale(getRandomNum(0.1, 0.25)).setCoords(); | ||
| 359 | image.scaleToWidth(200); | ||
| 360 | canvas.add(image); | ||
| 361 | } | ||
| 362 | } | ||
| 363 | reader.readAsDataURL(e.target.files[0]); | ||
| 337 | } | 364 | } |
| 338 | }); | 365 | }); |
| 339 | }); | 366 | }); |
| 340 | 367 |
app/styles/main.css
| 1 | /* Space out content a bit */ | 1 | /* Space out content a bit */ |
| 2 | @import "../fonts/font.css"; | 2 | @import "../fonts/font.css"; |
| 3 | @import "../fonts/font_canvas/font-canvas.css"; | 3 | @import "../fonts/font_canvas/font-canvas.css"; |
| 4 | body { | 4 | body { |
| 5 | font-family: 'Hiragino Kaku Gothic Pro', sans-serif; | 5 | font-family: 'Hiragino Kaku Gothic Pro', sans-serif; |
| 6 | /*font-family: 'gn_aki_iro_sesami_cookies';*/ | 6 | /*font-family: 'gn_aki_iro_sesami_cookies';*/ |
| 7 | } | 7 | } |
| 8 | /*Scroll bar style*/ | 8 | /*Scroll bar style*/ |
| 9 | ::-webkit-scrollbar { | 9 | ::-webkit-scrollbar { |
| 10 | -webkit-appearance: none; | 10 | -webkit-appearance: none; |
| 11 | width: 7px; | 11 | width: 7px; |
| 12 | } | 12 | } |
| 13 | ::-webkit-scrollbar-thumb { | 13 | ::-webkit-scrollbar-thumb { |
| 14 | border-radius: 4px; | 14 | border-radius: 4px; |
| 15 | background-color: rgba(0,0,0,.5); | 15 | background-color: rgba(0,0,0,.5); |
| 16 | -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5); | 16 | -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5); |
| 17 | } | 17 | } |
| 18 | /*End scroll bar style*/ | 18 | /*End scroll bar style*/ |
| 19 | .padding-right-0{ | 19 | .padding-right-0{ |
| 20 | padding-right: 0!important; | 20 | padding-right: 0!important; |
| 21 | } | 21 | } |
| 22 | .padding-left-0{ | 22 | .padding-left-0{ |
| 23 | padding-left: 0!important; | 23 | padding-left: 0!important; |
| 24 | } | 24 | } |
| 25 | button.red{ | 25 | button.red{ |
| 26 | color: #ffffff; | 26 | color: #ffffff; |
| 27 | background-color: #ff0000; | 27 | background-color: #ff0000; |
| 28 | border: 1px solid #ff0000; | 28 | border: 1px solid #ff0000; |
| 29 | 29 | ||
| 30 | } | 30 | } |
| 31 | button.white{ | 31 | button.white{ |
| 32 | border: 1px solid #ff8080; | 32 | border: 1px solid #ff8080; |
| 33 | color: #ff8080; | 33 | color: #ff8080; |
| 34 | background-color: #ffffff; | 34 | background-color: #ffffff; |
| 35 | } | 35 | } |
| 36 | button.brown{ | 36 | button.brown{ |
| 37 | background-color: #666666; | 37 | background-color: #666666; |
| 38 | border: 1px solid #666666; | 38 | border: 1px solid #666666; |
| 39 | color: #ffffff; | 39 | color: #ffffff; |
| 40 | border-radius: 5px; | 40 | border-radius: 5px; |
| 41 | } | 41 | } |
| 42 | button.black{ | 42 | button.black{ |
| 43 | border: 1px solid #c9c9c9; | 43 | border: 1px solid #c9c9c9; |
| 44 | background-color: #343434; | 44 | background-color: #343434; |
| 45 | color: #ffffff; | 45 | color: #ffffff; |
| 46 | padding: 1px 6px; | 46 | padding: 1px 6px; |
| 47 | } | 47 | } |
| 48 | #tshirt-container{ | 48 | #tshirt-container{ |
| 49 | border-left: 1px solid #dcdcdc; | 49 | border-left: 1px solid #dcdcdc; |
| 50 | border-right: 1px solid #dcdcdc; | 50 | border-right: 1px solid #dcdcdc; |
| 51 | } | 51 | } |
| 52 | /*HEADER*/ | 52 | /*HEADER*/ |
| 53 | header{ | 53 | header{ |
| 54 | border-bottom: 1px solid #dcdcdc; | 54 | border-bottom: 1px solid #dcdcdc; |
| 55 | } | 55 | } |
| 56 | header .logo{ | 56 | header .logo{ |
| 57 | color: #ed1d24; | 57 | color: #ed1d24; |
| 58 | font-size: 30px; | 58 | font-size: 30px; |
| 59 | text-transform: uppercase; | 59 | text-transform: uppercase; |
| 60 | font-weight: bold; | 60 | font-weight: bold; |
| 61 | } | 61 | } |
| 62 | header .logo img{ | 62 | header .logo img{ |
| 63 | width: 60px; | 63 | width: 60px; |
| 64 | } | 64 | } |
| 65 | /*NAVIGATION*/ | 65 | /*NAVIGATION*/ |
| 66 | nav{ | 66 | nav{ |
| 67 | border-bottom: 1px solid #dcdcdc; | 67 | border-bottom: 1px solid #dcdcdc; |
| 68 | padding: 10px 0; | 68 | padding: 10px 0; |
| 69 | } | 69 | } |
| 70 | nav h2{ | 70 | nav h2{ |
| 71 | font-size: 27px; | 71 | font-size: 27px; |
| 72 | margin: 0 0; | 72 | margin: 0 0; |
| 73 | } | 73 | } |
| 74 | nav ul{ | 74 | nav ul{ |
| 75 | list-style: none; | 75 | list-style: none; |
| 76 | padding-left: 0; | 76 | padding-left: 0; |
| 77 | margin-bottom: 0; | 77 | margin-bottom: 0; |
| 78 | 78 | ||
| 79 | } | 79 | } |
| 80 | nav ul li{ | 80 | nav ul li{ |
| 81 | margin-left: 2px; | 81 | margin-left: 2px; |
| 82 | float: left; | 82 | float: left; |
| 83 | padding: 6px 12px; | 83 | padding: 6px 12px; |
| 84 | background-color: #999999; | 84 | background-color: #999999; |
| 85 | position: relative; | 85 | position: relative; |
| 86 | } | 86 | } |
| 87 | nav ul li i.fa{ | 87 | nav ul li i.fa{ |
| 88 | position: absolute; | 88 | position: absolute; |
| 89 | color: #ffffff; | 89 | color: #ffffff; |
| 90 | font-size: 18px; | 90 | font-size: 18px; |
| 91 | right: -4px; | 91 | right: -4px; |
| 92 | top: 50%; | 92 | top: 50%; |
| 93 | transform: translateX(-50%) translateY(-50%); | 93 | transform: translateX(-50%) translateY(-50%); |
| 94 | -webkit-transform: translateX(-50%) translateY(-50%); | 94 | -webkit-transform: translateX(-50%) translateY(-50%); |
| 95 | } | 95 | } |
| 96 | nav ul li a{ | 96 | nav ul li a{ |
| 97 | color: #ffffff; | 97 | color: #ffffff; |
| 98 | } | 98 | } |
| 99 | nav ul li:hover a{ | 99 | nav ul li:hover a{ |
| 100 | text-decoration: none; | 100 | text-decoration: none; |
| 101 | color: #ffffff; | 101 | color: #ffffff; |
| 102 | } | 102 | } |
| 103 | nav ul li.action{ | 103 | nav ul li.action{ |
| 104 | color: #ffffff; | 104 | color: #ffffff; |
| 105 | background-color: #ed1d24; | 105 | background-color: #ed1d24; |
| 106 | } | 106 | } |
| 107 | /*ASIDE*/ | 107 | /*ASIDE*/ |
| 108 | aside{ | 108 | aside{ |
| 109 | margin: 10px 0; | 109 | margin: 10px 0; |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | aside .break-down{ | 112 | aside .break-down{ |
| 113 | padding: 0 0; | 113 | padding: 0 0; |
| 114 | } | 114 | } |
| 115 | aside .break-down i.fa{ | 115 | aside .break-down i.fa{ |
| 116 | font-size: 35px; | 116 | font-size: 35px; |
| 117 | color: #ff0000; | 117 | color: #ff0000; |
| 118 | } | 118 | } |
| 119 | aside .break-line{ | 119 | aside .break-line{ |
| 120 | height: 10px; | 120 | height: 10px; |
| 121 | } | 121 | } |
| 122 | aside .break-line hr{ | 122 | aside .break-line hr{ |
| 123 | border-top: 1px dotted #cccccc; | 123 | border-top: 1px dotted #cccccc; |
| 124 | } | 124 | } |
| 125 | aside .step{ | 125 | aside .step{ |
| 126 | margin: 0 0; | 126 | margin: 0 0; |
| 127 | } | 127 | } |
| 128 | aside .step .title{ | 128 | aside .step .title{ |
| 129 | font-size: 15px; | 129 | font-size: 15px; |
| 130 | line-height: 16px; | 130 | line-height: 16px; |
| 131 | font-weight: bold; | 131 | font-weight: bold; |
| 132 | margin-bottom: 3px; | 132 | margin-bottom: 3px; |
| 133 | } | 133 | } |
| 134 | aside .step .title-notice{ | 134 | aside .step .title-notice{ |
| 135 | font-size: 13px; | 135 | font-size: 13px; |
| 136 | line-height: 16px; | 136 | line-height: 16px; |
| 137 | margin-bottom: 3px; | 137 | margin-bottom: 3px; |
| 138 | } | 138 | } |
| 139 | aside .step .title-notice .require{ | 139 | aside .step .title-notice .require{ |
| 140 | font-size: 10px; | 140 | font-size: 10px; |
| 141 | } | 141 | } |
| 142 | aside .step .step-box{ | 142 | aside .step .step-box{ |
| 143 | border: 2px solid #dcdcdc; | 143 | border: 2px solid #dcdcdc; |
| 144 | font-size: 12px; | 144 | font-size: 12px; |
| 145 | 145 | ||
| 146 | } | 146 | } |
| 147 | /*Step 1*/ | 147 | /*Step 1*/ |
| 148 | aside .step .step-box .tshirt-design{ | 148 | aside .step .step-box .tshirt-design{ |
| 149 | border: 1px solid #cccccc; | 149 | border: 1px solid #cccccc; |
| 150 | background-color: #f5f5f5; | 150 | background-color: #f5f5f5; |
| 151 | margin: 10px 10px; | 151 | margin: 10px 10px; |
| 152 | } | 152 | } |
| 153 | aside .step .step-box .tshirt-design:hover{ | 153 | aside .step .step-box .tshirt-design:hover{ |
| 154 | border: 1px solid #ff0000; | 154 | border: 1px solid #ff0000; |
| 155 | } | 155 | } |
| 156 | aside .step .step-box .tshirt-design button:hover{ | 156 | aside .step .step-box .tshirt-design button:hover{ |
| 157 | background-color: #fa7b7b; | 157 | background-color: #fa7b7b; |
| 158 | border: 1px solid #fa7b7b; | 158 | border: 1px solid #fa7b7b; |
| 159 | } | 159 | } |
| 160 | aside .step .step-box .tshirt-design div{ | 160 | aside .step .step-box .tshirt-design div{ |
| 161 | float: left; | 161 | float: left; |
| 162 | } | 162 | } |
| 163 | aside .step .step-box .tshirt-design .icon{ | 163 | aside .step .step-box .tshirt-design .icon{ |
| 164 | padding: 4px 4px; | 164 | padding: 4px 4px; |
| 165 | border-right: 1px solid #cccccc; | 165 | border-right: 1px solid #cccccc; |
| 166 | 166 | ||
| 167 | } | 167 | } |
| 168 | aside .step .step-box .tshirt-design .icon img{ | 168 | aside .step .step-box .tshirt-design .icon img{ |
| 169 | height: 50px; | 169 | height: 50px; |
| 170 | } | 170 | } |
| 171 | aside .step .step-box .tshirt-design .name{ | 171 | aside .step .step-box .tshirt-design .name{ |
| 172 | padding: 10px 10px; | 172 | padding: 10px 10px; |
| 173 | 173 | ||
| 174 | } | 174 | } |
| 175 | aside .step .step-box .tshirt-design .action{ | 175 | aside .step .step-box .tshirt-design .action{ |
| 176 | padding: 10px 10px; | 176 | padding: 10px 10px; |
| 177 | float: right; | 177 | float: right; |
| 178 | 178 | ||
| 179 | } | 179 | } |
| 180 | aside .step .step-box .tshirt-design .action button{ | 180 | aside .step .step-box .tshirt-design .action button{ |
| 181 | padding: 8px 10px; | 181 | padding: 8px 10px; |
| 182 | } | 182 | } |
| 183 | /*Step 2*/ | 183 | /*Step 2*/ |
| 184 | aside .step .step-box .tshirt-color{ | 184 | aside .step .step-box .tshirt-color{ |
| 185 | padding: 6px 10px; | 185 | padding: 6px 10px; |
| 186 | position: relative; | 186 | position: relative; |
| 187 | } | 187 | } |
| 188 | aside .step .step-box .tshirt-color ul.choice-color{ | 188 | aside .step .step-box .tshirt-color ul.choice-color{ |
| 189 | float: left; | 189 | float: left; |
| 190 | list-style: none; | 190 | list-style: none; |
| 191 | padding-left: 0; | 191 | padding-left: 0; |
| 192 | width: 100%; | 192 | width: 100%; |
| 193 | margin-bottom: 3px; | 193 | margin-bottom: 3px; |
| 194 | } | 194 | } |
| 195 | aside .step .step-box .tshirt-color ul.choice-color li{ | 195 | aside .step .step-box .tshirt-color ul.choice-color li{ |
| 196 | margin: 0 10px 0 0; | 196 | margin: 0 10px 0 0; |
| 197 | border: 1px solid #cccccc; | 197 | border: 1px solid #cccccc; |
| 198 | padding: 2px 2px; | 198 | padding: 2px 2px; |
| 199 | float: left; | 199 | float: left; |
| 200 | cursor: pointer; | 200 | cursor: pointer; |
| 201 | } | 201 | } |
| 202 | aside .step .step-box .tshirt-color ul.choice-color li.action{ | 202 | aside .step .step-box .tshirt-color ul.choice-color li.action{ |
| 203 | border: 1px solid #ff0000; | 203 | border: 1px solid #ff0000; |
| 204 | } | 204 | } |
| 205 | aside .step .step-box .tshirt-color ul.choice-color li:hover{ | 205 | aside .step .step-box .tshirt-color ul.choice-color li:hover{ |
| 206 | border: 1px solid #ff0000; | 206 | border: 1px solid #ff0000; |
| 207 | } | 207 | } |
| 208 | aside .step .step-box .tshirt-color ul.choice-color li div{ | 208 | aside .step .step-box .tshirt-color ul.choice-color li div{ |
| 209 | height: 30px; | 209 | height: 30px; |
| 210 | width: 30px; | 210 | width: 30px; |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | aside .step .step-box .tshirt-color ul.choice-color li.white div{ | 213 | aside .step .step-box .tshirt-color ul.choice-color li.white div{ |
| 214 | background-color: #ece7e4; | 214 | background-color: #ece7e4; |
| 215 | } | 215 | } |
| 216 | aside .step .step-box .tshirt-color ul.choice-color li.blue div{ | 216 | aside .step .step-box .tshirt-color ul.choice-color li.blue div{ |
| 217 | background-color: #e7dfd0; | 217 | background-color: #e7dfd0; |
| 218 | } | 218 | } |
| 219 | aside .step .step-box .tshirt-color .color-name{ | 219 | aside .step .step-box .tshirt-color .color-name{ |
| 220 | width: 100%; | 220 | width: 100%; |
| 221 | font-size: 10px; | 221 | font-size: 10px; |
| 222 | } | 222 | } |
| 223 | aside .step .step-box .tshirt-color .view-more{ | 223 | aside .step .step-box .tshirt-color .view-more{ |
| 224 | position: absolute; | 224 | position: absolute; |
| 225 | bottom: 6px; | 225 | bottom: 6px; |
| 226 | right: 10px; | 226 | right: 10px; |
| 227 | } | 227 | } |
| 228 | /*Step 3*/ | 228 | /*Step 3*/ |
| 229 | aside .step .step-box .tshirt-saveorder{ | 229 | aside .step .step-box .tshirt-saveorder{ |
| 230 | padding: 10px 10px 6px 10px; | 230 | padding: 10px 10px 6px 10px; |
| 231 | } | 231 | } |
| 232 | aside .step .step-box .tshirt-saveorder .action{ | 232 | aside .step .step-box .tshirt-saveorder .action{ |
| 233 | width: 50%; | 233 | width: 50%; |
| 234 | float: left; | 234 | float: left; |
| 235 | } | 235 | } |
| 236 | aside .step .step-box .tshirt-saveorder .action:first-child{ | 236 | aside .step .step-box .tshirt-saveorder .action:first-child{ |
| 237 | padding-right: 5px; | 237 | padding-right: 5px; |
| 238 | } | 238 | } |
| 239 | aside .step .step-box .tshirt-saveorder .action:last-child{ | 239 | aside .step .step-box .tshirt-saveorder .action:last-child{ |
| 240 | padding-left: 5px; | 240 | padding-left: 5px; |
| 241 | } | 241 | } |
| 242 | aside .step .step-box .tshirt-saveorder .action button{ | 242 | aside .step .step-box .tshirt-saveorder .action button{ |
| 243 | padding: 8px 10px; | 243 | padding: 8px 10px; |
| 244 | 244 | ||
| 245 | } | 245 | } |
| 246 | aside .step .step-box .tshirt-saveorder .action button .text{ | 246 | aside .step .step-box .tshirt-saveorder .action button .text{ |
| 247 | float: left; | 247 | float: left; |
| 248 | width: 80%; | 248 | width: 80%; |
| 249 | text-align: center; | 249 | text-align: center; |
| 250 | padding-left: 10px; | 250 | padding-left: 10px; |
| 251 | vertical-align: bottom; | 251 | vertical-align: bottom; |
| 252 | } | 252 | } |
| 253 | aside .step .step-box .tshirt-saveorder .action button .arrow{ | 253 | aside .step .step-box .tshirt-saveorder .action button .arrow{ |
| 254 | float: left; | 254 | float: left; |
| 255 | width: 20%; | 255 | width: 20%; |
| 256 | height: 40px; | 256 | height: 40px; |
| 257 | position: relative; | 257 | position: relative; |
| 258 | } | 258 | } |
| 259 | aside .step .step-box .tshirt-saveorder .action button .arrow i.fa{ | 259 | aside .step .step-box .tshirt-saveorder .action button .arrow i.fa{ |
| 260 | position: absolute; | 260 | position: absolute; |
| 261 | top: 50%; | 261 | top: 50%; |
| 262 | right: -6px; | 262 | right: -6px; |
| 263 | transform: translateX(-50%) translateY(-50%); | 263 | transform: translateX(-50%) translateY(-50%); |
| 264 | -webkit-transform: translateX(-50%) translateY(-50%); | 264 | -webkit-transform: translateX(-50%) translateY(-50%); |
| 265 | } | 265 | } |
| 266 | aside .step .step-box .tshirt-saveorder .notice{ | 266 | aside .step .step-box .tshirt-saveorder .notice{ |
| 267 | padding: 5px 0 0 0; | 267 | padding: 5px 0 0 0; |
| 268 | } | 268 | } |
| 269 | /*Step 4*/ | 269 | /*Step 4*/ |
| 270 | aside .step .title-notice{ | 270 | aside .step .title-notice{ |
| 271 | 271 | ||
| 272 | } | 272 | } |
| 273 | aside .step .step-box .change-design{ | 273 | aside .step .step-box .change-design{ |
| 274 | padding: 4px 4px; | 274 | padding: 4px 4px; |
| 275 | } | 275 | } |
| 276 | aside .step .step-box .change-design table{ | 276 | aside .step .step-box .change-design table{ |
| 277 | 277 | ||
| 278 | } | 278 | } |
| 279 | aside .step .step-box .change-design table tr{ | 279 | aside .step .step-box .change-design table tr{ |
| 280 | border-bottom: 1px dotted #cccccc; | 280 | border-bottom: 1px dotted #cccccc; |
| 281 | } | 281 | } |
| 282 | aside .step .step-box .change-design table tr:last-child{ | 282 | aside .step .step-box .change-design table tr:last-child{ |
| 283 | border-bottom: 0; | 283 | border-bottom: 0; |
| 284 | } | 284 | } |
| 285 | 285 | ||
| 286 | /*Step 5- finish*/ | 286 | /*Step 5- finish*/ |
| 287 | aside .step .finish-design{ | 287 | aside .step .finish-design{ |
| 288 | padding: 20px 0; | 288 | padding: 20px 0; |
| 289 | } | 289 | } |
| 290 | aside .step .finish-design button{ | 290 | aside .step .finish-design button{ |
| 291 | width: 100%; | 291 | width: 100%; |
| 292 | padding: 8px 10px; | 292 | padding: 8px 10px; |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | /*DESIGN CONTENT*/ | 295 | /*DESIGN CONTENT*/ |
| 296 | #tshirt-content{ | 296 | #tshirt-content{ |
| 297 | position: relative; | 297 | position: relative; |
| 298 | } | 298 | } |
| 299 | #tshirt-content .switch-border-design{ | 299 | #tshirt-content .switch-border-design{ |
| 300 | position: absolute; | 300 | position: absolute; |
| 301 | top: 5px; | 301 | top: 5px; |
| 302 | right: 10px; | 302 | right: 10px; |
| 303 | color: red; | 303 | color: red; |
| 304 | font-size: 11px; | 304 | font-size: 11px; |
| 305 | } | 305 | } |
| 306 | #tshirt-content .tshirt-image{ | 306 | #tshirt-content .tshirt-image{ |
| 307 | padding: 20px 0 0 0; | 307 | padding: 20px 0 0 0; |
| 308 | } | 308 | } |
| 309 | #tshirt-content .tshirt-choice{ | 309 | #tshirt-content .tshirt-choice{ |
| 310 | 310 | ||
| 311 | } | 311 | } |
| 312 | #tshirt-content .tshirt-choice ul{ | 312 | #tshirt-content .tshirt-choice ul{ |
| 313 | list-style: none; | 313 | list-style: none; |
| 314 | padding-left: 0; | 314 | padding-left: 0; |
| 315 | display: table; | 315 | display: table; |
| 316 | margin: auto; | 316 | margin: auto; |
| 317 | } | 317 | } |
| 318 | #tshirt-content .tshirt-choice ul li{ | 318 | #tshirt-content .tshirt-choice ul li{ |
| 319 | float: left; | 319 | float: left; |
| 320 | margin: 10px 10px; | 320 | margin: 10px 10px; |
| 321 | cursor: pointer; | 321 | cursor: pointer; |
| 322 | } | 322 | } |
| 323 | #tshirt-content .tshirt-choice ul li .image{ | 323 | #tshirt-content .tshirt-choice ul li .image{ |
| 324 | border: 1px solid #cccccc; | 324 | border: 1px solid #cccccc; |
| 325 | padding: 3px 3px; | 325 | padding: 3px 3px; |
| 326 | } | 326 | } |
| 327 | #tshirt-content .tshirt-choice ul li.focus{ | 327 | #tshirt-content .tshirt-choice ul li.focus{ |
| 328 | 328 | ||
| 329 | } | 329 | } |
| 330 | #tshirt-content .tshirt-choice ul li.focus .image{ | 330 | #tshirt-content .tshirt-choice ul li.focus .image{ |
| 331 | border: 1px solid #ff0000; | 331 | border: 1px solid #ff0000; |
| 332 | } | 332 | } |
| 333 | #tshirt-content .tshirt-choice ul li .image img{ | 333 | #tshirt-content .tshirt-choice ul li .image img{ |
| 334 | width: 50px; | 334 | width: 50px; |
| 335 | height: auto; | 335 | height: auto; |
| 336 | } | 336 | } |
| 337 | /*MODAL Design*/ | 337 | /*MODAL Design*/ |
| 338 | #tshirt-design{ | 338 | #tshirt-design{ |
| 339 | background-color: #666666; | 339 | background-color: #666666; |
| 340 | } | 340 | } |
| 341 | #tshirt-design .modal-dialog{ | 341 | #tshirt-design .modal-dialog{ |
| 342 | width: 75%; | 342 | width: 75%; |
| 343 | margin: 0 auto; | 343 | margin: 0 auto; |
| 344 | } | 344 | } |
| 345 | #tshirt-design .modal-dialog .modal-content{ | 345 | #tshirt-design .modal-dialog .modal-content{ |
| 346 | background-color: transparent; | 346 | background-color: transparent; |
| 347 | border-radius: 0; | 347 | border-radius: 0; |
| 348 | border: 0; | 348 | border: 0; |
| 349 | -webkit-box-shadow: 0 0 0 rgba(0, 0, 0, .5)!important; | 349 | -webkit-box-shadow: 0 0 0 rgba(0, 0, 0, .5)!important; |
| 350 | box-shadow: 0 0 0 rgba(0, 0, 0, .5)!important; | 350 | box-shadow: 0 0 0 rgba(0, 0, 0, .5)!important; |
| 351 | } | 351 | } |
| 352 | #tshirt-design .modal-dialog .modal-content .modal-header{ | 352 | #tshirt-design .modal-dialog .modal-content .modal-header{ |
| 353 | padding: 0 0 10px 0; | 353 | padding: 0 0 10px 0; |
| 354 | border-bottom: 0; | 354 | border-bottom: 0; |
| 355 | border-shadow: none!important; | 355 | border-shadow: none!important; |
| 356 | } | 356 | } |
| 357 | #tshirt-design .modal-dialog .modal-content .modal-body{ | 357 | #tshirt-design .modal-dialog .modal-content .modal-body{ |
| 358 | background-color: #f5f5f5; | 358 | background-color: #f5f5f5; |
| 359 | padding: 0 0; | 359 | padding: 0 0; |
| 360 | } | 360 | } |
| 361 | #tshirt-design header{ | 361 | #tshirt-design header{ |
| 362 | border-bottom: 1px solid #cccccc; | 362 | border-bottom: 1px solid #cccccc; |
| 363 | background-color: #dddddd; | 363 | background-color: #dddddd; |
| 364 | } | 364 | } |
| 365 | #tshirt-design header ul.nav{ | 365 | #tshirt-design header ul.nav{ |
| 366 | padding-left: 0; | 366 | padding-left: 0; |
| 367 | list-style: none; | 367 | list-style: none; |
| 368 | } | 368 | } |
| 369 | #tshirt-design header ul.nav li{ | 369 | #tshirt-design header ul.nav li{ |
| 370 | float: left; | 370 | float: left; |
| 371 | padding: 8px 26px; | 371 | padding: 8px 26px; |
| 372 | border-right: 1px solid #cccccc; | 372 | border-right: 1px solid #cccccc; |
| 373 | font-size: 14px; | 373 | font-size: 14px; |
| 374 | cursor: pointer; | 374 | cursor: pointer; |
| 375 | } | 375 | } |
| 376 | #tshirt-design header ul.nav li:hover, #tshirt-design header ul.nav li.active{ | 376 | #tshirt-design header ul.nav li:hover, #tshirt-design header ul.nav li.active{ |
| 377 | background-color: red; | 377 | background-color: red; |
| 378 | color: #ffffff; | 378 | color: #ffffff; |
| 379 | } | 379 | } |
| 380 | #tshirt-design header ul.nav li:hover i.fa, #tshirt-design header ul.nav li.active i.fa{ | 380 | #tshirt-design header ul.nav li:hover i.fa, #tshirt-design header ul.nav li.active i.fa{ |
| 381 | color: #ffffff; | 381 | color: #ffffff; |
| 382 | } | 382 | } |
| 383 | #tshirt-design header ul.nav li i.fa{ | 383 | #tshirt-design header ul.nav li i.fa{ |
| 384 | color: #fe070f; | 384 | color: #fe070f; |
| 385 | font-size: 20px; | 385 | font-size: 20px; |
| 386 | margin-right: 10px; | 386 | margin-right: 10px; |
| 387 | } | 387 | } |
| 388 | #tshirt-design header .action{ | 388 | #tshirt-design header .action{ |
| 389 | 389 | ||
| 390 | } | 390 | } |
| 391 | #tshirt-design header .action button{ | 391 | #tshirt-design header .action button{ |
| 392 | padding: 2px 10px; | 392 | padding: 2px 10px; |
| 393 | margin: 6px 10px; | 393 | margin: 6px 10px; |
| 394 | } | 394 | } |
| 395 | #tshirt-design header .action button:hover{ | 395 | #tshirt-design header .action button:hover{ |
| 396 | background-color: red; | 396 | background-color: red; |
| 397 | color: #ffffff; | 397 | color: #ffffff; |
| 398 | } | 398 | } |
| 399 | 399 | ||
| 400 | /*Aside modal*/ | 400 | /*Aside modal*/ |
| 401 | .aside{ | 401 | .aside{ |
| 402 | } | 402 | } |
| 403 | 403 | ||
| 404 | .aside .box-design-option{ | 404 | .aside .box-design-option{ |
| 405 | list-style: none; | 405 | list-style: none; |
| 406 | padding-left: 0; | 406 | padding-left: 0; |
| 407 | margin-top: 10px; | 407 | margin-top: 10px; |
| 408 | } | 408 | } |
| 409 | .aside .box-design-option li{ | ||
| 410 | 409 | ||
| 411 | } | ||
| 412 | .aside .box-design-option li{ | 410 | .aside .box-design-option li{ |
| 413 | border: 1px solid #cdcdcd; | 411 | border: 1px solid #cdcdcd; |
| 414 | position: relative; | 412 | position: relative; |
| 415 | /*cursor: pointer;*/ | 413 | /*cursor: pointer;*/ |
| 414 | margin-bottom: 10px; | ||
| 416 | } | 415 | } |
| 417 | .aside .box-design-option li .hover{ | 416 | .aside .box-design-option li .hover{ |
| 418 | background-color: #fddad4; | 417 | background-color: #fddad4; |
| 419 | opacity: 0.6; | 418 | opacity: 0.6; |
| 420 | position: absolute; | 419 | position: absolute; |
| 421 | width: 100%; | 420 | width: 100%; |
| 422 | height: 100%; | 421 | height: 100%; |
| 423 | display: none; | 422 | display: none; |
| 424 | } | 423 | } |
| 425 | .aside .box-design-option li:hover .hover{ | 424 | .aside .box-design-option li:hover .hover{ |
| 426 | display: block; | 425 | display: block; |
| 427 | } | 426 | } |
| 428 | 427 | ||
| 429 | .aside .box-design-option li .title{ | 428 | .aside .box-design-option li .title{ |
| 430 | background: url("../images/bg1.png") repeat #cdcdcd; | 429 | background: url("../images/bg1.png") repeat #cdcdcd; |
| 431 | padding: 3px 10px; | 430 | padding: 3px 10px; |
| 432 | } | 431 | } |
| 433 | .aside .box-design-option li .title i.fa{ | 432 | .aside .box-design-option li .title i.fa{ |
| 434 | color: #000000; | 433 | color: #000000; |
| 435 | } | 434 | } |
| 436 | 435 | ||
| 437 | .aside .box-design-option li .content{ | 436 | .aside .box-design-option li .content{ |
| 438 | 437 | ||
| 439 | } | 438 | } |
| 440 | .aside .box-design-option li .content i.fa{ | 439 | .aside .box-design-option li .content i.fa{ |
| 441 | font-size: 30px; | 440 | font-size: 30px; |
| 442 | color: #fe070f; | 441 | color: #fe070f; |
| 443 | margin: 8px 0; | 442 | margin: 8px 0; |
| 444 | } | 443 | } |
| 445 | .aside .box-design-option li .content .des{ | 444 | .aside .box-design-option li .content .des{ |
| 446 | padding: 3px 10px 3px 0; | 445 | padding: 3px 10px 3px 0; |
| 447 | } | 446 | } |
| 448 | .aside .box-design-option li .content .color-patterns { | 447 | .aside .box-design-option li .content .color-patterns { |
| 449 | width: 100%; | 448 | width: 100%; |
| 450 | border: #bbb solid 1px; | 449 | border: #bbb solid 1px; |
| 451 | background: #FFF; | 450 | background: #FFF; |
| 452 | margin-top: 5px; | 451 | margin-top: 5px; |
| 452 | min-height: 65px; | ||
| 453 | } | 453 | } |
| 454 | 454 | ||
| 455 | .aside .box-design-option li .content .color-patterns .color-pattern-item{ | 455 | .aside .box-design-option li .content .color-patterns .color-pattern-item{ |
| 456 | height: 20px; | 456 | height: 20px; |
| 457 | float: left; | 457 | float: left; |
| 458 | margin-left: 4px; | 458 | margin-left: 4px; |
| 459 | margin-top: 2px; | 459 | margin-top: 2px; |
| 460 | width: 20px; | 460 | width: 20px; |
| 461 | cursor: pointer; | 461 | cursor: pointer; |
| 462 | border: 1px solid #ddd; | 462 | border: 1px solid #ddd; |
| 463 | } | 463 | } |
| 464 | 464 | ||
| 465 | .aside .box-design-option li .content .color-patterns .color-pattern-item:hover { | 465 | .aside .box-design-option li .content .color-patterns .color-pattern-item:hover { |
| 466 | outline: 1px solid #ed1d24; | 466 | outline: 1px solid #ed1d24; |
| 467 | } | 467 | } |
| 468 | .aside .box-design-option li .content .layer-item { | 468 | .aside .box-design-option li .content .layer-item { |
| 469 | text-align: center; | 469 | text-align: center; |
| 470 | border: 1px #ddd solid; | 470 | border: 1px #ddd solid; |
| 471 | background: #FFF; | 471 | background: #FFF; |
| 472 | padding: 5px; | 472 | padding: 5px; |
| 473 | font-size: 12px; | 473 | font-size: 12px; |
| 474 | cursor: pointer; | 474 | cursor: pointer; |
| 475 | } | 475 | } |
| 476 | 476 | ||
| 477 | .aside .box-design-option li .content .layer-item:hover { | 477 | .aside .box-design-option li .content .layer-item:hover { |
| 478 | background: #ffcccc; | 478 | background: #ffcccc; |
| 479 | } | 479 | } |
| 480 | 480 | ||
| 481 | 481 | ||
| 482 | /*Design Text*/ | 482 | /*Design Text*/ |
| 483 | .aside #choice-text{ | 483 | .aside #choice-text{ |
| 484 | 484 | ||
| 485 | } | 485 | } |
| 486 | .aside #choice-text .content{ | 486 | .aside #choice-text .content{ |
| 487 | padding: 10px 10px; | 487 | padding: 10px 10px; |
| 488 | } | 488 | } |
| 489 | .aside #choice-text .content ul.font-family-box{ | 489 | .aside #choice-text .content ul.font-family-box{ |
| 490 | list-style: none; | 490 | list-style: none; |
| 491 | margin: 10px 0; | 491 | margin: 10px 0; |
| 492 | padding-left: 0; | 492 | padding-left: 0; |
| 493 | height: 180px; | 493 | height: 180px; |
| 494 | width: 100%; | 494 | width: 100%; |
| 495 | overflow-y: scroll; | 495 | overflow-y: scroll; |
| 496 | border: 1px solid #c0c0c0; | 496 | border: 1px solid #c0c0c0; |
| 497 | } | 497 | } |
| 498 | 498 | ||
| 499 | .aside #choice-text .content .font-family-box li{ | 499 | .aside #choice-text .content .font-family-box li{ |
| 500 | cursor: pointer; | 500 | cursor: pointer; |
| 501 | padding: 4px 8px; | 501 | padding: 4px 8px; |
| 502 | border: 0; | 502 | border: 0; |
| 503 | border-bottom: 1px solid #c0c0c0; | 503 | border-bottom: 1px solid #c0c0c0; |
| 504 | border-right: 1px solid #c0c0c0; | 504 | border-right: 1px solid #c0c0c0; |
| 505 | font-size: 16px; | 505 | font-size: 16px; |
| 506 | } | 506 | } |
| 507 | .aside #choice-text .content .spacing-letter{ | 507 | .aside #choice-text .content .spacing-letter{ |
| 508 | 508 | ||
| 509 | } | 509 | } |
| 510 | .aside #choice-text .content .spacing-letter .text-label{ | 510 | .aside #choice-text .content .spacing-letter .text-label{ |
| 511 | font-size: 16px; | 511 | font-size: 16px; |
| 512 | padding: 4px 0; | 512 | padding: 4px 0; |
| 513 | } | 513 | } |
| 514 | .aside #choice-text .content .spacing-letter .box{ | 514 | .aside #choice-text .content .spacing-letter .box{ |
| 515 | border: 1px solid #8c8c8c; | 515 | border: 1px solid #8c8c8c; |
| 516 | box-shadow: 0 0 5px #888888; | 516 | box-shadow: 0 0 5px #888888; |
| 517 | background-color: #f0f0f0; | 517 | background-color: #f0f0f0; |
| 518 | } | 518 | } |
| 519 | .aside #choice-text .content .spacing-letter .item{ | 519 | .aside #choice-text .content .spacing-letter .item{ |
| 520 | float: left; | 520 | float: left; |
| 521 | } | 521 | } |
| 522 | 522 | ||
| 523 | .aside #choice-text .content .spacing-letter .item i.fa{ | 523 | .aside #choice-text .content .spacing-letter .item i.fa{ |
| 524 | font-size: 22px; | 524 | font-size: 22px; |
| 525 | margin: 0 0; | 525 | margin: 0 0; |
| 526 | color: #000000; | 526 | color: #000000; |
| 527 | } | 527 | } |
| 528 | .aside #choice-text .content .spacing-letter .item-text{ | 528 | .aside #choice-text .content .spacing-letter .item-text{ |
| 529 | padding: 6px 20px; | 529 | padding: 6px 20px; |
| 530 | font-size: 12px; | 530 | font-size: 12px; |
| 531 | } | 531 | } |
| 532 | .aside #choice-text .content .spacing-letter .item-plus{ | 532 | .aside #choice-text .content .spacing-letter .item-plus{ |
| 533 | border-right: 1px solid #8c8c8c; | 533 | border-right: 1px solid #8c8c8c; |
| 534 | } | 534 | } |
| 535 | .aside #choice-text .content .spacing-letter .item-minus{ | 535 | .aside #choice-text .content .spacing-letter .item-minus{ |
| 536 | border-left: 1px solid #8c8c8c; | 536 | border-left: 1px solid #8c8c8c; |
| 537 | } | 537 | } |
| 538 | .aside #choice-text .content .spacing-letter .item-plus, .aside #choice-text .content .spacing-letter .item-minus { | 538 | .aside #choice-text .content .spacing-letter .item-plus, .aside #choice-text .content .spacing-letter .item-minus { |
| 539 | padding: 5px 6px 1px 6px; | 539 | padding: 5px 6px 1px 6px; |
| 540 | cursor: pointer; | 540 | cursor: pointer; |
| 541 | } | 541 | } |
| 542 | /*Design Choice Illustration*/ | 542 | /*Design Choice Illustration*/ |
| 543 | .aside #choice-illustration li .content { | 543 | .aside #choice-illustration li .content { |
| 544 | padding: 10px 10px; | 544 | padding: 10px 10px; |
| 545 | } | 545 | } |
| 546 | 546 | ||
| 547 | .aside #choice-illustration li .content select{ | 547 | .aside #choice-illustration li .content select{ |
| 548 | width: 100%; | 548 | width: 100%; |
| 549 | } | 549 | } |
| 550 | 550 | ||
| 551 | .aside #choice-illustration li .content .illustration-list { | 551 | .aside #choice-illustration li .content .illustration-list { |
| 552 | width: 100%; | 552 | width: 100%; |
| 553 | border: #bbb solid 1px; | 553 | border: #bbb solid 1px; |
| 554 | background: #FFF; | 554 | background: #FFF; |
| 555 | margin-top: 5px; | 555 | margin-top: 5px; |
| 556 | min-height: 350px; | ||
| 556 | } | 557 | } |
| 557 | 558 | ||
| 558 | .aside #choice-illustration li .content .illustration-list .illstration-item{ | 559 | .aside #choice-illustration li .content .illustration-list .illstration-item{ |
| 559 | height: 60px; | 560 | height: 60px; |
| 560 | overflow: hidden; | 561 | overflow: hidden; |
| 561 | float: left; | 562 | float: left; |
| 562 | margin-left: 6px; | 563 | margin-left: 6px; |
| 563 | margin-top: 5px; | 564 | margin-top: 5px; |
| 564 | margin-bottom: 5px; | 565 | margin-bottom: 5px; |
| 565 | padding: 2px; | 566 | padding: 2px; |
| 566 | background: #e2e2e2; | 567 | background: #e2e2e2; |
| 567 | border: solid 2px #d7d7d7; | 568 | border: solid 2px #d7d7d7; |
| 568 | cursor: pointer; | 569 | cursor: pointer; |
| 569 | } | 570 | } |
| 570 | 571 | ||
| 571 | .aside #choice-illustration li .content .illustration-list .illstration-item:hover { | 572 | .aside #choice-illustration li .content .illustration-list .illstration-item:hover { |
| 572 | outline: 2px solid #ed1d24; | 573 | outline: 2px solid #ed1d24; |
| 573 | } | 574 | } |
| 574 | 575 | ||
| 575 | .aside #choice-illustration li .content .illustration-list .illstration-item img { | 576 | .aside #choice-illustration li .content .illustration-list .illstration-item img { |
| 576 | width: 50px; | 577 | width: 50px; |
| 577 | cursor: pointer; | 578 | cursor: pointer; |
| 578 | } | 579 | } |
| 579 | 580 | ||
| 580 | .aside #choice-illustration li .content .illustration-list .footer-bar { | 581 | .aside #choice-illustration li .content .illustration-list .footer-bar { |
| 581 | text-align: center; | 582 | text-align: center; |
| 582 | margin-top: 5px; | 583 | margin-top: 5px; |
| 583 | } | 584 | } |
| 584 | .aside #choice-illustration li .content .illustration-list .footer-bar .footer-pagination { | 585 | .aside #choice-illustration li .content .illustration-list .footer-bar .footer-pagination { |
| 585 | margin-right: 5px; | 586 | margin-right: 5px; |
| 586 | cursor: pointer; | 587 | cursor: pointer; |
| 587 | font-size: 9px; | 588 | font-size: 9px; |
| 588 | color: #FFF; | 589 | color: #FFF; |
| 589 | background: #666666; | 590 | background: #666666; |
| 590 | text-transform: uppercase; | 591 | text-transform: uppercase; |
| 591 | padding: 2px 5px; | 592 | padding: 2px 5px; |
| 592 | } | 593 | } |
| 593 | 594 | ||
| 594 | .aside #choice-illustration li .content .illustration-list .footer-bar .footer-pagination:hover { | 595 | .aside #choice-illustration li .content .illustration-list .footer-bar .footer-pagination:hover { |
| 595 | background: #999999; | 596 | background: #999999; |
| 596 | } | 597 | } |
| 597 | 598 | ||
| 599 | #btn-choose-image { | ||
| 600 | background: #ff0f00; | ||
| 601 | cursor: pointer; | ||
| 602 | margin: 10px 0px; | ||
| 603 | padding: 0 10px; | ||
| 604 | color: #FFF; | ||
| 605 | font-size: 12px; | ||
| 606 | } | ||
| 598 | 607 | ||
| 608 | #btn-choose-image:hover { | ||
| 609 | background: #f8aeae; | ||
| 610 | } | ||
| 611 | |||
| 612 | .aside #choice-image li .content { | ||
| 613 | margin: 0 10px; | ||
| 614 | padding: 10px 0; | ||
| 615 | } | ||
| 616 | |||
| 617 | .aside #choice-image li .content .small-text { | ||
| 618 | font-size:10px; | ||
| 619 | margin-bottom: 10px; | ||
| 620 | } | ||
| 621 | |||
| 622 | .aside #choice-image { | ||
| 623 | font-size: 13px; | ||
| 624 | } | ||
| 625 | |||
| 626 | .aside #imgLoader{ | ||
| 627 | display: none; | ||
| 628 | } | ||
| 629 | |||
| 630 | .aside #choice-image li .content .list-images { | ||
| 631 | height: 300px; | ||
| 632 | background: #FFF; | ||
| 633 | border: 1px solid #DDD; | ||
| 634 | } | ||
| 599 | 635 | ||
| 600 | /*Design content*/ | 636 | /*Design content*/ |
| 601 | .tshirt-design-container{ | 637 | .tshirt-design-container{ |
| 602 | position: relative; | 638 | position: relative; |
| 603 | } | 639 | } |
| 604 | .tshirt-design-container .design-content{ | 640 | .tshirt-design-container .design-content{ |
| 605 | padding: 10px 30px 10px 15px; | 641 | padding: 10px 30px 10px 15px; |
| 606 | } | 642 | } |
| 607 | .tshirt-design-container .design-content .content{ | 643 | .tshirt-design-container .design-content .content{ |
| 608 | width: 100%; | 644 | width: 100%; |
| 609 | min-height: 650px; | 645 | min-height: 650px; |
| 610 | background-color: #f0efea; | 646 | background-color: #f0efea; |
| 611 | padding: 40px 40px; | 647 | padding: 40px 40px; |
| 612 | height: 100%; | 648 | height: 100%; |
| 613 | } | 649 | } |
| 614 | .tshirt-design-container .design-content .content .selection-design{ | 650 | .tshirt-design-container .design-content .content .selection-design{ |
| 615 | border: 1px solid #ff0000; | 651 | border: 1px solid #ff0000; |
| 616 | width: 100%; | 652 | width: 100%; |
| 617 | height: 620px; | 653 | height: 620px; |
| 618 | } | 654 | } |
| 619 | .tshirt-design-container .agree-design{ | 655 | .tshirt-design-container .agree-design{ |
| 620 | position: absolute; | 656 | position: absolute; |
| 621 | right: -16px; | 657 | right: -16px; |
| 622 | top: 40%; | 658 | top: 40%; |
| 623 | } | 659 | } |
| 624 | .tshirt-design-container .trash-design{ | 660 | .tshirt-design-container .trash-design{ |
| 625 | position: absolute; | 661 | position: absolute; |
| 626 | right: 5px; | 662 | right: 5px; |
| 627 | bottom: 0; | 663 | bottom: 0; |
| 628 | } | 664 | } |
| 629 | 665 | ||
| 630 | 666 | ||
| 631 | /*FOOTER*/ | 667 | /*FOOTER*/ |
| 632 | footer{ | 668 | footer{ |
| 633 | background-color: #333333; | 669 | background-color: #333333; |
| 634 | } | 670 | } |
| 635 | footer ul.nav-footer{ | 671 | footer ul.nav-footer{ |
| 636 | padding-left: 0; | 672 | padding-left: 0; |
| 637 | list-style: none; | 673 | list-style: none; |
| 638 | } | 674 | } |
| 639 | footer ul.nav-footer li{ | 675 | footer ul.nav-footer li{ |
| 640 | float: left; | 676 | float: left; |
| 641 | padding: 3px 10px; | 677 | padding: 3px 10px; |
| 642 | border-right: 1px dotted #ffffff; | 678 | border-right: 1px dotted #ffffff; |
| 643 | 679 | ||
| 644 | } | 680 | } |
| 645 | footer ul.nav-footer li a{ | 681 | footer ul.nav-footer li a{ |
| 646 | color: #ffffff; | 682 | color: #ffffff; |
| 647 | font-size: 11px; | 683 | font-size: 11px; |
| 648 | } | 684 | } |
| 649 | /* Customize container */ | 685 | /* Customize container */ |
| 650 | @media (min-width: 768px) { | 686 | @media (min-width: 768px) { |
| 651 | .container { | 687 | .container { |
| 652 | /*max-width: 730px;*/ | 688 | /*max-width: 730px;*/ |
| 653 | } | 689 | } |
| 654 | } | 690 | } |
| 655 | 691 | ||
| 656 | /* Responsive: Portrait tablets and up */ | 692 | /* Responsive: Portrait tablets and up */ |
| 657 | @media screen and (min-width: 768px) { | 693 | @media screen and (min-width: 768px) { |
| 658 | /* Remove the padding we set earlier */ | 694 | /* Remove the padding we set earlier */ |
| 659 | 695 |
app/views/design_part/image.html
| 1 | <li> | 1 | <li> |
| 2 | <div class="title"> | 2 | <div class="title"> |
| 3 | <!--<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>--> | 3 | <!--<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>--> |
| 4 | イラスト・イメージ選択 | 4 | 自分の画像・写真 |
| 5 | </div> | 5 | </div> |
| 6 | <div class="content clearfix"> | 6 | <div class="content clearfix"> |
| 7 | 7 | <input type="file" id="imgLoader" onchange="angular.element(this).scope().chooseImage(event)"> | |
| 8 | <div id="btn-choose-image" onclick="$('#imgLoader').click()">> ファイルを選択してアップロード</div> | ||
| 9 | <div class="small-text">ファイルサイズ5MBまで(JPEG、PNG)</div> | ||
| 10 | <div>アップ済み画像・写真リスト</div> | ||
| 11 | <div class="list-images"></div> | ||
| 8 | </div> | 12 | </div> |
| 9 | </li> | 13 | </li> |
| 14 | |||
| 10 | <li> | 15 | <li> |
| 11 | <div class="title"> | 16 | <div class="title"> |
| 12 | <!--<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>--> | 17 | <!--<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>--> |
| 13 | カラー変更 | 18 | カラー変更 |
| 14 | <div class="pull-right">元の色に戻す</div> | 19 | <div class="pull-right">元の色に戻す</div> |
| 15 | </div> | 20 | </div> |
| 16 | <div class="content clearfix"> | 21 | <div class="content clearfix"> |
| 17 | 22 | <div class="color-patterns"> | |
| 23 | |||
| 24 | </div> | ||
| 18 | </div> | 25 | </div> |
| 19 | </li> | 26 | </li> |
| 27 | |||
| 20 | <li> | 28 | <li> |
| 21 | <div class="title"> | 29 | <div class="title"> |
| 22 | <!--<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>--> | 30 | <!--<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>--> |
| 23 | 重ね順変更 | 31 | 重ね順変更 |
| 24 | </div> | 32 | </div> |
| 25 | <div class="content clearfix"> | 33 | <div class="content clearfix"> |
| 26 | 34 | <div class="col-xs-3 layer-item" ng-click="layerProcess(1)"> | |
| 35 | <img src="images/layer-icon-1.png"/> | ||
| 36 | <div>前面へ</div> | ||
| 37 | </div> | ||
| 38 | <div class="col-xs-3 layer-item" ng-click="layerProcess(2)"> | ||
| 39 | <img src="images/layer-icon-2.png"/> | ||
| 40 | <div>背面へ</div> | ||
| 41 | </div> | ||
| 42 | <div class="col-xs-3 layer-item" ng-click="layerProcess(3)"> | ||
| 43 | <img src="images/layer-icon-3.png"/> | ||
| 44 | <div>最前面へ</div> | ||
| 45 | </div> | ||
| 46 | <div class="col-xs-3 layer-item" ng-click="layerProcess(4)"> | ||
| 47 | <img src="images/layer-icon-4.png"/> | ||
| 48 | <div>最前面へ</div> | ||
| 49 | </div> | ||
| 27 | </div> | 50 | </div> |
| 28 | </li> | 51 | </li> |