gallery.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing:border-box;
  5. }
  6. html {
  7. height:100%;
  8. width:100%;
  9. }
  10. body {
  11. height:100%;
  12. width:100%;
  13. position:relative;
  14. font: bold 1rem sans, sans-serif;
  15. color:#ccc;
  16. background:#111;
  17. }
  18. a {
  19. outline: none;
  20. text-decoration: none;
  21. }
  22. a:hover {
  23. text-decoration: underline;
  24. }
  25. a, a:hover, a:focus, a:visited {
  26. color:#ccc;
  27. }
  28. a:focus {
  29. outline: 3px solid red;
  30. }
  31. .clearfix:before,
  32. .clearfix:after {
  33. content: " ";
  34. display: table;
  35. }
  36. .clearfix:after {
  37. clear: both;
  38. }
  39. .clearfix {
  40. *zoom: 1;
  41. }
  42. /*-------------------fullpage--------------------*/
  43. .fullpage .content {
  44. height:100%;
  45. width:100%;
  46. display:flex;
  47. align-items: center;
  48. }
  49. .fullpage img {
  50. display: block;
  51. }
  52. /*--------------header-------------*/
  53. .fullpage .head {
  54. width:100%;
  55. position:absolute;
  56. top:0;
  57. left:0;
  58. height:1.5rem;
  59. background:#333;
  60. opacity:0.5;
  61. padding:0 0.5rem;
  62. display:flex;
  63. }
  64. .fullpage .head .back {
  65. flex: 0 0 auto;
  66. }
  67. .fullpage .head .imagetext {
  68. flex: 1 1 auto;
  69. text-align: center;
  70. }
  71. .fullpage .head .title {
  72. flex: 0 0 auto;
  73. }
  74. .fullpage .head:hover {
  75. opacity:1;
  76. }
  77. /*-----------thumbnails-------------*/
  78. .fullpage .thumb {
  79. flex: 0 0 10%;
  80. padding:0.4rem;
  81. }
  82. .fullpage .thumb img {
  83. border: 0.15rem solid rgba(255,255,255,0.5);
  84. width:100%;
  85. opacity:0.9;
  86. }
  87. .fullpage .thumb img:hover {
  88. opacity:1;
  89. border-color:#ccc;
  90. }
  91. .fullpage .thumb img {
  92. width:100%;
  93. }
  94. /*-------------full image-------------*/
  95. .fullpage .full {
  96. flex: 1 1 80%;
  97. display:flex;
  98. align-items: center;
  99. width:100%;
  100. height:100%;
  101. padding:2rem 0.2rem 0.5rem 0.2rem;
  102. }
  103. .fullpage .full img {
  104. object-fit:contain;
  105. max-width:100%;
  106. max-height:100%;
  107. margin: 0 auto;
  108. box-shadow: 0 0 0.5rem 0.5rem black;
  109. }
  110. /*------------thumbnail page (index)-------------*/
  111. .thumbpage .content {
  112. padding: 2rem 0.5rem 0 0.5rem;
  113. }
  114. .thumbpage img {
  115. border: 0.2rem solid black;
  116. }
  117. .thumbpage .thumb {
  118. float:left;
  119. margin:0;
  120. padding:0;
  121. margin:0.2rem;
  122. }
  123. .thumbpage .head {
  124. width:100%;
  125. position:absolute;
  126. top:0;
  127. left:0;
  128. height:1.5rem;
  129. background:#333;
  130. padding:0 0.5rem;
  131. }
  132. .thumbpage .head .back {
  133. float:left;
  134. }
  135. .thumbpage .head .title {
  136. float: right;
  137. }