Skip to content

Commit

Permalink
Remove excess variables and general tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
omckeon committed Oct 28, 2024
1 parent 557aa20 commit 3a1368c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 165 deletions.
73 changes: 6 additions & 67 deletions src/styles/cards.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
/* Variables for card background and hover text colors from splashkit logo. */
:root {
--sl-card-background-light: #f8f8f8;
--sl-card-background-dark: #333333;
--sl-hover-text-light: #ffffff;
--sl-hover-text-dark: #000000;
--gradient-light: rgba(232, 232, 234, 0.18);
--gradient-dark: rgba(23, 10, 10, 0.18);
}

/* --- START: Link card styling ------*/
.sl-markdown-content .sl-link-card {
border: 2px solid var(--sk-logo-orange);
Expand All @@ -32,64 +22,13 @@

/* --- START: Card styling ------*/

/* Card styling for the light and dark themes, including smooth transitions for background and text colors. */
[data-theme="light"] .card {
background: var(--sl-card-background-light);
color: var(--sl-hover-text-dark);
transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
border: 1px solid var(--sk-logo-dark-blue);
width: 95%;
}

[data-theme="dark"] .card {
background: var(--sl-card-background-dark);
color: var(--sl-hover-text-light);
transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
article.card {
background: var(--sl-color-gray-6);
color: var(--sl-color-gray-2);
border: 1px solid var(--sk-logo-dark-blue);
border-radius: 0.5rem;
width: 95%;
box-shadow: var(--sl-shadow-md);
}

/* Will add parts below back in when button toggle for animations added */

/* Card hover effect in the light and dark themes. */
/* [data-theme="light"] .card:hover {
background-color: var(--sk-logo-orange);
color: var(--sl-hover-text-dark);
transform: scale(1.05);
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .card:hover {
background-color: var(--sk-logo-dark-blue);
color: var(--sl-hover-text-light);
transform: scale(1.05);
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
} */

/* Radial gradient following mouse */
/* .card::before {
content: "";
position: absolute;
inset: 0px;
border-radius: inherit;
transition: opacity 400ms ease 0s;
will-change: background, opacity;
background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
var(--gradient-light),
transparent 40%);
opacity: 0;
z-index: 2;
pointer-events: none;
}
[data-theme="dark"] .card::before {
background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
var(--gradient-dark),
transparent 40%);
}
.card:hover::before {
opacity: 1;
} */

/* --- END: Card styling ------*/
/* --- END: Card styling ------*/
99 changes: 1 addition & 98 deletions src/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@
/* --sk-logo-orange: #F5A623; */
--sk-logo-orange: rgba(245, 166, 35, 1);
--sk-logo-orange-transparent: rgba(246, 166, 34, 0.18);
/* --table-head-color: rgb(35, 38, 47); */
--sl-link-button-border: var(--sl-color-white);
}

/* Light mode colors. */
:root[data-theme='light'] {
--sl-color-accent: #3D50f5;
--sl-link-button-border: var(--sl-color-white);
}

.hero {
Expand Down Expand Up @@ -100,99 +97,12 @@ iframe[id="stackblitz-iframe"] {

/* --- END: Link Button styling ------*/

/* [data-has-hero] .hero .sl-link-button::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(60deg, #FF8300, #00A9E0);
background-size: 300% 300%;
opacity: 0;
transition: opacity 0.3s ease;
border-radius: 24px;
z-index: -1;
}
[data-has-hero] .hero .sl-link-button:hover::before {
opacity: 1;
animation: moveGradient 3s linear infinite;
}
[data-has-hero] .hero .sl-link-button:hover {
color: white;
background-color: transparent;
}
@keyframes moveGradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
} */

/* [data-has-hero] .hero .hero-gradient-text {
background: radial-gradient(circle at top left,
hsl(296, 100%, 50%) 0%,
transparent 50%),
radial-gradient(circle at center, rgb(113, 147, 233) 0%, transparent 100%),
radial-gradient(circle at bottom right, rgb(0, 68, 255) 0%, transparent 50%);
color: transparent;
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
} */

/* centre all images/gifs */
img {
display: block;
margin: auto;
}

/* [data-has-hero] .card {
border-radius: 12px;
position: relative;
background: radial-gradient(
300px circle at top left,
rgba(85, 44, 190, 0.081) 20%,
transparent 100%
),
radial-gradient(
300px circle at bottom right,
rgba(44, 102, 190, 0.09) 20%,
transparent 100%
);
}
[data-has-hero] .card::before {
content: "";
position: absolute;
inset: 0px;
border-radius: inherit;
transition: opacity 400ms ease 0s;
will-change: background, opacity;
background: radial-gradient(
800px circle at var(--mouse-x) var(--mouse-y),
rgba(62, 85, 167, 0.212),
transparent 40%
);
opacity: 0;
z-index: 2;
pointer-events: none;
}
[data-has-hero] .card:hover::before {
opacity: 1;
} */

[data-has-hero] .star-text {
margin-top: 8px !important;
font-size: 20px;
Expand Down Expand Up @@ -258,12 +168,6 @@ html[data-theme="dark"] a.linux:after {
}

/* XQuest changes */
article.card {
border-radius: 0.5rem;
box-shadow: var(--sl-shadow-md);
border: 1px solid var(--sl-color-gray-5);
}

.legal {
margin-top: 4rem !important;
font-size: 12px;
Expand Down Expand Up @@ -323,8 +227,7 @@ a.decent:hover {
border-bottom: none;
}

.starlight-aside,
.card {
.starlight-aside {
border-radius: 0.5rem;
}

Expand Down

0 comments on commit 3a1368c

Please sign in to comment.