From e561c5e2e5ab802512338ce25b781057fde3197b Mon Sep 17 00:00:00 2001 From: Denny Biasiolli Date: Tue, 30 May 2023 10:51:33 +0200 Subject: [PATCH] fix: relative position in `i` elements in WelcomeItem --- template/code/default/src/components/WelcomeItem.vue | 12 +++--------- template/code/router/src/components/WelcomeItem.vue | 12 +++--------- .../src/components/WelcomeItem.vue | 12 +++--------- .../typescript-router/src/components/WelcomeItem.vue | 12 +++--------- 4 files changed, 12 insertions(+), 36 deletions(-) diff --git a/template/code/default/src/components/WelcomeItem.vue b/template/code/default/src/components/WelcomeItem.vue index 6d7086ae..18d8e273 100644 --- a/template/code/default/src/components/WelcomeItem.vue +++ b/template/code/default/src/components/WelcomeItem.vue @@ -50,7 +50,7 @@ h3 { i { top: calc(50% - 25px); left: -26px; - position: absolute; + position: relative; border: 1px solid var(--color-border); background: var(--color-background); border-radius: 8px; @@ -61,19 +61,13 @@ h3 { .item:before { content: ' '; border-left: 1px solid var(--color-border); - position: absolute; - left: 0; - bottom: calc(50% + 25px); - height: calc(50% - 25px); + position: relative; } .item:after { content: ' '; border-left: 1px solid var(--color-border); - position: absolute; - left: 0; - top: calc(50% + 25px); - height: calc(50% - 25px); + position: relative; } .item:first-of-type:before { diff --git a/template/code/router/src/components/WelcomeItem.vue b/template/code/router/src/components/WelcomeItem.vue index ac366d07..2326b8b8 100644 --- a/template/code/router/src/components/WelcomeItem.vue +++ b/template/code/router/src/components/WelcomeItem.vue @@ -49,7 +49,7 @@ h3 { i { top: calc(50% - 25px); left: -26px; - position: absolute; + position: relative; border: 1px solid var(--color-border); background: var(--color-background); border-radius: 8px; @@ -60,19 +60,13 @@ h3 { .item:before { content: ' '; border-left: 1px solid var(--color-border); - position: absolute; - left: 0; - bottom: calc(50% + 25px); - height: calc(50% - 25px); + position: relative; } .item:after { content: ' '; border-left: 1px solid var(--color-border); - position: absolute; - left: 0; - top: calc(50% + 25px); - height: calc(50% - 25px); + position: relative; } .item:first-of-type:before { diff --git a/template/code/typescript-default/src/components/WelcomeItem.vue b/template/code/typescript-default/src/components/WelcomeItem.vue index 6d7086ae..18d8e273 100644 --- a/template/code/typescript-default/src/components/WelcomeItem.vue +++ b/template/code/typescript-default/src/components/WelcomeItem.vue @@ -50,7 +50,7 @@ h3 { i { top: calc(50% - 25px); left: -26px; - position: absolute; + position: relative; border: 1px solid var(--color-border); background: var(--color-background); border-radius: 8px; @@ -61,19 +61,13 @@ h3 { .item:before { content: ' '; border-left: 1px solid var(--color-border); - position: absolute; - left: 0; - bottom: calc(50% + 25px); - height: calc(50% - 25px); + position: relative; } .item:after { content: ' '; border-left: 1px solid var(--color-border); - position: absolute; - left: 0; - top: calc(50% + 25px); - height: calc(50% - 25px); + position: relative; } .item:first-of-type:before { diff --git a/template/code/typescript-router/src/components/WelcomeItem.vue b/template/code/typescript-router/src/components/WelcomeItem.vue index 6d7086ae..18d8e273 100644 --- a/template/code/typescript-router/src/components/WelcomeItem.vue +++ b/template/code/typescript-router/src/components/WelcomeItem.vue @@ -50,7 +50,7 @@ h3 { i { top: calc(50% - 25px); left: -26px; - position: absolute; + position: relative; border: 1px solid var(--color-border); background: var(--color-background); border-radius: 8px; @@ -61,19 +61,13 @@ h3 { .item:before { content: ' '; border-left: 1px solid var(--color-border); - position: absolute; - left: 0; - bottom: calc(50% + 25px); - height: calc(50% - 25px); + position: relative; } .item:after { content: ' '; border-left: 1px solid var(--color-border); - position: absolute; - left: 0; - top: calc(50% + 25px); - height: calc(50% - 25px); + position: relative; } .item:first-of-type:before {