Skip to content

Commit ab0fcea

Browse files
feat: added hover feature (#434)
* feat: added hover feature Signed-off-by: Aman172003 <[email protected]> * removed yarn.lock --------- Signed-off-by: Aman172003 <[email protected]> Co-authored-by: Animesh Pathak <[email protected]>
1 parent e16c259 commit ab0fcea

File tree

2 files changed

+25
-24
lines changed

2 files changed

+25
-24
lines changed

src/components/Intro.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import useBaseUrl from "@docusaurus/useBaseUrl";
44

55
function Languages() {
66
return (
7-
<div className="rounded-lg bg-[color:var(--ifm-card-background-color)] p-5 shadow">
7+
<div className="rounded-lg bg-[color:var(--ifm-card-background-color)] p-5 shadow transition hover:shadow-lg hover:shadow-[color:var(--ifm-card-shadow-color)]">
88
<div className="flex items-center space-x-4">
99
<svg
1010
width="16"
@@ -116,7 +116,7 @@ function Languages() {
116116

117117
function Frameworks() {
118118
return (
119-
<div className="flex flex-col rounded-lg bg-[color:var(--ifm-card-background-color)] p-5 shadow">
119+
<div className="flex flex-col rounded-lg bg-[color:var(--ifm-card-background-color)] p-5 shadow transition hover:shadow-lg hover:shadow-[color:var(--ifm-card-shadow-color)]">
120120
<div className="flex items-center space-x-4">
121121
<svg
122122
className="mb-4 h-10 w-10 rounded-lg bg-[color:var(--ifm-color)] p-2 text-[color:var(--ifm-background-color)]"

src/css/custom.css

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
:root {
1414
--ifm-color-primary: #ff914d;
15-
--ifm-color-primary-dark: #E67643;
16-
--ifm-color-primary-darker: #C95919;
15+
--ifm-color-primary-dark: #e67643;
16+
--ifm-color-primary-darker: #c95919;
1717
--ifm-color-primary-darkest: #be2c1b;
18-
--ifm-color-primary-light: #FFD0A0;
19-
--ifm-color-primary-lighter: #FFB575;
18+
--ifm-color-primary-light: #ffd0a0;
19+
--ifm-color-primary-lighter: #ffb575;
2020
--ifm-color-primary-lightest: #ffceb1;
2121
--ifm-code-font-size: 95%;
2222
--doc-sidebar-width: 275px !important;
@@ -28,11 +28,11 @@
2828

2929
html[data-theme="dark"] {
3030
--ifm-color-primary: #ff914d;
31-
--ifm-color-primary-dark: #E67643;
32-
--ifm-color-primary-darker: #C95919;
31+
--ifm-color-primary-dark: #e67643;
32+
--ifm-color-primary-darker: #c95919;
3333
--ifm-color-primary-darkest: #be2c1b;
34-
--ifm-color-primary-light: #FFD0A0;
35-
--ifm-color-primary-lighter: #FFB575;
34+
--ifm-color-primary-light: #ffd0a0;
35+
--ifm-color-primary-lighter: #ffb575;
3636
--ifm-color-primary-lightest: #ffceb1;
3737
--ifm-link-color: var(--ifm-color-primary-lighter);
3838
--ifm-menu-color-active: var(--ifm-color-primary-lighter);
@@ -45,42 +45,44 @@ html[data-theme="dark"] {
4545
--ifm-footer-background-color: #000;
4646
--ifm-card-background-color: #1a1a1a;
4747
--collapse-button-bg-color-dark: transparent;
48-
--ifm-badge-background-color: #F88E34;
48+
--ifm-badge-background-color: #f88e34;
4949
--card-color: rgba(17, 24, 39);
50+
--ifm-card-shadow-color: rgba(255, 255, 255, 0.2);
5051
}
5152

5253
html[data-theme="light"] {
5354
--ifm-blockquote-color: #000000;
5455
--ifm-color-emphasis-300: #505050;
5556
/* --ifm-code-background: var(--ifm-color-primary-lightest); */
5657
--ifm-color-input-background: #ffffff;
57-
--ifm-color: #00163D;
58+
--ifm-color: #00163d;
5859
--ifm-background-color: rgb(249, 250, 251);
5960
--ifm-footer-background-color: #ffffff;
6061
--ifm-card-background-color: #ffffff;
6162
--ifm-badge-background-color: rgba(239, 246, 255);
6263

6364
--card-color: rgba(239, 246, 255);
65+
--ifm-card-shadow-color: rgba(0, 0, 0, 0.2); /* Dark shadow for light theme */
6466
}
6567

6668
@font-face {
67-
font-family: 'Roboto';
69+
font-family: "Roboto";
6870
src: url("../fonts/Roboto-Light.woff2");
6971
font-weight: 400;
7072
font-style: normal;
7173
font-display: swap;
7274
}
7375

7476
@font-face {
75-
font-family: 'Roboto';
77+
font-family: "Roboto";
7678
src: url("../fonts/Roboto-Bold.woff2");
7779
font-weight: 700;
7880
font-style: normal;
7981
font-display: swap;
8082
}
8183

8284
@font-face {
83-
font-family: 'Roboto';
85+
font-family: "Roboto";
8486
src: url("../fonts/Roboto-Light.woff2");
8587
font-weight: 300;
8688
font-style: normal;
@@ -193,7 +195,7 @@ div[class^="sidebar_"] .button svg {
193195

194196
/* Pagination */
195197
.pagination-nav {
196-
@apply flex flex-col items-start justify-center space-y-5 space-x-0 md:flex-row md:space-y-0 md:space-x-10;
198+
@apply flex flex-col items-start justify-center space-x-0 space-y-5 md:flex-row md:space-x-10 md:space-y-0;
197199
}
198200
.pagination-nav__item {
199201
@apply w-full max-w-md;
@@ -204,7 +206,7 @@ div[class^="sidebar_"] .button svg {
204206

205207
/* Navbar */
206208
.navbar__inner {
207-
@apply mx-auto max-w-screen-lg lg:px-10 shadow-none;
209+
@apply mx-auto max-w-screen-lg shadow-none lg:px-10;
208210
}
209211

210212
.navbar__items--right {
@@ -230,7 +232,7 @@ div[class^="sidebar_"] .button svg {
230232
}
231233

232234
/* Footer */
233-
footer {
235+
footer {
234236
margin-top: 4%;
235237
}
236238

@@ -253,7 +255,6 @@ footer svg {
253255

254256
.DocSearch-Button {
255257
@apply mr-[-18px] !important;
256-
257258
}
258259

259260
/* .footer .footer__block {
@@ -408,8 +409,6 @@ footer svg {
408409
.docs-centered-image-size-25 {
409410
max-width: 25%;
410411
}
411-
412-
413412
}
414413

415414
.docs-image-legend-wrapper {
@@ -501,7 +500,9 @@ footer svg {
501500
[data-theme="light"] .prose :where(pre code):not(.not-prose) {
502501
background-color: #ffffff;
503502
}
504-
[data-theme="light"] .prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)) {
503+
[data-theme="light"]
504+
.prose
505+
:where(pre):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
505506
background-color: #ffffff;
506507
}
507508

@@ -545,11 +546,11 @@ div[class^="announcementBar_"] {
545546
}
546547

547548
/*Correcting alignment of home icon in navbar breadcrumbs.*/
548-
a[class="breadcrumbs__link"]{
549+
a[class="breadcrumbs__link"] {
549550
padding-top: 2px;
550551
margin-bottom: -10px;
551552
}
552553

553554
[data-theme="dark"] th {
554555
color: white;
555-
}
556+
}

0 commit comments

Comments
 (0)