Skip to content

Commit

Permalink
update ui styles to better match ecorpus.eu
Browse files Browse the repository at this point in the history
rework logo and favicons

substitute all scss variables with css replaceable ones

move section and tables styles into common. Some more styles improvements
  • Loading branch information
sdumetz committed Feb 27, 2024
1 parent a30ea50 commit 51bdb97
Show file tree
Hide file tree
Showing 31 changed files with 459 additions and 377 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ It means some commands will need to be run with the `--recurse-submodules` flag,
eg: `git clone --recurse-submodules [email protected]:Holusion/eCorpus`

Day-to-day operations can be simplified by configuring git (globally or for thsi repository) to always recurse by default : `git config submodule.recurse true`.

16 changes: 13 additions & 3 deletions source/server/templates/layouts/main.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,25 @@
<link rel="apple-touch-icon" href="{{thumb}}">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">


<title>{{title}}</title>

<link rel="shortcut icon" type="image/png" href="/dist/favicon.png"/>
<link rel="icon" type="image/png" href="/dist/favicon.png" sizes="32x32"/>
<link rel="shortcut icon" type="image/svg+xml" href="/dist/favicon.svg"/>

<style>
body { background: #303030; }
body{
background: var(--color-background, #343434);
position: relative;
width: 100%;
padding: var(--nav-height, 44px) 0 0 0;
margin: 0;
display: block;
}
</style>

<link href="https://fonts.googleapis.com/css2?family=Noto+Serif&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/dist/css/corpus.css">

</head>
Expand Down
Binary file modified source/ui/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions source/ui/assets/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 11 additions & 29 deletions source/ui/assets/images/logo-full.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 6 additions & 9 deletions source/ui/assets/images/logo-sm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions source/ui/composants/ListItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ export default class ListItem extends LitElement{
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
background: #000a;
background: var(--color-element);
padding: 1rem;
border-bottom: 1px solid #103040;
border-bottom: 1px solid var(--color-dark);
}
.list-item:hover{
background: #071922
Expand Down
10 changes: 6 additions & 4 deletions source/ui/composants/Modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,17 @@ interface ModalOptions{
top: max(100px, 15vh);
min-width: 30vw;
max-width: calc(100vw - 20px);
border: none;
background-color: var(--color-dark);
color: var(--color-light);
border: 1px solid var(--color-element);
border-radius: 5px;
background-color: var(--color-background);
color: var(--color-text);
box-shadow: 0 1px 3px rgba(0,0,0,0.12),0 1px 2px rgba(0,0,0,0.24);
}
.btn{
color: white;
background: var(--color-tertiary);
background: var(--color-element);
transition: background 0.2s;
}
.btn:hover{
background: var(--color-secondary);
Expand Down
Loading

0 comments on commit 51bdb97

Please sign in to comment.