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

improve(custom.css): support import current graph assets file #6331

Merged
merged 1 commit into from Aug 15, 2022

Conversation

xyhp915
Copy link
Collaborator

@xyhp915 xyhp915 commented Aug 11, 2022

Use case in custom.css

@font-face {
  font-family: 'Rubik Distressed';
  font-style: normal;

  /* relative path from current custom.css file */
  src: url("../assets/RubikDistressed-Regular.ttf") format('truetype');
}

h1 {
  font-family: 'Rubik Distressed' !important;
}

Mentioned thread:
https://discord.com/channels/806040386614853642/840147756487540777/986075938112565299

@github-actions github-actions bot added the :type/enhancement Enhancement to product. Does not affect the overall basic use. label Aug 11, 2022
@xyhp915 xyhp915 requested review from cnrpman and andelf August 11, 2022 09:21
Copy link
Collaborator

@andelf andelf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

It's useful to have my custom font together with the graph direcotry.

@tiensonqin tiensonqin merged commit 24595cc into master Aug 15, 2022
@tiensonqin tiensonqin deleted the enhance/support-local-assets-in-css branch August 15, 2022 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:type/enhancement Enhancement to product. Does not affect the overall basic use.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants