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

Added node in HTML and CSS #3

Open
wants to merge 1 commit into
base: CoveoFoundation
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
8 changes: 8 additions & 0 deletions src/Project/Habitat/code/Views/Habitat/SearchView.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
data-auto-trigger-query="@Model.AutoTriggerQuery"
data-design="new"
data-enable-collaborative-rating="true"
data-first-loading-animation-selector="#loader-wrapper"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alignement => tabs VS spaces

@if (Model.IsMaximumAgeSet) {
@:data-maximum-age="@Model.MaximumAge"
}
Expand All @@ -50,6 +51,13 @@
</div>
}

<div id="loader-wrapper" class="loader-wrapper">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird d'avoir le même ID que class.

Si tu en a pas besoin, retire le.

<span class="loader">
<span class="loader-inner"></span>
</span>
<h4>Loading Coveo Search</h4>
</div>

<div class="coveo-main-section">
@if (Model.DisplayTabs) {
<div class="coveo-tab-section coveo-placeholder-fix">
Expand Down
75 changes: 75 additions & 0 deletions src/Project/Habitat/code/styles/Habitat/CoveoHabitat.css
Original file line number Diff line number Diff line change
Expand Up @@ -334,4 +334,79 @@ a.CoveoResultLink:hover,
.coveo-query-summary-cancel-last{
color: #c8244f;
font-weight: 700;
}

/* Custom loading animation */

.CoveoSearchInterface.coveo-waiting-for-first-query {
background-color: #fff;
}

.CoveoSearchInterface.coveo-waiting-for-first-query .coveo-results-column {
display: none;
}

.loader {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loader est tellement générique, tu peux tu scoper ou ajoute coveo- en avant de chacun d'entre eux, genre coveo-is-loading

display: inline-block;
width: 30px;
height: 30px;
position: relative;
border: 4px solid #c8244f;
top: 50%;
animation: loader 2s infinite ease;
}

.loader-inner {
vertical-align: top;
display: inline-block;
width: 100%;
background-color: #c8244f;
animation: loader-inner 2s infinite ease-in;
}
.loader-wrapper {
text-align: center;
}

@keyframes loader {
0% {
transform: rotate(0deg);
}

25% {
transform: rotate(180deg);
}

50% {
transform: rotate(180deg);
}

75% {
transform: rotate(360deg);
}

100% {
transform: rotate(360deg);
}
}

@keyframes loader-inner {
0% {
height: 0%;
}

25% {
height: 0%;
}

50% {
height: 100%;
}

75% {
height: 100%;
}

100% {
height: 0%;
}
}