gallery.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /* Gallery page. */
  2. section#album_list{
  3. text-align: center;
  4. }
  5. section#album_list h3{
  6. text-align: left;
  7. }
  8. section#album_list article{
  9. display: inline-block;
  10. vertical-align: top;
  11. text-align: center;
  12. margin: 1em;
  13. width: 25em;
  14. }
  15. section#album_list article a.frame{
  16. display: inline-block;
  17. width: 10em;
  18. max-height: 10em;
  19. margin: 0.2em;
  20. border: 0.1em solid #000033;
  21. background-color: #000033;
  22. border-radius: 0.2em;
  23. vertical-align: middle;
  24. }
  25. section#album_list article a.frame img{
  26. max-width: 9.5em;
  27. max-height: 9.5em;
  28. }
  29. /* Album page. */
  30. section#album{
  31. text-align: center;
  32. }
  33. section#album h3{
  34. text-align: left;
  35. }
  36. section#album article{
  37. display: inline-block;
  38. vertical-align: top;
  39. height: 12em;
  40. width: 12em;
  41. }
  42. section#album article h4{
  43. margin-bottom: 0.2em;
  44. }
  45. section#album article img{
  46. max-height: 9em;
  47. max-width: 11.5em;
  48. border: 0.1em solid #000033;
  49. border-radius: 0.2em;
  50. }
  51. section#album article div.user{
  52. font-size: 80%;
  53. text-align: right;
  54. margin: 0 0.5em 0.5em 0.5em;
  55. color: #444466;
  56. font-style: italic;
  57. }
  58. /* Photo viewer. */
  59. div#screen_cover{
  60. position: fixed;
  61. top: 0;
  62. left: 0;
  63. background-color: black;
  64. display: none;
  65. width: 100%;
  66. height: 100%;
  67. opacity: 0;
  68. transition: all .9s ease-in-out;
  69. z-index: 1000;
  70. }
  71. section#photo_viewer{
  72. position: fixed;
  73. display: none;
  74. top: 1em;
  75. left: 4em;
  76. right: 4em;
  77. bottom: 1em;
  78. opacity: 0;
  79. transition: all .6s ease-in-out;
  80. z-index: 1001;
  81. min-height: 10em;
  82. overflow-y: auto;
  83. }
  84. @media screen and max-width: 800px{
  85. div#photo_viewer{
  86. top: 2%;
  87. left: 2%;
  88. right: 2%;
  89. bottom: 2%;
  90. }
  91. }
  92. section#photo_viewer h3 div#viewer_close_container{
  93. height: 1.5em;
  94. float: right;
  95. margin-top: -0.3em;
  96. margin-right: -0.4em;
  97. }
  98. section#photo_viewer article{
  99. text-align: center;
  100. }
  101. section#photo_viewer article div{
  102. display: inline-block;
  103. vertical-align: middle;
  104. margin: 0;
  105. }
  106. section#photo_viewer article div.arrow{
  107. width: 15%;
  108. padding: 0.5em;
  109. }
  110. section#photo_viewer article div#photo_view{
  111. width: 65%;
  112. height: 90%;
  113. padding: 0.1em;
  114. }
  115. section#photo_viewer article div#photo_view img{
  116. display: inline-block;
  117. height: 90%;
  118. width: inherit;
  119. background: #000000;
  120. border: 0.1em solid #000000;
  121. border-radius: 0.5em;
  122. }
  123. section#photo_viewer article div#photo_view p{
  124. margin: 0.2em;
  125. padding: 0;
  126. text-align: left;
  127. }