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

Custom font size and color #35

Closed
2manyvcos opened this issue Jun 23, 2017 · 6 comments
Closed

Custom font size and color #35

2manyvcos opened this issue Jun 23, 2017 · 6 comments

Comments

@2manyvcos
Copy link

Hi there,

I would love an option for setting the font size and text color.
What do you think about this?

@ftm
Copy link
Contributor

ftm commented Jun 23, 2017

You can do this already by editing your stylesheet and using the .atom-clock selector. For example:

.atom-clock {
  color: red;
  font-size: 2rem;
  font-family: "Comic Sans MS";
}

screen shot 2017-06-23 at 21 04 41

If you want it to fit into your UI theme then if you import ui-variables in your stylesheet you can then use the colours set by your theme which you can see in your Styleguide (Packages → Styleguide → Show). For example

@import 'ui-variables';

.atom-clock {
  color: @text-color-success;
}

screen shot 2017-06-23 at 17 31 58

@2manyvcos
Copy link
Author

Awesome!
Thanks for your help. 👍

@jsegra
Copy link

jsegra commented Aug 29, 2017

It's possible to customize the tooltip?
Thx.

@ftm
Copy link
Contributor

ftm commented Aug 29, 2017

Currently it is not possible to customise the style of the tooltip as atom-clock does not set a custom class on the tooltip however according to the Atom docs this is something which could be added. I'll add it later and submit a pull request.

@jsegra
Copy link

jsegra commented Aug 29, 2017

Oki, thx.

@ftm
Copy link
Contributor

ftm commented Aug 29, 2017

That's been added now so you can style the tooltip text however you want by using the .atom-clock-tooltip > .tooltip-inner selector. See the pull request for more info.

@b3by b3by mentioned this issue Aug 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants