summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-10-13 21:54:45 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-10-13 21:55:25 +0800
commit2acc84dc6430b9a49addd0fd03f071a5215ff2f3 (patch)
tree2ba1a635bf9c19a8fcf65ea4433046460a883994 /src
parent1ea330f30e19869cf58d8f261177086a7c0b137e (diff)
more box shadow when hovered and re-formatted
Diffstat (limited to 'src')
-rw-r--r--src/css/ghrepo.css77
-rw-r--r--src/js/getrepo.js2
2 files changed, 40 insertions, 39 deletions
diff --git a/src/css/ghrepo.css b/src/css/ghrepo.css
index f4617e7a..cfd2f354 100644
--- a/src/css/ghrepo.css
+++ b/src/css/ghrepo.css
@@ -104,18 +104,6 @@ h2 {
margin: 0;
}
-img {
- border: 2px solid var(--accent);
- box-shadow: 0 0px 6px var(--accent), 0 0px 6px var(--accent);
- max-width: 100%;
- height: auto;
- box-shadow: 0 0 10mm rgba(0,0,0,.7);
-}
-
-img:hover {
- transform: scale(1.1);
-}
-
a {
background: transparent;
color: var(--accent);
@@ -133,6 +121,10 @@ ul {
padding: 0;
}
+.user-info * {
+ background: transparent;
+}
+
.user-info {
display: flex;
flex-wrap: wrap;
@@ -156,9 +148,19 @@ ul {
}
.user-info img {
+ border: 2px solid var(--accent);
+ box-shadow: 0 0px 6px var(--accent), 0 0px 6px var(--accent);
+ max-width: 100%;
+ height: auto;
+ box-shadow: 0 0 10mm rgba(0,0,0,.7);
border-radius: 100%;
}
+.user-info img:hover {
+ transform: scale(1.1);
+ box-shadow: 0 0 100mm rgba(255, 238, 16,.7);
+}
+
.user-info div {
display: flex;
text-align: center;
@@ -287,8 +289,9 @@ input:active,
background: transparent;
}
-.repo-list li:hover {
+.repo:hover {
/* box-shadow: 0 3px 6px var(--accent), 0 3px 6px var(--accent); */
+ box-shadow: 0 0 50mm rgba(255, 238, 16,.7);
background: rgba(0, 0, 0, 0.5);
transform: scale(1.05);
transition: background 0.5s, transform 1s, all 0.3s
@@ -319,6 +322,7 @@ input:active,
border: 2px solid var(--text);
transform: scale(1.1);
transition: background 0.5s, transform 0.5s, border 0.5s, all 0.5s;
+ box-shadow: 0 0 50mm rgba(0, 156, 255,.7);
}
.repo-list p {
@@ -349,27 +353,6 @@ input:active,
/* box-shadow: 0 0 10mm rgba(0,0,0,.7); */
}
-@media (min-width: 700px) {
- .user-info div {
- width: 45%;
- text-align: left;
- /* background: rgba(10, 10, 15, 0.1); */
- background: transparent;
- }
-
- .repo-list {
- justify-content: space-around;
- }
-
- .repo-list li {
- width: 48%;
- margin-right: 1.5%;
- margin-left: 1.5%;
- margin-top: 2%;
- margin-bottom: 2%;
- }
-}
-
.repo {
-moz-filter: blur(20px);
-o-filter: blur(20px);
@@ -377,6 +360,8 @@ input:active,
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
box-shadow: 0 0 10mm rgba(0,0,0,.7);
+ overflow: auto;
+ resize: both;
}
.rdescription {
@@ -404,14 +389,30 @@ input:active,
/* -webkit-text-fill-color: transparent; */
}
-.user-info * {
- background: transparent;
-}
-@media (max-width: 700px) {
+@media (min-width: 700px) {
+ .user-info div {
+ width: 45%;
+ text-align: left;
+ /* background: rgba(10, 10, 15, 0.1); */
+ background: transparent;
+ }
+
.user-info div p {
margin: 10px;
}
+
+ .repo-list {
+ justify-content: space-around;
+ }
+
+ .repo-list li {
+ width: 48%;
+ margin-right: 1.5%;
+ margin-left: 1.5%;
+ margin-top: 2%;
+ margin-bottom: 2%;
+ }
}
@media (min-width: 1200px) {
diff --git a/src/js/getrepo.js b/src/js/getrepo.js
index 015f06bb..2912427c 100644
--- a/src/js/getrepo.js
+++ b/src/js/getrepo.js
@@ -90,7 +90,7 @@ const displayRepos = (repos) => {
listItem.classList.add('repo');
listItem.innerHTML = `
<h2 class="repo-title">${repo.name}</h2>
- <span class="rdescription">${repo.description ? `<span>${repo.description}</span>` : ''}<br/><br/>`
+ <span class="rdescription">${repo.description ? `<span class="rdescriptiontext">${repo.description}</span>` : ''}<br/><br/>`
if (repo.stargazers_count > 0) {
listItem.innerHTML += `<a href="${starsUrl}">