Files
Sebastian Benz dc2174377a Add prettier and eslint (#831)
* Ignores archived samples
* Uses eslint/recommended rules
* Runs prettier and eslint (including --fix) pre-commit via husky
* Adds new npm scripts: 'lint', 'lint:fix' and 'prettier'
* Does not lint inline js code
* Fix all prettier and eslint errors
* Add custom prettier rules
* Apply custom prettier rules
* Update readme to explain how to setup the repo
* addressed comments
2023-02-22 13:25:39 +01:00

101 lines
1.8 KiB
CSS

/* Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
h1 {
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
#display_top {
margin: auto;
width: 600px;
}
#todo_div {
margin-top: 0px;
height: 100px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.center {
display: flex;
align-items: center;
justify-content: center;
}
@keyframes color-extravaganza {
0% {
background-color: #4285f4;
}
10% {
background-color: #4285f4;
}
25% {
background-color: #ea4335;
}
50% {
background-color: #fbbc04;
}
100% {
background-color: #34a853;
}
}
.colorFun {
position: relative;
height: 100px;
width: 100px;
padding: 10px;
display: inline-block;
margin-top: 60px;
}
.colorFun .tooltip {
visibility: hidden;
width: 120px;
color: #fff;
text-align: center;
padding: 5px 0;
border-radius: 6px;
position: absolute;
z-index: 1;
bottom: 0%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 0.3s;
}
#todo_div,
.colorFun:hover .tooltip {
visibility: visible;
opacity: 1;
animation-name: color-extravaganza;
animation-duration: 6s;
animation-iteration-count: infinite;
animation-direction: alternate;
}
img {
width: 100px;
}
footer {
position: absolute;
bottom: 20px;
left: 20px;
}