Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #container {
- text-align: center;
- clear: both;
- height: 2160px;
- width: 960px;
- border-radius: 5px;
- border-style: solid;
- border-color: black;
- border-width: 2px;
- background-color: #82bede;
- }
- .topbutton {
- border: none;
- background-color: #98c0cf;
- margin-left: 7px;
- position: relative;
- top: 50%;
- transform: translateY(-50%);
- float: left;
- width: 100px;
- height: 25px;
- }
- #banner {
- height: 12%;
- width: 100%;
- float: left;
- background-color: #82bede;
- }
- #banner img {
- width: 100%;
- height: 100%;
- }
- #navbar {
- height: 2%;
- width: 100%;
- float: left;
- background-color: #355e70;
- }
- /*menu*/
- #menu2 {
- text-align: center;
- margin: 50px 0 50px 0;
- }
- #menu2 ul {
- margin: 0;
- list-style: none;
- display: inline-block;
- white-space: nowrap;
- }
- #menu2 li {
- display: inline;
- }
- #menu2 li a {
- display: block;
- margin-top: 6px;
- height: 30px;
- float: left;
- color: #000;
- text-decoration: none;
- font: normal 14px/22px 'latomedium', arial,sans-serif;
- padding: 0 0 0 12px;
- background: url(../img/pro_nine_0a.gif) no-repeat;
- }
- #menu2 li a b {
- height: 100%;
- float: left;
- display: block;
- background: url(../img/pro_nine_0.gif) right top;
- padding: 0 12px 0 0;
- }
- #menu2 li a:hover {
- background: url(../img/pro_nine_1a.gif) no-repeat;
- }
- #menu2 li a:hover b {
- background: url(../img/pro_nine_1.gif) right top;
- }
- /*galeria*/
- body {
- min-height: 100vh;
- display: grid;
- place-content: start center;
- background: linear-gradient(#fff, #aaa, #fff);
- }
- article {
- position: absolute;
- top: 20vh;
- left: 30vw;
- width: 40vw;
- color: #333;
- }
- article h1, article p {
- margin: 10px;
- }
- article h1 {
- font-size: 1.2rem;
- }
- article p {
- font-size: 0.9rem;
- line-height: 1.4;
- }
- .g {
- width: auto;
- height: 5vh;
- display: grid;
- grid-auto-flow: column;
- grid-auto-rows: 10vh;
- place-content: start center;
- z-index: 1;
- transition: all 1s;
- position: relative;
- top: 5vh;
- }
- .g:hover {
- background: linear-gradient(transparent, rgba(255, 255, 255, 0.5), transparent);
- height: 95vh;
- width: auto;
- }
- .g a {
- font: 0.8em monospace;
- position: static;
- display: block;
- width: 5ch;
- height: 5ch;
- display: grid;
- place-content: center;
- background: rgba(255, 255, 255, 0.5);
- color: #333;
- text-decoration: none;
- border-bottom: thin solid red;
- box-sizing: border-box;
- }
- .g a:hover {
- background: rgba(0, 0, 0, 0.5);
- color: #eee;
- border-bottom: 0 none;
- }
- .g a img {
- display: block;
- position: absolute;
- top: 0;
- left: 0;
- z-index: -1;
- width: 100%;
- height: 85vh;
- object-fit: cover;
- object-position: center;
- clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%, 50% 0, 50% 0, 50% 100%, 50% 100%);
- transition: clip-path 0.3s ease-in;
- }
- .g a:hover img, .g a img:hover {
- clip-path: polygon(50% 0, 0 0, 0 100%, 50% 100%, 50% 0, 100% 0, 100% 100%, 50% 100%);
- }
- article {
- transition: filter 0.5s;
- }
- .g:hover + article {
- filter: blur(3px);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement