_posts.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /*--------------------------------------------------------------*/
  2. /* !## Posts */
  3. /*--------------------------------------------------------------*/
  4. .sticky {
  5. display: block;
  6. }
  7. .hentry {
  8. margin: 0;
  9. }
  10. .byline,
  11. .updated:not(.published){
  12. display: none;
  13. }
  14. .single .byline,
  15. .group-blog .byline {
  16. display: block;
  17. }
  18. #page a.button {
  19. @include button();
  20. display: inline-block;
  21. }
  22. .page-content,
  23. .entry-content,
  24. .entry-summary {
  25. @include body-copy();
  26. margin: 0;
  27. p {
  28. word-break: break-word;
  29. }
  30. }
  31. .posted-on {
  32. @include widget-title();
  33. color: $color__link-hover;
  34. }
  35. .byline {
  36. @include list-header();
  37. color: $color__link-hover;
  38. a {
  39. @include list-item();
  40. display: inline-block;
  41. }
  42. }
  43. .comments-link {
  44. display: flex;
  45. height: 60px;
  46. justify-content: center;
  47. position: relative;
  48. width: 60px;
  49. z-index: 10;
  50. -webkit-transition: all 0.3s ease;
  51. -moz-transition: all 0.3s ease;
  52. -o-transition: all 0.3s ease;
  53. -ms-transition: all 0.3s ease;
  54. transition: all 0.3s ease;
  55. a {
  56. color: $color__text-main;
  57. font-size: $gutter;
  58. line-height: 20px;
  59. min-width: 20px;
  60. padding: 20px ($gutter * .2);
  61. position: relative;
  62. text-align: center;
  63. width: 60px;
  64. z-index: 3;
  65. -webkit-transition: all 0.3s ease;
  66. -moz-transition: all 0.3s ease;
  67. -o-transition: all 0.3s ease;
  68. -ms-transition: all 0.3s ease;
  69. transition: all 0.3s ease;
  70. }
  71. .comment-icon {
  72. @include prefix( filter, drop-shadow( 1px 3px 2px rgba(0, 0, 0, 0.33) ) );
  73. left: 0;
  74. position: absolute;
  75. overflow: visible;
  76. .path {
  77. fill: $color__background-body;
  78. stroke: $color__border-transparent;
  79. stroke-miterlimit: 10;
  80. -webkit-transition: all 0.3s ease;
  81. -moz-transition: all 0.3s ease;
  82. -o-transition: all 0.3s ease;
  83. -ms-transition: all 0.3s ease;
  84. transition: all 0.3s ease;
  85. }
  86. }
  87. &:hover {
  88. @include animation('bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)');
  89. a {
  90. color: $color__background-body;
  91. opacity: 1;
  92. }
  93. .comment-icon {
  94. .path {
  95. fill: $color__link;
  96. stroke: $color__link;
  97. }
  98. }
  99. }
  100. }
  101. .entry-footer {
  102. align-content: flex-start;
  103. display: flex;
  104. flex-flow: row nowrap;
  105. overflow: visible;
  106. @include list-header();
  107. color: $color__link-hover;
  108. & > * {
  109. flex: 2 1 0;
  110. margin-right: ( $gutter * .5 );
  111. &:last-child {
  112. margin-right: 0;
  113. }
  114. }
  115. .comments-link {
  116. flex: 0 0 auto;
  117. margin-right: calc((100% / 8) * 1);
  118. }
  119. div > * {
  120. display: block;
  121. }
  122. ul {
  123. list-style: none;
  124. margin: 0;
  125. li a {
  126. @include list-item();
  127. }
  128. }
  129. }