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

DOC-85: title links css #217

Merged
Merged
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
13 changes: 12 additions & 1 deletion src/css/feedback.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
/* Feedback question and buttons */

.feedback-prompt {
width: 100%;
width: var(--toc-width);
font-family: var(--body-font-family);
color: var(--nav-muted-color);
display: flex;
flex-direction: column;
position: sticky;
top: calc(var(--toc-top) + var(--toc-height));
margin-left: 5em;
margin-right: var(--toc-margin-right);
z-index: 999;
}

@media screen and (max-height: 670px) {
.feedback-prompt {
display: none;
}
}

.feedback-prompt .hidden {
Expand Down
5 changes: 5 additions & 0 deletions src/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@
text-align: center;
}

.home .card-title a {
color: inherit !important;
text-decoration: none !important;
}

@media (min-width: 480px) {
.home .card {
flex-basis: calc(50% - calc(var(--cards-gap) * 1 / 2));
Expand Down
1 change: 1 addition & 0 deletions src/css/search.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DocSearch-Container {
z-index: 10000 !important;
position: fixed !important;
}

.DocSearch-Button-Keys {
Expand Down
9 changes: 4 additions & 5 deletions src/css/toc.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
.toc-menu {
color: var(--toc-font-color);
margin-bottom: 50px;
}

.toc.sidebar {
display: none;
margin-right: 0.75rem;
position: sticky;
top: var(--toc-top);
align-self: flex-start;
margin-left: 5em;
margin-right: var(--toc-margin-right);
}

.toc .toc-menu ul {
Expand All @@ -18,7 +17,7 @@
list-style: none;
margin: 0;
padding: 0;
max-height: var(--toc-height);
max-height: var(--toc-content-height);
overflow-y: auto;
scrollbar-width: none;
}
Expand All @@ -35,9 +34,9 @@
.toc.sidebar {
display: block;
flex: 0 0 var(--toc-width);
min-width: 200px;
min-width: 222px;
overflow-y: auto;
height: 500px;
height: var(--toc-height);
overflow-x: hidden;
}

Expand Down
4 changes: 3 additions & 1 deletion src/css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@
--nav-panel-height--desktop: calc(var(--nav-height--desktop) - var(--drawer-height));
--nav-width: calc(270 / var(--rem-base) * 1rem);
--toc-top: calc(var(--body-top) + var(--toolbar-height));
--toc-height: calc(100vh - var(--toc-top) - 2.5rem);
--toc-content-height: calc(100vh - var(--toc-top) - 2.5rem);
--toc-width: 14rem;
--toc-height: 400px;
--toc-margin-right: 0.75rem;
--doc-max-width: calc(720 / var(--rem-base) * 1rem);
--doc-max-width--desktop: calc(1500 / var(--rem-base) * 1rem);
--border-radius: 5px;
Expand Down
18 changes: 9 additions & 9 deletions src/partials/body-home.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@
<div class="card">
<div class="card-header">
<i data-feather="layers" class="card-img"></i>
<h4 class="card-title">Hazelcast Platform</h4>
<h4 class="card-title"><a href="{{{siteRootPath}}}/hazelcast/latest/what-is-hazelcast">Hazelcast Platform</a></h4>
</div>
<ul class="card-list">
<li class="card-list-item">
<a href="{{{siteRootPath}}}/hazelcast/latest/whats-new">What’s new in 5.4</a>
</li>
<li class="card-list-item">
<a href="{{{siteRootPath}}}/hazelcast/latest/deploy/choosing-a-deployment-option">Available topologies</a>
</li>
</li>
<li class="card-list-item">
<a href="{{{siteRootPath}}}/hazelcast/latest/getting-started/editions">Community vs. Enterprise</a>
</li>
<!-- <li class="card-list-item">
<a href="{{{siteRootPath}}}/getting-started/editions">Install and upgrade</a>
</li>
</li>
<li class="card-list-item">
<a href="{{{siteRootPath}}}/getting-started/editions">Feature overview</a>
</li>
Expand Down Expand Up @@ -83,7 +83,7 @@
<div class="card">
<div class="card-header">
<!-- <img class="card-img" src="{{{uiRootPath}}}/img/team.svg" alt="team" /> -->
<i data-feather="target" class="card-img"></i>
<i data-feather="target" class="card-img"></i>
<h4 class="card-title">Operate and manage</h4>
</div>
<ul class="card-list">
Expand All @@ -105,7 +105,7 @@
<div class="card">
<div class="card-header">
<!-- <img class="card-img" src="{{{uiRootPath}}}/img/team.svg" alt="team" /> -->
<i data-feather="server" class="card-img"></i>
<i data-feather="server" class="card-img"></i>
<h4 class="card-title">Clients and APIs</h4>
</div>
<ul class="card-list">
Expand Down Expand Up @@ -170,7 +170,7 @@
<a href="{{{siteRootPath}}}/management-center/latest/getting-started/overview">Management Center</a>
</li>
<li class="card-list-item">
<a href="{{{siteRootPath}}}/operator/5.12">Platform Operator</a>
<a href="{{{siteRootPath}}}/operator/latest/">Platform Operator</a>
</li>
<li class="card-list-item">
<a href="{{{siteRootPath}}}/clc/latest/overview">Command Line Client (CLC)</a>
Expand All @@ -184,7 +184,7 @@
<div class="card">
<div class="card-header">
<i data-feather="cloud" class="card-img"></i>
<h4 class="card-title">Cloud</h4>
<h4 class="card-title"><a href="{{{siteRootPath}}}/cloud/">Cloud</a></h4>
</div>
<ul class="card-list">
<li class="card-list-item">
Expand All @@ -209,7 +209,7 @@
<div class="additional-card">
<div class="card-header">
<i data-feather="book-open" class="card-img"></i>
<h4 class="card-title">Tutorials</h4>
<h4 class="card-title"><a href="{{{siteRootPath}}}/tutorials">Tutorials</a></h4>
</div>
<dl class="card-list">
<dt class="card-list-item">
Expand All @@ -229,7 +229,7 @@
</dt>
<dd class="card-list-item-description">
Learn how to use Hazelcast to create real-time applications using our fast data storage and distributed computing engine.
</dd>
</dd>
<dt class="card-list-item">
<a href="{{{siteRootPath}}}/tutorials/airline-connections">Build Airline Connections Demo using Hazelcast Cloud</a>
</dt>
Expand Down
4 changes: 3 additions & 1 deletion src/partials/feedback-footer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<img class="card-img" src="{{{uiRootPath}}}/img/lifebuoy.svg" alt="lifebuoy" />
<h4 class="card-title">Help and support</h4>
</div>
{{> was-this-helpful-feedback }}
{{#if (not-eq page.layout 'home')}}
{{> was-this-helpful-feedback }}
{{/if}}
{{#with (get-page-info)}}
<a class="additional-feedback feedback-button" href="{{this.src.origin.webUrl}}/issues/new?title=Docs: Feedback for {{{this.title}}}&body=Hi, I have some feedback about [this page]({{{this.src.editUrl}}})%0D%0A" target="_blank">
<span class="feedback-button-text git">
Expand Down
9 changes: 5 additions & 4 deletions src/partials/toc.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<aside class="toc sidebar" data-title="{{or page.attributes.toctitle 'Contents'}}" data-levels="{{{or page.attributes.toclevels 2}}}">
<div class="toc-menu">
</div>
<div class="toc-container">
<aside class="toc sidebar" data-title="{{or page.attributes.toctitle 'Contents'}}" data-levels="{{{or page.attributes.toclevels 2}}}">
<div class="toc-menu"></div>
</aside>
{{> feedback}}
</aside>
</div>
Loading