Skip to content

Commit

Permalink
Use ANNIS color for navigation bar
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskrause committed Mar 28, 2024
1 parent 85ef340 commit cf55e51
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 23 deletions.
1 change: 1 addition & 0 deletions bulma-annis/sass/annis.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ $annis-color: #ecf0f6;

@use "../bulma/sass" with ($family-primary: '"Alegreya Sans", sans-serif',
$family-monospace: "Roboto Mono",
$navbar-background-color: $annis-color,
// https://colordesigner.io/color-scheme-builder#ECF0F6-FFE11A-e53935-0D6986-07485B
$link: #45a0a3,
$primary: #07485B,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ expression: body
</title>
</head>
<body>
<nav class="navbar is-light"
role="navigation"
aria-label="main navigation">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<img src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/icons/annis_192.png"
width="52px"
Expand Down Expand Up @@ -57,7 +55,7 @@ expression: body

<span class="navbar-item">Logged in as "testuser"</span>
<div class="buttons">
<a class="button is-light" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;oauth/logout"">Log Out</a>
<a class="button" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;oauth/logout"">Log Out</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ expression: body
</title>
</head>
<body>
<nav class="navbar is-light"
role="navigation"
aria-label="main navigation">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<img src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/icons/annis_192.png"
width="52px"
Expand Down Expand Up @@ -56,7 +54,7 @@ expression: body


<div class="buttons">
<a class="button is-light" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;oauth/login"">Log in</a>
<a class="button" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;oauth/login"">Log in</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ expression: body
</title>
</head>
<body>
<nav class="navbar is-light"
role="navigation"
aria-label="main navigation">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<img src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/icons/annis_192.png"
width="52px"
Expand Down Expand Up @@ -56,7 +54,7 @@ expression: body


<div class="buttons">
<a class="button is-light" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;oauth/login"">Log in</a>
<a class="button" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;oauth/login"">Log in</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ expression: body
</title>
</head>
<body>
<nav class="navbar is-light"
role="navigation"
aria-label="main navigation">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<img src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/icons/annis_192.png"
width="52px"
Expand Down Expand Up @@ -56,7 +54,7 @@ expression: body


<div class="buttons">
<a class="button is-light" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;oauth/login"">Log in</a>
<a class="button" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;oauth/login"">Log in</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion static/annis.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/annis.min.css.map

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
</title>
</head>
<body>
<nav class="navbar is-light"
role="navigation"
aria-label="main navigation">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<img src="{{ url_prefix }}static/icons/annis_192.png"
width="52px"
Expand Down Expand Up @@ -54,11 +52,11 @@
{% if current_username is defined %}
<span class="navbar-item">Logged in as "{{ current_username }}"</span>
<div class="buttons">
<a class="button is-light" href="{{ url_prefix }}oauth/logout"">Log Out</a>
<a class="button" href="{{ url_prefix }}oauth/logout"">Log Out</a>
</div>
{% else %}
<div class="buttons">
<a class="button is-light" href="{{ url_prefix }}oauth/login"">Log in</a>
<a class="button" href="{{ url_prefix }}oauth/login"">Log in</a>
</div>
{% endif %}
{% endwith %}
Expand Down

0 comments on commit cf55e51

Please sign in to comment.