Skip to content
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
1 change: 1 addition & 0 deletions src/_includes/icons/symbols/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion src/_includes/navbar/search.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<div class="field field--expand field--icon">
<div class="field__icon flex flex--middle flex--center">
<div class="field__icon field__icon--left flex flex--middle flex--center">
{% include icons/symbols/search.svg %}
</div>

<input class="field__input input DocsNav-search-input" type="text" placeholder="Search documentation, ex. protocolos..."/>

<div class="field__icon field__icon--right flex flex--middle flex--center">
<button class="field__button" data-ref="search-navbar[trigger]">
{% include icons/symbols/close.svg %}
</button>
</div>
</div>
26 changes: 22 additions & 4 deletions src/_sass/components/_field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
vertical-align: middle;
padding: 6px;

@include breakpoint(medium up) {
@include breakpoint(large up) {
padding: 12px 20px;
}
}
Expand All @@ -25,24 +25,42 @@

#{$this}__input {
padding-left: 40px;
padding-right: 40px;

@include breakpoint(medium up) {
@include breakpoint(large up) {
padding-left: 60px;
padding-right: 60px;
}
}

#{$this}__icon {
position: absolute;
top: 0;
left: 0;
z-index: 1;
width: 40px;
height: 100%;
color: color(gray);

@include breakpoint(medium up) {
@include breakpoint(large up) {
width: 60px;
}

&--left {
left: 0;
}

&--right {
right: 0;
}
}

#{$this}__button {
color: color(gray);
cursor: pointer;

@include breakpoint(large up) {
display: none;
}
}
}
}