patx/gitman

Merge pull request #4 from vextoly/gitman

Commit baf4ccd · patx · Nov 3 at 7:30PM

Changeset
baf4ccdd204001db5ff9bd04edc96876c57b3969
Parents
6bf6ab4a85603a9a3865115d66bbcb65ab08a262 ac1dc2ec3ebe42a73d82e40753decad61c836726

View source at this commit

Merge pull request #4 from vextoly/gitman

Redesign UI with flat black design system and drop CDN assets. Resolve conflicts while preserving unread notification behavior.

Comments

No comments yet.

Log in to comment

Diff

diff --cc static/styles.css
index 805fc90,72812f8..43f5d17
--- a/static/styles.css
+++ b/static/styles.css
@@@ -422,21 -522,23 +522,41 @@@ th { color: var(--ink); font-weight: 70
    text-overflow: ellipsis;
    white-space: nowrap;
  }
 +
 +.notification-bell { position: relative; }
 +.notification-count {
 +  position: absolute;
 +  top: -.55rem;
 +  right: -.35rem;
 +  min-width: 1.1rem;
 +  padding: .1rem .22rem;
-   border: 1px solid var(--strong-border);
++  border: 1px solid var(--surface-border);
 +  border-radius: .65rem;
 +  color: var(--text);
 +  background: var(--surface);
 +  font-size: .65rem;
 +  line-height: 1;
 +  text-align: center;
 +}
 +.notification-unread .activity-title { font-weight: 700; }
 +.notification-read-form { display: inline; margin: 0; font-size: .875rem; }
+ .mention-option:hover small, .mention-option.active small { color: inherit; }
+ 
+ @media (max-width: 760px) {
+   .repo-search, .repo-search-input { width: 100%; }
+   .repo-search-menu { left: 0; right: auto; width: 100%; }
+   .commit-list li, .file-list li { grid-template-columns: 1fr; }
+   .repo-header { align-items: flex-start; }
+ }
+ 
+ .sr-only {
+   position: absolute;
+   width: 1px;
+   height: 1px;
+   padding: 0;
+   margin: -1px;
+   overflow: hidden;
+   clip: rect(0, 0, 0, 0);
+   white-space: nowrap;
+   border: 0;
+ }
diff --cc templates/base.tpl
index ea8e8b3,7a7f619..5570a6d
--- a/templates/base.tpl
+++ b/templates/base.tpl
@@@ -3,13 -3,12 +3,12 @@@
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
-   <title>{{title or "GitMan"}}</title>
-   <link rel="icon" type="image/svg+xml" sizes="32x32" href="/static/git.svg">
- <link rel="icon" type="image/svg+xml" sizes="16x16" href="/static/git.svg">
- <link rel="apple-touch-icon" sizes="180x180" href="/static/git.svg">
-   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github.min.css">
-   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" media="(prefers-color-scheme: dark)">
-   <link rel="stylesheet" href="/static/styles.css?v=9">
+   <meta name="color-scheme" content="dark">
+   <meta name="theme-color" content="#000000">
+   <meta name="description" content="GitMan: free Git repository hosting for open source software.">
+   <title>{{(title + " · GitMan") if title else "GitMan"}}</title>
+   <link rel="icon" type="image/svg+xml" href="/static/git.svg">
 -  <link rel="stylesheet" href="/static/styles.css?v=9">
++  <link rel="stylesheet" href="/static/styles.css?v=10">
  </head>
  <body>
    <header class="site-header">
@@@ -57,11 -55,11 +56,14 @@@
      % end
      {{!base}}
    </main>
+   % import time
+   <footer class="colophon">
+     <p>© {{time.strftime("%Y")}} GitMan</p>
+   </footer>
    <script src="/static/mentions.js?v=1" defer></script>
 +  % if user:
 +    <script src="/static/notifications.js?v=1" defer></script>
 +  % end
-   <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
    <script>
      (() => {
        const addLineNumbers = (code, rawText) => {