Skip to content

Commit

Permalink
update bootstrap; use logo
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Nov 26, 2024
1 parent 4903fad commit 3244b4e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
4 changes: 1 addition & 3 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@
</div>
</footer>
<script src="{{ "/js/rustdoc.js" | absolute_url }}"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
4 changes: 2 additions & 2 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<title>{% if page.title %}{{ page.title }} | hyper{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">

<link href="https://cdn.jsdelivr.net/npm/[email protected].1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/npm/[email protected].3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="{{ "/css/main.css" | absolute_url }}">

<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
Expand Down
4 changes: 3 additions & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<header class="navbar navbar-expand-lg navbar-hyper" role="navigation">
<nav class="container">
<a class="navbar-brand" href="/">hyper.rs</a>
<a class="navbar-brand" href="/" title="hyper.rs">
<img src="/icons/hyper.svg" alt="hyper.rs" class="hyper-logo" />
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#hyperNavbar">
<span class="navbar-toggler-icon"></span>
</button>
Expand Down
17 changes: 13 additions & 4 deletions css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ blockquote {
background-color: $primary-pagehead-color;
border: 0;
margin: 0;
padding: 0;
padding: 0.5rem 0;
}

#hyper .navbar a {
color: #f5f5f5;
color: rgba(255,255,255,0.85);
display: flex;
flex-direction: column;
justify-content: center;
Expand Down Expand Up @@ -398,8 +398,17 @@ pre code {
text-decoration: none;
}

.navbar .hyper-logo {
background: #fff;
border-radius: 10px;
}

.navbar .navbar-brand {
transition: transform 0.2s ease-in-out;
}

.navbar .navbar-brand:hover {
color: $primary-highlight-color
transform: rotate(-5deg) scale(1.1);
}

.footnotes {
Expand All @@ -414,5 +423,5 @@ pre code {
}

.hyper-middle {
margin-top: 1rem;
margin-top: 2rem;
}

0 comments on commit 3244b4e

Please sign in to comment.