Advertisement
artemsemkin

Rhye theme: customize buttons paddings & font-size

Aug 7th, 2024
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.97 KB | None | 0 0
  1. .button {
  2.   font-size: calc(10 * 1px);
  3.   letter-spacing: 2px;
  4.   line-height: 1.3;
  5.   font-weight: bold;
  6.   border-width: 2px;
  7.   border-style: solid;
  8.   padding: 18px 45px;
  9.   border-radius: 64px;
  10. }
  11. @media screen and (min-width: 320px) {
  12.   .button {
  13.     font-size: calc(10 * 1px + (13 - 10) * ((100vw - 320px) / 1600));
  14.   }
  15. }
  16. @media screen and (min-width: 1920px) {
  17.   .button {
  18.     font-size: calc(13 * 1px);
  19.   }
  20. }
  21.  
  22. .button_icon {
  23.   padding: 0;
  24. }
  25.  
  26. .button__label {
  27.   padding: 18px 45px;
  28. }
  29.  
  30. .button__icon {
  31.   width: 60px;
  32. }
  33. .button__icon i {
  34.   font-size: 24px;
  35. }
  36.  
  37. @media screen and (max-width: 1680px) {
  38.   .button {
  39.     padding: 14px 32px;
  40.   }
  41.   .button__label {
  42.     padding: 18px 32px;
  43.   }
  44. }
  45. @media screen and (max-width: 991px) {
  46.   .button {
  47.     padding: 12px 28px;
  48.   }
  49.   .button__label {
  50.     padding: 12px 28px;
  51.   }
  52.   .button__icon {
  53.     width: 43px;
  54.   }
  55.   .button__icon i {
  56.     font-size: 20px;
  57.   }
  58.   .button_icon {
  59.     padding: 0;
  60.   }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement