Skip to content

Commit f412a2e

Browse files
committed
removing styleguide-specific.css. now lives in individual starterkits
1 parent 3011fd2 commit f412a2e

File tree

8 files changed

+2
-188
lines changed

8 files changed

+2
-188
lines changed

composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
"dist": {
2929
"publicDir": [
3030
{ "*": "*" }
31-
],
32-
"sourceDir": [
33-
{ "styleguide/css/custom/*": "styleguide/css/*" }
3431
]
3532
},
3633
"config": {

dist/styleguide/css/custom/styleguide-specific.css

Lines changed: 0 additions & 59 deletions
This file was deleted.

dist/styleguide/css/custom/styleguide-specific.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/styleguide/js/patternlab-pattern.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ if (self != top) {
5757

5858
}
5959

60-
61-
6260
// watch the iframe source so that it can be sent back to everyone else.
6361
function receiveIframeMessage(event) {
6462

@@ -357,13 +355,6 @@ var panelsUtil = {
357355
// show the panel
358356
document.getElementById('sg-'+patternPartial+'-'+panelID+'-panel').style.display = 'flex';
359357

360-
/*
361-
if (codeViewer.copyOnInit) {
362-
codeViewer.selectCode();
363-
codeViewer.copyOnInit = false;
364-
}
365-
*/
366-
367358
}
368359

369360
};

dist/styleguide/js/patternlab-viewer.js

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -737,13 +737,6 @@ var panelsUtil = {
737737
// show the panel
738738
document.getElementById('sg-'+patternPartial+'-'+panelID+'-panel').style.display = 'flex';
739739

740-
/*
741-
if (codeViewer.copyOnInit) {
742-
codeViewer.selectCode();
743-
codeViewer.copyOnInit = false;
744-
}
745-
*/
746-
747740
}
748741

749742
};
@@ -1072,36 +1065,6 @@ var panelsViewer = {
10721065
// gather panels from plugins
10731066
Dispatcher.trigger('insertPanels', [templateRendered, patternPartial, iframePassback, switchText]);
10741067

1075-
},
1076-
1077-
/**
1078-
* select the some range to copy
1079-
*/
1080-
select: function(id) {
1081-
1082-
if ((modalViewer !== undefined) && (modalViewer.active)) {
1083-
selection = window.getSelection();
1084-
range = document.createRange();
1085-
range.selectNodeContents(document.getElementById(id));
1086-
selection.removeAllRanges();
1087-
selection.addRange(range);
1088-
}
1089-
1090-
},
1091-
1092-
/**
1093-
* clear any selection of code when swapping tabs or opening a new pattern
1094-
*/
1095-
clear: function() {
1096-
1097-
if ((modalViewer !== undefined) && modalViewer.active) {
1098-
if (window.getSelection().empty) {
1099-
window.getSelection().empty();
1100-
} else if (window.getSelection().removeAllRanges) {
1101-
window.getSelection().removeAllRanges();
1102-
}
1103-
}
1104-
11051068
}
11061069

11071070
};
@@ -1286,8 +1249,6 @@ if (self != top) {
12861249

12871250
}
12881251

1289-
1290-
12911252
// watch the iframe source so that it can be sent back to everyone else.
12921253
function receiveIframeMessage(event) {
12931254

dist/styleguide/js/patternlab-viewer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ gulp.task('clean:css-patternlab', function (cb) {
2727
return plugins.del(['dist/styleguide/css/*'],cb);
2828
});
2929

30-
gulp.task('clean:css-custom', function (cb) {
31-
return plugins.del(['dist/styleguide/css/custom/*'],cb);
32-
});
33-
3430
gulp.task('clean:fonts', function (cb) {
3531
return plugins.del(['dist/styleguide/fonts/*'],cb);
3632
});
@@ -76,16 +72,6 @@ gulp.task('build:css-patternlab', ['build:css-general'], function() {
7672
.pipe(copyPublic("styleguide/css"));
7773
});
7874

79-
gulp.task('build:css-custom', ['clean:css-custom'], function() {
80-
return plugins.rubySass('src/sass/styleguide-specific.scss', { style: 'expanded', "sourcemap=none": true })
81-
.pipe(plugins.autoprefixer({browsers: ['last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'android 4']}, {map: false }))
82-
.pipe(gulp.dest('dist/styleguide/css/custom'))
83-
.pipe(plugins.rename({suffix: '.min'}))
84-
.pipe(plugins.minifyCss())
85-
.pipe(gulp.dest('dist/styleguide/css/custom'))
86-
.pipe(copyPublic("styleguide/css/custom"));
87-
});
88-
8975
gulp.task('build:fonts', ['clean:fonts'], function() {
9076
return gulp.src('src/fonts/*')
9177
.pipe(gulp.dest('dist/styleguide/fonts'))
@@ -139,12 +125,11 @@ gulp.task('build:js-pattern', ['build:js-viewer'], function() {
139125
.pipe(copyPublic("styleguide/js"));
140126
});
141127

142-
gulp.task('default', ['build:bower', 'build:css-custom', 'build:css-patternlab', 'build:html', 'build:js-pattern'], function () {
128+
gulp.task('default', ['build:bower', 'build:css-patternlab', 'build:html', 'build:js-pattern'], function () {
143129
if (args.watch !== undefined) {
144130
gulp.watch(['src/bower_components/**/*'], ['build:bower']);
145131
gulp.watch(['src/css/prism-okaidia.css'],['build:css-general']);
146132
gulp.watch(['src/sass/styleguide.scss'], ['build:css-patternlab']);
147-
gulp.watch(['src/sass/styleguide-specific.scss'], ['build:css-custom']);
148133
gulp.watch(['src/html/*'], ['build:html']);
149134
gulp.watch(['src/js/*'], ['build:js-pattern']);
150135
}

src/sass/styleguide-specific.scss

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)