Skip to content

Commit

Permalink
CSS changes
Browse files Browse the repository at this point in the history
slight adjustment to classes in html and changed the a tag hover effect
  • Loading branch information
MarsGotBars committed Sep 5, 2024
1 parent 6f47fa2 commit 1c8bf4f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 32 deletions.
4 changes: 2 additions & 2 deletions src/components/card/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ export default function Card() {
</p>
<ul>
<li className="link">
<a href="https://github.com/MarsGotBars">
<a className="icon" href="https://github.com/MarsGotBars">
<Git />
</a>
</li>
<li className="link">
<a href="https://www.linkedin.com/in/marcin-magdziak-664847223/">
<a className="icon" href="https://www.linkedin.com/in/marcin-magdziak-664847223/">
<LinkedIn />
</a>
</li>
Expand Down
70 changes: 40 additions & 30 deletions src/components/card/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ section {
background: rgba(var(--primary), 0);
z-index: 10;
}
main.fold:hover section{
main.fold:hover section {
padding: var(--sm-spacing);
}
article {
Expand All @@ -34,7 +34,7 @@ article {

article p {
font-family: var(--font-alt);
font-size: clamp(.5rem, 2.5vw ,0.875rem);
font-size: clamp(0.5rem, 2.5vw, 0.875rem);
height: 100%;
width: 100%;
}
Expand Down Expand Up @@ -134,23 +134,31 @@ article > div.wrapper > ul {
margin: auto 0 0 0;
}

a{
display: inline-block;
width: fit-content;
text-decoration: underline;
a:not(.icon) {
background: linear-gradient(to right, transparent, transparent),
linear-gradient(to right, rgba(var(--primary), 1), rgba(var(--primary), 1));
background-size: 100% 2px, 0 2px;
background-position: 100% 100%, 0% 100%;
background-repeat: no-repeat;
}

a:hover{
color: rgba(var(--primary), 1);
a {
display: inline-block;
width: fit-content;
}

a:hover {
background-size: 0 2px, 100% 2px;
color: white;
}

article > div.wrapper > ul li.link{
article > div.wrapper > ul li.link {
align-items: center;
display: flex;
flex-direction: column;
}

article > div.wrapper > ul::after{
article > div.wrapper > ul::after {
content: "";
display: block;
background: rgba(var(--primary), 1);
Expand All @@ -168,21 +176,23 @@ article div span {
}

@keyframes zindex {
80%{ opacity: 1;}
90%{
opacity: 0;
}
100%{
z-index: 1;
}
80% {
opacity: 1;
}
90% {
opacity: 0;
}
100% {
z-index: 1;
}
}

main.fold section{
main.fold section {
opacity: 1;
z-index: 10;
}

article div div:not(:first-of-type)::before{
article div div:not(:first-of-type)::before {
content: "";
position: absolute;
left: 0;
Expand All @@ -192,11 +202,11 @@ article div div:not(:first-of-type)::before{
background: red;
}

article div:not(:first-of-type) svg{
article div:not(:first-of-type) svg {
width: 1.75rem;
fill: var(--icon-alt);
}
article div:not(:first-of-type) svg:hover{
article div:not(:first-of-type) svg:hover {
width: 1.75rem;
fill: var(--icon);
}
Expand All @@ -209,26 +219,26 @@ article div:not(:first-of-type) svg:hover{

/* mobile view */
@media screen and (min-width: 720px) {

article{
article {
animation: none;
background: rgba(var(--bg-alt), 1);
}

section{
padding: 1px 1px 1px 0.5px;
background: rgba(var(--primary), 1);
section {
padding: 1px 1px 1px 0.5px;
background: rgba(var(--primary), 1);
}
main.fold section{
main.fold section {
opacity: 1;
z-index: 1;
}

section, section > *{
section,
section > * {
z-index: 1;
opacity: 1;
}

main.fold {
overflow: visible;
width: 560px;
Expand All @@ -241,7 +251,7 @@ article div:not(:first-of-type) svg:hover{
main.fold button::before {
transform: translateX(0.1875rem) rotate(135deg);
}

main:hover section {
padding: var(--sm-spacing) var(--sm-spacing) var(--sm-spacing)
calc(var(--sm-spacing) / 2);
Expand Down
1 change: 1 addition & 0 deletions src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
a {
font-weight: 500;
color: rgba(var(--secondary));
text-decoration: none;
}

body {
Expand Down

0 comments on commit 1c8bf4f

Please sign in to comment.