]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: format
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 28 Feb 2022 16:44:41 +0000 (17:44 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 28 Feb 2022 16:44:41 +0000 (17:44 +0100)
packages/docs/.vitepress/theme/Layout.ts
packages/docs/.vitepress/theme/custom.css

index b6a7b34e0d502a9b44827e95fd3e9e8eb2981eef..5c80ce0d3501c6c0f77dee4fb2276c1a3a949a46 100644 (file)
@@ -16,19 +16,24 @@ export const Layout = defineComponent({
         Theme.Layout,
         {},
         {
-          'home-hero': ()=>(
-            h("div", {
-              class: "vue-school-homepage-link",
-            }, [
-              h("a", {
-                  href: "https://vueschool.io/lessons/introduction-to-pinia?friend=vuerouter&utm_source=pinia&utm_medium=link&utm_campaign=homepage",
-                  target:"_blank",
-                  rel:"noopener"
-                },
-                [h("span", "Watch Video Introduction")]
-              )
-            ])
-          ),
+          'home-hero': () =>
+            h(
+              'div',
+              {
+                class: 'vue-school-homepage-link',
+              },
+              [
+                h(
+                  'a',
+                  {
+                    href: 'https://vueschool.io/lessons/introduction-to-pinia?friend=vuerouter&utm_source=pinia&utm_medium=link&utm_campaign=homepage',
+                    target: '_blank',
+                    rel: 'noopener',
+                  },
+                  [h('span', 'Watch Video Introduction')]
+                ),
+              ]
+            ),
           'sidebar-top': () =>
             h('div', { class: 'sponsors sponsors-top' }, [
               h('span', 'Platinum Sponsors'),
index 7247ba93361268f31dc7f0e6f83f4ba50b1f8d8d..84a32a99c02542b3afd0032f801337ab68d16f30 100644 (file)
@@ -211,14 +211,17 @@ code {
   width: auto;
   max-width: 150px;
 }
-.vue-school-homepage-link{
-  text-align: center; margin-top: -40px;
+
+.vue-school-homepage-link {
+  text-align: center;
+  margin-top: -40px;
 }
-.vue-school-homepage-link a{
+.vue-school-homepage-link a {
   position: relative;
   padding-left: 23px;
 }
-.vue-school-homepage-link a::before{
+
+.vue-school-homepage-link a::before {
   content: '';
   position: absolute;
   display: block;
@@ -229,7 +232,8 @@ code {
   border-radius: 50%;
   border: 1px solid var(--c-brand);
 }
-.vue-school-homepage-link a::after{
+
+.vue-school-homepage-link a::after {
   content: '';
   position: absolute;
   display: block;
@@ -241,8 +245,10 @@ code {
   border-bottom: 4px solid transparent;
   border-left: 7px solid var(--c-brand);
 }
-@media screen and (max-width: 720px){
-  .vue-school-homepage-link{
-    text-align: center; margin-top: -20px;
+
+@media screen and (max-width: 720px) {
+  .vue-school-homepage-link {
+    text-align: center;
+    margin-top: -20px;
   }
 }