page-music.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?php
  2. /*
  3. Template Name: Music
  4. */
  5. get_header(); ?>
  6. <style media="screen" type="text/css">
  7. .albums {
  8. position: relative;
  9. }
  10. .albums:after {
  11. content: "";
  12. display: table;
  13. clear: both;
  14. }
  15. .album {
  16. float: left;
  17. height: auto;
  18. position: relative;
  19. font-size: 12px;
  20. -webkit-transition: -webkit-transform 0.4s ease-in-out, z-index 0.4s ease-in-out;
  21. -moz-transition: -moz-transform 0.4s ease-in-out, z-index 0.4s ease-in-out;
  22. -ms-transition: -ms-transform 0.4s ease-in-out, z-index 0.4s ease-in-out;
  23. -o-transition: -o-transform 0.4s ease-in-out, z-index 0.4s ease-in-out;
  24. transition: transform 0.4s ease-in-out, z-index 0.4s ease-in-out;
  25. -webkit-perspective: 600px;
  26. perspective: 600px;
  27. }
  28. .album img {
  29. width: 100%;
  30. height: auto;
  31. }
  32. .album h1, .album h2, .album h3 {
  33. font-size: 13px;
  34. line-height: 15px;
  35. }
  36. .album .front, .album .back {
  37. float: none;
  38. width: 100%;
  39. height: auto;
  40. -webkit-transform-style: preserve-3d;
  41. transform-style: preserve-3d;
  42. -webkit-transition: -webkit-transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  43. -moz-transition: -moz-transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  44. -ms-transition: -ms-transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  45. -o-transition: -o-transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  46. transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  47. }
  48. .album .front {
  49. z-index: 1;
  50. -webkit-transform: rotateY(0deg);
  51. -moz-transform: rotateY(0deg);
  52. -ms-transform: rotateY(0deg);
  53. -o-transform: rotateY(0deg);
  54. transform: rotateY(0deg);
  55. }
  56. .album .front .alpha {
  57. -webkit-transition: opacity 0.4s ease-in-out;
  58. -moz-transition: opacity 0.4s ease-in-out;
  59. -ms-transition: opacity 0.4s ease-in-out;
  60. -o-transition: opacity 0.4s ease-in-out;
  61. transition: opacity 0.4s ease-in-out;
  62. display: block;
  63. content: '';
  64. height: 100%;
  65. width: 100%;
  66. position: absolute;
  67. top: 0;
  68. left: 0;
  69. background: rgba(255, 255, 255, 0.75);
  70. opacity: 0;
  71. }
  72. .album .back {
  73. position: absolute;
  74. top: 0;
  75. left: 0;
  76. z-index: 0;
  77. text-align: center;
  78. font-family: sans-serif;
  79. padding: 10px;
  80. opacity: 0;
  81. -webkit-box-sizing: border-box;
  82. -moz-box-sizing: border-box;
  83. box-sizing: border-box;
  84. -webkit-backface-visibility: hidden;
  85. backface-visibility: hidden;
  86. -webkit-transform: rotateY(-180deg);
  87. -moz-transform: rotateY(-180deg);
  88. -ms-transform: rotateY(-180deg);
  89. -o-transform: rotateY(-180deg);
  90. transform: rotateY(-180deg);
  91. }
  92. .album.flip {
  93. -webkit-transform: scale(1.1, 1.1);
  94. -moz-transform: scale(1.1, 1.1);
  95. -ms-transform: scale(1.1, 1.1);
  96. -o-transform: scale(1.1, 1.1);
  97. transform: scale(1.1, 1.1);
  98. z-index: 10;
  99. }
  100. .album.flip .front {
  101. -webkit-transform: rotateY(180deg);
  102. -moz-transform: rotateY(180deg);
  103. -ms-transform: rotateY(180deg);
  104. -o-transform: rotateY(180deg);
  105. transform: rotateY(180deg);
  106. }
  107. .album.flip .front .alpha {
  108. opacity: 1;
  109. }
  110. .album.flip .back {
  111. z-index: 2;
  112. opacity: 1;
  113. -webkit-transform: rotateY(0deg);
  114. -moz-transform: rotateY(0deg);
  115. -ms-transform: rotateY(0deg);
  116. -o-transform: rotateY(0deg);
  117. transform: rotateY(0deg);
  118. }
  119. .album {
  120. width: 20%;
  121. -webkit-text-size-adjust: none;
  122. }
  123. @media screen and (max-width: 768px) {
  124. .album h1, .album h2, .album h3 {
  125. font-size: 13px;
  126. line-height: 15px;
  127. }
  128. .album {
  129. width: 25%;
  130. }
  131. }
  132. @media screen and (min-width: 992px) {
  133. .album h1, .album h2, .album h3 {
  134. font-size: 15px;
  135. line-height: 17px;
  136. }
  137. }
  138. </style>
  139. <div class="container">
  140. <article id="content" class="single" role="main">
  141. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  142. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  143. <div class="entry-content">
  144. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  145. <?php the_content(); ?>
  146. <div class="albums"></div>
  147. </div>
  148. </div>
  149. <?php endwhile; ?>
  150. </article>
  151. </div>
  152. <?php get_footer(); ?>