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
  • Loading branch information
sdumetz committed Feb 23, 2024
1 parent dab0613 commit f191e11
Show file tree
Hide file tree
Showing 24 changed files with 277 additions and 258 deletions.
17 changes: 14 additions & 3 deletions source/server/templates/layouts/main.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,26 @@
<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;
min-height: 100vh;
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
8 changes: 5 additions & 3 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);
border: 1px solid var(--color-element);
border-radius: 5px;
background-color: var(--color-background);
color: var(--color-light);
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
8 changes: 5 additions & 3 deletions source/ui/composants/SceneCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,19 @@ import { AccessType, AccessTypes, Scene } from "../state/withScenes";
}
.scene-card-inner{
background-color: #000a;
background-color: var(--color-element);
box-sizing: border-box;
padding: 1rem;
width: 100%;
height: 100%;
border-radius: 4px;
border: 1px solid #103040;
border: 1px solid #181818;
transition: background 0.2s, border 0.2s;
}
.scene-card-inner:hover{
background-color: #071922;
background-color: var(--color-background);
border-color: var(--color-highlight);
}
@media (min-width: 664px){
Expand Down
Loading

0 comments on commit f191e11

Please sign in to comment.