Skip to content

Commit c294384

Browse files
committed
New round of CSS fixes for the landing page launch
1 parent 1ccbbe8 commit c294384

File tree

3 files changed

+74
-11
lines changed

3 files changed

+74
-11
lines changed

src/css/helios-gcx.css

Lines changed: 71 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,24 @@
2424
--announcement-height: 48px;
2525
}
2626

27+
[data-template="landing"] .toc.sidebar{
28+
display:none;
29+
}
30+
31+
[data-template="landing"] .doc {
32+
--doc-max-width--desktop: calc(1280 / var(--rem-base) * 1rem);
33+
}
34+
2735
.landing-row {
2836
display: flex;
2937
gap: 24px;
38+
flex-direction: column;
39+
}
40+
41+
@media screen and (min-width:769px) {
42+
.landing-row {
43+
flex-direction: row;
44+
}
3045
}
3146

3247
.header {
@@ -79,6 +94,20 @@ li.nav-item.toggler.is-active:hover {
7994
background-color: #f6f8fa;
8095
}
8196

97+
.nav-item[data-depth='1'].toggler:hover,
98+
.nav-item[data-depth='2'].toggler:hover,
99+
.nav-item[data-depth='3'].toggler:hover,
100+
.nav-item[data-depth='4'].toggler:hover {
101+
background:none;
102+
}
103+
104+
.nav-item[data-depth='1'].toggler > .nav-text:hover,
105+
.nav-item[data-depth='2'].toggler > .nav-text:hover,
106+
.nav-item[data-depth='3'].toggler > .nav-text:hover,
107+
.nav-item[data-depth='4'].toggler > .nav-text:hover {
108+
background-color: #f6f8fa;
109+
}
110+
82111
.nav-item a:hover {
83112
text-decoration: none !important;
84113
}
@@ -150,9 +179,16 @@ ul#ds_sites_list li a:active {
150179
display: table-cell;
151180
}
152181

153-
.navbar-end__group {
182+
.navbar-end .navbar-end__group {
154183
margin: 12px 0 0 0;
155184
justify-content: flex-end;
185+
display: none;
186+
}
187+
188+
@media screen and (min-width:769px) {
189+
.navbar-end .navbar-end__group {
190+
display:flex;
191+
}
156192
}
157193

158194
.navbar-end__group form {
@@ -541,16 +577,24 @@ a.ds_buttons_button:hover {
541577
}
542578

543579
.nav-item.toggler {
544-
padding: 8px 0;
580+
padding: 0;
545581
cursor: pointer;
582+
width:100%;
583+
box-sizing: border-box;
546584
}
547585

548586
.nav-item.toggler>button {
549587
padding: 0;
550-
margin: 0 10px;
588+
margin: 0;
551589
position: absolute;
552-
top: 10px;
590+
top: 7px;
553591
right: 0;
592+
width: 22px;
593+
height: 22px;
594+
}
595+
596+
[data-depth="2"] .nav-item.toggler>button {
597+
top:7px;
554598
}
555599

556600
.nav-item.toggler .nav-text {
@@ -562,7 +606,11 @@ a.ds_buttons_button:hover {
562606
}
563607

564608
li.nav-item[data-depth='2'] {
565-
padding: 8px 32px;
609+
padding: 0 32px;
610+
}
611+
612+
li.nav-item[data-depth='3'] {
613+
padding: 0 32px 0 48px;
566614
}
567615

568616
gcx-schema-sample-app-gallery {
@@ -723,12 +771,22 @@ footer .container-fluid {
723771
font-weight: bold;
724772
}
725773

726-
a.nav-link {
774+
.nav-item.toggler .nav-item .nav-text{
775+
display: block;
776+
}
777+
778+
a.nav-link{
727779
display: block;
728780
padding: 8px 32px;
729781
margin: 0;
730782
}
731783

784+
.nav-item .nav-text a{
785+
display: block;
786+
padding: 8px 0;
787+
margin: 0;
788+
}
789+
732790
.nav-item a,
733791
.nav-item span,
734792
.nav-item.toggler>span {
@@ -760,18 +818,23 @@ gcx-schema-topbar {
760818
}
761819

762820
.nav-item.toggler[data-depth="1"] .nav-text {
763-
z-index: -1;
764821
position: relative;
765822
}
766823

767824

768825
/* Switch/toggle Dark-Light Mode */
769826

770827
.doc-link {
771-
display: flex;
828+
display: none;
772829
align-items: center;
773830
}
774831

832+
@media screen and (min-width:769px) {
833+
.doc-link {
834+
display: flex;
835+
}
836+
}
837+
775838
.navbar-switch {
776839
margin-left: 20px;
777840
margin-right: 2px;

src/layouts/default.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en" data-template="default">
33
<head>
44
{{> head defaultPageTitle='Untitled'}}
55
</head>

src/layouts/gcx-landing.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en" data-template="landing">
33
<head>
44

55
{{> head defaultPageTitle='Untitled'}}
66
</head>
77
<body class="article{{#with (or page.attributes.role page.role)}} {{{this}}}{{/with}}">
88
{{> header}}
9-
{{> body}}
9+
{{> body}}
1010
{{> footer}}
1111

1212
{{> intercom}}

0 commit comments

Comments
 (0)