Skip to content

Commit bd33140

Browse files
2 parents a175eeb + fd4d6a8 commit bd33140

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

static/style.css

+17-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ body {
1919
color: black;
2020
background-color: #f8f9fa;
2121
}
22+
a:hover , .mynav a:hover , .dropdown-menu .dropdown-item a:hover
23+
{
24+
background-color: rgb(185, 203, 255);
25+
border-radius: 50px;
26+
transition: 1s;
27+
}
28+
.dark-mode .mynav a:hover
29+
{
30+
background-color:rgb(0, 225, 255);
31+
border-radius: 50px;
32+
transition: 1s;
33+
}
2234
.center {
2335
margin: auto;
2436
width: 50%;
@@ -121,7 +133,11 @@ max-width: 40rem;
121133
color: #fff;
122134
background-color: #3e3c3c;
123135
}
124-
136+
.dark-mode .dropdown-menu .dropdown-item
137+
{
138+
background-color: #fff;
139+
color: black;
140+
}
125141
.dark-mode .navbar-toggler
126142
{
127143
background-color: #fff;

templates/layout.html

+12
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@
3838
<span class="sr-only">(current)</span>
3939
</a>
4040
</li>
41+
<li class="nav-item dropdown">
42+
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
43+
Diseases
44+
</a>
45+
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
46+
<a class="dropdown-item" href="/diabetes">Diabetes Prediction</a>
47+
<a class="dropdown-item" href="/heart">Heart Disease Prediction</a>
48+
<a class="dropdown-item" href="/cancer">Cancer Prediction</a>
49+
<a class="dropdown-item" href="/fetal_health">Fetal Health Prediction</a>
50+
51+
</div>
52+
</li>
4153
<li class="nav-item">
4254
<a class="nav-link" href="{{ url_for('about') }}">About</a>
4355
</li>

0 commit comments

Comments
 (0)