app: Include JS lib to make datalists
This commit is contained in:
parent
1cf2b50c8c
commit
0648878d96
4 changed files with 110 additions and 0 deletions
|
|
@ -11,6 +11,9 @@
|
||||||
<link data-trunk rel="css" href="static/style.css" />
|
<link data-trunk rel="css" href="static/style.css" />
|
||||||
<link data-trunk rel="copy-file" href="static/login.css" />
|
<link data-trunk rel="copy-file" href="static/login.css" />
|
||||||
<link data-trunk rel="copy-file" href="static/household_selection.css" />
|
<link data-trunk rel="copy-file" href="static/household_selection.css" />
|
||||||
|
<link data-trunk rel="copy-file" href="static/awesomplete.min.js.map" />
|
||||||
|
<link data-trunk rel="css" href="static/awesomplete.css" />
|
||||||
|
<link data-trunk rel="copy-file" href="static/awesomplete.min.js" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main></main>
|
<main></main>
|
||||||
|
|
|
||||||
103
app/static/awesomplete.css
Normal file
103
app/static/awesomplete.css
Normal file
|
|
@ -0,0 +1,103 @@
|
||||||
|
.awesomplete [hidden] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.awesomplete .visually-hidden {
|
||||||
|
position: absolute;
|
||||||
|
clip: rect(0, 0, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.awesomplete {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.awesomplete > input {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.awesomplete > ul {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1;
|
||||||
|
min-width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.awesomplete > ul:empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.awesomplete > ul {
|
||||||
|
border-radius: .3em;
|
||||||
|
margin: .2em 0 0;
|
||||||
|
background: hsla(0,0%,100%,.9);
|
||||||
|
background: #1a1d20;
|
||||||
|
border: 1px solid rgba(0,0,0,.3);
|
||||||
|
box-shadow: .05em .2em .6em rgba(0,0,0,.2);
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@supports (transform: scale(0)) {
|
||||||
|
.awesomplete > ul {
|
||||||
|
transition: .3s cubic-bezier(.4,.2,.5,1.4);
|
||||||
|
transform-origin: 1.43em -.43em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.awesomplete > ul[hidden],
|
||||||
|
.awesomplete > ul:empty {
|
||||||
|
opacity: 0;
|
||||||
|
transform: scale(0);
|
||||||
|
display: block;
|
||||||
|
transition-timing-function: ease;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pointer */
|
||||||
|
.awesomplete > ul:before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -.43em;
|
||||||
|
left: 1em;
|
||||||
|
width: 0; height: 0;
|
||||||
|
padding: .4em;
|
||||||
|
background: #1a1d20;
|
||||||
|
border: inherit;
|
||||||
|
border-right: 0;
|
||||||
|
border-bottom: 0;
|
||||||
|
-webkit-transform: rotate(45deg);
|
||||||
|
transform: rotate(45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.awesomplete > ul > li {
|
||||||
|
position: relative;
|
||||||
|
padding: .2em .5em;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.awesomplete > ul > li:hover {
|
||||||
|
background: hsl(200, 40%, 80%);
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.awesomplete > ul > li[aria-selected="true"] {
|
||||||
|
background: hsl(205, 40%, 40%);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.awesomplete mark {
|
||||||
|
background: hsl(65, 100%, 50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.awesomplete li:hover mark {
|
||||||
|
background: hsl(68, 100%, 41%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.awesomplete li[aria-selected="true"] mark {
|
||||||
|
background: hsl(86, 100%, 21%);
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
3
app/static/awesomplete.min.js
vendored
Normal file
3
app/static/awesomplete.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
app/static/awesomplete.min.js.map
Normal file
1
app/static/awesomplete.min.js.map
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue