Changeset 1693924
- Timestamp:
- 07/10/2017 05:42:17 PM (9 years ago)
- Location:
- sc-gridsystem/trunk
- Files:
-
- 9 edited
-
README.md (modified) (1 diff)
-
css/sc-gridsystem.css (modified) (1 diff)
-
functions/shortcode.php (modified) (1 diff)
-
index.php (modified) (1 diff)
-
readme.txt (modified) (5 diffs)
-
sass/sc-gridsystem.scss (modified) (3 diffs)
-
src/Gruntfile.js (modified) (4 diffs)
-
src/config.rb (modified) (1 diff)
-
src/package.json (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sc-gridsystem/trunk/README.md
r1159963 r1693924 1 # SC Grid System 1 # SC Grid System 2.0 2 2 #### Made with SASS 3 3 4 A WordPress plugin where you can manage column sizes with shortcodes.5 It is a 1 2 columns Grid System (from 1 to 12, where 12 is 100% width)4 A "just add water" WordPress plugin in which you can manage column sizes with shortcodes 5 It is a 10, 12 and 16 columns Grid System 6 6 7 7 8 ## To specify the column size of your element, just follow the exemple bellow8 ## To specify the column size of your element, just follow the exemples bellow 9 9 10 10 ```css 11 [ sc_gs_col_6]11 [6_of_12] 12 12 {{content}} 13 [/ sc_gs_col_6]14 /* If you want to use the 6-column grid, for example*/13 [/6_of_12] 14 /* If you want to use 6 columns in the 12 columns grid system */ 15 15 16 [ sc_gs_col_12]16 [12_of_16] 17 17 {{content}} 18 [/ sc_gs_col_12]19 /* If you want to use the 12-column grid, for example*/18 [/col_12_of_16] 19 /* If you want to use 12 columns in the 16 columns grid system */ 20 20 21 21 /* Pattern */ 22 [ sc_gs_col_{n}]22 [{n}_of_{x}] 23 23 {{content}} 24 [/sc_gs_col_{n}] 25 /* Where {n} is your column size from 1 to 12 and {{content}} could be whatever you want to show inside the column element */ 24 [/{n}_of_{x}] 25 /* 26 {n} being the column size from 1 to {x} 27 {x} being the amount of columns for each line (10, 12 or 16) 28 {{content}} could be whatever you want to show inside the column element 29 */ 26 30 ``` 31 32 ### Download from WordPress plugins repository 33 [SC GridSystem - You can download from the WordPress Plugins Repository](https://wordpress.org/plugins/sc-gridsystem/) 27 34 28 35 -
sc-gridsystem/trunk/css/sc-gridsystem.css
r1159965 r1693924 2 2 * ------------------------------------------------------- 3 3 * Project: Sergio Costa GridSystem with ShortCode 4 * Version: 1.0.04 * Version: 2.0.0 5 5 * 6 6 * Author: Sergio Costa 7 * URL: http:// sergiocosta.net.br7 * URL: http://republicainterativa.com.br 8 8 * Contact: sergio.costa@outlook.com 9 9 * 10 *-------------------------------------------------------- */.sc-gs-col{display:table;padding:0px 15px;float:left}.sc-gs-1 {width:8.33333%}.sc-gs-2{width:16.66667%}.sc-gs-3{width:25.0%}.sc-gs-4{width:33.33333%}.sc-gs-5{width:41.66667%}.sc-gs-6{width:50.0%}.sc-gs-7{width:58.33333%}.sc-gs-8{width:66.66667%}.sc-gs-9{width:75.0%}.sc-gs-10{width:83.33333%}.sc-gs-11{width:91.66667%}.sc-gs-12{width:100.0%}@media only screen and (max-width: 767px){.sc-gs-1{width:100%}.sc-gs-2{width:100%}.sc-gs-3{width:100%}.sc-gs-4{width:100%}.sc-gs-5{width:100%}.sc-gs-6{width:100%}.sc-gs-7{width:100%}.sc-gs-8{width:100%}.sc-gs-9{width:100%}.sc-gs-10{width:100%}.sc-gs-11{width:100%}.sc-gs-12{width:100%}}10 *-------------------------------------------------------- */.sc-gs-col{display:table;padding:0px 15px;float:left}.sc-gs-10-1{width:10%}.sc-gs-10-2{width:20%}.sc-gs-10-3{width:30%}.sc-gs-10-4{width:40%}.sc-gs-10-5{width:50%}.sc-gs-10-6{width:60%}.sc-gs-10-7{width:70%}.sc-gs-10-8{width:80%}.sc-gs-10-9{width:90%}.sc-gs-10-10{width:100%}.sc-gs-12-1{width:8.33333%}.sc-gs-12-2{width:16.66667%}.sc-gs-12-3{width:25.0%}.sc-gs-12-4{width:33.33333%}.sc-gs-12-5{width:41.66667%}.sc-gs-12-6{width:50.0%}.sc-gs-12-7{width:58.33333%}.sc-gs-12-8{width:66.66667%}.sc-gs-12-9{width:75.0%}.sc-gs-12-10{width:83.33333%}.sc-gs-12-11{width:91.66667%}.sc-gs-12-12{width:100.0%}.sc-gs-16-1{width:6.25%}.sc-gs-16-2{width:12.5%}.sc-gs-16-3{width:18.75%}.sc-gs-16-4{width:25%}.sc-gs-16-5{width:31.25%}.sc-gs-16-6{width:37.5%}.sc-gs-16-7{width:43.75%}.sc-gs-16-8{width:50%}.sc-gs-16-9{width:56.25%}.sc-gs-16-10{width:62.5%}.sc-gs-16-11{width:68.75%}.sc-gs-16-12{width:75%}.sc-gs-16-13{width:81.25%}.sc-gs-16-14{width:87.5%}.sc-gs-16-15{width:93.75%}.sc-gs-16-16{width:100%}@media only screen and (max-width: 767px){.sc-gs-col{width:100% !important}} -
sc-gridsystem/trunk/functions/shortcode.php
r1159963 r1693924 1 1 <?php 2 2 3 // Add Shortcode to display 12 column grid 4 function sc_gs_12( $atts, $content = null ) { 5 return '<div class="sc-gs-col sc-gs-12">' . $content . '</div>'; 6 } 7 add_shortcode( 'sc_gs_12', 'sc_gs_12' ); 8 9 // Add Shortcode to display 11 column grid 10 function sc_gs_11( $atts, $content = null ) { 11 return '<div class="sc-gs-col sc-gs-11">' . $content . '</div>'; 12 } 13 add_shortcode( 'sc_gs_11', 'sc_gs_11' ); 14 15 // Add Shortcode to display 10 column grid 16 function sc_gs_10( $atts, $content = null ) { 17 return '<div class="sc-gs-col sc-gs-12">' . $content . '</div>'; 18 } 19 add_shortcode( 'sc_gs_10', 'sc_gs_10' ); 20 21 // Add Shortcode to display 9 column grid 22 function sc_gs_9( $atts, $content = null ) { 23 return '<div class="sc-gs-col sc-gs-9">' . $content . '</div>'; 24 } 25 add_shortcode( 'sc_gs_9', 'sc_gs_9' ); 26 27 // Add Shortcode to display 8 column grid 28 function sc_gs_8( $atts, $content = null ) { 29 return '<div class="sc-gs-col sc-gs-8">' . $content . '</div>'; 30 } 31 add_shortcode( 'sc_gs_8', 'sc_gs_8' ); 32 33 // Add Shortcode to display 7 column grid 34 function sc_gs_7( $atts, $content = null ) { 35 return '<div class="sc-gs-col sc-gs-7">' . $content . '</div>'; 36 } 37 add_shortcode( 'sc_gs_7', 'sc_gs_7' ); 38 39 // Add Shortcode to display 6 column grid 40 function sc_gs_6( $atts, $content = null ) { 41 return '<div class="sc-gs-col sc-gs-6">' . $content . '</div>'; 42 } 43 add_shortcode( 'sc_gs_6', 'sc_gs_6' ); 44 45 // Add Shortcode to display 5 column grid 46 function sc_gs_5( $atts, $content = null ) { 47 return '<div class="sc-gs-col sc-gs-5">' . $content . '</div>'; 48 } 49 add_shortcode( 'sc_gs_5', 'sc_gs_5' ); 50 51 // Add Shortcode to display 4 column grid 52 function sc_gs_4( $atts, $content = null ) { 53 return '<div class="sc-gs-col sc-gs-4">' . $content . '</div>'; 54 } 55 add_shortcode( 'sc_gs_4', 'sc_gs_4' ); 56 57 // Add Shortcode to display 3 column grid 58 function sc_gs_3( $atts, $content = null ) { 59 return '<div class="sc-gs-col sc-gs-3">' . $content . '</div>'; 60 } 61 add_shortcode( 'sc_gs_3', 'sc_gs_3' ); 62 63 // Add Shortcode to display 2 column grid 64 function sc_gs_2( $atts, $content = null ) { 65 return '<div class="sc-gs-col sc-gs-2">' . $content . '</div>'; 66 } 67 add_shortcode( 'sc_gs_2', 'sc_gs_2' ); 68 69 // Add Shortcode to display 1 column grid 70 function sc_gs_1( $atts, $content = null ) { 71 return '<div class="sc-gs-col sc-gs-1">' . $content . '</div>'; 72 } 73 add_shortcode( 'sc_gs_1', 'sc_gs_1' ); 74 3 /** 4 * @param $atts 5 * @param null $content 6 * @return string 7 * @description 10 column grid system shortcode 8 */ 9 // Add Shortcode to display 10 of 10 column grid 10 function sc_gs_10_of_10( $atts, $content = null ) { 11 return '<div class="sc-gs-col sc-gs-10-10">' . $content . '</div>'; 12 } 13 add_shortcode( '10_of_10', 'sc_gs_10_of_10' ); 14 15 // Add Shortcode to display 9 of 10 column grid 16 function sc_gs_9_of_10( $atts, $content = null ) { 17 return '<div class="sc-gs-col sc-gs-10-9">' . $content . '</div>'; 18 } 19 add_shortcode( '9_of_10', 'sc_gs_9_of_10' ); 20 21 // Add Shortcode to display 8 of 10 column grid 22 function sc_gs_8_of_10( $atts, $content = null ) { 23 return '<div class="sc-gs-col sc-gs-10-8">' . $content . '</div>'; 24 } 25 add_shortcode( '8_of_10', 'sc_gs_8_of_10' ); 26 27 // Add Shortcode to display 7 of 10 column grid 28 function sc_gs_7_of_10( $atts, $content = null ) { 29 return '<div class="sc-gs-col sc-gs-10-7">' . $content . '</div>'; 30 } 31 add_shortcode( '7_of_10', 'sc_gs_7_of_10' ); 32 33 // Add Shortcode to display 6 of 10 column grid 34 function sc_gs_6_of_10( $atts, $content = null ) { 35 return '<div class="sc-gs-col sc-gs-10-6">' . $content . '</div>'; 36 } 37 add_shortcode( '6_of_10', 'sc_gs_6_of_10' ); 38 39 // Add Shortcode to display 5 of 10 column grid 40 function sc_gs_5_of_10( $atts, $content = null ) { 41 return '<div class="sc-gs-col sc-gs-10-5">' . $content . '</div>'; 42 } 43 add_shortcode( '5_of_10', 'sc_gs_5_of_10' ); 44 45 // Add Shortcode to display 4 of 10 column grid 46 function sc_gs_4_of_10( $atts, $content = null ) { 47 return '<div class="sc-gs-col sc-gs-10-4">' . $content . '</div>'; 48 } 49 add_shortcode( '4_of_10', 'sc_gs_4_of_10' ); 50 51 // Add Shortcode to display 3 of 10 column grid 52 function sc_gs_3_of_10( $atts, $content = null ) { 53 return '<div class="sc-gs-col sc-gs-10-3">' . $content . '</div>'; 54 } 55 add_shortcode( '3_of_10', 'sc_gs_3_of_10' ); 56 57 // Add Shortcode to display 2 of 10 column grid 58 function sc_gs_2_of_10( $atts, $content = null ) { 59 return '<div class="sc-gs-col sc-gs-10-2">' . $content . '</div>'; 60 } 61 add_shortcode( '2_of_10', 'sc_gs_2_of_10' ); 62 63 // Add Shortcode to display 1 of 10 column grid 64 function sc_gs_1_of_10( $atts, $content = null ) { 65 return '<div class="sc-gs-col sc-gs-10-1">' . $content . '</div>'; 66 } 67 add_shortcode( '1_of_10', 'sc_gs_1_of_10' ); 68 69 70 /** 71 * @param $atts 72 * @param null $content 73 * @return string 74 * @description 12 column grid system shortcode 75 */ 76 // Add Shortcode to display 12 of 12 column grid 77 function sc_gs_12_of_12( $atts, $content = null ) { 78 return '<div class="sc-gs-col sc-gs-12-12">' . $content . '</div>'; 79 } 80 add_shortcode( '12_of_12', 'sc_gs_12_of_12' ); 81 82 // Add Shortcode to display 11 of 12 column grid 83 function sc_gs_11_of_12( $atts, $content = null ) { 84 return '<div class="sc-gs-col sc-gs-12-11">' . $content . '</div>'; 85 } 86 add_shortcode( '11_of_12', 'sc_gs_11_of_12' ); 87 88 // Add Shortcode to display 10 of 12 column grid 89 function sc_gs_10_of_12( $atts, $content = null ) { 90 return '<div class="sc-gs-col sc-gs-12-12">' . $content . '</div>'; 91 } 92 add_shortcode( '10_of_12', 'sc_gs_10_of_12' ); 93 94 // Add Shortcode to display 9 of 12 column grid 95 function sc_gs_9_of_12( $atts, $content = null ) { 96 return '<div class="sc-gs-col sc-gs-12-9">' . $content . '</div>'; 97 } 98 add_shortcode( '9_of_12', 'sc_gs_9_of_12' ); 99 100 // Add Shortcode to display 8 of 12 column grid 101 function sc_gs_8_of_12( $atts, $content = null ) { 102 return '<div class="sc-gs-col sc-gs-12-8">' . $content . '</div>'; 103 } 104 add_shortcode( '8_of_12', 'sc_gs_8_of_12' ); 105 106 // Add Shortcode to display 7 of 12 column grid 107 function sc_gs_7_of_12( $atts, $content = null ) { 108 return '<div class="sc-gs-col sc-gs-12-7">' . $content . '</div>'; 109 } 110 add_shortcode( '7_of_12', 'sc_gs_7_of_12' ); 111 112 // Add Shortcode to display 6 of 12 column grid 113 function sc_gs_6_of_12( $atts, $content = null ) { 114 return '<div class="sc-gs-col sc-gs-12-6">' . $content . '</div>'; 115 } 116 add_shortcode( '6_of_12', 'sc_gs_6_of_12' ); 117 118 // Add Shortcode to display 5 of 12 column grid 119 function sc_gs_5_of_12( $atts, $content = null ) { 120 return '<div class="sc-gs-col sc-gs-12-5">' . $content . '</div>'; 121 } 122 add_shortcode( '5_of_12', 'sc_gs_5_of_12' ); 123 124 // Add Shortcode to display 4 of 12 column grid 125 function sc_gs_4_of_12( $atts, $content = null ) { 126 return '<div class="sc-gs-col sc-gs-12-4">' . $content . '</div>'; 127 } 128 add_shortcode( '4_of_12', 'sc_gs_4_of_12' ); 129 130 // Add Shortcode to display 3 of 12 column grid 131 function sc_gs_3_of_12( $atts, $content = null ) { 132 return '<div class="sc-gs-col sc-gs-12-3">' . $content . '</div>'; 133 } 134 add_shortcode( '3_of_12', 'sc_gs_3_of_12' ); 135 136 // Add Shortcode to display 2 of 12 column grid 137 function sc_gs_2_of_12( $atts, $content = null ) { 138 return '<div class="sc-gs-col sc-gs-12-2">' . $content . '</div>'; 139 } 140 add_shortcode( '2_of_12', 'sc_gs_2_of_12' ); 141 142 // Add Shortcode to display 1 of 12 column grid 143 function sc_gs_1_of_12( $atts, $content = null ) { 144 return '<div class="sc-gs-col sc-gs-12-1">' . $content . '</div>'; 145 } 146 add_shortcode( '1_of_12', 'sc_gs_1_of_12' ); 147 148 149 /** 150 * @param $atts 151 * @param null $content 152 * @return string 153 * @description 16 column grid system shortcode 154 */ 155 // Add Shortcode to display 16 of 16 column grid 156 function sc_gs_16_of_16( $atts, $content = null ) { 157 return '<div class="sc-gs-col sc-gs-16-16">' . $content . '</div>'; 158 } 159 add_shortcode( '16_of_16', 'sc_gs_16_of_16' ); 160 161 // Add Shortcode to display 15 of 16 column grid 162 function sc_gs_15_of_16( $atts, $content = null ) { 163 return '<div class="sc-gs-col sc-gs-16-15">' . $content . '</div>'; 164 } 165 add_shortcode( '15_of_16', 'sc_gs_15_of_16' ); 166 167 // Add Shortcode to display 14 of 16 column grid 168 function sc_gs_14_of_16( $atts, $content = null ) { 169 return '<div class="sc-gs-col sc-gs-16-14">' . $content . '</div>'; 170 } 171 add_shortcode( '14_of_16', 'sc_gs_14_of_16' ); 172 173 // Add Shortcode to display 13 of 16 column grid 174 function sc_gs_13_of_16( $atts, $content = null ) { 175 return '<div class="sc-gs-col sc-gs-16-13">' . $content . '</div>'; 176 } 177 add_shortcode( '13_of_16', 'sc_gs_13_of_16' ); 178 179 // Add Shortcode to display 12 of 16 column grid 180 function sc_gs_12_of_16( $atts, $content = null ) { 181 return '<div class="sc-gs-col sc-gs-16-12">' . $content . '</div>'; 182 } 183 add_shortcode( '12_of_16', 'sc_gs_12_of_16' ); 184 185 // Add Shortcode to display 11 of 16 column grid 186 function sc_gs_11_of_16( $atts, $content = null ) { 187 return '<div class="sc-gs-col sc-gs-16-11">' . $content . '</div>'; 188 } 189 add_shortcode( '11_of_16', 'sc_gs_11_of_16' ); 190 191 // Add Shortcode to display 10 of 16 column grid 192 function sc_gs_10_of_16( $atts, $content = null ) { 193 return '<div class="sc-gs-col sc-gs-16-12">' . $content . '</div>'; 194 } 195 add_shortcode( '10_of_16', 'sc_gs_10_of_16' ); 196 197 // Add Shortcode to display 9 of 16 column grid 198 function sc_gs_9_of_16( $atts, $content = null ) { 199 return '<div class="sc-gs-col sc-gs-16-9">' . $content . '</div>'; 200 } 201 add_shortcode( '9_of_16', 'sc_gs_9_of_16' ); 202 203 // Add Shortcode to display 8 of 16 column grid 204 function sc_gs_8_of_16( $atts, $content = null ) { 205 return '<div class="sc-gs-col sc-gs-16-8">' . $content . '</div>'; 206 } 207 add_shortcode( '8_of_16', 'sc_gs_8_of_16' ); 208 209 // Add Shortcode to display 7 of 16 column grid 210 function sc_gs_7_of_16( $atts, $content = null ) { 211 return '<div class="sc-gs-col sc-gs-16-7">' . $content . '</div>'; 212 } 213 add_shortcode( '7_of_16', 'sc_gs_7_of_16' ); 214 215 // Add Shortcode to display 6 of 16 column grid 216 function sc_gs_6_of_16( $atts, $content = null ) { 217 return '<div class="sc-gs-col sc-gs-16-6">' . $content . '</div>'; 218 } 219 add_shortcode( '6_of_16', 'sc_gs_6_of_16' ); 220 221 // Add Shortcode to display 5 of 16 column grid 222 function sc_gs_5_of_16( $atts, $content = null ) { 223 return '<div class="sc-gs-col sc-gs-16-5">' . $content . '</div>'; 224 } 225 add_shortcode( '5_of_16', 'sc_gs_5_of_16' ); 226 227 // Add Shortcode to display 4 of 16 column grid 228 function sc_gs_4_of_16( $atts, $content = null ) { 229 return '<div class="sc-gs-col sc-gs-16-4">' . $content . '</div>'; 230 } 231 add_shortcode( '4_of_16', 'sc_gs_4_of_16' ); 232 233 // Add Shortcode to display 3 of 16 column grid 234 function sc_gs_3_of_16( $atts, $content = null ) { 235 return '<div class="sc-gs-col sc-gs-16-3">' . $content . '</div>'; 236 } 237 add_shortcode( '3_of_16', 'sc_gs_3_of_16' ); 238 239 // Add Shortcode to display 2 of 16 column grid 240 function sc_gs_2_of_16( $atts, $content = null ) { 241 return '<div class="sc-gs-col sc-gs-16-2">' . $content . '</div>'; 242 } 243 add_shortcode( '2_of_16', 'sc_gs_2_of_16' ); 244 245 // Add Shortcode to display 1 of 16 column grid 246 function sc_gs_1_of_16( $atts, $content = null ) { 247 return '<div class="sc-gs-col sc-gs-16-1">' . $content . '</div>'; 248 } 249 add_shortcode( '1_of_16', 'sc_gs_1_of_16' ); 250 -
sc-gridsystem/trunk/index.php
r1159963 r1693924 4 4 * Plugin URI: https://profiles.wordpress.org/sergiuscosta 5 5 * Description: A simple GridSystem you could use with Shortcodes 6 * Version: 1.0.06 * Version: 2.0.0 7 7 * Author: Sergio Costa 8 * Author URI: http:// sergiocosta.net.br/8 * Author URI: http://republicainterativa.com.br/ 9 9 * Text Domain: scgs 10 10 * License: GPLv2 or later -
sc-gridsystem/trunk/readme.txt
r1164628 r1693924 1 1 === SC GridSystem === 2 2 Contributors: sergiuscosta 3 Donate link: http:// sergiocosta.net.br/3 Donate link: http://republicainterativa.com.br/ 4 4 Tags: gridsystem, grid, grid system, columns, shortcode 5 5 Requires at least: 3.0.1 6 Tested up to: 4. 27 Stable tag: 4. 26 Tested up to: 4.8 7 Stable tag: 4.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 14 15 15 A WordPress plugin where you can manage column sizes with shortcodes. 16 It is a 1 2 columns Grid System (from 1 to 12, where 12 is 100% width).16 It is a 10, 12 and 16 columns Grid System. 17 17 18 18 Made with SASS … … 22 22 1. Upload the folder `sc-gridsystem` to the `/wp-content/plugins/` directory 23 23 1. Activate the plugin through the 'Plugins' menu in WordPress 24 1. Place the shortcode '[ sc_gs_{n}]' (Where {n} is your column size from 1 to 12)24 1. Place the shortcode '[{n}_of_{x}]' ({n} being the column size and {x} is the grid system (10, 12 or 16)) 25 25 1. Add you content (could be whatever you want), right after opening the shortcode above 26 1. Close the column element by adding '[ /sc_gs_{n}]' at the end of the content you want to show inside the column element wherever you want, in your pages/posts26 1. Close the column element by adding '[{n}_of_{x}]' at the end of the content you want to show inside the column element wherever you want, in your pages/posts 27 27 1. Enjoy! 28 28 … … 31 31 = The plugin isn't working! What can I do? = 32 32 33 Make sure you wrote the shortcode correctly; 33 Make sure you wrote the shortcode correctly; 34 34 Make sure the plugin is active; 35 35 36 = If I found some problem, should I report you? = 36 = If I found some problem, should I report you? = 37 37 38 38 Yes, of course you should! Just email, me: sergio.costa@outlook.com ! Thank you! ;) … … 50 50 51 51 = 2.0 = 52 Soon 52 * 10 and 16 columns available -
sc-gridsystem/trunk/sass/sc-gridsystem.scss
r1159965 r1693924 2 2 * ------------------------------------------------------- 3 3 * Project: Sergio Costa GridSystem with ShortCode 4 * Version: 1.0.04 * Version: 2.0.0 5 5 * 6 6 * Author: Sergio Costa 7 * URL: http:// sergiocosta.net.br7 * URL: http://republicainterativa.com.br 8 8 * Contact: sergio.costa@outlook.com 9 9 * 10 10 *-------------------------------------------------------- */ 11 11 12 // column size 12 // column sizes 13 $sc-gs-size-g10: 10%; 13 14 $sc-gs-size-g12: 8.33333333%; 15 $sc-gs-size-g16: 6.25%; 14 16 15 17 // global grid rules … … 21 23 22 24 // define how big the columns are 25 @function sc-gs-size-g10($n) { 26 @return $n * $sc-gs-size-g10; 27 } 23 28 @function sc-gs-size-g12($n) { 24 @return $n * $sc-gs-size-g12; 29 @return $n * $sc-gs-size-g12; 30 } 31 @function sc-gs-size-g16($n) { 32 @return $n * $sc-gs-size-g16; 25 33 } 26 34 27 35 // outputs css for the columns 36 @for $i from 1 through 10 { 37 .sc-gs-10-#{$i} { 38 width: sc-gs-size-g10($i); 39 } 40 } 28 41 @for $i from 1 through 12 { 29 .sc-gs- #{$i} {42 .sc-gs-12-#{$i} { 30 43 width: sc-gs-size-g12($i); 44 } 45 } 46 @for $i from 1 through 16 { 47 .sc-gs-16-#{$i} { 48 width: sc-gs-size-g16($i); 31 49 } 32 50 } … … 34 52 // outputs responsive css 35 53 @media only screen and (max-width: 767px) { 36 @for $i from 1 through 12 { 37 .sc-gs-#{$i} { 38 width: 100%; 39 } 54 .sc-gs-col { 55 width: 100% !important; 40 56 } 41 57 } -
sc-gridsystem/trunk/src/Gruntfile.js
r1159963 r1693924 4 4 // 5 5 // Author: Sergio Costa 6 // URL: http://www. sergiocosta.net.br6 // URL: http://www.republicainterativa.com.br 7 7 // Contact: sergio.costa@outlook.com 8 8 // ------------------------------------------------------- … … 37 37 "<%= dirs.sass %>/{,*/}*.{scss,sass}" 38 38 ], 39 tasks: ["compass" , "notify:compass"]39 tasks: ["compass"] 40 40 } 41 41 }, … … 48 48 sassDir: '../sass', 49 49 cssDir: '../css', 50 environment: " development",50 environment: "production", 51 51 outputStyle: "compressed", 52 52 force: true, … … 54 54 } 55 55 } 56 },57 58 // Notify59 // Para instalar na pasta src do projeto: $ npm install grunt-notify --save-dev60 notify: {61 compass: {62 options: {63 title: "SASS - <%= pkg.title %>",64 message: "Compilado e minificado com sucesso!"65 }66 }67 56 }, 68 57 -
sc-gridsystem/trunk/src/config.rb
r1159963 r1693924 6 6 sass_dir = "../sass" 7 7 8 environment = : development8 environment = :production 9 9 output_style = :compressed 10 10 -
sc-gridsystem/trunk/src/package.json
r1159965 r1693924 9 9 "repository": { 10 10 "type": "git", 11 "url": "https://github.com/ zergiocosta/SC-GridSystem"11 "url": "https://github.com/republicainterativa/SC-GridSystem" 12 12 }, 13 13 "keywords": [ … … 22 22 "grunt-contrib-compass": "^0.8.0", 23 23 "grunt-contrib-watch": "^0.6.1", 24 "grunt-notify": "^0.3.0",25 24 "matchdep": "^0.3.0" 26 25 }
Note: See TracChangeset
for help on using the changeset viewer.