mirror of
https://github.com/harivansh-afk/React-Portfolio.git
synced 2026-04-16 00:03:04 +00:00
chore: theme optimization
This commit is contained in:
parent
6d17375685
commit
7bacec764b
3 changed files with 99 additions and 94 deletions
|
|
@ -1,45 +1,47 @@
|
|||
:root {
|
||||
--bg-color: #0c0c0c;
|
||||
--primary-color: #0d0d0d;
|
||||
--secondary-color: #fff;
|
||||
--text-color: #fff;
|
||||
--text-color-2: #fff;
|
||||
--text-color-3: rgb(204, 0, 0);
|
||||
--overlay-color: rgb(12 12 12 / 63%);
|
||||
--bg-color: #080808;
|
||||
--primary-color: #0f0f0f;
|
||||
--secondary-color: #fff;
|
||||
--text-color: #fff;
|
||||
--text-color-2: #fff;
|
||||
--text-color-3: rgb(204, 0, 0);
|
||||
--overlay-color: rgb(8 8 8 / 63%);
|
||||
--image-container-bg: #060606;
|
||||
}
|
||||
|
||||
[data-theme="light"] {
|
||||
--bg-color: #ffffff;
|
||||
--primary-color: #ffffff;
|
||||
--secondary-color: #000;
|
||||
--text-color: #000;
|
||||
--text-color-2: #000;
|
||||
--text-color-3: rgb(204, 0, 0);
|
||||
--overlay-color: rgb(255 255 255 / 70%);
|
||||
--bg-color: #e3dac9;
|
||||
--primary-color: #e3dac9;
|
||||
--secondary-color: #000;
|
||||
--text-color: #000;
|
||||
--text-color-2: #000;
|
||||
--text-color-3: rgb(204, 0, 0);
|
||||
--overlay-color: rgb(227 218 201 / 70%);
|
||||
--image-container-bg: #d8c9b2;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
overflow-y: visible;
|
||||
background-color: var(--bg-color);
|
||||
color: var(--text-color);
|
||||
font-family: 'Raleway', sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
padding-top: 60px;
|
||||
border-left: 10px solid var(--primary-color);
|
||||
border-right: 10px solid var(--primary-color);
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
overflow-y: visible;
|
||||
background-color: var(--bg-color);
|
||||
color: var(--text-color);
|
||||
font-family: "Raleway", sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
padding-top: 60px;
|
||||
border-left: 10px solid var(--primary-color);
|
||||
border-right: 10px solid var(--primary-color);
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
h1,
|
||||
|
|
@ -48,49 +50,50 @@ h3,
|
|||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: Marcellus;
|
||||
font-family: Marcellus;
|
||||
}
|
||||
|
||||
a,
|
||||
a:hover {
|
||||
color: var(--text-color);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
p {
|
||||
word-break: break-word;
|
||||
hyphens: auto;
|
||||
word-break: break-word;
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
.ovhidden {
|
||||
overflow: hidden;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.text_2,
|
||||
.text_2:hover {
|
||||
color: var(--text-color-2);
|
||||
color: var(--text-color-2);
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
|
||||
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
|
||||
monospace;
|
||||
}
|
||||
|
||||
.cursor__dot div {
|
||||
z-index: 999999 !important;
|
||||
z-index: 999999 !important;
|
||||
}
|
||||
|
||||
.cursor__dot div:last-child {
|
||||
background-color: var(--text-color-3) !important;
|
||||
background-color: var(--text-color-3) !important;
|
||||
}
|
||||
|
||||
.cursor__dot div:first-child {
|
||||
filter: invert(1);
|
||||
background-color: var(--overlay-color) !important;
|
||||
filter: invert(1);
|
||||
background-color: var(--overlay-color) !important;
|
||||
}
|
||||
|
||||
.color_pr {
|
||||
color: var(--primary-color) !important;
|
||||
color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
.color_sec {
|
||||
color: var(--secondary-color);
|
||||
color: var(--secondary-color);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue