Skip to content

Commit cb2f48c

Browse files
committed
1
1 parent 3a4a1f8 commit cb2f48c

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

public_html/css/style2.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,10 @@ a {
7676
}
7777

7878
}
79+
80+
.navbar-nav .nav-item.active {
81+
/* border-radius: 4px; */
82+
/* display: block; */
83+
background-color: #c2c5c8;
84+
/* font-weight: bold; */
85+
}

public_html/main.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,23 @@
5858
<span class="navbar-toggler-icon"></span>
5959
</button>
6060
<div class="collapse navbar-collapse" id="collapsibleNavbar">
61-
<ul class="navbar-nav flex-row flex-wrap bd-navbar-nav">
62-
<li class="nav-item col-6 col-lg-auto">
61+
<ul class="navbar-nav flex-row flex-wrap bd-navbar-nav navbar-default">
62+
<li class="nav-item col-6 col-lg-auto <?= basename($_SERVER['REQUEST_URI']) == 'list.php' ? 'active' : '' ?> ">
6363
<a class="nav-link" href="/list.php"><i class="bi bi-journal-text ms-1"></i>
6464
قائمة المفردات
6565
</a>
6666
</li>
67-
<li class="nav-item col-6 col-lg-auto">
67+
<li class="nav-item col-6 col-lg-auto <?= basename($_SERVER['REQUEST_URI']) == 'new.php' ? 'active' : '' ?> ">
6868
<a class="nav-link" href="/new.php"><i class="bi bi-journal-text ms-1"></i>
6969
أحدث المفردات
7070
</a>
7171
</li>
72-
<li class="nav-item col-6 col-lg-auto">
72+
<li class="nav-item col-6 col-lg-auto <?= basename($_SERVER['REQUEST_URI']) == 'duplicate_lemmas.php' ? 'active' : '' ?> ">
7373
<a class="nav-link" href="/duplicate_lemmas.php"><i class="bi bi-journal-text ms-1"></i>
7474
المكررات
7575
</a>
7676
</li>
77-
<li class="nav-item col-6 col-lg-auto">
77+
<li class="nav-item col-6 col-lg-auto <?= basename($_SERVER['REQUEST_URI']) == 'wd.php' ? 'active' : '' ?> ">
7878
<a class="nav-link" href="/wd.php"><i class="bi bi-tree ms-1"></i>
7979
مخطط شجري
8080
</a>

python/src/static/css/style2.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,10 @@ a {
7676
}
7777

7878
}
79+
80+
.navbar-nav .nav-item.active {
81+
/* border-radius: 4px; */
82+
/* display: block; */
83+
background-color: #c2c5c8;
84+
/* font-weight: bold; */
85+
}

python/src/templates/main.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@
3535
<link href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet">
3636
<link href="{{ url_for('static', filename='css/theme.css') }}" rel="stylesheet">
3737
<link href="{{ url_for('static', filename='css/style2.css') }}" rel="stylesheet">
38-
<style>
39-
.navbar-nav .nav-item.active {
40-
/* border-radius: 4px; */
41-
/* display: block; */
42-
background-color: #c2c5c8;
43-
/* font-weight: bold; */
44-
}
45-
</style>
4638
</head>
4739
4840
<body>

0 commit comments

Comments
 (0)