Skip to content

Commit

Permalink
Remove reliance on CDNs for Font Awesome (icons) and Bulma (CSS)
Browse files Browse the repository at this point in the history
Plus several CSS tweaks to ensure the app looks good at different sizes/on different devices
  • Loading branch information
kfrn committed Jul 25, 2018
1 parent 3bbd2a7 commit ffa902c
Show file tree
Hide file tree
Showing 12 changed files with 2,683 additions and 9 deletions.
2 changes: 0 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
<meta name="theme-color" content="#000000">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon-film.ico">
<link href="https://fonts.googleapis.com/css?family=Comfortaa" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.1/css/bulma.min.css">
<title>film figures</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion src/Model.elm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ initialModel =
Sixteen

footage =
20
24

( duration, frames ) =
fromFootage system speed gauge footage
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "../styles/Font-Awesome-4.7.0/css/font-awesome.min.css";
import "../styles/bulma.min.css";
import "../styles/main.css";
import { Main } from "./Main.elm";
import registerServiceWorker from "./registerServiceWorker";
Expand Down
4 changes: 4 additions & 0 deletions styles/Font-Awesome-4.7.0/css/font-awesome.min.css

Large diffs are not rendered by default.

Binary file added styles/Font-Awesome-4.7.0/fonts/FontAwesome.otf
Binary file not shown.
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions styles/Font-Awesome-4.7.0/fonts/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions styles/bulma.min.css

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ div.app-footer {
border-radius: 5px;
color: black;
margin: 1em auto;
max-width: 50%;
max-width: 150px;
border: 1px solid lightgrey;
}

Expand All @@ -165,20 +165,17 @@ div.app-footer {
}

#other-controls {
max-width: 70%;
max-width: 85%;
margin: 0 auto;
}

.control-panel {
margin: 1em 0.5em 1em 0.5em;
max-width: 40%;
}
}

@media (min-width: 1024px) {
.control-panel {
margin: 1em 0.5em;
}

.control-panel .field {
display: flex;
justify-content: space-around;
Expand Down

0 comments on commit ffa902c

Please sign in to comment.