Guest User

Untitled

a guest
Apr 21st, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. // Currently Done Like So
  2. @font-face {
  3. font-family: 'PoppinsRegular';
  4. src: url('../fonts/poppins-regular-webfont.woff2') format('woff2'),
  5. url('../fonts/poppins-regular-webfont.woff') format('woff');
  6. font-weight: normal;
  7. font-style: normal;
  8. }
  9.  
  10. @font-face {
  11. font-family: 'PoppinsSemibold';
  12. src: url('../fonts/Poppins-SemiBold.woff2') format('woff2'),
  13. url('../fonts/Poppins-SemiBold.woff') format('woff');
  14. font-weight: normal;
  15. font-style: normal;
  16. }
  17.  
  18.  
  19. p {
  20. font-family: 'PoppinsRegular', sans-serif;
  21. strong {
  22. font-family: 'PoppinsSemiBold', sans-serif;
  23. }
  24. }
  25.  
  26.  
  27. // VS Proposed Solution
  28.  
  29. @font-face {
  30. font-family: 'Poppins';
  31. src: url('../fonts/poppins-regular-webfont.woff2') format('woff2'),
  32. url('../fonts/poppins-regular-webfont.woff') format('woff');
  33. font-weight: 400;
  34. font-style: normal;
  35. }
  36.  
  37. @font-face {
  38. font-family: 'Poppins';
  39. src: url('../fonts/Poppins-SemiBold.woff2') format('woff2'),
  40. url('../fonts/Poppins-SemiBold.woff') format('woff');
  41. font-weight: 600;
  42. font-style: normal;
  43. }
  44.  
  45. body {
  46. font-family: 'Poppins', sans-serif;
  47. }
  48.  
  49. p {
  50. font-weight:400;
  51. strong {
  52. font-weight:600;
  53. }
  54. }
Add Comment
Please, Sign In to add comment