Skip to content

Commit

Permalink
docs(nuxt): update spaLoadingTemplate jsdoc example
Browse files Browse the repository at this point in the history
Signed-off-by: davidglezz <davidg@empathy.co>
  • Loading branch information
davidglezz committed Sep 11, 2023
1 parent 9c54234 commit cc24c4d
Showing 1 changed file with 20 additions and 35 deletions.
55 changes: 20 additions & 35 deletions packages/schema/src/config/app.ts
Expand Up @@ -199,45 +199,30 @@ export default defineUntypedSchema({
*
* @example ~/app/spa-loading-template.html
* ```html
* <!-- https://github.com/barelyhuman/snips/blob/dev/pages/css-loader.md -->
* <!-- https://gist.github.com/davidglezz/85a2e6185edbd0873a5a2bdb2ce1cd36 -->
* <div class="loader"></div>
* <style>
* .loader {
* display: block;
* position: fixed;
* z-index: 1031;
* top: 50%;
* left: 50%;
* transform: translate(-50%, -50%);
* width: 18px;
* height: 18px;
* box-sizing: border-box;
* border: solid 2px transparent;
* border-top-color: #000;
* border-left-color: #000;
* border-bottom-color: #efefef;
* border-right-color: #efefef;
* border-radius: 50%;
* -webkit-animation: loader 400ms linear infinite;
* animation: loader 400ms linear infinite;
* }
*
* \@-webkit-keyframes loader {
* 0% {
* -webkit-transform: translate(-50%, -50%) rotate(0deg);
* }
* 100% {
* -webkit-transform: translate(-50%, -50%) rotate(360deg);
* }
* }
* \@keyframes loader {
* 0% {
* transform: translate(-50%, -50%) rotate(0deg);
* .loader {
* --size: 5rem;
* --weight: .5rem;
* --background: rgba(127, 127, 127, .1);
* --color: rgba(127, 127, 127, .9);
* --duration: 1s;
* position: fixed;
* top: calc(50% - var(--size) / 2);
* left: calc(50% - var(--size) / 2);
* width: var(--size);
* height: var(--size);
* box-sizing: border-box;
* border: solid var(--weight) var(--background);
* border-top-color: var(--color);
* border-radius: 50%;
* animation: loader var(--duration) linear infinite;
* }
* 100% {
* transform: translate(-50%, -50%) rotate(360deg);
*
* @keyframes loader {
* to { transform: rotate(360deg); }
* }
* }
* </style>
* ```
* @type {string | boolean}
Expand Down

0 comments on commit cc24c4d

Please sign in to comment.