app.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /*
  2. * Globals
  3. */
  4. @media (min-width: 48em) {
  5. html {
  6. font-size: 18px;
  7. }
  8. }
  9. body {
  10. font-family: Georgia, "Times New Roman", Times, serif;
  11. color: #555;
  12. }
  13. h1, .h1,
  14. h2, .h2,
  15. h3, .h3,
  16. h4, .h4,
  17. h5, .h5,
  18. h6, .h6 {
  19. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  20. font-weight: normal;
  21. color: #333;
  22. }
  23. /*
  24. * Override Bootstrap's default container.
  25. */
  26. .container {
  27. max-width: 60rem;
  28. }
  29. /*
  30. * Masthead for nav
  31. */
  32. .blog-masthead {
  33. margin-bottom: 3rem;
  34. background-color: #428bca;
  35. -webkit-box-shadow: inset 0 -.1rem .25rem rgba(0,0,0,.1);
  36. box-shadow: inset 0 -.1rem .25rem rgba(0,0,0,.1);
  37. }
  38. #flash-message {
  39. position: absolute;
  40. bottom: 1ex;
  41. right: 1em;
  42. z-index: 10;
  43. // Alternative to JS:
  44. // animation: flash-message 4s forwards;
  45. }
  46. @keyframes flash-message {
  47. 0% {
  48. opacity: 1;
  49. }
  50. 100% {
  51. opacity: 0;
  52. display: none;
  53. }
  54. }
  55. // end of alternative to JS
  56. /* Nav links */
  57. .nav-link {
  58. position: relative;
  59. padding: 1rem;
  60. font-weight: 500;
  61. color: #cdddeb;
  62. }
  63. .nav-link:hover,
  64. .nav-link:focus {
  65. color: #fff;
  66. background-color: transparent;
  67. }
  68. /* Active state gets a caret at the bottom */
  69. .nav-link.active {
  70. color: #fff;
  71. }
  72. .nav-link.active:after {
  73. position: absolute;
  74. bottom: 0;
  75. left: 50%;
  76. width: 0;
  77. height: 0;
  78. margin-left: -.3rem;
  79. vertical-align: middle;
  80. content: "";
  81. border-right: .3rem solid transparent;
  82. border-bottom: .3rem solid;
  83. border-left: .3rem solid transparent;
  84. }
  85. /*
  86. * Blog name and description
  87. */
  88. .blog-header {
  89. padding-bottom: 1.25rem;
  90. margin-bottom: 2rem;
  91. border-bottom: .05rem solid #eee;
  92. }
  93. .blog-title {
  94. margin-bottom: 0;
  95. font-size: 2rem;
  96. font-weight: normal;
  97. }
  98. .blog-description {
  99. font-size: 1.1rem;
  100. color: #999;
  101. }
  102. @media (min-width: 40em) {
  103. .blog-title {
  104. font-size: 3.5rem;
  105. }
  106. }
  107. /*
  108. * Main column and sidebar layout
  109. */
  110. /* Sidebar modules for boxing content */
  111. .sidebar-module {
  112. padding: 1rem;
  113. /*margin: 0 -1rem 1rem;*/
  114. }
  115. .sidebar-module-inset {
  116. padding: 1rem;
  117. background-color: #f5f5f5;
  118. border-radius: .25rem;
  119. }
  120. .sidebar-module-inset p:last-child,
  121. .sidebar-module-inset ul:last-child,
  122. .sidebar-module-inset ol:last-child {
  123. margin-bottom: 0;
  124. }
  125. /* Pagination */
  126. .blog-pagination {
  127. margin-bottom: 4rem;
  128. }
  129. .blog-pagination > .btn {
  130. border-radius: 2rem;
  131. }
  132. /*
  133. * Blog posts
  134. */
  135. .blog-post {
  136. margin-bottom: 4rem;
  137. }
  138. .blog-post-title {
  139. margin-bottom: .25rem;
  140. font-size: 2.5rem;
  141. }
  142. .blog-post-meta {
  143. margin-bottom: 1.25rem;
  144. color: #999;
  145. }
  146. /*
  147. * Footer
  148. */
  149. .blog-footer {
  150. padding: 2.5rem 0;
  151. color: #999;
  152. text-align: center;
  153. background-color: #f9f9f9;
  154. border-top: .05rem solid #e5e5e5;
  155. }
  156. .blog-footer p:last-child {
  157. margin-bottom: 0;
  158. }