forked from antonlegoo/gitbook-plugin-theme-gestalt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_navigation.scss
executable file
·83 lines (63 loc) · 2.08 KB
/
_navigation.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// # Navigation
// Right/Left buttons to change page
// *******************************************************
// ## Variables
// *******************************************************
// Shows/hide the left/right arrows
$navigation-show : true !default;
// Styling for the left/right arrows
$navigation-map : (
max-width: 150px,
min-width: 90px,
font-size: 40px,
color: $color-button
) !default;
// Styling for the left/right arrows on hover
$navigation-hover-map : (
text-decoration: none,
color: $color-button-hover
) !default;
// *******************************************************
// ## Nav buttons
// *******************************************************
// Shows/hide the left/right arrows
@if $navigation-show == false {
.navigation { display: none !important; }
}
.navigation
{
position: absolute;
top: $header-height;
bottom: 0px;
margin: 0;
display: flex;
justify-content: center;
align-content: center;
flex-direction: column;
text-align: center;
@include print( $navigation-map );
transition: all 350ms ease;
@media (max-width: $mobileMaxWidth)
{
position: static;
top: auto;
max-width: 50%;
width: 50%;
display: inline-block;
float: left;
&.navigation-unique
{
max-width: 100%;
width: 100%;
}
}
}
.navigation:hover
{
@include print( $navigation-hover-map );
}
// *******************************************************
// ## Specific nav buttons
// *******************************************************
.navigation.navigation-next { right: 0px; }
.navigation.navigation-prev { left: 0px; }