Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 56 additions & 84 deletions src/sass/components/_buttons.scss
Original file line number Diff line number Diff line change
@@ -1,107 +1,79 @@
/* Call to Action Button */
.cta-btn {
display: inline-block;
position: relative;
padding: 0.8rem $default-font-size;
font-weight: bold;
line-height: 1;
z-index: 1;
transition: all cubic-bezier(0.19, 1, 0.22, 1) 0.6s;
/* Theme Toggle Button */
.theme-toggle {
position: fixed;
top: 20px;
right: 20px;
z-index: 1000;

&::after {
content: "";
display: block;
position: absolute;
width: 0px;
height: 100%;
left: 0;
bottom: 0;
z-index: -1;
transition: all cubic-bezier(0.19, 1, 0.22, 1) 0.3s;
}
}
button {
background: none;
border: none;
cursor: pointer;
font-size: 1.5rem;
color: var(--text-color);
transition: color 0.3s ease;

/* Hero Style */
.cta-btn--hero {
@include supportColorForIE11();
border-width: 2px;
border-style: solid;
-moz-border-image: -moz-linear-gradient(
135deg,
$primary-color 0%,
$secondary-color 100%
);
-webkit-border-image: -webkit-linear-gradient(
135deg,
$primary-color 0%,
$secondary-color 100%
);
border-image: linear-gradient(
135deg,
$primary-color 0%,
$secondary-color 100%
);
-webkit-border-image-slice: 1;
border-image-slice: 1;
@include supportIE11() {
color: $secondary-color !important;
&:hover {
color: $white-color !important;
color: var(--primary-color);
}
}
}

@include respond(phone) {
background-image: none;
border: 2px solid $secondary-color;
-webkit-text-fill-color: $secondary-color;
}
/* Dark Mode Styles */
body.dark-mode {
--background-color: #121212;
--text-color: #ffffff;
--primary-color: #bb86fc;
--secondary-color: #03dac6;
--card-bg-color: #1e1e1e;
--card-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

background-color: var(--background-color);
color: var(--text-color);

&::after {
background-image: linear-gradient(
.cta-btn--hero {
border-image: linear-gradient(
135deg,
$primary-color 0%,
$secondary-color 100%
var(--primary-color) 0%,
var(--secondary-color) 100%
);

@include respond(phone) {
background-image: none;
&::after {
background-image: linear-gradient(
135deg,
var(--primary-color) 0%,
var(--secondary-color) 100%
);
}
}

&:hover {
-webkit-text-fill-color: $white-color;
text-decoration: none;

@include respond(phone) {
-webkit-text-fill-color: $secondary-color;
}
.cta-btn--resume {
color: var(--text-color);
border: 2px solid var(--text-color);

&::after {
width: 100%;
background: var(--text-color);
}
}
}

/* Resume Style */
.cta-btn--resume {
color: $white-color;
border: 2px solid $white-color;

&::after {
background: $white-color;
&:hover {
color: var(--secondary-color);
}
}

&:hover {
color: $secondary-color;
text-decoration: none;

&::after {
width: 100%;
}
.footer__text {
color: var(--text-color);
}
}

/* Arrow Button */
.up i {
color: #272727;
/* Light Mode Styles (Default) */
body {
--background-color: #ffffff;
--text-color: #000000;
--primary-color: #6a1b9a;
--secondary-color: #00bfa5;
--card-bg-color: #f5f5f5;
--card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

background-color: var(--background-color);
color: var(--text-color);
}