_single-post.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. /*--------------------------------------------------------------*/
  2. /* !## Single Posts */
  3. /*--------------------------------------------------------------*/
  4. .single {
  5. .entry-media {
  6. background: #FFF;
  7. margin: 0;
  8. position: relative;
  9. z-index: 3;
  10. .slide {
  11. position: relative;
  12. width: 100%;
  13. .image-caption {
  14. border-bottom: 1px solid $color__border-transparent;
  15. color: $color__link-hover;
  16. display: block;
  17. @include body-copy-small();
  18. margin-bottom: 1px;
  19. padding: #{ $gutter * .25 } #{ $gutter * .5 };
  20. }
  21. }
  22. }
  23. .entry-media-wrap {
  24. line-height: 0;
  25. text-align: center;
  26. .jetpack-video-wrapper {
  27. margin-bottom: 0;
  28. .wp-video {
  29. margin: 0 auto;
  30. }
  31. }
  32. }
  33. .hentry {
  34. float: none;
  35. position: relative;
  36. z-index: 3;
  37. .entry-header {
  38. display: table;
  39. margin: 0 0 ($baseline);
  40. position: relative;
  41. width: 100%;
  42. }
  43. .entry-title {
  44. @include article-title(1.5);
  45. @include gutter-width(100%);
  46. float: left;
  47. margin: ($baseline * .5) 0;
  48. }
  49. .entry-meta {
  50. padding-left: ($gutter * .5);
  51. float: left;
  52. }
  53. .comments-link {
  54. float: left;
  55. margin-left: ($gutter * .5);
  56. position: relative;
  57. }
  58. .entry-content {
  59. @include gutter-width(100%);
  60. margin: 0 0 ($baseline);
  61. }
  62. .entry-footer {
  63. @include gutter-width(100%);
  64. & > div {
  65. width: 50%;
  66. margin-bottom: $baseline;
  67. }
  68. }
  69. &:not(.has-post-thumbnail) {
  70. @include non-border(1px solid $color__border-transparent, top);
  71. position: relative;
  72. &:before {
  73. margin-left: -50%;
  74. width: 200%;
  75. }
  76. }
  77. }
  78. }
  79. @include breakpoint( phablet ) {
  80. .single {
  81. .entry-media {
  82. &:after {
  83. @include linear-gradient();
  84. content: " ";
  85. height: 100%;
  86. left: 0;
  87. position: absolute;
  88. top: 0;
  89. width: 100%;
  90. z-index: -1;
  91. }
  92. }
  93. .hentry .entry-title {
  94. @include font-size( 2.5 );
  95. }
  96. .slide {
  97. .image-caption {
  98. @include multitransition( transform .15s ease-in-out, opacity .15s ease-in-out );
  99. background: $color__background-body;
  100. bottom: 0;
  101. display: block;
  102. left: 50%;
  103. line-height: $baseline;
  104. opacity: 0;
  105. position: absolute;
  106. transform: translate3d( -50%, 10px, 0 );
  107. max-width: 50%;
  108. z-index: 3;
  109. }
  110. &:hover .image-caption {
  111. border-bottom: none;
  112. opacity: 1;
  113. transform: translate3d( -50%, #{-$baseline}, 0 );
  114. }
  115. }
  116. }
  117. }
  118. @include breakpoint( tablet ) {
  119. .single .hentry {
  120. padding: ($baseline * 2) 5%;
  121. .entry-header {
  122. margin: 0 0 ($baseline * 2);
  123. }
  124. .entry-title {
  125. float: left;
  126. margin: 0;
  127. width: calc( #{((100% / 8) * 6)} - #{ $gutter } );
  128. }
  129. .entry-meta {
  130. @include gutter-width( calc( #{((100% / 8) * 2)} + #{ $gutter } ) );
  131. float: right;
  132. .edit-link {
  133. position: absolute;
  134. }
  135. }
  136. .comments-link {
  137. margin-left: 0;
  138. position: absolute;
  139. right: calc( 100% + #{ $gutter * .5 } );
  140. top: calc( 100% + #{$baseline * 1.5} );
  141. }
  142. .entry-content {
  143. float: left;
  144. margin-bottom: ($baseline * 2);
  145. width: calc( #{((100% / 8) * 6)} - #{ $gutter } );
  146. }
  147. .entry-footer {
  148. @include gutter-width( calc( 35% + #{ $gutter } ) );
  149. float: right;
  150. margin-right: -10%;
  151. & > div {
  152. width: 33%;
  153. }
  154. & > div:first-child {
  155. width: 66%;
  156. }
  157. }
  158. }
  159. }
  160. @include breakpoint( laptop ) {
  161. .single .hentry {
  162. .entry-content {
  163. width: calc( #{((100% / 8) * 5)} - #{ $gutter } );
  164. }
  165. }
  166. }