Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added hover feature #434

Merged
merged 6 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/components/Intro.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import useBaseUrl from "@docusaurus/useBaseUrl";

function Languages() {
return (
<div className="rounded-lg bg-[color:var(--ifm-card-background-color)] p-5 shadow">
<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)]">
<div className="flex items-center space-x-4">
<svg
width="16"
Expand Down Expand Up @@ -116,7 +116,7 @@ function Languages() {

function Frameworks() {
return (
<div className="flex flex-col rounded-lg bg-[color:var(--ifm-card-background-color)] p-5 shadow">
<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)]">
<div className="flex items-center space-x-4">
<svg
className="mb-4 h-10 w-10 rounded-lg bg-[color:var(--ifm-color)] p-2 text-[color:var(--ifm-background-color)]"
Expand Down
45 changes: 23 additions & 22 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

:root {
--ifm-color-primary: #ff914d;
--ifm-color-primary-dark: #E67643;
--ifm-color-primary-darker: #C95919;
--ifm-color-primary-dark: #e67643;
--ifm-color-primary-darker: #c95919;
--ifm-color-primary-darkest: #be2c1b;
--ifm-color-primary-light: #FFD0A0;
--ifm-color-primary-lighter: #FFB575;
--ifm-color-primary-light: #ffd0a0;
--ifm-color-primary-lighter: #ffb575;
--ifm-color-primary-lightest: #ffceb1;
--ifm-code-font-size: 95%;
--doc-sidebar-width: 275px !important;
Expand All @@ -28,11 +28,11 @@

html[data-theme="dark"] {
--ifm-color-primary: #ff914d;
--ifm-color-primary-dark: #E67643;
--ifm-color-primary-darker: #C95919;
--ifm-color-primary-dark: #e67643;
--ifm-color-primary-darker: #c95919;
--ifm-color-primary-darkest: #be2c1b;
--ifm-color-primary-light: #FFD0A0;
--ifm-color-primary-lighter: #FFB575;
--ifm-color-primary-light: #ffd0a0;
--ifm-color-primary-lighter: #ffb575;
--ifm-color-primary-lightest: #ffceb1;
--ifm-link-color: var(--ifm-color-primary-lighter);
--ifm-menu-color-active: var(--ifm-color-primary-lighter);
Expand All @@ -45,42 +45,44 @@ html[data-theme="dark"] {
--ifm-footer-background-color: #000;
--ifm-card-background-color: #1a1a1a;
--collapse-button-bg-color-dark: transparent;
--ifm-badge-background-color: #F88E34;
--ifm-badge-background-color: #f88e34;
--card-color: rgba(17, 24, 39);
--ifm-card-shadow-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] {
--ifm-blockquote-color: #000000;
--ifm-color-emphasis-300: #505050;
/* --ifm-code-background: var(--ifm-color-primary-lightest); */
--ifm-color-input-background: #ffffff;
--ifm-color: #00163D;
--ifm-color: #00163d;
--ifm-background-color: rgb(249, 250, 251);
--ifm-footer-background-color: #ffffff;
--ifm-card-background-color: #ffffff;
--ifm-badge-background-color: rgba(239, 246, 255);

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

@font-face {
font-family: 'Roboto';
font-family: "Roboto";
src: url("../fonts/Roboto-Light.woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Roboto';
font-family: "Roboto";
src: url("../fonts/Roboto-Bold.woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Roboto';
font-family: "Roboto";
src: url("../fonts/Roboto-Light.woff2");
font-weight: 300;
font-style: normal;
Expand Down Expand Up @@ -193,7 +195,7 @@ div[class^="sidebar_"] .button svg {

/* Pagination */
.pagination-nav {
@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;
@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;
}
.pagination-nav__item {
@apply w-full max-w-md;
Expand All @@ -204,7 +206,7 @@ div[class^="sidebar_"] .button svg {

/* Navbar */
.navbar__inner {
@apply mx-auto max-w-screen-lg lg:px-10 shadow-none;
@apply mx-auto max-w-screen-lg shadow-none lg:px-10;
}

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

/* Footer */
footer {
footer {
margin-top: 4%;
}

Expand All @@ -253,7 +255,6 @@ footer svg {

.DocSearch-Button {
@apply mr-[-18px] !important;

}

/* .footer .footer__block {
Expand Down Expand Up @@ -408,8 +409,6 @@ footer svg {
.docs-centered-image-size-25 {
max-width: 25%;
}


}

.docs-image-legend-wrapper {
Expand Down Expand Up @@ -501,7 +500,9 @@ footer svg {
[data-theme="light"] .prose :where(pre code):not(.not-prose) {
background-color: #ffffff;
}
[data-theme="light"] .prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)) {
[data-theme="light"]
.prose
:where(pre):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
background-color: #ffffff;
}

Expand Down Expand Up @@ -545,11 +546,11 @@ div[class^="announcementBar_"] {
}

/*Correcting alignment of home icon in navbar breadcrumbs.*/
a[class="breadcrumbs__link"]{
a[class="breadcrumbs__link"] {
padding-top: 2px;
margin-bottom: -10px;
}

[data-theme="dark"] th {
color: white;
}
}
Loading