Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 1f1beda

Browse files
author
Nick Litwin
committed
Move svg code to different branch
1 parent 615a721 commit 1f1beda

File tree

3 files changed

+2
-53
lines changed

3 files changed

+2
-53
lines changed

app/index.jade

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ html
7979
//- endinject
8080
// endbuild
8181
82-
// SVG Sprite
83-
8482
body(ng-app="topcoder", ng-controller="TopcoderController as main", ng-class="{'menu-visible': main.menuVisible}", ng-strict-di)
8583

8684
#header(ui-view="header")

assets/css/topcoder.scss

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,9 @@
22
@import 'topcoder-styles';
33
@include glyphicons-halflings;
44

5-
// Resets and top level container stylings
6-
html {
7-
min-height: 100%;
8-
height: 100%;
9-
box-sizing: border-box;
10-
}
11-
12-
*, *:before, *:after {
13-
margin: 0;
14-
box-sizing: inherit;
15-
}
16-
175
body {
186
@include source-sans-regular;
197
background-color: $ui-page-gray;
20-
height: 100%;
218

229
> svg {
2310
display: none;
@@ -64,11 +51,6 @@ body {
6451
}
6552
}
6653

67-
// Styles for elements used across modules
68-
a {
69-
cursor: pointer;
70-
}
71-
7254
// Country dropdown styles
7355
.angucomplete-highlight {
7456
color: $black;
@@ -80,7 +62,6 @@ a {
8062
max-height: 250px;
8163
}
8264

83-
8465
// Section loading and form styles
8566
.section-loading {
8667
width: 100%;

gulpfile.js

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,6 @@ gulp.task('dev-fonts', ['fonts'], function() {
7676
.pipe(gulp.dest(config.build + 'styles/fonts'));
7777
})
7878

79-
gulp.task('svg-sprite', ['clean-images'], function() {
80-
log('Compiling svgs into sprite');
81-
82-
return gulp
83-
.src('node_modules/tc-ui-kit/icons/svg/*.svg')
84-
.pipe($.plumber())
85-
.pipe($.svgSprite({
86-
log: 'verbose',
87-
mode: { stack: true, inline: true }
88-
}))
89-
.pipe(gulp.dest(config.temp + 'images'));
90-
});
91-
9279
gulp.task('images', ['clean-images'], function() {
9380
log('Copying and compressing the images');
9481

@@ -204,23 +191,6 @@ gulp.task('inject', ['wiredep', 'styles', 'templatecache'], function() {
204191
.pipe(gulp.dest(config.app));
205192
});
206193

207-
gulp.task('insert-svg-sprite', ['jade', 'svg-sprite'], function() {
208-
log('Inserting svg sprite into index.html');
209-
210-
return gulp
211-
.src(config.indexHtml)
212-
.pipe($.replaceTask({
213-
patterns: [
214-
{
215-
match: '<!-- SVG Sprite -->',
216-
replacement: fs.readFileSync(config.temp + 'images/stack/svg/sprite.stack.svg', 'utf8')
217-
}
218-
],
219-
usePrefix: false
220-
}))
221-
.pipe(gulp.dest(config.temp))
222-
});
223-
224194
gulp.task('optimize', ['inject', 'test', 'ngConstants', 'images'], function() {
225195
log('Optimizing the JavaScript, CSS, and HTML');
226196

@@ -269,7 +239,7 @@ gulp.task('optimize', ['inject', 'test', 'ngConstants', 'images'], function() {
269239
.pipe(gulp.dest(config.build));
270240
});
271241

272-
gulp.task('build1', ['optimize', 'dev-fonts', 'insert-svg-sprite'], function() {
242+
gulp.task('build1', ['optimize', 'dev-fonts'], function() {
273243
log('Building everything');
274244

275245
var msg = {
@@ -311,7 +281,7 @@ gulp.task('build-specs', ['templatecache', 'ngConstants'], function() {
311281
.pipe(gulp.dest(config.app));
312282
});
313283

314-
gulp.task('serve', ['inject', 'ngConstants', 'svg-sprite', 'insert-svg-sprite'], function() {
284+
gulp.task('serve', ['inject', 'ngConstants'], function() {
315285

316286
gulp.watch(config.sass, ['styles'])
317287
.on('change', function(event) { changeEvent(event); });

0 commit comments

Comments
 (0)