body { padding: 0rem 2rem 1rem 2rem; color: rgb(31, 41, 55); font-family: "Source Sans Pro", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; } h1 { font-size: 1.5rem; margin: 0; } h2.title { font-size: 1.3rem; margin: 10px 0 20px 0; } p { color: rgb(107, 114, 128); font-size: 15px; margin-bottom: 10px; margin-top: 5px; } .card { margin: 0 10px; padding: 10px; } .card p:last-child { margin-bottom: 0; } .card_4 { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); grid-column-gap: 10px; grid-row-gap: 10px; justify-content: center; justify-items: center; } .g2 { display: grid; grid-template-columns: repeat(2, 1fr); grid-column-gap: 10px; grid-row-gap: 10px; padding: 0 0; } a { outline: none; color: #000; text-decoration: none; font-weight: inherit; } a img { border: none; } a:hover, a:focus { color: rgba(39, 94, 254, 1); } .thumb { max-width: 320px; position: relative; aspect-ratio: 800 / 600; overflow: hidden; border-radius: 10px; } .thumb .filled { position: relative; overflow: hidden; height: 100%; display: block; background-color: transparent; background-repeat: no-repeat; background-position: 50% 50%; background-size: 140px; border-radius: 10px; } .thumb:hover { box-shadow: 0 3px 15px -1px rgba(39, 94, 254, 0.5); } .thumb:hover .sample::after, .thumb:focus .sample::after{ opacity: 1; } .thumb:hover .icon, .thumb:focus .icon { opacity: 1; pointer-events: auto; } .thumb img { display: block; height: 100%; width: auto; max-width: none; } .thumb img { display: block; height: 100%; width: auto; max-width: none; } .sample::after { content: "View sample \2197"; color: #fff; position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; display: grid; font-size: 0.9rem; font-weight: 500; place-items: center; background: rgba(0, 0, 0, 0.7); opacity: 0; transition: opacity 0.3s; } .archive { margin: -2.5rem 12px 0 0; position: relative; z-index: 1000; margin-top: -2.5rem; display: flex; align-items: flex-end; justify-content: end; pointer-events: none; gap: 0.5rem; } .icon { width: 30px; height: 30px; font-size: 0; display: grid; padding: 0; border-radius: 50%; background: #fff; pointer-events: none; opacity: 0; transition: opacity 0.3s; } .github { background: rgba(255, 255, 255, 0.2) url(./icon/github.svg) no-repeat 50% 50%; background-size: 16px; } .github:hover { background: rgba(39, 94, 254, 0.8) url(./icon/github.svg) no-repeat 50% 50%; background-size: 16px; } .article { background: rgba(255, 255, 255, 0.2) url(./icon/article.svg) no-repeat 50% 50%; background-size: 16px; } .article:hover { background: rgba(39, 94, 254, 0.8) url(./icon/article.svg) no-repeat 50% 50%; background-size: 16px; } .description { margin-top: 1rem; flex-direction: column; align-items: flex-start; max-width: 320px; } .tags { text-transform: lowercase; text-overflow: ellipsis; font-size: 14px; } .tags a, .tags span { color: rgb(0 0 0 / 75%); white-space: nowrap; border: 1px solid rgba(107, 114, 128, 0.5); border-radius: 2rem; padding: 0px 0.4rem 3px 0.4rem; margin: 0 3px; } .backend { justify-self: right; } .tags a:hover, .tags span:hover { border: 1px solid #184fee; color: #fff; background: linear-gradient(135deg, #184fee 0%, #144acc 40%, #144acc 100%); box-shadow: 0 3px 15px -1px rgba(39, 94, 254, 0.5); } footer { margin-top: 1rem; color: rgb(107, 114, 128); text-align: center; } footer:hover { color:#184fee; } /* Largest devices such as desktops (1280px) */ @media only screen and (max-width: 80em) { .card_4 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } } /* Large devices such as laptops (1024px) */ @media only screen and (max-width: 64em) { .card_4 { grid-template-columns: repeat(2, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } } /* Medium devices such as tablets (768px) */ @media only screen and (max-width: 48em) { .card_4 { grid-template-columns: repeat(2, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } } @media only screen and (max-width: 40em) { body { padding: 1rem; } .card_4 { grid-template-columns: repeat(1, 1fr); } .g2 { grid-template-columns: repeat(1, 1fr); } .thumb, .description { max-width: 82vw; } .backend { justify-self: left; } }