page-music.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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: .8em;
  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 .front, .album .back {
  33. float: none;
  34. width: 100%;
  35. height: auto;
  36. -webkit-transform-style: preserve-3d;
  37. transform-style: preserve-3d;
  38. -webkit-transition: -webkit-transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  39. -moz-transition: -moz-transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  40. -ms-transition: -ms-transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  41. -o-transition: -o-transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  42. transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  43. }
  44. .album .front {
  45. z-index: 1;
  46. -webkit-transform: rotateY(0deg);
  47. -moz-transform: rotateY(0deg);
  48. -ms-transform: rotateY(0deg);
  49. -o-transform: rotateY(0deg);
  50. transform: rotateY(0deg);
  51. }
  52. .album .front .alpha {
  53. -webkit-transition: opacity 0.4s ease-in-out;
  54. -moz-transition: opacity 0.4s ease-in-out;
  55. -ms-transition: opacity 0.4s ease-in-out;
  56. -o-transition: opacity 0.4s ease-in-out;
  57. transition: opacity 0.4s ease-in-out;
  58. display: block;
  59. content: '';
  60. height: 100%;
  61. width: 100%;
  62. position: absolute;
  63. top: 0;
  64. left: 0;
  65. background: rgba(255, 255, 255, 0.75);
  66. opacity: 0;
  67. }
  68. .album .back {
  69. position: absolute;
  70. top: 0;
  71. left: 0;
  72. z-index: 0;
  73. text-align: center;
  74. font-family: sans-serif;
  75. padding: 10px;
  76. opacity: 0;
  77. -webkit-box-sizing: border-box;
  78. -moz-box-sizing: border-box;
  79. box-sizing: border-box;
  80. -webkit-backface-visibility: hidden;
  81. backface-visibility: hidden;
  82. -webkit-transform: rotateY(-180deg);
  83. -moz-transform: rotateY(-180deg);
  84. -ms-transform: rotateY(-180deg);
  85. -o-transform: rotateY(-180deg);
  86. transform: rotateY(-180deg);
  87. }
  88. .album.flip {
  89. -webkit-transform: scale(1.1, 1.1);
  90. -moz-transform: scale(1.1, 1.1);
  91. -ms-transform: scale(1.1, 1.1);
  92. -o-transform: scale(1.1, 1.1);
  93. transform: scale(1.1, 1.1);
  94. z-index: 10;
  95. }
  96. .album.flip .front {
  97. -webkit-transform: rotateY(180deg);
  98. -moz-transform: rotateY(180deg);
  99. -ms-transform: rotateY(180deg);
  100. -o-transform: rotateY(180deg);
  101. transform: rotateY(180deg);
  102. }
  103. .album.flip .front .alpha {
  104. opacity: 1;
  105. }
  106. .album.flip .back {
  107. z-index: 2;
  108. opacity: 1;
  109. -webkit-transform: rotateY(0deg);
  110. -moz-transform: rotateY(0deg);
  111. -ms-transform: rotateY(0deg);
  112. -o-transform: rotateY(0deg);
  113. transform: rotateY(0deg);
  114. }
  115. pre {
  116. overflow: scroll;
  117. white-space: pre;
  118. word-wrap: normal;
  119. }
  120. .album {
  121. width: 50%;
  122. -webkit-text-size-adjust: none;
  123. }
  124. @media screen and (min-width: 300px) {
  125. .album h1, .album h2, .album h3 {
  126. font-size: 13px;
  127. line-height: 1em;
  128. }
  129. }
  130. @media screen and (min-width: 600px) {
  131. .album h1, .album h2, .album h3 {
  132. font-size: 25px;
  133. line-height: 1em;
  134. }
  135. }
  136. @media screen and (min-width: 900px) {
  137. .album {
  138. width: 33%;
  139. }
  140. .album h1, .album h2, .album h3 {
  141. font-size: 15px;
  142. line-height: 1em;
  143. }
  144. }
  145. @media screen and (min-width: 1200px) {
  146. .album {
  147. width: 20%;
  148. }
  149. }
  150. @media screen and (max-width: 400px) {
  151. .phone-hide {
  152. display: none;
  153. }
  154. }
  155. .phone-show {
  156. display: none;
  157. }
  158. @media screen and (max-width: 400px) {
  159. .phone-show {
  160. display: inline;
  161. }
  162. }
  163. </style>
  164. <div class="container">
  165. <article id="content" class="single" role="main">
  166. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  167. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  168. <div class="entry-content">
  169. <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>
  170. <?php the_content(); ?>
  171. <div class="albums"></div>
  172. </div>
  173. </div>
  174. <?php endwhile; ?>
  175. </article>
  176. </div>
  177. <?php get_footer(); ?>