Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-478 Adds AMP Compatablity for Hueman theme Menu Toggle #952

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/front/css/_parts/0_3_common_elements.css
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
.nav li.current-post-parent > a { color: #fff; }
/* level 2 & 3 */
.nav li:hover > ul { display: block; }
html[amp] .nav li:hover > ul { opacity: 1 }
.nav ul { display: none; background: #777; position: absolute; left: 0; top: 50px; width: 180px; padding: 10px 0; z-index: 2; -webkit-transform: translateZ(0);
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.15);
box-shadow: 0 2px 2px rgba(0,0,0,0.15); }
Expand Down
12 changes: 11 additions & 1 deletion assets/front/css/_parts/0_4_header.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ border: none;
.search-expand-inner { background: rgba(0,0,0,0.15); padding: 15px; }
.search-expand .themeform input { width: 100%; border: 2px solid #e2e2e2; border-radius: 0; }
.search-expand .themeform input:focus { }

.search-expand.active{ display: block; }

/* Search in header nav */
#main-header-search .toggle-search {
Expand Down Expand Up @@ -318,6 +318,11 @@ border: none;
height: 50px;
overflow: hidden;
}

html[amp] #nav-topbar.desktop-sticky {
overflow: visible;
}

.nav ul.sub-menu {
opacity: 0.5;
display: none;
Expand All @@ -327,6 +332,11 @@ border: none;
transition: opacity 0.3s ease-in-out;
}

html[amp] ul.nav li:hover>ul.sub-menu {
display: block;
opacity: 1;
}

/* HEADER WIDGET ZONE*/
.header-ads-desktop #header-widgets { float: right; display: block; }
}
Expand Down
13 changes: 12 additions & 1 deletion assets/front/css/dev-common.css
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
.nav li.current-post-parent > a { color: #fff; }
/* level 2 & 3 */
.nav li:hover > ul { display: block; }
html[amp] .nav li:hover > ul { opacity: 1 }
.nav ul { display: none; background: #777; position: absolute; left: 0; top: 50px; width: 180px; padding: 10px 0; z-index: 2; -webkit-transform: translateZ(0);
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.15);
box-shadow: 0 2px 2px rgba(0,0,0,0.15); }
Expand Down Expand Up @@ -1242,7 +1243,7 @@ border: none;
.search-expand-inner { background: rgba(0,0,0,0.15); padding: 15px; }
.search-expand .themeform input { width: 100%; border: 2px solid #e2e2e2; border-radius: 0; }
.search-expand .themeform input:focus { }

.search-expand.active{ display: block; }

/* Search in header nav */
#main-header-search .toggle-search {
Expand Down Expand Up @@ -1495,6 +1496,11 @@ border: none;
height: 50px;
overflow: hidden;
}

html[amp] #nav-topbar.desktop-sticky {
overflow: visible;
}

.nav ul.sub-menu {
opacity: 0.5;
display: none;
Expand All @@ -1504,6 +1510,11 @@ border: none;
transition: opacity 0.3s ease-in-out;
}

html[amp] ul.nav li:hover>ul.sub-menu {
display: block;
opacity: 1;
}

/* HEADER WIDGET ZONE*/
.header-ads-desktop #header-widgets { float: right; display: block; }
}
Expand Down
13 changes: 12 additions & 1 deletion assets/front/css/main-not-responsive.css
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
.nav li.current-post-parent > a { color: #fff; }
/* level 2 & 3 */
.nav li:hover > ul { display: block; }
html[amp] .nav li:hover > ul { opacity: 1 }
.nav ul { display: none; background: #777; position: absolute; left: 0; top: 50px; width: 180px; padding: 10px 0; z-index: 2; -webkit-transform: translateZ(0);
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.15);
box-shadow: 0 2px 2px rgba(0,0,0,0.15); }
Expand Down Expand Up @@ -1242,7 +1243,7 @@ border: none;
.search-expand-inner { background: rgba(0,0,0,0.15); padding: 15px; }
.search-expand .themeform input { width: 100%; border: 2px solid #e2e2e2; border-radius: 0; }
.search-expand .themeform input:focus { }

.search-expand.active{ display: block; }

/* Search in header nav */
#main-header-search .toggle-search {
Expand Down Expand Up @@ -1495,6 +1496,11 @@ border: none;
height: 50px;
overflow: hidden;
}

html[amp] #nav-topbar.desktop-sticky {
overflow: visible;
}

.nav ul.sub-menu {
opacity: 0.5;
display: none;
Expand All @@ -1504,6 +1510,11 @@ border: none;
transition: opacity 0.3s ease-in-out;
}

html[amp] ul.nav li:hover>ul.sub-menu {
display: block;
opacity: 1;
}

/* HEADER WIDGET ZONE*/
.header-ads-desktop #header-widgets { float: right; display: block; }
}
Expand Down
2 changes: 1 addition & 1 deletion assets/front/css/main-not-responsive.min.css

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion assets/front/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
.nav li.current-post-parent > a { color: #fff; }
/* level 2 & 3 */
.nav li:hover > ul { display: block; }
html[amp] .nav li:hover > ul { opacity: 1 }
.nav ul { display: none; background: #777; position: absolute; left: 0; top: 50px; width: 180px; padding: 10px 0; z-index: 2; -webkit-transform: translateZ(0);
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.15);
box-shadow: 0 2px 2px rgba(0,0,0,0.15); }
Expand Down Expand Up @@ -1242,7 +1243,7 @@ border: none;
.search-expand-inner { background: rgba(0,0,0,0.15); padding: 15px; }
.search-expand .themeform input { width: 100%; border: 2px solid #e2e2e2; border-radius: 0; }
.search-expand .themeform input:focus { }

.search-expand.active{ display: block; }

/* Search in header nav */
#main-header-search .toggle-search {
Expand Down Expand Up @@ -1495,6 +1496,11 @@ border: none;
height: 50px;
overflow: hidden;
}

html[amp] #nav-topbar.desktop-sticky {
overflow: visible;
}

.nav ul.sub-menu {
opacity: 0.5;
display: none;
Expand All @@ -1504,6 +1510,11 @@ border: none;
transition: opacity 0.3s ease-in-out;
}

html[amp] ul.nav li:hover>ul.sub-menu {
display: block;
opacity: 1;
}

/* HEADER WIDGET ZONE*/
.header-ads-desktop #header-widgets { float: right; display: block; }
}
Expand Down
2 changes: 1 addition & 1 deletion assets/front/css/main.min.css

Large diffs are not rendered by default.

Loading