Use Jekyll native Sass/SCSS preprocessor
- Move .scss files to default `_sass` folder - Configure Sass/SCSS in `_config.yml` - Run .scss files through Autoprefixer - Remove unnecessary npm scripts for building CSS - Close #333
This commit is contained in:
_config.yml
_sass
_animations.scss_archive.scss_base.scss_buttons.scss_footer.scss_forms.scss_masthead.scss_mixins.scss_navigation.scss_notices.scss_page.scss_print.scss_reset.scss_sidebar.scss_syntax.scss_tables.scss_utilities.scss_variables.scss
vendor
breakpoint
_breakpoint.scss_context.scss_helpers.scss_legacy-settings.scss_no-query.scss_parsers.scss_respond-to.scss_settings.scss
parsers
font-awesome
_animated.scss_bordered-pulled.scss_core.scss_fixed-width.scss_font-awesome.scss_icons.scss_larger.scss_list.scss_mixins.scss_path.scss_rotated-flipped.scss_screen-reader.scss_stacked.scss_variables.scss
magnific-popup
susy
_su.scss_susy.scss_susyone.scss
susy
_su.scss
language
_susy.scss_susyone.scss
susy
_background.scss_bleed.scss_box-sizing.scss_breakpoint-plugin.scss_container.scss_context.scss_gallery.scss_grids.scss_gutters.scss_isolate.scss_margins.scss_padding.scss_rows.scss_settings.scss_span.scss_validation.scss
susyone
output
su
assets/css
package.json
71
_sass/vendor/breakpoint/_settings.scss
vendored
Normal file
71
_sass/vendor/breakpoint/_settings.scss
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
//////////////////////////////
|
||||
// Has Setting
|
||||
//////////////////////////////
|
||||
@function breakpoint-has($setting) {
|
||||
@if map-has-key($breakpoint, $setting) {
|
||||
@return true;
|
||||
}
|
||||
@else {
|
||||
@return false;
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// Get Settings
|
||||
//////////////////////////////
|
||||
@function breakpoint-get($setting) {
|
||||
@if breakpoint-has($setting) {
|
||||
@return map-get($breakpoint, $setting);
|
||||
}
|
||||
@else {
|
||||
@return map-get($Breakpoint-Settings, $setting);
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// Set Settings
|
||||
//////////////////////////////
|
||||
@function breakpoint-set($setting, $value) {
|
||||
@if (str-index($setting, '-') or str-index($setting, '_')) and str-index($setting, ' ') == null {
|
||||
@warn "Words in Breakpoint settings should be separated by spaces, not dashes or underscores. Please replace dashes and underscores between words with spaces. Settings will not work as expected until changed.";
|
||||
}
|
||||
$breakpoint: map-merge($breakpoint, ($setting: $value)) !global;
|
||||
@return true;
|
||||
}
|
||||
|
||||
@mixin breakpoint-change($setting, $value) {
|
||||
$breakpoint-change: breakpoint-set($setting, $value);
|
||||
}
|
||||
|
||||
@mixin breakpoint-set($setting, $value) {
|
||||
@include breakpoint-change($setting, $value);
|
||||
}
|
||||
|
||||
@mixin bkpt-change($setting, $value) {
|
||||
@include breakpoint-change($setting, $value);
|
||||
}
|
||||
@mixin bkpt-set($setting, $value) {
|
||||
@include breakpoint-change($setting, $value);
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// Remove Setting
|
||||
//////////////////////////////
|
||||
@function breakpoint-reset($settings...) {
|
||||
@if length($settings) == 1 {
|
||||
$settings: nth($settings, 1);
|
||||
}
|
||||
|
||||
@each $setting in $settings {
|
||||
$breakpoint: map-remove($breakpoint, $setting) !global;
|
||||
}
|
||||
@return true;
|
||||
}
|
||||
|
||||
@mixin breakpoint-reset($settings...) {
|
||||
$breakpoint-reset: breakpoint-reset($settings);
|
||||
}
|
||||
|
||||
@mixin bkpt-reset($settings...) {
|
||||
$breakpoint-reset: breakpoint-reset($settings);
|
||||
}
|
Reference in New Issue
Block a user