Skip to content

Commit c529d46

Browse files
author
Niutoseq
committed
adding login button in the header
1 parent 3ed6c3a commit c529d46

File tree

4 files changed

+60
-15
lines changed

4 files changed

+60
-15
lines changed

docs/_static/css/general.css

Lines changed: 18 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_static/css/main.css

Lines changed: 18 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_static/scss/general.scss

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ section {
101101
grid-template-columns: 300px 900px 300px;
102102
justify-content: center;
103103
align-items: center;
104-
column-gap: 50px;
105104

106105
div {
107106
width: 300px;
@@ -273,6 +272,12 @@ code.docutils.literal.notranslate {
273272
.rst-content .btn:focus {
274273
outline: 0px solid;
275274
}
275+
276+
.btn-orange {
277+
background-color: var(--primary-orange)!important;
278+
color: #fff!important;
279+
}
280+
276281
/* buttons next previous end */
277282

278283
.rst-content p + ul {
@@ -439,9 +444,7 @@ code.docutils.literal.notranslate {
439444
padding: 0;
440445

441446
}
442-
.wy-side-nav-search>a:hover {
443-
background: transparent;
444-
}
447+
445448
.wy-side-nav-search input[type=text],
446449
.wy-body-for-nav input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]) {
447450
border: none;
@@ -457,6 +460,20 @@ code.docutils.literal.notranslate {
457460
display: flex;
458461
margin-bottom: 0;
459462
font-size: 15px;
463+
justify-self: flex-start;
464+
465+
&:hover {
466+
background: transparent;
467+
}
468+
}
469+
470+
.wy-side-nav-search>a.wy-side-nav__login {
471+
justify-self: flex-end;
472+
position: relative;
473+
right: 23px;
474+
padding: 0 15px;
475+
max-width: 100px;
476+
font-size: 12px;
460477
}
461478

462479
.wy-breadcrumbs {

docs/_templates/layout.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@
163163
{%- endif %}
164164

165165
{%- include "searchbox.html" %}
166-
166+
<a href="https://auth.hypernode.com/login/" target="_blank" class="btn btn-orange wy-side-nav__login">
167+
Log in
168+
</a>
167169
{%- endblock %}
168170
</div>
169171
{% include "breadcrumbs.html" %}

0 commit comments

Comments
 (0)