forked from XRPLF/xrpl-dev-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_top-banner.scss
102 lines (88 loc) · 1.89 KB
/
_top-banner.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
.top-banner {
height: 46px;
background: url(../img/backgrounds/bg-apex-banner.svg);
background-position: center;
background-color: #7919FF;
background-size: cover;
padding: 2px 8px;
color: #fff;
text-align: center;
font-size: 16px;
font-weight: bold;
line-height: 24px;
@include media-breakpoint-up(md) {
padding: 11px 8px;
}
.btn {
margin-top: -4px;
margin-left: 8px;
padding: 2px 4px;
font-size: 12px;
@include media-breakpoint-up(md) {
padding: 8px;
margin-left: 16px;
font-size: 16px;
}
}
p {
font-size: 12px;
line-height: 20px;
width: 280px;
text-align: center;
margin: auto;
@include media-breakpoint-up(md) {
font-size: 16px;
line-height: 24px;
width: initial;
}
}
}
body {
padding-top: 46px;
}
.top-nav {
top: 46px;
}
.right-sidebar,
.left-sidebar {
@include media-breakpoint-up(lg) {
top: 100px;
}
}
$banner-top-offset: 146px;
.floating-nav {
top: $banner-top-offset;
}
.main h1:before,
.main h2:before,
.main h3:before,
.main h4:before,
.main h5:before,
.main h6:before,
#main_content_wrapper:before,
.interactive-block:before {
margin-top: -$banner-top-offset;
height: $banner-top-offset;
}
.content h1:first-child:before {
margin-top: -$banner-top-offset;
}
#main_content_wrapper {
margin-top: 53px;
}
html.light {
.top-banner {
.btn-outline-secondary {
color: #E0E0E1;
border-color: #E0E0E1;
&:not(:disabled):not(.disabled):hover {
color: #111112;
background-color: #E0E0E1;
border-color: #E0E0E1;
}
}
}
}
.page-calculator #calculator-mobile-toggle.show {
top: ($banner-top-offset + 4px)
}