Advertisement
TheiPhoneFan

Original Image Features CSS

Apr 2nd, 2024 (edited)
950
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.16 KB | None | 0 0
  1. /* Created by TheiPhoneFan on 2024-03-28 */
  2. /* Theme 6.0.3 2023-2024 */
  3. /* Begin Slideshow CSS */
  4. .slideshow-container {
  5.     max-width: 500px;
  6.     position: relative;
  7.     margin: auto;
  8. }
  9.  
  10. .slideshow-container .slideshow-img {
  11.     display: none;
  12.     max-width: 100%;
  13.     height: auto;
  14. }
  15.  
  16. .slideshow-img img {
  17.     border-radius: 16px;
  18.     max-width: 100%;
  19. }
  20.  
  21. .prev,
  22. .next {
  23.     cursor: pointer;
  24.     position: absolute;
  25.     top: 50%;
  26.     width: auto;
  27.     margin-top: -22px;
  28.     padding: 16px;
  29.     color: white;
  30.     font-weight: bold;
  31.     font-size: 18px;
  32.     transition: 0.6s ease;
  33.     border-radius: 0 3px 3px 0;
  34. }
  35.  
  36. .prev {
  37.     left: 0;
  38. }
  39.  
  40. .next {
  41.     right: 0;
  42. }
  43.  
  44. .previews-container {
  45.     display: flex;
  46.     justify-content: center;
  47.     margin-top: 10px;
  48. }
  49.  
  50. .preview-img {
  51.     width: 85px;
  52.     height: auto;
  53.     margin: 0 5px;
  54.     cursor: pointer;
  55.     border-radius: 12px;
  56. }
  57.  
  58. .active-preview {
  59.     border: 2px solid #6495ED;
  60. }
  61. figcaption {
  62.     text-align: center;
  63. }
  64. /* End Slideshow CSS */
  65.  
  66. /* Begin Expandable Image CSS */
  67. .image-gallery {
  68.     /* The Gallery That Holds The Images */
  69.     display: flex;
  70.     flex-wrap: wrap;
  71.     justify-content: center;
  72.     gap: 10px;
  73. }
  74.  
  75. .gallery-image {
  76.     /* A pointer cursor will display when you hover over the image */
  77.     cursor: pointer;
  78. }
  79.  
  80. .modal {
  81.     /* The fullscreen popup that shows an expanded view of the image */
  82.     display: none;
  83.     position: fixed;
  84.     padding-top: 50px;
  85.     left: 0;
  86.     top: 0;
  87.     width: 100%;
  88.     height: 100%;
  89.     overflow: auto;
  90.     background-color: rgba(0, 0, 0, 0.9);
  91. }
  92.  
  93. .modal-content {
  94.     /* The content inside of the .modal */
  95.     display: block;
  96.     margin: auto;
  97. }
  98.  
  99. .close {
  100.     /* The close button (x) that can be clicked to close the .modal */
  101.     color: white;
  102.     font-size: 40px;
  103.     position: absolute;
  104.     top: 10px;
  105.     right: 25px;
  106.     cursor: pointer;
  107. }
  108.  
  109. #modalImage {
  110.     /* The image inside the .image-container */
  111.     max-width: 100%;
  112.     width: 450px;
  113. }
  114. /* End Expandable Image CSS */
  115.  
  116. /* Begin Image Gallery CSS */
  117. div.gallery {
  118.     border: 1px solid #ccc;
  119.     border-radius: 16px;
  120. }
  121.  
  122. div.gallery:hover {
  123.     border: 1px solid #777;
  124. }
  125.  
  126. div.gallery img {
  127.     width: 100%;
  128.     height: auto;
  129.     border-radius: 16px 16px 0px 0px;
  130. }
  131.  
  132. div.desc {
  133.     padding: 15px;
  134.     text-align: center;
  135. }
  136.  
  137. .desc p {
  138.     margin: 0px;
  139. }
  140.  
  141. * {
  142.     box-sizing: border-box;
  143. }
  144.  
  145. .responsive {
  146.     padding: 0 6px;
  147.     margin-top: 10px;
  148.     margin-bottom: 10px;
  149.     float: left;
  150.     width: 24.99999%;
  151. }
  152.  
  153. @media only screen and (max-width: 700px) {
  154.     .responsive {
  155.         width: 49.99999%;
  156.         margin: 6px 0;
  157.     }
  158. }
  159.  
  160. @media only screen and (max-width: 500px) {
  161.     .responsive {
  162.         width: 100%;
  163.     }
  164. }
  165.  
  166. .clearfix:after {
  167.     content: "";
  168.     display: table;
  169.     clear: both;
  170. }
  171.  
  172. .image-gallery {
  173.     /* The Gallery That Holds The Images */
  174.     display: flex;
  175.     flex-wrap: wrap;
  176.     justify-content: center;
  177.     gap: 10px;
  178. }
  179.  
  180. .gallery-image {
  181.     /* A pointer cursor will display when you hover over the image */
  182.     cursor: pointer;
  183. }
  184. /* End Image Gallery CSS */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement