chore: theme optimization

This commit is contained in:
Harivansh Rathi 2025-01-03 17:59:37 +05:30
parent 6d17375685
commit 7bacec764b
3 changed files with 99 additions and 94 deletions

View file

@ -1,45 +1,47 @@
:root { :root {
--bg-color: #0c0c0c; --bg-color: #080808;
--primary-color: #0d0d0d; --primary-color: #0f0f0f;
--secondary-color: #fff; --secondary-color: #fff;
--text-color: #fff; --text-color: #fff;
--text-color-2: #fff; --text-color-2: #fff;
--text-color-3: rgb(204, 0, 0); --text-color-3: rgb(204, 0, 0);
--overlay-color: rgb(12 12 12 / 63%); --overlay-color: rgb(8 8 8 / 63%);
--image-container-bg: #060606;
} }
[data-theme="light"] { [data-theme="light"] {
--bg-color: #ffffff; --bg-color: #e3dac9;
--primary-color: #ffffff; --primary-color: #e3dac9;
--secondary-color: #000; --secondary-color: #000;
--text-color: #000; --text-color: #000;
--text-color-2: #000; --text-color-2: #000;
--text-color-3: rgb(204, 0, 0); --text-color-3: rgb(204, 0, 0);
--overlay-color: rgb(255 255 255 / 70%); --overlay-color: rgb(227 218 201 / 70%);
--image-container-bg: #d8c9b2;
} }
html, html,
body { body {
height: 100%; height: 100%;
} }
body { body {
margin: 0; margin: 0;
height: 100%; height: 100%;
overflow-x: hidden; overflow-x: hidden;
overflow-y: visible; overflow-y: visible;
background-color: var(--bg-color); background-color: var(--bg-color);
color: var(--text-color); color: var(--text-color);
font-family: 'Raleway', sans-serif; font-family: "Raleway", sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
padding-top: 60px; padding-top: 60px;
border-left: 10px solid var(--primary-color); border-left: 10px solid var(--primary-color);
border-right: 10px solid var(--primary-color); border-right: 10px solid var(--primary-color);
} }
ul { ul {
list-style: none; list-style: none;
} }
h1, h1,
@ -48,49 +50,50 @@ h3,
h4, h4,
h5, h5,
h6 { h6 {
font-family: Marcellus; font-family: Marcellus;
} }
a, a,
a:hover { a:hover {
color: var(--text-color); color: var(--text-color);
} }
p { p {
word-break: break-word; word-break: break-word;
hyphens: auto; hyphens: auto;
} }
.ovhidden { .ovhidden {
overflow: hidden; overflow: hidden;
} }
.text_2, .text_2,
.text_2:hover { .text_2:hover {
color: var(--text-color-2); color: var(--text-color-2);
} }
code { 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 { .cursor__dot div {
z-index: 999999 !important; z-index: 999999 !important;
} }
.cursor__dot div:last-child { .cursor__dot div:last-child {
background-color: var(--text-color-3) !important; background-color: var(--text-color-3) !important;
} }
.cursor__dot div:first-child { .cursor__dot div:first-child {
filter: invert(1); filter: invert(1);
background-color: var(--overlay-color) !important; background-color: var(--overlay-color) !important;
} }
.color_pr { .color_pr {
color: var(--primary-color) !important; color: var(--primary-color) !important;
} }
.color_sec { .color_sec {
color: var(--secondary-color); color: var(--secondary-color);
} }

View file

@ -102,6 +102,8 @@ section {
overflow: hidden; overflow: hidden;
margin: 0 auto; margin: 0 auto;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
background-color: var(--image-container-bg);
border: 0.5px solid var(--secondary-color);
} }
.ac_btn { .ac_btn {

View file

@ -1,82 +1,82 @@
.project_items_ho { .project_items_ho {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: center;
gap: 2rem; gap: 2rem;
} }
.project_item { .project_item {
width: calc(33% - 2rem); width: calc(33% - 2rem);
text-align: center; text-align: center;
margin: 0.5rem; margin: 0.5rem;
position: relative; position: relative;
background: var(--secondary-color); background: var(--image-container-bg);
padding: 6px; padding: 6px;
border: 1px solid var(--secondary-color); border: 1px solid var(--image-container-bg);
transition: 0.3s ease; transition: 0.3s ease;
font-size: 0; font-size: 0;
min-height: 300px; min-height: 300px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
@media (max-width: 768px) { @media (max-width: 768px) {
.project_item { .project_item {
width: calc(50% - 2rem); width: calc(50% - 2rem);
} }
} }
@media (max-width: 576px) { @media (max-width: 576px) {
.project_item { .project_item {
width: calc(100% - 2rem); width: calc(100% - 2rem);
} }
} }
.project_item img { .project_item img {
max-width: 100%; max-width: 100%;
max-height: 200px; max-height: 200px;
object-fit: cover; object-fit: cover;
} }
.project_item .content { .project_item .content {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
background: var(--overlay-color); background: var(--overlay-color);
opacity: 0; opacity: 0;
transition: opacity 0.3s ease-in-out; transition: opacity 0.3s ease-in-out;
padding: 10px; padding: 10px;
box-sizing: border-box; box-sizing: border-box;
} }
.project_item:hover .content { .project_item:hover .content {
opacity: 1; opacity: 1;
} }
.project_item .content p { .project_item .content p {
color: var(--text-color); color: var(--text-color);
font-size: 1rem; font-size: 1rem;
margin-bottom: 10px; margin-bottom: 10px;
} }
.project_item .content a { .project_item .content a {
background: var(--bg-color); background: var(--bg-color);
border: solid 1px var(--text-color); border: solid 1px var(--text-color);
padding: 4px 8px; padding: 4px 8px;
text-align: center; text-align: center;
font-size: 1rem; font-size: 1rem;
color: var(--text-color); color: var(--text-color);
text-decoration: none; text-decoration: none;
} }
.project_item .content a:hover { .project_item .content a:hover {
text-decoration: none; text-decoration: none;
} }