File tree Expand file tree Collapse file tree 2 files changed +39
-20
lines changed
Expand file tree Collapse file tree 2 files changed +39
-20
lines changed Original file line number Diff line number Diff line change @@ -3,35 +3,18 @@ import Link from "@docusaurus/Link";
33
44export default function InstallReminder ( ) {
55 return (
6- < div
7- style = { {
8- padding : "1rem" ,
9- border : "1px solid #eee" ,
10- borderRadius : "10px" ,
11- background : "#fff8f5" ,
12- margin : "2rem 0" ,
13- } }
14- >
6+ < div className = "install-reminder-container" >
157 < h3 > Don’t have Keploy installed yet?</ h3 >
168 < p >
179 Before running this sample, make sure Keploy is installed on your
1810 system.
1911 </ p >
2012 < Link
2113 to = "/docs/server/installation/"
22- style = { {
23- display : "inline-block" ,
24- marginTop : "0.5rem" ,
25- padding : "0.6rem 1rem" ,
26- background : "#e67e22" ,
27- color : "#fff" ,
28- borderRadius : "6px" ,
29- fontWeight : "bold" ,
30- textDecoration : "none" ,
31- } }
14+ className = "install-reminder-button"
3215 >
3316 👉 Go to Installation Guide
3417 </ Link >
3518 </ div >
3619 ) ;
37- }
20+ }
Original file line number Diff line number Diff line change @@ -744,4 +744,40 @@ textarea {
744744 resize : vertical;
745745}
746746
747+ /* Styles for the InstallReminder Component */
748+ .install-reminder-container {
749+ padding : 1rem ;
750+ border : 1px solid # eee ;
751+ border-radius : 10px ;
752+ background : # fff8f5 ;
753+ margin : 2rem 0 ;
754+ }
755+
756+ .install-reminder-button {
757+ display : inline-block;
758+ margin-top : 0.5rem ;
759+ padding : 0.6rem 1rem ;
760+ background : # e67e22 ;
761+ color : # fff !important ; /* !important ensures it overrides other link styles */
762+ border-radius : 6px ;
763+ font-weight : bold;
764+ text-decoration : none;
765+ }
766+
767+ .install-reminder-button : hover {
768+ text-decoration : none;
769+ opacity : 0.9 ;
770+ }
771+
772+
773+ /* --- Dark Theme Styles for the InstallReminder Component --- */
774+ [data-theme = 'dark' ] .install-reminder-container {
775+ background : # 2e2622 ;
776+ border-color : # 444 ;
777+ }
747778
779+ /* This is the rule that fixes your text color issue */
780+ [data-theme = 'dark' ] .install-reminder-container h3 ,
781+ [data-theme = 'dark' ] .install-reminder-container p {
782+ color : var (--ifm-font-color-base );
783+ }
You can’t perform that action at this time.
0 commit comments