replace unicode play icon with font face icon
This commit is contained in:
parent
d999315ad1
commit
a7ffc402c0
13 changed files with 382 additions and 2 deletions
|
@ -152,7 +152,6 @@ main > .film {
|
||||||
border: 4px solid rgba(#fff, 0.3);
|
border: 4px solid rgba(#fff, 0.3);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-size: 36px;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
width: 54px;
|
width: 54px;
|
||||||
height: 54px;
|
height: 54px;
|
||||||
|
@ -160,6 +159,12 @@ main > .film {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
|
||||||
|
.text {
|
||||||
|
font-family: "icomoon";
|
||||||
|
font-size: 42px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.film-play-block {
|
.film-play-block {
|
||||||
|
|
38
app/static/css/partials/_icomoon.scss
Executable file
38
app/static/css/partials/_icomoon.scss
Executable file
|
@ -0,0 +1,38 @@
|
||||||
|
@font-face {
|
||||||
|
font-family: 'icomoon';
|
||||||
|
src:
|
||||||
|
url('/static/fonts/icomoon/icomoon.ttf?ru5m2') format('truetype'),
|
||||||
|
url('/static/fonts/icomoon/fonts/icomoon.woff?ru5m2') format('woff'),
|
||||||
|
url('/static/fonts/icomoon/icomoon.svg?ru5m2#icomoon') format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
font-display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
[class^="f-icon-"], [class*=" f-icon-"] {
|
||||||
|
/* use !important to prevent issues with browser extensions that change fonts */
|
||||||
|
font-family: 'icomoon' !important;
|
||||||
|
speak: never;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
font-variant: normal;
|
||||||
|
text-transform: none;
|
||||||
|
line-height: 1;
|
||||||
|
|
||||||
|
/* Better Font Rendering =========== */
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
||||||
|
|
||||||
|
.f-icon-triangle-up:before {
|
||||||
|
content: "\e900";
|
||||||
|
}
|
||||||
|
.f-icon-triangle-right:before {
|
||||||
|
content: "\e901";
|
||||||
|
}
|
||||||
|
.f-icon-triangle-left:before {
|
||||||
|
content: "\e902";
|
||||||
|
}
|
||||||
|
.f-icon-triangle-down:before {
|
||||||
|
content: "\e903";
|
||||||
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
@import "partials/reset";
|
@import "partials/reset";
|
||||||
|
@import "partials/icomoon";
|
||||||
@import "partials/layout";
|
@import "partials/layout";
|
||||||
@import "partials/titleanimation";
|
@import "partials/titleanimation";
|
||||||
@import "partials/menu";
|
@import "partials/menu";
|
||||||
|
|
7
app/static/fonts/icomoon/Read Me.txt
Executable file
7
app/static/fonts/icomoon/Read Me.txt
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures.
|
||||||
|
|
||||||
|
To use the generated font in desktop programs, you can install the TTF font. In order to copy the character associated with each icon, refer to the text box at the bottom right corner of each glyph in demo.html. The character inside this text box may be invisible; but it can still be copied. See this guide for more info: https://icomoon.io/#docs/local-fonts
|
||||||
|
|
||||||
|
You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.
|
||||||
|
|
||||||
|
You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu → Manage Projects) to retrieve your icon selection.
|
152
app/static/fonts/icomoon/demo-files/demo.css
Executable file
152
app/static/fonts/icomoon/demo-files/demo.css
Executable file
|
@ -0,0 +1,152 @@
|
||||||
|
body {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 1em;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: #555;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size: 1.5em;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
small {
|
||||||
|
font-size: .66666667em;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: #e74c3c;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
a:hover, a:focus {
|
||||||
|
box-shadow: 0 1px #e74c3c;
|
||||||
|
}
|
||||||
|
.bshadow0, input {
|
||||||
|
box-shadow: inset 0 -2px #e7e7e7;
|
||||||
|
}
|
||||||
|
input:hover {
|
||||||
|
box-shadow: inset 0 -2px #ccc;
|
||||||
|
}
|
||||||
|
input, fieldset {
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 1em;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
input {
|
||||||
|
color: inherit;
|
||||||
|
line-height: 1.5;
|
||||||
|
height: 1.5em;
|
||||||
|
padding: .25em 0;
|
||||||
|
}
|
||||||
|
input:focus {
|
||||||
|
outline: none;
|
||||||
|
box-shadow: inset 0 -2px #449fdb;
|
||||||
|
}
|
||||||
|
.glyph {
|
||||||
|
font-size: 16px;
|
||||||
|
width: 15em;
|
||||||
|
padding-bottom: 1em;
|
||||||
|
margin-right: 4em;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
float: left;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.liga {
|
||||||
|
width: 80%;
|
||||||
|
width: calc(100% - 2.5em);
|
||||||
|
}
|
||||||
|
.talign-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.talign-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.bgc1 {
|
||||||
|
background: #f1f1f1;
|
||||||
|
}
|
||||||
|
.fgc1 {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.fgc0 {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
margin-top: 1em;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
.mvm {
|
||||||
|
margin-top: .75em;
|
||||||
|
margin-bottom: .75em;
|
||||||
|
}
|
||||||
|
.mtn {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
.mtl, .mal {
|
||||||
|
margin-top: 1.5em;
|
||||||
|
}
|
||||||
|
.mbl, .mal {
|
||||||
|
margin-bottom: 1.5em;
|
||||||
|
}
|
||||||
|
.mal, .mhl {
|
||||||
|
margin-left: 1.5em;
|
||||||
|
margin-right: 1.5em;
|
||||||
|
}
|
||||||
|
.mhmm {
|
||||||
|
margin-left: 1em;
|
||||||
|
margin-right: 1em;
|
||||||
|
}
|
||||||
|
.mls {
|
||||||
|
margin-left: .25em;
|
||||||
|
}
|
||||||
|
.ptl {
|
||||||
|
padding-top: 1.5em;
|
||||||
|
}
|
||||||
|
.pbs, .pvs {
|
||||||
|
padding-bottom: .25em;
|
||||||
|
}
|
||||||
|
.pvs, .pts {
|
||||||
|
padding-top: .25em;
|
||||||
|
}
|
||||||
|
.unit {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.unitRight {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.size1of2 {
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
.size1of1 {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.clearfix:before, .clearfix:after {
|
||||||
|
content: " ";
|
||||||
|
display: table;
|
||||||
|
}
|
||||||
|
.clearfix:after {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.hidden-true {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.textbox0 {
|
||||||
|
width: 3em;
|
||||||
|
background: #f1f1f1;
|
||||||
|
padding: .25em .5em;
|
||||||
|
line-height: 1.5;
|
||||||
|
height: 1.5em;
|
||||||
|
}
|
||||||
|
#testDrive {
|
||||||
|
display: block;
|
||||||
|
padding-top: 24px;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
.fs0 {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.fs1 {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
30
app/static/fonts/icomoon/demo-files/demo.js
Executable file
30
app/static/fonts/icomoon/demo-files/demo.js
Executable file
|
@ -0,0 +1,30 @@
|
||||||
|
if (!('boxShadow' in document.body.style)) {
|
||||||
|
document.body.setAttribute('class', 'noBoxShadow');
|
||||||
|
}
|
||||||
|
|
||||||
|
document.body.addEventListener("click", function(e) {
|
||||||
|
var target = e.target;
|
||||||
|
if (target.tagName === "INPUT" &&
|
||||||
|
target.getAttribute('class').indexOf('liga') === -1) {
|
||||||
|
target.select();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
var fontSize = document.getElementById('fontSize'),
|
||||||
|
testDrive = document.getElementById('testDrive'),
|
||||||
|
testText = document.getElementById('testText');
|
||||||
|
function updateTest() {
|
||||||
|
testDrive.innerHTML = testText.value || String.fromCharCode(160);
|
||||||
|
if (window.icomoonLiga) {
|
||||||
|
window.icomoonLiga(testDrive);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function updateSize() {
|
||||||
|
testDrive.style.fontSize = fontSize.value + 'px';
|
||||||
|
}
|
||||||
|
fontSize.addEventListener('change', updateSize, false);
|
||||||
|
testText.addEventListener('input', updateTest, false);
|
||||||
|
testText.addEventListener('change', updateTest, false);
|
||||||
|
updateSize();
|
||||||
|
}());
|
94
app/static/fonts/icomoon/demo.html
Executable file
94
app/static/fonts/icomoon/demo.html
Executable file
|
@ -0,0 +1,94 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>IcoMoon Demo</title>
|
||||||
|
<meta name="description" content="An Icon Font Generated By IcoMoon.io">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="stylesheet" href="demo-files/demo.css">
|
||||||
|
<link rel="stylesheet" href="style.css"></head>
|
||||||
|
<body>
|
||||||
|
<div class="bgc1 clearfix">
|
||||||
|
<h1 class="mhmm mvm"><span class="fgc1">Font Name:</span> icomoon <small class="fgc1">(Glyphs: 4)</small></h1>
|
||||||
|
</div>
|
||||||
|
<div class="clearfix mhl ptl">
|
||||||
|
<h1 class="mvm mtn fgc1">Grid Size: 20</h1>
|
||||||
|
<div class="glyph fs1">
|
||||||
|
<div class="clearfix bshadow0 pbs">
|
||||||
|
<span class="f-icon-triangle-up"></span>
|
||||||
|
<span class="mls"> f-icon-triangle-up</span>
|
||||||
|
</div>
|
||||||
|
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
||||||
|
<input type="text" readonly value="e900" class="unit size1of2" />
|
||||||
|
<input type="text" maxlength="1" readonly value="" class="unitRight size1of2 talign-right" />
|
||||||
|
</fieldset>
|
||||||
|
<div class="fs0 bshadow0 clearfix hidden-true">
|
||||||
|
<span class="unit pvs fgc1">liga: </span>
|
||||||
|
<input type="text" readonly value="" class="liga unitRight" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="glyph fs1">
|
||||||
|
<div class="clearfix bshadow0 pbs">
|
||||||
|
<span class="f-icon-triangle-right"></span>
|
||||||
|
<span class="mls"> f-icon-triangle-right</span>
|
||||||
|
</div>
|
||||||
|
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
||||||
|
<input type="text" readonly value="e901" class="unit size1of2" />
|
||||||
|
<input type="text" maxlength="1" readonly value="" class="unitRight size1of2 talign-right" />
|
||||||
|
</fieldset>
|
||||||
|
<div class="fs0 bshadow0 clearfix hidden-true">
|
||||||
|
<span class="unit pvs fgc1">liga: </span>
|
||||||
|
<input type="text" readonly value="" class="liga unitRight" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="glyph fs1">
|
||||||
|
<div class="clearfix bshadow0 pbs">
|
||||||
|
<span class="f-icon-triangle-left"></span>
|
||||||
|
<span class="mls"> f-icon-triangle-left</span>
|
||||||
|
</div>
|
||||||
|
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
||||||
|
<input type="text" readonly value="e902" class="unit size1of2" />
|
||||||
|
<input type="text" maxlength="1" readonly value="" class="unitRight size1of2 talign-right" />
|
||||||
|
</fieldset>
|
||||||
|
<div class="fs0 bshadow0 clearfix hidden-true">
|
||||||
|
<span class="unit pvs fgc1">liga: </span>
|
||||||
|
<input type="text" readonly value="" class="liga unitRight" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="glyph fs1">
|
||||||
|
<div class="clearfix bshadow0 pbs">
|
||||||
|
<span class="f-icon-triangle-down"></span>
|
||||||
|
<span class="mls"> f-icon-triangle-down</span>
|
||||||
|
</div>
|
||||||
|
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
||||||
|
<input type="text" readonly value="e903" class="unit size1of2" />
|
||||||
|
<input type="text" maxlength="1" readonly value="" class="unitRight size1of2 talign-right" />
|
||||||
|
</fieldset>
|
||||||
|
<div class="fs0 bshadow0 clearfix hidden-true">
|
||||||
|
<span class="unit pvs fgc1">liga: </span>
|
||||||
|
<input type="text" readonly value="" class="liga unitRight" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--[if gt IE 8]><!-->
|
||||||
|
<div class="mhl clearfix mbl">
|
||||||
|
<h1>Font Test Drive</h1>
|
||||||
|
<label>
|
||||||
|
Font Size: <input id="fontSize" type="number" class="textbox0 mbm"
|
||||||
|
min="8" value="48" />
|
||||||
|
px
|
||||||
|
</label>
|
||||||
|
<input id="testText" type="text" class="phl size1of1 mvl"
|
||||||
|
placeholder="Type some text to test..." value=""/>
|
||||||
|
<div id="testDrive" class="f-icon-" style="font-family: icomoon">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--<![endif]-->
|
||||||
|
<div class="bgc1 clearfix">
|
||||||
|
<p class="mhl">Generated by <a href="https://icomoon.io/app">IcoMoon</a></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="demo-files/demo.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
14
app/static/fonts/icomoon/fonts/icomoon.svg
Executable file
14
app/static/fonts/icomoon/fonts/icomoon.svg
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<metadata>Generated by IcoMoon</metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="icomoon" horiz-adv-x="1024">
|
||||||
|
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
||||||
|
<missing-glyph horiz-adv-x="1024" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="512" d="" />
|
||||||
|
<glyph unicode="" glyph-name="triangle-up" d="M768 256h-512l256 460.8 256-460.8z" />
|
||||||
|
<glyph unicode="" glyph-name="triangle-right" d="M768 460.8l-460.8-256v512l460.8-256z" />
|
||||||
|
<glyph unicode="" glyph-name="triangle-left" d="M716.8 716.8v-512l-460.8 256 460.8 256z" />
|
||||||
|
<glyph unicode="" glyph-name="triangle-down" d="M256 665.6h512l-256-460.8-256 460.8z" />
|
||||||
|
</font></defs></svg>
|
After Width: | Height: | Size: 823 B |
BIN
app/static/fonts/icomoon/fonts/icomoon.ttf
Executable file
BIN
app/static/fonts/icomoon/fonts/icomoon.ttf
Executable file
Binary file not shown.
BIN
app/static/fonts/icomoon/fonts/icomoon.woff
Executable file
BIN
app/static/fonts/icomoon/fonts/icomoon.woff
Executable file
Binary file not shown.
1
app/static/fonts/icomoon/selection.json
Executable file
1
app/static/fonts/icomoon/selection.json
Executable file
|
@ -0,0 +1 @@
|
||||||
|
{"IcoMoonType":"selection","icons":[{"icon":{"paths":["M768 716.8h-512l256-460.8 256 460.8z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"tags":["triangle-up"],"grid":20},"attrs":[{}],"properties":{"order":1,"id":3,"prevSize":20,"code":59648,"name":"triangle-up"},"setIdx":0,"setId":16,"iconIdx":0},{"icon":{"paths":["M768 512l-460.8 256v-512l460.8 256z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"tags":["triangle-right"],"grid":20},"attrs":[{}],"properties":{"order":2,"id":2,"prevSize":20,"code":59649,"name":"triangle-right"},"setIdx":0,"setId":16,"iconIdx":1},{"icon":{"paths":["M716.8 256v512l-460.8-256 460.8-256z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"tags":["triangle-left"],"grid":20},"attrs":[{}],"properties":{"order":3,"id":1,"prevSize":20,"code":59650,"name":"triangle-left"},"setIdx":0,"setId":16,"iconIdx":2},{"icon":{"paths":["M256 307.2h512l-256 460.8-256-460.8z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"tags":["triangle-down"],"grid":20},"attrs":[{}],"properties":{"order":4,"id":0,"prevSize":20,"code":59651,"name":"triangle-down"},"setIdx":0,"setId":16,"iconIdx":3}],"height":1024,"metadata":{"name":"icomoon"},"preferences":{"showGlyphs":true,"showQuickUse":true,"showQuickUse2":true,"showSVGs":true,"fontPref":{"prefix":"f-icon-","metadata":{"fontFamily":"icomoon","majorVersion":1,"minorVersion":0},"metrics":{"emSize":1024,"baseline":6.25,"whitespace":50},"embed":false,"noie8":true,"ie7":false,"showSelector":true},"imagePref":{"prefix":"icon-","png":false,"useClassSelector":true,"color":16777215,"bgColor":16777215,"classSelector":".icon","name":"icomoon","height":32,"columns":16,"margin":16},"historySize":50,"showCodes":true,"gridSize":16}}
|
38
app/static/fonts/icomoon/style.css
Executable file
38
app/static/fonts/icomoon/style.css
Executable file
|
@ -0,0 +1,38 @@
|
||||||
|
@font-face {
|
||||||
|
font-family: 'icomoon';
|
||||||
|
src:
|
||||||
|
url('fonts/icomoon.ttf?ru5m2') format('truetype'),
|
||||||
|
url('fonts/icomoon.woff?ru5m2') format('woff'),
|
||||||
|
url('fonts/icomoon.svg?ru5m2#icomoon') format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
font-display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
[class^="f-icon-"], [class*=" f-icon-"] {
|
||||||
|
/* use !important to prevent issues with browser extensions that change fonts */
|
||||||
|
font-family: 'icomoon' !important;
|
||||||
|
speak: never;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
font-variant: normal;
|
||||||
|
text-transform: none;
|
||||||
|
line-height: 1;
|
||||||
|
|
||||||
|
/* Better Font Rendering =========== */
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
||||||
|
|
||||||
|
.f-icon-triangle-up:before {
|
||||||
|
content: "\e900";
|
||||||
|
}
|
||||||
|
.f-icon-triangle-right:before {
|
||||||
|
content: "\e901";
|
||||||
|
}
|
||||||
|
.f-icon-triangle-left:before {
|
||||||
|
content: "\e902";
|
||||||
|
}
|
||||||
|
.f-icon-triangle-down:before {
|
||||||
|
content: "\e903";
|
||||||
|
}
|
|
@ -52,7 +52,7 @@ body {
|
||||||
</div>
|
</div>
|
||||||
<div class="play">
|
<div class="play">
|
||||||
<div class="film-play-block">
|
<div class="film-play-block">
|
||||||
<div><a href="" id="play-fullscreen" class="icon-play"><span class="animated-title"><span class="text">▶</span></span></a></div>
|
<div><a href="" id="play-fullscreen" class="icon-play"><span class="animated-title"><span class="text"></span></span></a></div>
|
||||||
<div class="film-play-spacer">OR</div>
|
<div class="film-play-spacer">OR</div>
|
||||||
<div class="film-play-padma"><a href="https://pad.ma/{{ film.padma_id }}/info" target="_blank">View on Pad.ma</a></div>
|
<div class="film-play-padma"><a href="https://pad.ma/{{ film.padma_id }}/info" target="_blank">View on Pad.ma</a></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue