Skip to content

Commit 8ffbe82

Browse files
authored
Merge pull request #4400 from platformsh/4397-fix-minor-spacing-issues
4397 fix minor spacing issues
2 parents bf113ba + 83ad1b5 commit 8ffbe82

File tree

3 files changed

+24
-25
lines changed

3 files changed

+24
-25
lines changed

sites/upsun/layouts/shortcodes/home.html

+4-7
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,17 @@ <h1>{{ .Site.Title }}</h1>
3535

3636
.start-cta {
3737
color: white !important;
38-
/* color: #191C1E !important; */
3938
text-decoration: none !important;
4039
font-size: 16px !important;
4140
font-weight: 700 !important;
4241
letter-spacing: 0.48px !important;
4342
background: #6046FF !important;
44-
/* background: #FFBDBB!important; */
4543
padding: 10px 16px !important;
46-
margin-right: 1rem;
47-
border-radius: 0px !important;
4844
border-radius: 80px !important;
45+
display: inline-block !important;
4946
}
5047
.start-cta:hover {
5148
background: #4D38CC !important;
52-
/* background: #FF9F9F !important; */
53-
/* color: #191C1E !important; */
5449
color: white !important;
5550
}
5651

@@ -62,10 +57,12 @@ <h1>{{ .Site.Title }}</h1>
6257
letter-spacing: 0.48px !important;
6358
background: white !important;
6459
padding: 10px 16px !important;
60+
margin: 0.5rem !important;
6561
border-radius: 80px !important;
66-
/* border-radius: 0px !important; */
6762
border: 2px solid #191C1E;
6863
border-color: #191C1E !important;
64+
display: inline-block !important;
65+
white-space: nowrap !important;
6966
}
7067
.info-cta:hover {
7168
background: #191C1E !important;

themes/psh-docs/layouts/partials/header/actions.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!-- Links to log in or start a trial -->
22

33
{{ if eq ( index .Site.Params.theme "use_vendor") true }}
4-
<div class="hidden md:flex basis-3/12 items-center justify-around">
4+
<div class="hidden md:flex basis-3/12 items-center justify-end">
55
{{ else }}
6-
<div class="hidden md:flex basis-1/6 items-center justify-around">
6+
<div class="hidden md:flex basis-1/6 items-center justify-end">
77
{{ end }}
88
{{ $currentPage := printf "%s%s" ( .Site.BaseURL ) ( .Page.RelPermalink ) }}
99
{{ with .Site.Params.headerActions }}
1010
{{ with .headerActionSecondary }}
11-
<a class="font-semibold secondary-action text-sm xl:text-base px-4 py-2 rounded hidden lg:inline xl:px-8 hover:bg-skye-light focus:bg-skye-light hover:text-slate focus:text-slate"
11+
<a class="font-semibold secondary-action text-sm xl:text-base px-4 py-2 mx-2 rounded hidden lg:inline xl:px-8 hover:bg-skye-light focus:bg-skye-light hover:text-slate focus:text-slate"
1212
onclick="dataLayer.push({'event': 'click_login', 'click_name': 'Login', 'link_url': '{{ $currentPage }}'});"
1313
href="{{ .destination }}" rel="noopener">{{ .linkText }}</a>
1414
{{ end }}

themes/psh-docs/layouts/partials/page-content.html

+17-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
1-
<!-- Page banners -->
2-
{{ if ( eq (string .context.Site.Params.vendor.config.version) "1" )}}
3-
{{ partial "banners/banner.html" .context }}
4-
{{ else if and ( ne (string .context.Page.Params.banner.type) "tiered-feature" ) ( ne (string .context.Page.Params.banner.type) "observability-suite" )}}
5-
{{ partial "banners/banner.html" .context }}
6-
{{ end }}
71

8-
<!-- Tier-gated features -->
9-
{{ if eq (string .Site.Params.vendor.config.version) "1"}}
10-
{{ partial "tiered-features/banner.html" .context }}
11-
{{ end }}
12-
13-
<!-- If the feature is part of the Observability Suite -->
14-
{{ if eq (string .Site.Params.vendor.config.version) "1"}}
15-
{{ partial "observability-suite/banner.html" .context }}
16-
{{ end }}
172

183
<!-- If the feature is in beta -->
194
{{ partial "beta-flag/banner.html" .context }}
@@ -127,6 +112,23 @@ <h3 class="pt-4 pb-2 font-light text-base text-slate">On this page</h3>
127112
{{ end }}
128113
{{ end }}
129114

115+
<!-- Page banners -->
116+
{{ if ( eq (string .context.Site.Params.vendor.config.version) "1" )}}
117+
{{ partial "banners/banner.html" .context }}
118+
{{ else if and ( ne (string .context.Page.Params.banner.type) "tiered-feature" ) ( ne (string .context.Page.Params.banner.type) "observability-suite" )}}
119+
{{ partial "banners/banner.html" .context }}
120+
{{ end }}
121+
122+
<!-- Tier-gated features -->
123+
{{ if eq (string .Site.Params.vendor.config.version) "1"}}
124+
{{ partial "tiered-features/banner.html" .context }}
125+
{{ end }}
126+
127+
<!-- If the feature is part of the Observability Suite -->
128+
{{ if eq (string .Site.Params.vendor.config.version) "1"}}
129+
{{ partial "observability-suite/banner.html" .context }}
130+
{{ end }}
131+
130132
<!-- Page content, anchorized -->
131133
{{ partial "headline-hash.html" .context.Content }}
132134

0 commit comments

Comments
 (0)