Skip to content

Commit

Permalink
GITHUB REF IS NOW RESPONSIVE
Browse files Browse the repository at this point in the history
  • Loading branch information
kuogi committed Sep 23, 2023
1 parent bc3c7ed commit 0898c8b
Showing 1 changed file with 61 additions and 6 deletions.
67 changes: 61 additions & 6 deletions src/style/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,14 @@ body .page-container .content:not(.is-loading) a.github-ref {
color: #FFFFFF;
}

body .page-container .content:not(.is-loading) .github-ref:hover {
gap: 20px;
}

body .page-container .content:not(.is-loading) .github-ref:active {
gap: 70px;
@media screen and (min-width: 1301px) {
body .page-container .content:not(.is-loading) .github-ref:hover {
gap: 20px;
}

body .page-container .content:not(.is-loading) .github-ref:active {
gap: 70px;
}
}

body .page-container .content:not(.is-loading) .github-ref.is-loading {
Expand All @@ -367,6 +369,15 @@ body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) {
justify-content: space-around;
overflow: hidden;
background: transparent;
box-sizing: border-box;
}

@media screen and (max-width: 1300px) {
body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) {
flex-direction: column;
padding: 18px;
height: auto;
}
}

body .page-container .content:not(.is-loading) .github-ref:not(.is-loading)::before {
Expand Down Expand Up @@ -415,6 +426,27 @@ body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) .rep
opacity: 0.7;
}

@media screen and (max-width: 1300px) {
body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) .repo-info {
width: 100%;
text-align: center;
}

body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) .repo-info .repo-title {
font-size: 23px;
overflow: hidden;
text-overflow: ellipsis;
}

body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) .repo-info .repo-description {
display: none;
}

body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) .repo-info .repo-owner {
justify-content: center;
}
}

body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) .illustration {
display: grid;
grid-template-columns: repeat(2, 1fr);
Expand All @@ -432,10 +464,30 @@ body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) .ill
z-index: 2;
border-radius: 10px;
min-width: 136px;
overflow: hidden;
white-space: nowrap;
border: 1px solid #ffffff42;
transition: 0.4s background;
}

@media screen and (max-width: 1300px) {
body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) .illustration {
width: 100%;
margin-top: 20px;
}

body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) .illustration .container {
min-width: 0px;
}
}

@media screen and (max-width: 1300px) and (min-width: 600px) {
body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) .illustration {
grid-template-rows: 1fr;
grid-template-columns: repeat(4, 1fr);
}
}

body .page-container .content:not(.is-loading) .github-ref:not(.is-loading):hover .illustration .container {
background: rgba(0, 0, 0, 0.8);
}
Expand All @@ -448,4 +500,7 @@ body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) .ill

body .page-container .content:not(.is-loading) .github-ref:not(.is-loading) .illustration .container .title {
font-size: 19px;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
}

0 comments on commit 0898c8b

Please sign in to comment.