blog.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. @import "variables";
  2. @import "typography";
  3. @import "buttons";
  4. @import "menu";
  5. @import "layout";
  6. /* ==================================================
  7. Global Styles
  8. ================================================== */
  9. *, *:before, *:after {
  10. box-sizing: inherit;
  11. }
  12. :root {
  13. box-sizing: border-box;
  14. -moz-box-sizing: border-box;
  15. -webkit-box-sizing: border-box;
  16. -webkit-font-smoothing: antialiased;
  17. -webkit-text-size-adjust: 100%;
  18. -ms-text-size-adjust: 100%;
  19. }
  20. body {
  21. background: $body-bgcolor;
  22. color: $base-font-color;
  23. }
  24. ::selection, ::-moz-selection {
  25. background: $base-color;
  26. color: $body-bgcolor;
  27. }
  28. a {
  29. $anchor-color: lighten(scale_color($base-color, $saturation: 20%), 20%);
  30. color: $anchor-color;
  31. text-decoration: none; //fallback
  32. text-decoration: underline solid currentColor;
  33. &:hover {
  34. color: lighten($anchor-color, 20%);
  35. }
  36. }
  37. .mobile-only {
  38. @media screen and (min-width: $mobile-breakpoint) {
  39. display: none;
  40. }
  41. }
  42. .desktop-and-tablet-only {
  43. @media screen and (max-width: $mobile-breakpoint) {
  44. display: none;
  45. }
  46. }
  47. /* ==================================================
  48. Images
  49. ================================================== */
  50. img {
  51. -webkit-backface-visibility: hidden;
  52. -moz-backface-visibility: hidden;
  53. -ms-backface-visibility: hidden;
  54. }
  55. /* ==================================================
  56. Sections
  57. ================================================== */
  58. #sidebar {
  59. background: $base-color;
  60. color: $white;
  61. -webkit-overflow-scrolling: touch;
  62. display: flex;
  63. flex-flow: column nowrap;
  64. justify-content: space-between;
  65. align-items: stretch;
  66. @media (max-width: $mobile-breakpoint) {
  67. padding-bottom: $default-gutter / 2;
  68. }
  69. #logo {
  70. padding: $default-gutter;
  71. width: 100%;
  72. color: $white;
  73. .icon {
  74. box-shadow: 0px 0px 14px 2px rgba(255, 255, 255, 0.05);
  75. display: block;
  76. padding: 15px;
  77. background: rgba(0, 0, 0, 0.2);
  78. height: 100px;
  79. width: 100px;
  80. margin: 0 auto 10px;
  81. border-radius: 80px;
  82. }
  83. .text {
  84. color: $white;
  85. width: 100%;
  86. font-size: 30px;
  87. line-height: .8;
  88. font-weight: 600;
  89. font-family: $wide-font-family;
  90. text-align: center;
  91. text-transform: uppercase;
  92. text-shadow: 0px 0px 14px rgba(0, 0, 0, .5);
  93. @media (min-width: $mobile-breakpoint) {
  94. &.desktop-and-tablet-only {
  95. display: table-caption; // minimizes line width
  96. }
  97. }
  98. }
  99. a {
  100. text-decoration: none;
  101. }
  102. }
  103. }
  104. #socialmedia {
  105. // See the icons.svg file for more icons than are used in the default template
  106. $icon-size: 34px;
  107. $mobile-icon-size: 30px;
  108. @media (min-width: $mobile-breakpoint) {
  109. flex: 0 1 auto;
  110. padding: $default-gutter;
  111. }
  112. @media (max-width: $mobile-breakpoint) {
  113. padding: 0 $default-gutter 0 0;
  114. }
  115. ul {
  116. margin: 0;
  117. padding: 0;
  118. display: flex;
  119. justify-content: space-between;
  120. align-items: center;
  121. li {
  122. list-style-type: none;
  123. margin: 0;
  124. padding: 0;
  125. @media (min-width: $mobile-breakpoint) {
  126. height: $icon-size;
  127. width: $icon-size;
  128. }
  129. @media (max-width: $mobile-breakpoint) {
  130. height: $mobile-icon-size;
  131. width: $mobile-icon-size;
  132. margin-left: $mobile-icon-size/3;
  133. }
  134. }
  135. .icon {
  136. fill: $white;
  137. max-height: 100%;
  138. max-width: 100%;
  139. opacity: $default-opacity;
  140. &:hover {
  141. opacity: 1;
  142. }
  143. }
  144. }
  145. }
  146. #main {
  147. @media (min-width: $mobile-breakpoint) {
  148. padding: 2rem;
  149. }
  150. @media (max-width: $mobile-breakpoint) {
  151. padding: 1rem;
  152. }
  153. }
  154. #main p:last-child {
  155. margin: 0;
  156. }
  157. .post-header {
  158. .byline {
  159. .date {
  160. font-variant-caps: small-caps;
  161. }
  162. }
  163. }
  164. #post {
  165. margin: 0 auto;
  166. max-width: 700px;
  167. }
  168. #footercont {
  169. color: rgba(0, 0, 0, 0.4);
  170. text-transform: uppercase;
  171. font-size: 11px;
  172. }