Skip to content

Commit

Permalink
refactor: comment out unused styles and improve code readability
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelink committed Jan 9, 2025
1 parent ac4116a commit 0ba7bf4
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 105 deletions.
74 changes: 37 additions & 37 deletions src/lib/components/atoms/Logo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,47 +34,47 @@
gap: 8px;
}
#logo-text {
width: auto;
height: 100%;
max-height: 28px;
// #logo-text {
// width: auto;
// height: 100%;
// max-height: 28px;
#text {
transition: all 0.2s ease-in-out;
fill: var(--color--text);
}
}
// #text {
// transition: all 0.2s ease-in-out;
// fill: var(--color--text);
// }
// }
&:hover {
#logo-text {
filter: drop-shadow(0px 0px 3px var(--color--primary));
}
}
// &:hover {
// #logo-text {
// filter: drop-shadow(0px 0px 3px var(--color--primary));
// }
// }
}
@media screen and (prefers-reduced-motion: no-preference) {
.animated {
#icon {
> path {
--text-color: var(--color--text-shade);
stroke-width: 2;
animation: svg-text-stroke 3s;
}
// @media screen and (prefers-reduced-motion: no-preference) {
// .animated {
// #icon {
// > path {
// --text-color: var(--color--text-shade);
// stroke-width: 2;
// animation: svg-text-stroke 3s;
// }
#darker {
> path {
--text-color: var(--color--text);
stroke-width: 2;
animation: svg-text-stroke 3s;
}
}
}
// #darker {
// > path {
// --text-color: var(--color--text);
// stroke-width: 2;
// animation: svg-text-stroke 3s;
// }
// }
// }
#text {
animation: svg-text-stroke 3s;
stroke-width: 2;
--text-color: var(--color--text);
}
}
}
// #text {
// animation: svg-text-stroke 3s;
// stroke-width: 2;
// --text-color: var(--color--text);
// }
// }
// }
</style>
6 changes: 3 additions & 3 deletions src/lib/components/molecules/StarCount.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

<style lang="scss">
.star-count {
.mtop {
margin-top: 10px;
}
// .mtop {
// margin-top: 10px;
// }
display: flex;
align-items: center;
Expand Down
10 changes: 6 additions & 4 deletions src/lib/components/molecules/ThemeToggle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
#moon,
#sun {
fill: var(--color--text);
> * {
filter: drop-shadow(0px 0px 3px var(--color--text-shade));
}
// > * {
// filter: drop-shadow(0px 0px 3px var(--color--text-shade));
// }
}
#sun-beams {
Expand Down Expand Up @@ -108,7 +108,9 @@
stroke: var(--color--text);
stroke-width: 2px;
transform-origin: center center;
transition: all 0.5s var(--ease-elastic-4), opacity var(--_opacity-dur) var(--ease-3);
transition:
all 0.5s var(--ease-elastic-4),
opacity var(--_opacity-dur) var(--ease-3);
}
#moon > circle {
Expand Down
30 changes: 15 additions & 15 deletions src/lib/components/organisms/About.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@
}
}
.socials {
display: flex;
align-items: center;
gap: 15px;
// .socials {
// display: flex;
// align-items: center;
// gap: 15px;
@include for-phone-only {
justify-content: center;
margin-bottom: 10px;
span {
display: none;
}
}
}
// @include for-phone-only {
// justify-content: center;
// margin-bottom: 10px;
// span {
// display: none;
// }
// }
// }
.image {
width: 100%;
Expand All @@ -103,9 +103,9 @@
font-size: 1.2em;
}
.github {
margin-left: 5px;
}
// .github {
// margin-left: 5px;
// }
a {
transition: all 0.2s ease-in-out;
Expand Down
6 changes: 3 additions & 3 deletions src/lib/components/organisms/CSponsors.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@
text-align: center;
}
.second-sponsor {
margin-top: 80px;
}
// .second-sponsor {
// margin-top: 80px;
// }
.sponsor-container {
display: grid;
Expand Down
10 changes: 6 additions & 4 deletions src/lib/components/organisms/FAQ.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@
padding: 40px 0 50px;
}
.hello {
text-align: center;
}
// .hello {
// text-align: center;
// }
}
$yellow: var(--color--primary);
Expand Down Expand Up @@ -254,7 +254,9 @@
opacity: 0;
max-height: 0;
overflow: hidden;
transition: opacity 200ms linear, max-height 200ms linear;
transition:
opacity 200ms linear,
max-height 200ms linear;
will-change: opacity, max-height;
p {
Expand Down
58 changes: 29 additions & 29 deletions src/lib/components/organisms/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -242,35 +242,35 @@
grid-row-start: 1;
}
.credits {
position: relative;
background-color: var(--color--yellow);
border-radius: 5px;
padding: 15px 10px;
font-weight: 400;
font-size: 80%;
color: var(--color--text);
margin-top: 1rem;
box-shadow: 10px 10px 3px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.5);
max-width: 400px;
@include for-phone-only {
display: none;
}
a {
color: var(--color--text);
text-decoration: none;
transition: all 0.2s ease-in-out;
font-weight: bold;
&:hover {
color: var(--color--text);
filter: drop-shadow(0px 0px 3px var(--color--text-shade));
transition: color 0.5s ease-in-out;
}
}
}
// .credits {
// position: relative;
// background-color: var(--color--yellow);
// border-radius: 5px;
// padding: 15px 10px;
// font-weight: 400;
// font-size: 80%;
// color: var(--color--text);
// margin-top: 1rem;
// box-shadow: 10px 10px 3px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.5);
// max-width: 400px;
// @include for-phone-only {
// display: none;
// }
// a {
// color: var(--color--text);
// text-decoration: none;
// transition: all 0.2s ease-in-out;
// font-weight: bold;
// &:hover {
// color: var(--color--text);
// filter: drop-shadow(0px 0px 3px var(--color--text-shade));
// transition: color 0.5s ease-in-out;
// }
// }
// }
}
.links-wrapper {
Expand Down
8 changes: 4 additions & 4 deletions src/lib/scss/_themes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
}
}

footer,
header {
@include base-theme;
}
// footer,
// header {
// @include base-theme;
// }
12 changes: 6 additions & 6 deletions src/routes/(blog-article)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@
box-shadow: var(--image-shadow);
border-radius: 6px;
img {
width: 100%;
height: 100%;
max-height: 400px;
object-fit: cover;
}
// img {
// width: 100%;
// height: 100%;
// max-height: 400px;
// object-fit: cover;
// }
}
:global(.cover-image img) {
Expand Down

0 comments on commit 0ba7bf4

Please sign in to comment.