您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

90 行
1.7 KiB

  1. $base-size: 16;
  2. @function size($target, $context: $base-size) {
  3. @return ($target / $context) * 1rem;
  4. }
  5. @mixin transition {
  6. transition: all 0.3s ease-out;
  7. }
  8. @mixin fullwidth {
  9. width: 100vw;
  10. position: relative;
  11. left: 50%;
  12. right: 50%;
  13. margin: 0 -50vw 5rem -50vw;
  14. background: #f5f5f5;
  15. }
  16. @mixin button {
  17. display: inline-block;
  18. padding: 8px 28px;
  19. font-family: 'Lato', sans-serif;
  20. font-weight: 700;
  21. font-size: size(16);
  22. line-height: size(20);
  23. text-decoration: none;
  24. color: $font;
  25. border: none;
  26. background: $tertiary;
  27. border-radius: 20px;
  28. cursor: pointer;
  29. @include transition();
  30. &:hover {
  31. color: #fff;
  32. }
  33. }
  34. //@mixin btn-primary {
  35. // display: inline-block;
  36. // min-width: 250px;
  37. // text-align: center;
  38. // height: 48px;
  39. // font-size: size(23);
  40. // line-height: size(36);
  41. // font-weight: 500;
  42. // letter-spacing: 2px;
  43. // background: $primary;
  44. // border: none;
  45. // color: #fff;
  46. // text-decoration: none;
  47. // transition: 0.2s;
  48. // &:hover {
  49. // background: lighten($primary, 15%);
  50. // }
  51. //}
  52. //
  53. //@mixin btn-secondary {
  54. // display: inline-block;
  55. // height: 48px;
  56. // padding: 0 25px;
  57. // font-size: size(23);
  58. // line-height: size(36);
  59. // font-weight: 500;
  60. // letter-spacing: 2px;
  61. // background: $secondary;
  62. // border: none;
  63. // color: #fff;
  64. // text-decoration: none;
  65. // transition: 0.2s;
  66. // &:hover {
  67. // background: lighten($secondary, 15%);
  68. // }
  69. //}
  70. //
  71. //@mixin btn-light {
  72. // display: inline-block;
  73. // font-size: size(23);
  74. // line-height: size(36);
  75. // font-weight: 500;
  76. // letter-spacing: 2px;
  77. // background: #fff;
  78. // border: none;
  79. // color: $primary;
  80. // height: 48px;
  81. // transition: 0.2s;
  82. // &:hover {
  83. // background: rgba(#fff, 0.75);
  84. // }
  85. //}