Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
archivarius
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Andrey Kuvshinov
archivarius
Commits
4301a1be
Commit
4301a1be
authored
Oct 08, 2024
by
AK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add breadcrumbs
parent
f43f3557
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
3 deletions
+55
-3
main.js
frontend/main.js
+2
-0
breadcrumbs.css
frontend/styles/breadcrumbs.css
+45
-0
main.css
frontend/styles/main.css
+3
-2
main.php
main.php
+4
-0
tpl_functions.php
tpl_functions.php
+1
-1
No files found.
frontend/main.js
View file @
4301a1be
...
...
@@ -12,6 +12,8 @@ import './styles/mobilemenu.css'
import
'./styles/toc.css'
import
'./styles/login.css'
import
'./styles/toolbar.css'
import
'./styles/breadcrumbs.css'
import
'./styles/admin.css'
//import './styles/fontawesone.css'
...
...
frontend/styles/breadcrumbs.css
0 → 100644
View file @
4301a1be
/* Основное оформление хлебных крошек */
.breadcrumbs
{
display
:
flex
;
flex-wrap
:
wrap
;
align-items
:
center
;
font-size
:
14px
;
list-style
:
none
;
padding
:
0
;
margin
:
0
;
}
.breadcrumbs
a
{
text-decoration
:
none
;
color
:
#007bff
;
padding
:
0
5px
;
transition
:
color
0.3s
;
}
.breadcrumbs
a
:hover
{
color
:
#0056b3
;
}
/* Оформление разделителя (например, "/") */
.breadcrumbs
.divider
{
margin
:
0
5px
;
color
:
#6c757d
;
}
/* Оформление текущей страницы (неактивная ссылка) */
.breadcrumbs
span
{
color
:
#6c757d
;
}
/* Стиль для двунаправленного текста внутри bdi */
.breadcrumbs
bdi
{
direction
:
auto
;
unicode-bidi
:
isolate
;
}
/* Упрощенное оформление для мобильных устройств */
@media
(
max-width
:
600px
)
{
.breadcrumbs
{
font-size
:
12px
;
}
}
frontend/styles/main.css
View file @
4301a1be
...
...
@@ -108,6 +108,7 @@ aside {
.content
{
flex-grow
:
1
;
margin-top
:
22px
;
}
/* Стили для ссылок */
...
...
@@ -134,7 +135,7 @@ a:hover {
content
:
''
;
display
:
block
;
/* Для правильного отображения SVG */
width
:
500px
;
/* Ширина SVG */
height
:
5
0px
;
/* Высота SVG */
height
:
3
0px
;
/* Высота SVG */
background-image
:
url('/lib/tpl/ak/frontend/assets/imgs/long_dividers.svg')
;
/* Путь к вашему SVG */
background-size
:
contain
;
/* Масштабирование изображения */
background-repeat
:
no-repeat
;
/* Без повторений */
...
...
@@ -145,7 +146,7 @@ a:hover {
content
:
''
;
display
:
block
;
/* Для правильного отображения SVG */
width
:
500px
;
/* Ширина SVG */
height
:
50
px
;
/* Высота SVG */
height
:
35
px
;
/* Высота SVG */
background-image
:
url('/lib/tpl/ak/frontend/assets/imgs/long_dividers.svg')
;
/* Путь к вашему SVG */
background-size
:
contain
;
/* Масштабирование изображения */
background-repeat
:
no-repeat
;
/* Без повторений */
...
...
main.php
View file @
4301a1be
...
...
@@ -129,8 +129,12 @@ $showSidebar = $hasSidebar && ($ACT == 'show');
<main
class=
"wrapper container"
>
<section
class=
"content"
>
<div
class=
"breadcrumbs"
>
<?php
tpl_breadcrumbs
()
?>
</div>
<?php
tpl_content
();
// Основной контент ?>
</
section
>
</
main
>
...
...
tpl_functions.php
View file @
4301a1be
...
...
@@ -2,7 +2,7 @@
// Fallback script for compatibility with Bootstrap Wrapper and Icons plugins
define
(
'VITE_ENV'
,
'
prod
'
);
define
(
'VITE_ENV'
,
'
dev
'
);
define
(
'VITE_SERVER'
,
'http://localhost:5173'
);
define
(
'VITE_ENTRY_POINT'
,
'/main.js'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment