add materialize-icons

This commit is contained in:
Davide Alberani 2018-12-01 13:05:08 +01:00
parent d2e75b77fa
commit ca29aadd07
5 changed files with 41 additions and 5 deletions

View file

@ -0,0 +1,35 @@
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: local('Material Icons'),
local('MaterialIcons-Regular'),
url(../icons/MaterialIcons-Regular.woff2) format('woff2'),
url(../icons/MaterialIcons-Regular.woff) format('woff'),
url(../icons/MaterialIcons-Regular.ttf) format('truetype');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px; /* Preferred icon size */
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
/* Support for IE. */
font-feature-settings: 'liga';
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -4,6 +4,7 @@
<meta charset="utf-8">
<title>toot-my-t-shirt</title>
<link rel="icon" type="image/png" href="/static/images/sb-favicon.png">
<link rel="stylesheet" type="text/css" href="/static/css/materialize-icons.css">
<link rel="stylesheet" type="text/css" href="/static/css/materialize.min.css">
<link rel="stylesheet" type="text/css" href="/static/css/sb.css">
<script type="text/javascript" src="/static/js/materialize.min.js"></script>
@ -13,21 +14,21 @@
<div id="main" class="container">
<div id="header" class="row">
<h1>toot-my-t-shirt</h1>
Share the love for your geek t-shirt!
Share the love for your geek t-shirt.
</div>
<div id="button-containers" class="row">
<button id="take-photo-btn" class="btn waves-effect waves-light disabled" name="take-photo-btn" onClick="takePhoto()">
<i class="material-icons right">Take photo!</i>
<i class="material-icons left">camera</i>Take photo
</button>
<button id="send-photo-btn" class="btn waves-effect waves-light disabled" name="send-photo-btn" onClick="sendPhoto()">
<i class="material-icons right">Share photo!</i>
<i class="material-icons left">share</i>Share photo
</button>
<button id="cancel-photo-btn" class="btn waves-effect waves-light disabled" name="cancel-photo-btn" onClick="cancelPhoto()">
<i class="material-icons right">Cancel photo</i>
<i class="material-icons left">cancel</i>Cancel photo
</button>
<button id="init-btn" class="btn waves-effect waves-light" name="init-btn" onClick="initCamera()">
<i class="material-icons right">Grant camera permissions</i>
<i class="material-icons left">photo_camera</i>Grant camera permissions
</button>
</div>