Styleguide icon indicating copy to clipboard operation
Styleguide copied to clipboard

Add scss which is not for variables.

Open hackhackhackhack opened this issue 8 years ago • 5 comments

Hello. I'm tring to add scss files( like "Styleguide/templates/scss/main.scss" in this repo ). But I can't find the way. Does anyone knows solution? Thanks.

hackhackhackhack avatar Jul 11 '16 08:07 hackhackhackhack

@hackhackhackhack can you provide more details? What error do you get? What do you want to achieve?

VaclovasV avatar Jul 11 '16 10:07 VaclovasV

@VaclovasV Thanks for your reply. It is not error. I want to scrape scss file's'.

I can scrape scss file for variables from config.txt. It's perfect. But I can not find how to scrape another scss file for import, mixin or just style. like below


another.scss


@import 'core/normalize'; @import 'core/variables'; @import 'core/mixins';

%font-icon-style { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font: { family: 'FontAwesome'; weight: normal; style: normal; } text-rendering: auto; }

.row { @extend .clearfix; margin: 0 $grid-gutter/-2; }

.column, .columns { box-sizing: border-box; float: left; padding: 0 $grid-gutter/2; }


I just want to scrape this another.scss for styling. Thanx!

hackhackhackhack avatar Jul 11 '16 21:07 hackhackhackhack

I don't understand your question. What do you want to scrape in that file? You can scrape only variables for typography and colors. What are you trying to achieve by that?

miezis avatar Jul 23 '16 20:07 miezis

I think @hackhackhackhack just wants those styles to be available to use when creating the snippets. Is that correct @hackhackhackhack ? If so, then you just need to compile the Sass and then link to you CSS files in the template.html file.

AshleyJBartlett avatar Aug 19 '16 14:08 AshleyJBartlett

@miezis Thanks for your reply 👍 I thought I want to use sass files to write styles for snipet.

@hackhackhackhack Right! Finally, I could do that with customizing gulp task. Thank you!

& I'm making a short article about this customization. I'll share it, so wait a bit to close here :)

hackhackhackhack avatar Aug 19 '16 15:08 hackhackhackhack