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
ad3fb933
Commit
ad3fb933
authored
Oct 08, 2024
by
AK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add scrollup
parent
daa21290
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
6 deletions
+51
-6
main.css
frontend/styles/main.css
+48
-5
main.php
main.php
+3
-1
No files found.
frontend/styles/main.css
View file @
ad3fb933
...
...
@@ -71,6 +71,7 @@ header a:hover {
.logo-title
{
font-family
:
Vezitsa
;
font-size
:
1.8rem
;
line-height
:
1.5rem
;
}
.logo-img
{
...
...
@@ -196,6 +197,48 @@ footer p {
}
.scroll-up
{
display
:
inline-flex
;
align-items
:
center
;
justify-content
:
center
;
padding
:
10px
15px
;
background-color
:
#007bff
;
/* Синий фон */
color
:
#fff
;
/* Белый текст */
font-size
:
16px
;
border-radius
:
5px
;
cursor
:
pointer
;
text-decoration
:
none
;
transition
:
background-color
0.3s
ease
;
position
:
fixed
;
right
:
20px
;
bottom
:
20px
;
}
li
.top
{
display
:
none
;
}
.scroll-up
a
{
color
:
#fff
;
}
.scroll-up
.arrow
{
margin-left
:
8px
;
/* Отступ между текстом и стрелкой */
font-size
:
18px
;
}
.scroll-up
:hover
{
background-color
:
#0056b3
;
/* Темнее при наведении */
}
.scroll-up-link
{
}
/* Адаптивный дизайн для мобильных устройств */
@media
(
max-width
:
768px
)
{
...
...
@@ -226,7 +269,6 @@ footer p {
.logo-title
{
font-family
:
Vezitsa
;
font-size
:
1.7rem
;
line-height
:
.9
;
}
.sectionedit1
::before
{
...
...
@@ -237,9 +279,10 @@ footer p {
.sectionedit1
::after
{
width
:
100%
;
/* Ширина SVG */
}
}
/*.scroll-up-title{
display: none;
}*/
}
main.php
View file @
ad3fb933
...
...
@@ -145,7 +145,9 @@ $showSidebar = $hasSidebar && ($ACT == 'show');
<?php tpl_content(); // Основной контент ?>
</section>
<div class="
scroll
-
up
" onclick="
window
.
href
=
'#dokuwiki__top'
;
">
<a href="
#dokuwiki__top" class="scroll-up-link"><span class="scroll-up-title">Наверх</span> <span class="arrow">↑</span>
</
div
>
</
main
>
...
...
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