_base.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. $dark-purple: #423443;
  2. $blue: #2eafc2;
  3. $red: #d12521;
  4. $grey: #dad7d2;
  5. $dark-grey: #261e26;
  6. @font-face {
  7. font-family: 'Smart Regular';
  8. src: url('../fonts/smart-regular.eot');
  9. src: url('../fonts/smart-regular.eot?#iefix') format('embedded-opentype'),
  10. url('../fonts/smart-regular.woff2') format('woff2'),
  11. url('../fonts/smart-regular.woff') format('woff'),
  12. url('../fonts/smart-regular.ttf') format('truetype');
  13. font-weight: normal;
  14. font-style: normal;
  15. }
  16. * {
  17. margin: 0;
  18. padding: 0;
  19. -moz-box-sizing: border-box;
  20. -webkit-box-sizing: border-box;
  21. box-sizing: border-box;
  22. }
  23. html {
  24. font-size: 100%;
  25. overflow-y: auto;
  26. min-height: 100%;
  27. position: relative;
  28. -webkit-overflow-scrolling: touch;
  29. -webkit-tap-highlight-color: rgba(0,0,0,0);
  30. -webkit-text-size-adjust: 100%;
  31. -ms-text-size-adjust: 100%;
  32. }
  33. ::-moz-selection {
  34. background: darken($dark-purple, 10%);
  35. color: #fefefe;
  36. text-shadow: none;
  37. }
  38. ::selection {
  39. background: darken($dark-purple, 10%);
  40. color: #fefefe;
  41. text-shadow: none;
  42. }
  43. article, aside, figure, footer, header, nav, section {
  44. display: block;
  45. }
  46. pre {
  47. font-size: 12px;
  48. }
  49. audio, canvas, video {
  50. display: inline-block; *display: inline; *zoom: 1;
  51. }
  52. audio:not([controls]) {
  53. display: none;
  54. }
  55. [hidden] { display: none; }
  56. img {
  57. border: 0;
  58. -ms-interpolation-mode: bicubic;
  59. vertical-align: middle;
  60. }
  61. svg:not(:root) {
  62. overflow: hidden;
  63. }
  64. form {
  65. margin: 0;
  66. }
  67. label {
  68. cursor: pointer;
  69. }
  70. button, input, select, textarea {
  71. font-size: 100%;
  72. margin: 0;
  73. vertical-align: baseline;
  74. *vertical-align: middle;
  75. }
  76. body, html {
  77. color: #424242;
  78. font-family: 'Open Sans', sans-serif;
  79. background: #fefefe;
  80. font-size: 16px;
  81. line-height: 1.5;
  82. font-weight: 400;
  83. }
  84. body {
  85. margin-bottom: 100px;
  86. }
  87. a {
  88. font-size: 1rem;
  89. color: darken($blue, 5%);
  90. text-decoration: underline;
  91. &:hover {
  92. color: $blue;
  93. text-decoration: none;
  94. transition: all 0.2s ease-in-out;
  95. }
  96. &:focus {
  97. outline: none;
  98. }
  99. }
  100. p {
  101. text-align: left;
  102. margin-bottom: 1em;
  103. font-size: 1rem;
  104. }
  105. strong {
  106. font-weight: 600;
  107. }
  108. h1 {
  109. font-family: 'Cherry Swash', cursive;
  110. font-weight: 400;
  111. font-size: 2rem;
  112. text-align: center;
  113. color: $dark-purple;
  114. margin-bottom: 0.5em;
  115. }
  116. h2 {
  117. font-weight: 600;
  118. font-size: 1.5rem;
  119. margin: 1em 0 0.5em 0;
  120. color: lighten($dark-purple, 5%);
  121. }
  122. .clearfix { *zoom: 1;
  123. &::before,
  124. &:after { content: ""; display: table; }
  125. &:after { clear: both; }
  126. }