Advertisement
pan7nikt

css\galeria.css

Oct 4th, 2022 (edited)
719
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.68 KB | None | 0 0
  1. #container {
  2.   text-align: center;
  3.   clear: both;
  4.   height: 2160px;
  5.   width: 960px;
  6.   border-radius: 5px;
  7.   border-style: solid;
  8.   border-color: black;
  9.   border-width: 2px;
  10.   background-color: #82bede;
  11. }
  12.  
  13. .topbutton {
  14.   border: none;
  15.   background-color: #98c0cf;
  16.   margin-left: 7px;
  17.   position: relative;
  18.   top: 50%;
  19.   transform: translateY(-50%);
  20.   float: left;
  21.   width: 100px;
  22.   height: 25px;
  23. }
  24.  
  25. #banner {
  26.   height: 12%;
  27.   width: 100%;
  28.   float: left;
  29.   background-color: #82bede;
  30. }
  31.  
  32. #banner img {
  33.   width: 100%;
  34.   height: 100%;
  35. }
  36.  
  37. #navbar {
  38.   height: 2%;
  39.   width: 100%;
  40.   float: left;
  41.   background-color: #355e70;
  42. }
  43.  
  44. /*menu*/
  45. body {
  46.   min-height: 100vh;
  47.   display: grid;
  48.   place-content: start center;
  49.   background: linear-gradient(#fff, #aaa, #fff);
  50. }
  51.  
  52. #menu2 {
  53.   text-align: center;
  54.   margin: 50px 0 50px 0;
  55. }
  56.  
  57. #menu2 ul {
  58.   margin: 0;
  59.   list-style: none;
  60.   display: inline-block;
  61.   white-space: nowrap;
  62. }
  63.  
  64. #menu2 li {
  65.   display: inline;
  66. }
  67.  
  68. #menu2 li a {
  69.   display: block;
  70.   margin-top: 6px;
  71.   height: 30px;
  72.   float: left;
  73.   color: #000;
  74.   text-decoration: none;
  75.   font: normal 14px/22px 'latomedium', arial,sans-serif;
  76.   padding: 0 0 0 12px;
  77.   background: url(../img/pro_nine_0a.gif) no-repeat;
  78. }
  79.  
  80. #menu2 li a b {
  81.   height: 100%;
  82.   float: left;
  83.   display: block;
  84.   background: url(../img/pro_nine_0.gif) right top;
  85.   padding: 0 12px 0 0;
  86. }
  87.  
  88. #menu2 li a:hover {
  89.   background: url(../img/pro_nine_1a.gif) no-repeat;
  90. }
  91.  
  92. #menu2 li a:hover b {
  93.   background: url(../img/pro_nine_1.gif) right top;
  94. }
  95.  
  96. /*galeria 1*/
  97. .container {
  98.   display: flex;
  99.   justify-content: center;
  100.   align-items: center;
  101.   margin: 10vmin;
  102.   overflow: hidden;
  103.   transform: skew(5deg);
  104. }
  105.  
  106. .container .card {
  107.   flex: 1;
  108.   transition: all 1s ease-in-out;
  109.   height: 75vmin;
  110.   position: relative;
  111. }
  112.  
  113. .container .card .card__head {
  114.   color: black;
  115.   background: rgba(255, 30, 173, 0.75);
  116.   padding: 0.5em;
  117.   transform: rotate(-90deg);
  118.   transform-origin: 0% 0%;
  119.   transition: all 0.5s ease-in-out;
  120.   min-width: 100%;
  121.   text-align: center;
  122.   position: absolute;
  123.   bottom: 0;
  124.   left: 0;
  125.   font-size: 1em;
  126.   white-space: nowrap;
  127. }
  128.  
  129. .container .card:hover {
  130.   flex-grow: 10;
  131. }
  132.  
  133. .container .card:hover img {
  134.   filter: grayscale(0);
  135. }
  136.  
  137. .container .card:hover .card__head {
  138.   text-align: center;
  139.   top: calc(100% - 2em);
  140.   color: white;
  141.   background: rgba(0, 0, 0, 0.5);
  142.   font-size: 2em;
  143.   transform: rotate(0deg) skew(-5deg);
  144. }
  145.  
  146. .container .card img {
  147.   width: 100%;
  148.   height: 100%;
  149.   object-fit: cover;
  150.   transition: all 1s ease-in-out;
  151.   filter: grayscale(100%);
  152. }
  153.  
  154. .container .card:not(:nth-child(7)) {
  155.   margin-right: 1em;
  156. }
  157.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement