-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Load third-party libraries using Cdnjs #2427
Conversation
Let's implement SRI tags. You can use https://www.srihash.org/ to speed things up. |
OK. Let's get the sizing down first
…On Sun, Mar 5, 2017, 21:27 mxxcon ***@***.***> wrote:
Let's implement SRI tags. You can use https://www.srihash.org/ to speed
things up.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2427 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABGv4hhdY2HngB-g9t7ldSa8ZJaDMCklks5ri5lIgaJpZM4MTuwG>
.
|
Awesome stuff @stephengroat! 👍 At the moment, the Semantic-UI library sets the icon font-size to Would you be able to re-factor the Thanks, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Refactor style tag into
base.scss
- Fix logo icon sizing
- Implement SRI hashes
@PSGS thanks for the help, i don't really know what i'm doing with css (learning curve is steep). i moved the |
Awesome work @stephengroat! 👍 The only difference with the sizing of elements that I can see is a slight difference in the width of table columns. It's probably caused by several elements gradually inheriting a larger font size. Visually, the difference is negligible, however, so I think we can go ahead and merge the pull request. @Carlgo11, @mxxcon: Should we specify one particular type of hash to use for SRI hashes (eg. |
I think it doesn't really matter as long as they are secure hashes(not sha1/md5). We could stick to one type just for consistency sake. |
I think if we decide to stick to one type, we should use sha-384, since that's what https://www.srihash.org uses when generating hashes. |
The srihash.org generated hashes weren't working for the Google fonts, so I
switched to Chrome generated 256 that worked
…On Tue, Mar 7, 2017, 06:07 Jacob ***@***.***> wrote:
I think if we decide to stick to one type, we should use sha-384, since
that's what https://www.srihash.org uses when generating hashes.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2427 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABGv4oJLDAXRnJ83Zk3UYEVCZ_cyz4_4ks5rjWSmgaJpZM4MTuwG>
.
|
@PSGS i'm still seeing a problem for the do you see anything? |
@stephengroat, I can't seem to see any problems with Pogoplug. |
@PSGS you're 100% right. i was comparing against an unmerged live copy that still had the |
@2factorauth/collaborators can some more people look this over? i think this one needs more than 2 reviews |
_layouts/default.html
Outdated
@@ -16,8 +16,10 @@ | |||
|
|||
<title>{{ site.title }}</title> | |||
|
|||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:400,700"> | |||
<link rel="stylesheet" href="/lib/semantic/css/semantic.min.css"> | |||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should NOT use SRI for Google Fonts. Apparently CSS they serve is intentionally unversioned and it changes depending on which browser requests it.
See google/fonts#473
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to change the hashes of our jquery source to be sha384?
👍 |
Include semantic ui from cdn.
still need a tiny bit of help, my font-size override trick works for everything except the
icon
in theheader