Add some minimal styling
This commit is contained in:
parent
73c14a8d0a
commit
5ae05ca42a
7 changed files with 92 additions and 9 deletions
16
resources/public/fonts/M+ Fonts License.txt
Normal file
16
resources/public/fonts/M+ Fonts License.txt
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
M+ FONTS Copyright (C) 2002-2008 M+ FONTS PROJECT
|
||||
|
||||
-
|
||||
|
||||
LICENSE_E
|
||||
|
||||
|
||||
|
||||
|
||||
These fonts are free softwares.
|
||||
Unlimited permission is granted to use, copy, and distribute it, with
|
||||
or without modification, either commercially and noncommercially.
|
||||
THESE FONTS ARE PROVIDED "AS IS" WITHOUT WARRANTY.
|
||||
|
||||
|
||||
http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/
|
||||
BIN
resources/public/fonts/mplus-1m-regular-webfont.woff
Normal file
BIN
resources/public/fonts/mplus-1m-regular-webfont.woff
Normal file
Binary file not shown.
BIN
resources/public/fonts/mplus-1m-regular-webfont.woff2
Normal file
BIN
resources/public/fonts/mplus-1m-regular-webfont.woff2
Normal file
Binary file not shown.
|
|
@ -1,3 +1,10 @@
|
|||
@font-face {
|
||||
font-family: 'mplus-1m';
|
||||
font-weight: normal;
|
||||
src: url('fonts/mplus-1m-regular-webfont.woff2') format('woff2'),
|
||||
url('fonts/mplus-1m-regular-webfont.woff') format('woff');
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
|
|
@ -12,8 +19,60 @@ body {
|
|||
}
|
||||
|
||||
body {
|
||||
color: #222;
|
||||
line-height: 1.2
|
||||
font-family: 'mplus-1m', monospace;
|
||||
line-height: 1.5;
|
||||
font-size: 18px;
|
||||
color: #444;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 18px;
|
||||
color: hsl(240, 100%, 70%);
|
||||
display: inline-block;
|
||||
border-bottom: 2px solid currentcolor;
|
||||
margin: 0
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 18px 0;
|
||||
}
|
||||
|
||||
p:first-of-type {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
p:last-of-type {
|
||||
margin-bottom: 24px
|
||||
}
|
||||
|
||||
button {
|
||||
background: hsl(240, 100%, 70%);
|
||||
border-radius: 4px;
|
||||
border: none;
|
||||
padding: 4px 8px;
|
||||
color: #fff;
|
||||
line-height: 24px;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
transform: translateY(-1px);
|
||||
cursor: pointer
|
||||
}
|
||||
|
||||
input {
|
||||
border: none;
|
||||
border-bottom: 2px solid hsl(240, 100%, 70%);
|
||||
color: hsl(240, 100%, 70%);
|
||||
background: none;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
height: 30px;
|
||||
line-height: 24px;
|
||||
margin-right: 8px;
|
||||
width: 120px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#welcome-message {
|
||||
|
|
@ -46,6 +105,13 @@ body {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
.capture-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
canvas#result {
|
||||
/* needs position: absolute so it's rendered above the video */
|
||||
position: absolute;
|
||||
|
|
@ -59,5 +125,6 @@ video#capture {
|
|||
|
||||
canvas#result,
|
||||
video#capture {
|
||||
transform: scale(-1, 1)
|
||||
transform: scale(-1, 1);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue