Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

reduce font size #1184

Closed
1 of 5 tasks
germayneng opened this issue Aug 16, 2017 · 4 comments
Closed
1 of 5 tasks

reduce font size #1184

germayneng opened this issue Aug 16, 2017 · 4 comments

Comments

@germayneng
Copy link

germayneng commented Aug 16, 2017

  • This is a question about using the theme.
  • This is a feature request.
  • I have updated all gems with bundle update.
  • I have tested locally with bundle exec jekyll build.
  • I believe this to be a bug with the theme --- not Jekyll, GitHub Pages or one of the bundled plugins.

Environment informations

i have searched for previous solution on reducing font size. Tried both methods but still the font did not change. For reference, my site is here:
https://github.com/germayneng/germayneng.github.io

I tried the reset.scss method

 @include border-box-sizing;

html {
  /* apply a natural box layout model to all elements */
  box-sizing: border-box;
  background-color: $background-color;
  font-size: 8px;

  @include breakpoint($medium) {
    font-size: 10px;
  }

  -webkit-text-size-adjust: 80%;
  -ms-text-size-adjust: 80%;
}

hope you can provide me a solution since the font is too huge. Ideally, i want to reduce the font size of posts. an example:
https://germayneng.github.io/Elastic_Net_Regularization.html

@mmistakes
Copy link
Owner

Editing the font-sizes in reset.scss is the right way. The reason it's not working for you is due to misconfiguration and the location of the CSS files.

Reference the documentation about structure and MM repo. Not sure why you moved _sass inside of assets/ but that needs to live at the root. Also assets/css/main.css shouldn't existed in your repo. That's the compiled stylesheet which is what the theme is using. That's why your changes aren't appearing.

Get rid of that and replace with assets/css/main.scss. If you make those two changes correctly main.scss will load all of the Sass partials in _sass... which you can customize and Jekyll will build a new _site/assets/css/main.css.

@germayneng
Copy link
Author

hello,

i have made the changes you mentioned. Now i have this error

Your site is having problems building: Your SCSS file assets/css/main.scss has an error on line 3: File to import not found or unreadable: minimal-mistakes. Load path: /hoosegow/.bundle/ruby/2.4.0/gems/jekyll-theme-primer-0.5.0/_sass. For more information, see https://help.github.com/articles/page-build-failed-invalid-sass-or-scss/.

@mmistakes
Copy link
Owner

Still looks like you don't have the _sass folder setup correctly. I would suggest starting over and fork the theme so you have all the correct files.

Then make your edits, set the config, add content, etc.

@stale stale bot added the Status: Stale label Sep 16, 2017
@stale
Copy link

stale bot commented Sep 16, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants