The example library is angular-mdc-web.
In order to use the custom mixins from the library add this to angular.json
file in the project.architect.build.options
section:
...
The example library is angular-mdc-web.
In order to use the custom mixins from the library add this to angular.json
file in the project.architect.build.options
section:
...
<div class="showhim">
HOVER ME
<div class="showme">hai</div>
<div class="ok">ok</div>
<div id="growContainer">
<div class="grow" style="background-color:#2A75A9;"></div>
<div class="grow" style="background-color:#274257;"></div>
<div class="grow" style="background-color:#644436;"></div>
# install current working directory dependencies
yarn --ignore-engines
# install firebase-tools if u didn't
yarn global add firebase-tools
yarn run lint
: lint check for error
firebase list
firebase deploy
: deploy everything
Develop
> Hosting
> Connect Domain
.Domain List
> Manage
> Advanced DNS
.Host Records
, add a new record with:Actually you can't change the position of a background-color
, instead we need to use a trick to create a background-image
with solid gradient and position that instead.
Here is the example of a div that have color background fill up and leave around 100px at the bottom unfilled.
Safari has trouble scaling SVG image so it will distort image if use with attribute like object-fit: cover;
. To fix this add preserveAspectRatio="none"
to the <svg>
:
<svg width="200" height="200" viewBox="0 0 200 200" fill="none" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
What works in Angular 7:
The JS library trie-search doesn't have the definition .dt.ts
file to be used in TypeScript file. so we need to use the following method in order to use it.
Tips: using Type Search to see if there's any pre created .d.ts
for your library SOURCE.