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
ebd9defb
Commit
ebd9defb
authored
Oct 11, 2024
by
AK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct menus and burger
parent
42212c5e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
23 deletions
+37
-23
burgermenu.css
frontend/styles/burgermenu.css
+1
-0
fonts.css
frontend/styles/fonts.css
+3
-3
main.css
frontend/styles/main.css
+25
-12
main.php
main.php
+8
-8
No files found.
frontend/styles/burgermenu.css
View file @
ebd9defb
...
...
@@ -29,6 +29,7 @@
.burger
{
display
:
none
;
/* Скрыть бургер-меню по умолчанию */
margin-left
:
auto
;
cursor
:
pointer
;
}
...
...
frontend/styles/fonts.css
View file @
ebd9defb
@font-face
{
font-family
:
'Vezitsa'
;
src
:
url('/lib/tpl/a
k/frontend/assets
/fonts/Vezitsa.woff2')
format
(
'woff2'
),
url('/lib/tpl/a
k/frontend/assets/
fonts/Vezitsa.woff')
format
(
'woff'
),
url('/lib/tpl/a
k/frontend/assets
/fonts/Vezitsa.ttf')
format
(
'truetype'
);
src
:
url('/lib/tpl/a
rchivarius/pub
/fonts/Vezitsa.woff2')
format
(
'woff2'
),
url('/lib/tpl/a
rchivarius/pub
fonts/Vezitsa.woff')
format
(
'woff'
),
url('/lib/tpl/a
rchivarius/pub
/fonts/Vezitsa.ttf')
format
(
'truetype'
);
font-weight
:
normal
;
font-style
:
normal
;
}
frontend/styles/main.css
View file @
ebd9defb
...
...
@@ -25,16 +25,19 @@ fieldset{
header
{
background
:
var
(
--widget-bg
,
#fff
);
color
:
#333333
;
padding
:
1
0px
20px
;
padding
:
2
0px
20px
;
}
.header-inner
{
display
:
flex
;
gap
:
10%
;
gap
:
3rem
;
align-items
:
center
;
max-width
:
1
44
0px
;
max-width
:
1
20
0px
;
margin
:
0
auto
;
}
.header-inner
:last-child
{
justify-self
:
flex-end
;
}
header
h1
{
...
...
@@ -66,6 +69,7 @@ header a:hover {
display
:
flex
;
gap
:
8px
;
align-items
:
center
;
max-width
:
220px
;
}
.logo-title
{
...
...
@@ -75,7 +79,7 @@ header a:hover {
}
.logo-img
{
width
:
6
0px
;
width
:
10
0px
;
cursor
:
pointer
;
}
...
...
@@ -93,10 +97,6 @@ header a:hover {
}
ul
.toc
{
font-size
:
1.1em
;
}
.toc
a
{
color
:
#18530B
;
}
...
...
@@ -147,18 +147,19 @@ a:hover {
display
:
block
;
/* Для правильного отображения SVG */
width
:
500px
;
/* Ширина SVG */
height
:
30px
;
/* Высота SVG */
background-image
:
url('/lib/tpl/a
k/frontend/assets/imgs
/long_dividers.svg')
;
/* Путь к вашему SVG */
background-image
:
url('/lib/tpl/a
rchivarius/pub/img
/long_dividers.svg')
;
/* Путь к вашему SVG */
background-size
:
contain
;
/* Масштабирование изображения */
background-repeat
:
no-repeat
;
/* Без повторений */
margin
:
10px
auto
0
;
/* Отступ сверху и центровка */
}
.sectionedit1
::after
{
content
:
''
;
display
:
block
;
/* Для правильного отображения SVG */
width
:
500px
;
/* Ширина SVG */
height
:
35px
;
/* Высота SVG */
background-image
:
url('/lib/tpl/a
k/frontend/assets/imgs
/long_dividers.svg')
;
/* Путь к вашему SVG */
background-image
:
url('/lib/tpl/a
rchivarius/pub/img
/long_dividers.svg')
;
/* Путь к вашему SVG */
background-size
:
contain
;
/* Масштабирование изображения */
background-repeat
:
no-repeat
;
/* Без повторений */
margin
:
10px
auto
0
;
/* Отступ сверху и центровка */
...
...
@@ -174,7 +175,7 @@ a:hover {
.mainmenu
{
display
:
flex
;
gap
:
1
2px
;
gap
:
2
2px
;
font-weight
:
bold
;
font-size
:
1rem
;
}
...
...
@@ -195,7 +196,7 @@ a:hover {
.wrapper
::after
{
content
:
''
;
background-image
:
url('/lib/tpl/a
k
/pub/img/church-300.png')
;
/* Путь к изображению */
background-image
:
url('/lib/tpl/a
rchivarius
/pub/img/church-300.png')
;
/* Путь к изображению */
background-repeat
:
no-repeat
;
position
:
fixed
;
bottom
:
0
;
...
...
@@ -212,6 +213,14 @@ a:hover {
}
ul
.tree
li
{
margin
:
8px
0
;
}
.tree
summary
:before
{
background-color
:
#333
!important
;
}
/* Футер */
footer
{
background-color
:
#333
;
...
...
@@ -287,6 +296,10 @@ li.top{
margin-bottom
:
20px
;
}
.header-inner
{
width
:
100%
;
}
header
nav
{
float
:
none
;
}
...
...
main.php
View file @
ebd9defb
...
...
@@ -19,8 +19,8 @@ $showSidebar = $hasSidebar && ($ACT == 'show');
<?
//endif?>
<
title
><?
php
tpl_pagetitle
();
?>
[
<?php
echo
strip_tags
(
$conf
[
'title'
]);
?>
]
</title>
<?=
$frontend_str
?>
<!--
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" />
-->
<link
href=
"
<?=
tpl_basedir
()
?>
/
pub/fontawesome/css/all.min.css"
rel=
"stylesheet"
/>
<!--
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" />
-->
<link
href=
"
<?=
tpl_basedir
()
?>
pub/fontawesome/css/all.min.css"
rel=
"stylesheet"
/>
</head>
<body
data-page-id=
"
<?php
echo
$ID
?>
"
>
...
...
@@ -28,7 +28,7 @@ $showSidebar = $hasSidebar && ($ACT == 'show');
<div
class=
"header-inner"
>
<div
class=
"logo"
>
<div
class=
"logo-img"
><a
href=
"
<?php
echo
wl
();
?>
"
><img
src=
"
/lib/tpl/ak/frontend/assets/imgs
/logo.png"
/></a></div>
<div
class=
"logo-img"
><a
href=
"
<?php
echo
wl
();
?>
"
><img
src=
"
<?=
tpl_basedir
()
?>
pub/img
/logo.png"
/></a></div>
<div
class=
"logo-title"
><a
href=
"
<?php
echo
wl
();
?>
"
>
Библиотека Архивариус
</a></div>
</div>
<div
class=
"desk"
>
...
...
@@ -36,8 +36,8 @@ $showSidebar = $hasSidebar && ($ACT == 'show');
</div>
<nav
class=
"desk"
>
<ul
class=
"mainmenu"
>
<li><a
class=
"button"
href=
"
<?php
echo
wl
(
''
,
[
'id'
=>
'd
ocumenty:dokumenty_rpc'
]);
?>
"
>
Документы
</a></li>
<li><a
class=
"button"
href=
"
<?php
echo
wl
(
''
,
[
'id'
=>
'
kanony:kanonicheskoe_pravo'
]);
?>
"
>
Право
</a></li>
<li><a
class=
"button"
href=
"
<?php
echo
wl
(
''
,
[
'id'
=>
'd
erevo_sajta'
]);
?>
"
>
Дерево сайта
</a></li>
<li><a
class=
"button"
href=
"
<?php
echo
wl
(
''
,
[
'id'
=>
'
poslednie_izmeneniya'
]);
?>
"
>
Последние изменения
</a></li>
<li><a
class=
"button"
href=
"
<?php
echo
wl
(
''
,
[
'id'
=>
'about'
]);
?>
"
>
О
проекте
</a></li>
</ul>
...
...
@@ -99,7 +99,7 @@ $showSidebar = $hasSidebar && ($ACT == 'show');
<div
class=
"mobile-content"
>
<div
class=
"mobilelogo"
>
<div><a
href=
"
<?php
echo
wl
();
?>
"
><img
src=
"
/lib/tpl/ak/frontend/assets/imgs
/logo.png"
/></a></div>
<div><a
href=
"
<?php
echo
wl
();
?>
"
><img
src=
"
<?=
tpl_basedir
()
?>
pub/img
/logo.png"
/></a></div>
<div
class=
"logo-mob-title"
><a
href=
"
<?php
echo
wl
();
?>
"
>
Библиотека Архивариус
</a></div>
</div>
...
...
@@ -107,8 +107,8 @@ $showSidebar = $hasSidebar && ($ACT == 'show');
<nav>
<ul
class=
"mobailmainmenu"
>
<li><a
class=
"button"
href=
"
<?php
echo
wl
(
''
,
[
'id'
=>
'd
ocumenty:dokumenty_rpc'
]);
?>
"
>
Документы
</a></li>
<li><a
class=
"button"
href=
"
<?php
echo
wl
(
''
,
[
'id'
=>
'
kanony:kanonicheskoe_pravo'
]);
?>
"
>
Право
</a></li>
<li><a
class=
"button"
href=
"
<?php
echo
wl
(
''
,
[
'id'
=>
'd
erevo_sajta'
]);
?>
"
>
Дерево сайта
</a></li>
<li><a
class=
"button"
href=
"
<?php
echo
wl
(
''
,
[
'id'
=>
'
poslednie_izmeneniya'
]);
?>
"
>
Последние изменения
</a></li>
<li><a
class=
"button"
href=
"
<?php
echo
wl
(
''
,
[
'id'
=>
'about'
]);
?>
"
>
О
проекте
</a></li>
</ul>
...
...
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