mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2026-03-12 21:22:57 -07:00
fix ad in mobile version
This commit is contained in:
@@ -90,6 +90,27 @@ body.sidebar-visible #menu-bar {
|
|||||||
column-gap: 0.5rem;
|
column-gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mobile-toc-toggle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
@media only screen and (max-width:799px) {
|
||||||
|
#mobile-toc-toggle {
|
||||||
|
display: inline-flex !important;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border: 1px solid var(--table-border-color);
|
||||||
|
border-radius: 6px;
|
||||||
|
background: color-mix(in srgb, var(--bg) 85%, transparent);
|
||||||
|
color: var(--fg);
|
||||||
|
}
|
||||||
|
#mobile-toc-toggle .mobile-toc-icon {
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.icon-button {
|
.icon-button {
|
||||||
border: none;
|
border: none;
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
@@ -858,6 +879,26 @@ ul#searchresults li a span.teaser em {
|
|||||||
z-index: 105;
|
z-index: 105;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@media only screen and (max-width:549px) {
|
||||||
|
#sidebar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#sidebar-toggle {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
.sidebar-float-toggle {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
#mobile-toc-toggle {
|
||||||
|
display: inline-flex !important;
|
||||||
|
}
|
||||||
|
#sidebar-toggle-anchor:checked ~ .page-wrapper .page #container #sidebar {
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
#sidebar-toggle-anchor:checked ~ .page-wrapper .page #container #content {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
@media only screen and (max-width:549px) {
|
@media only screen and (max-width:549px) {
|
||||||
#sidebar {
|
#sidebar {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
|
|||||||
@@ -202,6 +202,10 @@
|
|||||||
</button>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
<label id="mobile-toc-toggle" class="icon-button mobile-toc-toggle" for="sidebar-toggle-anchor" title="Open Table of Contents" aria-label="Open Table of Contents">
|
||||||
|
<span class="mobile-toc-icon" aria-hidden="true">📚</span>
|
||||||
|
</label>
|
||||||
|
|
||||||
<div id="menubar-languages-toggle" class="icon-button" type="button" title="Translations" aria-label="Toggle Tanslations" aria-expanded="false" aria-controls="translations">
|
<div id="menubar-languages-toggle" class="icon-button" type="button" title="Translations" aria-label="Toggle Tanslations" aria-expanded="false" aria-controls="translations">
|
||||||
<i class="fa fa-globe"></i>
|
<i class="fa fa-globe"></i>
|
||||||
<span class="menu-bar-link">Translations</span>
|
<span class="menu-bar-link">Translations</span>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@media only screen and (max-width:1439px) {
|
@media only screen and (max-width:799px) {
|
||||||
.sidetoc {
|
.sidetoc {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width:1440px) {
|
@media only screen and (min-width:800px) {
|
||||||
main {
|
main {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user