File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ module.exports = function(grunt) {
8
8
const supportedFilenames = supportedCountries . map ( country => `${ country . iso2 } .svg` ) . sort ( ) ;
9
9
const done = this . async ( ) ;
10
10
11
- const TARGET_WIDTH = 16 ;
11
+ // customise this number to change the size of the flags (NOTE: flags are 4x3 ratio)
12
12
const TARGET_HEIGHT = 12 ;
13
+
14
+ const TARGET_WIDTH = ( TARGET_HEIGHT / 3 ) * 4 ;
13
15
const FLAG_MARGIN = 0 ;
14
16
15
17
const specialCases = {
@@ -104,15 +106,15 @@ module.exports = function(grunt) {
104
106
105
107
// Generate SCSS content
106
108
outputFileContent += fileWarning + "\n\n" ;
107
-
109
+
108
110
outputFileContent += `$flags-sprite-1x: (\n` ;
109
111
outputFileContent += ` height: ${ maxHeight } px,\n` ;
110
112
outputFileContent += ` width: ${ totalWidth } px,\n` ;
111
113
outputFileContent += ");\n\n" ;
112
114
113
115
outputFileContent += `$flag-width: ${ TARGET_WIDTH } px;\n\n` ;
114
116
outputFileContent += `$flag-height: ${ TARGET_HEIGHT } px;\n\n` ;
115
-
117
+
116
118
outputFileContent += flagsMetadata + "\n\n" ;
117
119
outputFileContent += fileWarning + "\n" ;
118
120
You can’t perform that action at this time.
0 commit comments