Advertisement
pan7nikt

css\galeria1.css

Oct 4th, 2022 (edited)
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.06 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. #menu2 {
  46.   text-align: center;
  47.   margin: 50px 0 50px 0;
  48. }
  49.  
  50. #menu2 ul {
  51.   margin: 0;
  52.   list-style: none;
  53.   display: inline-block;
  54.   white-space: nowrap;
  55. }
  56.  
  57. #menu2 li {
  58.   display: inline;
  59. }
  60.  
  61. #menu2 li a {
  62.   display: block;
  63.   margin-top: 6px;
  64.   height: 30px;
  65.   float: left;
  66.   color: #000;
  67.   text-decoration: none;
  68.   font: normal 14px/22px 'latomedium', arial,sans-serif;
  69.   padding: 0 0 0 12px;
  70.   background: url(../img/pro_nine_0a.gif) no-repeat;
  71. }
  72.  
  73. #menu2 li a b {
  74.   height: 100%;
  75.   float: left;
  76.   display: block;
  77.   background: url(../img/pro_nine_0.gif) right top;
  78.   padding: 0 12px 0 0;
  79. }
  80.  
  81. #menu2 li a:hover {
  82.   background: url(../img/pro_nine_1a.gif) no-repeat;
  83. }
  84.  
  85. #menu2 li a:hover b {
  86.   background: url(../img/pro_nine_1.gif) right top;
  87. }
  88.  
  89. /*galeria*/
  90. body {
  91.   min-height: 100vh;
  92.   display: grid;
  93.   place-content: start center;
  94.   background: linear-gradient(#fff, #aaa, #fff);
  95. }
  96.  
  97. article {
  98.   position: absolute;
  99.   top: 20vh;
  100.   left: 30vw;
  101.   width: 40vw;
  102.   color: #333;
  103. }
  104.  
  105. article h1, article p {
  106.   margin: 10px;
  107. }
  108.  
  109. article h1 {
  110.   font-size: 1.2rem;
  111. }
  112.  
  113. article p {
  114.   font-size: 0.9rem;
  115.   line-height: 1.4;
  116. }
  117.  
  118. .g {
  119.   width: auto;
  120.   height: 5vh;
  121.   display: grid;
  122.   grid-auto-flow: column;
  123.   grid-auto-rows: 10vh;
  124.   place-content: start center;
  125.   z-index: 1;
  126.   transition: all 1s;
  127.   position: relative;
  128.   top: 5vh;
  129. }
  130.  
  131. .g:hover {
  132.   background: linear-gradient(transparent, rgba(255, 255, 255, 0.5), transparent);
  133.   height: 95vh;
  134.   width: auto;
  135. }
  136.  
  137. .g a {
  138.   font: 0.8em monospace;
  139.   position: static;
  140.   display: block;
  141.   width: 5ch;
  142.   height: 5ch;
  143.   display: grid;
  144.   place-content: center;
  145.   background: rgba(255, 255, 255, 0.5);
  146.   color: #333;
  147.   text-decoration: none;
  148.   border-bottom: thin solid red;
  149.   box-sizing: border-box;
  150. }
  151.  
  152. .g a:hover {
  153.   background: rgba(0, 0, 0, 0.5);
  154.   color: #eee;
  155.   border-bottom: 0 none;
  156. }
  157.  
  158. .g a img {
  159.   display: block;
  160.   position: absolute;
  161.   top: 0;
  162.   left: 0;
  163.   z-index: -1;
  164.   width: 100%;
  165.   height: 85vh;
  166.   object-fit: cover;
  167.   object-position: center;
  168.   clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%, 50% 0, 50% 0, 50% 100%, 50% 100%);
  169.   transition: clip-path 0.3s ease-in;
  170. }
  171.  
  172. .g a:hover img, .g a img:hover {
  173.   clip-path: polygon(50% 0, 0 0, 0 100%, 50% 100%, 50% 0, 100% 0, 100% 100%, 50% 100%);
  174. }
  175.  
  176. article {
  177.   transition: filter 0.5s;
  178. }
  179.  
  180. .g:hover + article {
  181.   filter: blur(3px);
  182. }
  183.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement