Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Unable to change font-size-base and/or font.global.size #629

Closed
JOduMonT opened this issue Feb 26, 2019 · 8 comments
Closed

Unable to change font-size-base and/or font.global.size #629

JOduMonT opened this issue Feb 26, 2019 · 8 comments

Comments

@JOduMonT
Copy link

Hi;

I'm using source/_data/variables.styl to make variation inside Gemini scheme but one change doesn't apply and I wonder why $font-size-base = 16px don't works.

this is my variables.styl


// Variables of Gemini scheme
    
// corpo color
$blue    = #192b33
$green   = #8fb259
$orange  = #ff7f00
$white   = #f2f2f2
$black   = #2f2f2f

// custom base
$font-size-base = 18px
$whitesmoke = $white
$black-deep = $blue
$blue-deep = $blue

// Settings for some of the most global styles.
$body-bg-color = $white

// Borders
$box-shadow-inner = 0 2px 2px 0 rgba(47,47,47,.12), 0 3px 1px -2px rgba(47,47,47,.06), 0 1px 5px 0 rgba(47,47,47,.12)
$box-shadow = 0 2px 2px 0 rgba(47,47,47,.12), 0 3px 1px -2px rgba(47,47,47,.06), 0 1px 5px 0 rgba(47,47,47,.12), 0 -1px .5px 0 rgba(47,47,47,.09)
$border-radius-inner = 0 0 3px 3px;
$border-radius = 3px;

// Logo
.custom-logo-image {max-width: 288px;}

// Sidebar
$subtitle-font-size = 14px
$site-description-align = left
.site-subtitle {margin-top: 0!important;}

// Footer
.footer {
    color: $white!important
    background-color: $blue
  a {color: $orange}
  a:hover {color: $green}
}

// Color
.green {color: $green}
.blue {color: $blue}

base on what I found in #245
I also tried by adding this in my _config.yml and source/data/next.yml
without success

font:
  global:
    size: 18px
@stevenjoezhang
Copy link
Contributor

Setting

font:
  global:
    size: 18px

should work fine.
Have you tried hexo clean && hexo g && hexo s ?

@JOduMonT
Copy link
Author

hum!

I was using hexo clean && hexo serve
and now even with hexo clean && hexo g && hexo s

with in _config.yml or source/data/next.yml

font:
  global:
    size: 18px

Gemini Scheme don't respect it

Just to be sure

  1. I'm suppose to have my main font at 18px when I'm using hexo server ?
  2. I don't have to declare anything else in the font ?

aka I don't have enable like this

font:
  enable: false
  global:
    size: 18px

@stevenjoezhang
Copy link
Contributor

Can you provide an url to a site contains this bug? Or can you confirm if there's the same bug in other schemes?

@JOduMonT
Copy link
Author

JOduMonT commented Mar 4, 2019

I'll try another schemes and let's you know :)

@stale
Copy link

stale bot commented Apr 3, 2019

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can also use our support channels to get help with the project.

@stale stale bot added the Stale label Apr 3, 2019
@JOduMonT
Copy link
Author

JOduMonT commented Apr 3, 2019

@stevenjoezhang I also tried on a new hexo/next project with Mist and it didn't works
but don't worry it's probably something I didn't understood so i'll figured out later on my own
;)

@JOduMonT JOduMonT closed this as completed Apr 3, 2019
@stevenjoezhang
Copy link
Contributor

@JOduMonT Ahh, I made a mistake. It should not be

font:
  global:
    size: 18px

But

font:
  global:
    size: 18

You can try again

@stevenjoezhang stevenjoezhang changed the title unable to change font-size-base and/or font.global.size Unable to change font-size-base and/or font.global.size May 20, 2019
@stevenjoezhang
Copy link
Contributor

Fixed in #1005, #1006

@1v9 1v9 added the 🌀 Fonts label Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants