You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
187 lines
5.9 KiB
187 lines
5.9 KiB
.projects-wrapper {
|
|
display: grid;
|
|
grid-gap: var(--gap) var(--gap);
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
|
|
.projects-wrapper .project {
|
|
will-change: transform; }
|
|
.projects-wrapper .project-info {
|
|
position: relative; }
|
|
.projects-wrapper .project-more {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 100px;
|
|
font-size: 60px;
|
|
text-align: center;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
background: rgba(11, 122, 117, 0.5);
|
|
transition: all 0.4s ease; }
|
|
.projects-wrapper .project-image img {
|
|
width: 100%;
|
|
height: auto; }
|
|
.projects-wrapper .project-name {
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 100%;
|
|
background: rgba(51, 59, 72, 0.5);
|
|
padding: 10px var(--gap-s);
|
|
text-shadow: 1px 1px 1px var(--dark-darker);
|
|
transition: all 0.4s ease; }
|
|
.projects-wrapper .project > .tags {
|
|
background: var(--dark-lighter);
|
|
padding: var(--gap-s);
|
|
font-size: 12px;
|
|
transition: all 0.4s ease; }
|
|
.projects-wrapper .project > .tags .tag {
|
|
background: var(--dark);
|
|
padding: 10px; }
|
|
.projects-wrapper .project > .tags .tag:not(:last-child) {
|
|
margin-right: 5px; }
|
|
.projects-wrapper .project:hover {
|
|
cursor: pointer; }
|
|
.projects-wrapper .project:hover .project-more {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transition: all 0.4s ease; }
|
|
.projects-wrapper .project:hover .project-name {
|
|
background: rgba(11, 122, 117, 0.5);
|
|
transition: all 0.4s ease; }
|
|
.projects-wrapper .project:hover > .tags {
|
|
background: var(--green);
|
|
transition: all 0.4s ease; }
|
|
|
|
.projects-modals .project-modal {
|
|
position: fixed;
|
|
z-index: -1;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
background: rgba(51, 59, 72, 0.6);
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.4s ease; }
|
|
.projects-modals .project-modal.open {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
z-index: 2; }
|
|
.projects-modals .project-modal__inner {
|
|
position: relative;
|
|
background-color: var(--dark);
|
|
padding: var(--gap);
|
|
border: 2px solid var(--green);
|
|
cursor: initial; }
|
|
@media screen and (max-width: 919px) {
|
|
.projects-modals .project-modal__inner {
|
|
width: calc(100% - 100px);
|
|
height: calc(100% - 100px);
|
|
margin: 70px auto 5%;
|
|
transform: translateY(-50%);
|
|
top: 50%; } }
|
|
@media screen and (min-width: 920px) {
|
|
.projects-modals .project-modal__inner {
|
|
margin: 5% auto;
|
|
width: 80%;
|
|
height: 100%;
|
|
max-height: 80%;
|
|
max-width: 1720px; } }
|
|
.projects-modals .project-modal__inner .close-modal {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 40px;
|
|
height: 40px;
|
|
font-size: 38px;
|
|
line-height: 34px;
|
|
text-align: center;
|
|
background: var(--green);
|
|
cursor: pointer; }
|
|
@media screen and (max-width: 919px) {
|
|
.projects-modals .project-modal__wrapper {
|
|
height: 100%;
|
|
overflow: auto; } }
|
|
@media screen and (min-width: 920px) {
|
|
.projects-modals .project-modal__wrapper {
|
|
display: flex;
|
|
height: 100%; } }
|
|
@media screen and (min-width: 920px) {
|
|
.projects-modals .project-modal__image {
|
|
width: 100%; } }
|
|
.projects-modals .project-modal__image .project-image,
|
|
.projects-modals .project-modal__image img {
|
|
height: auto; }
|
|
@media screen and (min-width: 920px) {
|
|
.projects-modals .project-modal__image .project-image,
|
|
.projects-modals .project-modal__image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
object-position: top; } }
|
|
.projects-modals .project-modal__content {
|
|
position: relative;
|
|
width: 100%;
|
|
overflow: auto; }
|
|
@media screen and (min-width: 920px) {
|
|
.projects-modals .project-modal__content {
|
|
margin-left: var(--gap);
|
|
margin-bottom: 60px; } }
|
|
.projects-modals .project-modal__content .green-tag {
|
|
background: #0B7A75;
|
|
padding: 2px 5px;
|
|
font-size: 12px; }
|
|
.projects-modals .project-modal__content > p {
|
|
margin-top: var(--gap-s); }
|
|
.projects-modals .project-modal__content + .tags {
|
|
width: 100%;
|
|
font-size: 12px;
|
|
transition: all 0.4s ease; }
|
|
@media screen and (min-width: 920px) {
|
|
.projects-modals .project-modal__content + .tags {
|
|
position: absolute;
|
|
bottom: var(--gap);
|
|
right: var(--gap);
|
|
max-width: calc(50% - 30px); } }
|
|
@media screen and (min-width: 1010px) {
|
|
.projects-modals .project-modal__content + .tags {
|
|
max-width: calc(50% - 60px); } }
|
|
.projects-modals .project-modal__content + .tags .tag {
|
|
display: inline-block;
|
|
background: var(--dark-lighter);
|
|
padding: 5px 10px; }
|
|
.projects-modals .project-modal__content + .tags .tag:not(:last-child) {
|
|
margin-right: 5px; }
|
|
.projects-modals .project-modal__arrow {
|
|
position: absolute;
|
|
top: 50%;
|
|
width: 40px;
|
|
height: 40px;
|
|
background: var(--green);
|
|
z-index: 2;
|
|
cursor: pointer;
|
|
transform: translateY(-50%); }
|
|
.projects-modals .project-modal__arrow:before {
|
|
display: inline-block;
|
|
width: 40px;
|
|
height: 40px;
|
|
color: var(--light);
|
|
font-size: 32px;
|
|
font-weight: bold;
|
|
line-height: 36px;
|
|
text-align: center; }
|
|
.projects-modals .project-modal__arrow.prev {
|
|
left: -40px; }
|
|
.projects-modals .project-modal__arrow.prev:before {
|
|
content: '<'; }
|
|
.projects-modals .project-modal__arrow.next {
|
|
right: -40px; }
|
|
.projects-modals .project-modal__arrow.next:before {
|
|
content: '>'; }
|
|
.projects-modals .project-modal:first-child .project-modal__arrow.prev {
|
|
display: none; }
|
|
.projects-modals .project-modal:last-child .project-modal__arrow.next {
|
|
display: none; }
|
|
|
|
/*# sourceMappingURL=projects.css.map */
|