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

Inline SVG icons #251

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
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
26 changes: 18 additions & 8 deletions static/galene.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: justify;
justify-content: space-between;
background: #610a86;
}
.navbar {
Expand Down Expand Up @@ -680,6 +679,15 @@ textarea.form-reply {
margin-left: 0;
}

.nav-more svg {
height: 26px;
fill: #dbd9d9;
}

.nav-more:hover svg {
fill: #c2a4e0;
}

.header-title {
float: left;
margin: 0;
Expand All @@ -690,7 +698,7 @@ textarea.form-reply {
}

#title {
text-align: center;
flex-grow: 1;
}

h1 {
Expand Down Expand Up @@ -1086,17 +1094,19 @@ legend {
}

header .collapse {
float: left;
text-align: center;
cursor: pointer;
font-size: 20px;
color: #dbd9d9;
margin-right: 20px;
margin-left: 5px;
width: 18px;
height: 22px;
}

header .collapse:hover {
color: #c2a4e0;
header .collapse svg {
fill: #dbd9d9;
}

header .collapse:hover svg {
fill: #c2a4e0;
}

.galene-header {
Expand Down
10 changes: 4 additions & 6 deletions static/galene.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@
<div class="container">
<header>
<nav class="topnav navbar navbar-expand navbar-light fixed-top">
<div id="header">
<div class="collapse" title="Collapse left panel" id="sidebarCollapse">
<i class="fas fa-align-left" aria-hidden="true"></i>
</div>
<h1 id="title" class="header-title">Galène</h1>
<div class="collapse" title="Collapse left panel" id="sidebarCollapse">
<svg viewBox="0 0 448 512"><!-- !Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M288 64c0 17.7-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l224 0c17.7 0 32 14.3 32 32zm0 256c0 17.7-14.3 32-32 32L32 352c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zM0 192c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 224c-17.7 0-32-14.3-32-32zM448 448c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"/></svg>
</div>
<h1 id="title" class="header-title">Galène</h1>

<ul class="nav-menu">
<li>
Expand All @@ -60,7 +58,7 @@ <h1 id="title" class="header-title">Galène</h1>
</li>
<li>
<div class="nav-button nav-link nav-more" id="openside">
<span><i class="fas fa-ellipsis-v" aria-hidden="true"></i></span>
<svg viewBox="0 0 128 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"/></svg>
</div>
</li>
</ul>
Expand Down