Skip to content

Commit

Permalink
Issue-1215 changed the color duplicacy , removed excessive comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Bugbuster2004 committed Dec 2, 2024
1 parent 5e3ca7c commit 22008f7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 42 deletions.
25 changes: 12 additions & 13 deletions src/stylesheets/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ html {

body {
font-family: "Lato", sans-serif;
background-color: var(--bg-primary); /* Background color */
color: var(--text-primary); /* Text color */
background-color: var(--bg-primary);
color: var(--text-primary);
}

a {
color: var(--text-link); /* Link color */
color: var(--text-link);
}

a:hover {
color: var(--text-link-hover); /* Link hover color */
color: var(--text-link-hover);
}

.fcc-logo {
Expand All @@ -33,7 +33,6 @@ a:hover {
display: block;
}

/* Common shared styles */
.select-quiz-styles,
.quiz-div,
.results-div {
Expand Down Expand Up @@ -63,7 +62,7 @@ a:hover {
font-size: 1.2rem;
margin: 10px 0;
padding: 10px;
background-color: var(--text-primary); /* Button background color */
background-color: var(--text-primary);
border-radius: 15px;
border: none;
cursor: pointer;
Expand All @@ -73,18 +72,18 @@ a:hover {

.select-btns:hover,
.answers-btns:hover {
box-shadow: -1px -1px 15px var(--effect-shadow); /* Hover shadow effect */
box-shadow: -1px -1px 15px var(--effect-shadow);
}

.answers-btns--selected {
background-color: var(--bg-answer-selected); /* Selected answer background */
background-color: var(--bg-answer-selected);
}

.quiz-btn,
.results-btn,
.modal-btn {
background-color: var(--bg-button); /* Button background */
border: 3px solid var(--border-primary); /* Button border */
background-color: var(--bg-button);
border: 3px solid var(--border-primary);
font-size: 1.2rem;
padding: 5px;
}
Expand Down Expand Up @@ -121,10 +120,10 @@ a:hover {

.submit-btn {
font-weight: bold;
color: var(--text-primary); /* Text color */
color: var(--text-primary);
background-color: transparent;
opacity: 0.5;
border: 2px solid var(--text-primary); /* Border color */
border: 2px solid var(--text-primary);
}

/* Results styles */
Expand All @@ -134,7 +133,7 @@ a:hover {
}

.results-rpg-link {
color: var(--text-link); /* Link color */
color: var(--text-link);
}

@media screen and (max-width: 460px) {
Expand Down
8 changes: 0 additions & 8 deletions src/stylesheets/Button.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
@import "./colors.css";

:root {
--gray-00: #fff;
}
/* Refactored CSS */

/* Default Button */
.btn-default {
width: 100px;
margin: 10px;
Expand All @@ -21,7 +15,6 @@
border-width: 3px;
}

/* Transparent Button */
.transparent-btn {
height: 32px;
font-family: "Lato", sans-serif;
Expand All @@ -38,7 +31,6 @@
color: var(--bg-primary);
}

/* Large Button */
.large-btn {
width: 400px;
height: 70px;
Expand Down
26 changes: 5 additions & 21 deletions src/stylesheets/colors.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,22 @@
/* ---------- Background Colors ---------- */
:root {
--white: #ffffff;
--bg-primary: #0a0a23;
--bg-primary-transparent: #0a0a23f2;
--bg-button: #acd157;
--bg-transparent-hover: #ffffff;
--bg-transparent-hover: var(--white);
--bg-gradient-start: #fecc4c;
--bg-gradient-end: #ffac33;
--bg-answer-selected: #f1be32;
--box-shadow-inset: #0a0a232e;
}

/* ---------- Text Colors ---------- */
:root {
--text-primary: #ffffff;
--text-primary: var(--white);
--text-link: #f1be32;
--text-link-hover: #acd157;
--text-deep-blue: #002ead;
}

/* ---------- Border Colors ---------- */
:root {
--border-primary: #acd157;
--border-transparent: #ffffff;
--border-transparent: var(--white);
--border-dark-color: #aa8144;
--border-light-color: #f5aa3a;
--border-light-gray: #dee2e6;
}

/* ---------- Effects ---------- */
:root {
--effect-shadow: rgba(245, 242, 247, 0.7);
}

/* ---------- Additional Colors ---------- */
:root {
--gray-00: #ffffff;
--gray-00: var(--white);
}

0 comments on commit 22008f7

Please sign in to comment.