Merge pull request #87 from matrix-org/matrixtwo/color-scheme
Add basic styling
This commit is contained in:
commit
8b07e64a9b
3 changed files with 55 additions and 0 deletions
16
public/index.html
Normal file
16
public/index.html
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="A client-side matrix link redirection service"
|
||||||
|
/>
|
||||||
|
<title>Matrix.to</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
|
<div id="root"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
6
src/_color-scheme.scss
Normal file
6
src/_color-scheme.scss
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
$app-background: #f4f4f4;
|
||||||
|
$background: #ffffff;
|
||||||
|
$foreground: #000000;
|
||||||
|
$font: #333333;
|
||||||
|
$grey: #666666;
|
||||||
|
$accent: #0098d4;
|
|
@ -1,3 +1,21 @@
|
||||||
|
/*
|
||||||
|
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 "color-scheme";
|
||||||
|
|
||||||
// CSS reset
|
// CSS reset
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
@ -5,9 +23,24 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Styling for universal elements
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body,
|
body,
|
||||||
#root {
|
#root {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
font-family: Helvetica Neue;
|
||||||
|
font-style: normal;
|
||||||
|
|
||||||
|
background-color: $app-background;
|
||||||
|
color: $font;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 24px;
|
||||||
|
line-height: 32px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue