forked from mystiq/hydrogen-web
add element theme (only some color changes + Inter font for now)
This commit is contained in:
parent
c6f38a4614
commit
d7657b519a
39 changed files with 342 additions and 1 deletions
|
@ -9,7 +9,8 @@
|
||||||
<meta name="apple-mobile-web-app-title" content="Hydrogen Chat">
|
<meta name="apple-mobile-web-app-title" content="Hydrogen Chat">
|
||||||
<meta name="description" content="A matrix chat application">
|
<meta name="description" content="A matrix chat application">
|
||||||
<link rel="stylesheet" type="text/css" href="src/ui/web/css/main.css">
|
<link rel="stylesheet" type="text/css" href="src/ui/web/css/main.css">
|
||||||
<link rel="stylesheet" type="text/css" href="src/ui/web/css/themes/bubbles/theme.css">
|
<link rel="stylesheet" type="text/css" href="src/ui/web/css/themes/element/theme.css" title="Element Theme">
|
||||||
|
<link rel="alternate stylesheet" type="text/css" href="src/ui/web/css/themes/bubbles/theme.css" title="Bubbles Theme">
|
||||||
</head>
|
</head>
|
||||||
<body class="hydrogen">
|
<body class="hydrogen">
|
||||||
<script id="version" type="disabled">
|
<script id="version" type="disabled">
|
||||||
|
|
152
src/ui/web/css/themes/element/inter.css
Normal file
152
src/ui/web/css/themes/element/inter.css
Normal file
|
@ -0,0 +1,152 @@
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 100;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-Thin.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-Thin.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 100;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-ThinItalic.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-ThinItalic.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 200;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-ExtraLight.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-ExtraLight.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 200;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-ExtraLightItalic.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-ExtraLightItalic.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 300;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-Light.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-Light.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 300;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-LightItalic.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-LightItalic.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-Regular.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-Regular.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 400;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-Italic.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-Italic.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 500;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-Medium.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-Medium.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 500;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-MediumItalic.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-MediumItalic.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 600;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-SemiBold.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-SemiBold.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 600;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-SemiBoldItalic.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-SemiBoldItalic.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-Bold.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-Bold.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 700;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-BoldItalic.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-BoldItalic.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 800;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-ExtraBold.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-ExtraBold.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 800;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-ExtraBoldItalic.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-ExtraBoldItalic.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 900;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-Black.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-Black.woff?v=3.13") format("woff");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 900;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("inter/Inter-BlackItalic.woff2?v=3.13") format("woff2"),
|
||||||
|
url("inter/Inter-BlackItalic.woff?v=3.13") format("woff");
|
||||||
|
}
|
BIN
src/ui/web/css/themes/element/inter/Inter-Black.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Black.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-Black.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Black.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-BlackItalic.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-BlackItalic.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-BlackItalic.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-BlackItalic.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-Bold.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Bold.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-Bold.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Bold.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-BoldItalic.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-BoldItalic.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-BoldItalic.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraBold.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraBold.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraBold.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraBold.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraBoldItalic.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraBoldItalic.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraBoldItalic.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraBoldItalic.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraLight.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraLight.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraLight.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraLight.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraLightItalic.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraLightItalic.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraLightItalic.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-ExtraLightItalic.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-Italic.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Italic.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-Italic.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Italic.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-Light.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Light.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-Light.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Light.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-LightItalic.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-LightItalic.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-LightItalic.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-LightItalic.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-Medium.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Medium.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-Medium.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Medium.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-MediumItalic.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-MediumItalic.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-MediumItalic.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-MediumItalic.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-Regular.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Regular.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-Regular.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Regular.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-SemiBold.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-SemiBold.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-SemiBold.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-SemiBold.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-SemiBoldItalic.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-SemiBoldItalic.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-SemiBoldItalic.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-SemiBoldItalic.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-Thin.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Thin.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-Thin.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-Thin.woff2
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-ThinItalic.woff
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-ThinItalic.woff
Normal file
Binary file not shown.
BIN
src/ui/web/css/themes/element/inter/Inter-ThinItalic.woff2
Normal file
BIN
src/ui/web/css/themes/element/inter/Inter-ThinItalic.woff2
Normal file
Binary file not shown.
188
src/ui/web/css/themes/element/theme.css
Normal file
188
src/ui/web/css/themes/element/theme.css
Normal file
|
@ -0,0 +1,188 @@
|
||||||
|
/*
|
||||||
|
Copyright 2020 Bruno Windels <bruno@windels.cloud>
|
||||||
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
@import url('inter.css');
|
||||||
|
|
||||||
|
.hydrogen {
|
||||||
|
font-family: 'Inter', sans-serif, 'emoji';
|
||||||
|
background-color: white;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.avatar {
|
||||||
|
border-radius: 100%;
|
||||||
|
background: black;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.LeftPanel {
|
||||||
|
background: #333;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.LeftPanel ul {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.LeftPanel li {
|
||||||
|
margin: 5px;
|
||||||
|
padding: 10px;
|
||||||
|
/* vertical align */
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.LeftPanel li {
|
||||||
|
border-bottom: 1px #555 solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.LeftPanel li:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.LeftPanel li > * {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.LeftPanel .description .last-message {
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.SessionStatusView {
|
||||||
|
padding: 5px;
|
||||||
|
background-color: #555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.RoomPlaceholderView {
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.SessionPickerView li {
|
||||||
|
font-size: 1.2em;
|
||||||
|
background-color: grey;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.RoomHeader {
|
||||||
|
padding: 10px;
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.RoomHeader button {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
font-size: 1.5em;
|
||||||
|
padding: 0;
|
||||||
|
background: white;
|
||||||
|
border: none;
|
||||||
|
font-weight: bolder;
|
||||||
|
line-height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.back::before {
|
||||||
|
content: "☰";
|
||||||
|
}
|
||||||
|
|
||||||
|
.more::before {
|
||||||
|
content: "⋮";
|
||||||
|
}
|
||||||
|
|
||||||
|
.RoomHeader .topic {
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.RoomHeader {
|
||||||
|
padding: 10px;
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.RoomView_error {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.MessageComposer > input {
|
||||||
|
padding: 0.8em;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-container {
|
||||||
|
max-width: 80%;
|
||||||
|
padding: 5px 10px;
|
||||||
|
margin: 5px 10px;
|
||||||
|
background: blue;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-container .sender {
|
||||||
|
margin: 5px 0;
|
||||||
|
font-size: 0.9em;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.TextMessageView .message-container time {
|
||||||
|
padding: 2px 0 0px 20px;
|
||||||
|
font-size: 0.9em;
|
||||||
|
color: lightblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-container time {
|
||||||
|
font-size: 0.9em;
|
||||||
|
color: lightblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
.own time {
|
||||||
|
color: lightgreen;
|
||||||
|
}
|
||||||
|
|
||||||
|
.own .message-container {
|
||||||
|
background-color: darkgreen;
|
||||||
|
}
|
||||||
|
|
||||||
|
.TextMessageView.own .message-container {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.TextMessageView.pending .message-container {
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.TextMessageView .message-container time {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-container p {
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.AnnouncementView {
|
||||||
|
margin: 5px 0;
|
||||||
|
padding: 5px 10%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.AnnouncementView > div {
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 10px 20px;
|
||||||
|
background-color: #333;
|
||||||
|
font-size: 0.9em;
|
||||||
|
color: #CCC;
|
||||||
|
text-align: center;
|
||||||
|
}
|
Loading…
Reference in a new issue