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