You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
2.3 KiB
CSS
107 lines
2.3 KiB
CSS
/* Rules for the grid icons and stuff */
|
|
.grid {
|
|
transition: 0.2s all;
|
|
position: relative; }
|
|
|
|
.grid-item-padding {
|
|
padding: 5px;
|
|
box-sizing: border-box;
|
|
height: fit-content; }
|
|
|
|
.grid-item {
|
|
background-color: #eaeaea;
|
|
border-radius: 3px;
|
|
padding: 5px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
transition: 0.25s ease-in-out;
|
|
overflow: hidden;
|
|
position: relative; }
|
|
.grid-item img {
|
|
width: inherit; }
|
|
.grid-item img::after {
|
|
content: "";
|
|
display: block;
|
|
padding-bottom: 100%; }
|
|
|
|
@media (min-width: 992px) {
|
|
.grid-sizer, .grid-item--std {
|
|
width: 25%; }
|
|
|
|
.grid-item--wide {
|
|
width: 50%; } }
|
|
@media (min-width: 768px) and (max-width: 991px) {
|
|
.grid-item--std, .grid-sizer {
|
|
width: 50%; }
|
|
|
|
.grid-item--wide {
|
|
width: 100%; } }
|
|
@media (max-width: 767px) {
|
|
.grid-item--std, .grid-sizer {
|
|
width: 100%; }
|
|
|
|
.grid-item--wide {
|
|
width: 100%; } }
|
|
/* Rules for the overlay */
|
|
.service-wrapper-inner {
|
|
height: 100%;
|
|
width: 90%;
|
|
position: absolute;
|
|
z-index: 1;
|
|
top: 71%;
|
|
padding: 10px 15px;
|
|
transition: 0.2s ease; }
|
|
.service-wrapper-inner p {
|
|
color: #e7e7e7; }
|
|
.service-wrapper-inner.notitle {
|
|
width: 60%;
|
|
top: 76%; }
|
|
|
|
.service-overlay {
|
|
background-color: rgba(32, 32, 32, 0.4);
|
|
width: 120%;
|
|
height: 120%;
|
|
position: absolute;
|
|
top: 68%;
|
|
left: -28px;
|
|
z-index: 0;
|
|
transition: 0.2s ease; }
|
|
.service-overlay.notitle {
|
|
clip-path: polygon(0 0, 100% 90%, 100% 100%, 0 100%);
|
|
height: 200%; }
|
|
.service-overlay.title {
|
|
clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 100%); }
|
|
|
|
.grid-item:hover .service-wrapper-inner {
|
|
top: -10%;
|
|
padding: 15px 15px; }
|
|
.grid-item:hover .service-wrapper-inner.notitle {
|
|
padding: 10px 15px; }
|
|
.grid-item:hover .service-overlay {
|
|
background-color: rgba(32, 32, 32, 0.8); }
|
|
.grid-item:hover .service-overlay.title {
|
|
top: -10%;
|
|
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
|
|
.grid-item:hover .service-overlay.notitle {
|
|
top: -20%;
|
|
clip-path: polygon(0 0, 65% 0, 100% 100%, 0 100%);
|
|
left: -20%; }
|
|
|
|
img {
|
|
transition: 0.25s; }
|
|
|
|
.blur-me img {
|
|
filter: grayscale(0%) blur(0px) brightness(100%);
|
|
opacity: 1;
|
|
box-shadow: none; }
|
|
|
|
.unblur-me img {
|
|
filter: grayscale(0%) blur(0px) brightness(100%);
|
|
opacity: 1;
|
|
box-shadow: none; }
|
|
|
|
.grid:hover .grid-item:hover {
|
|
opacity: 1; }
|
|
|
|
/*# sourceMappingURL=masonry.css.map */
|