From ac100de8d8e0fc85e34cde9aec6262259b12f96c Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Mon, 30 Dec 2024 21:53:48 +0100 Subject: [PATCH] style scoped locali --- 09 - deeper into components/cmp-adv-01-starting-setup/src/components/BadgeList.vue | 10 +++++++++- 09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue | 8 ++++---- 09 - deeper into components/cmp-adv-01-starting-setup/src/components/TheHeader.vue | 2 +- 09 - deeper into components/cmp-adv-01-starting-setup/src/components/BaseBadge.vue | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/BadgeList.vue b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/BadgeList.vue index 4b30e58..1ef93c6 100644 --- a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/BadgeList.vue +++ b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/BadgeList.vue @@ -12,7 +12,15 @@ </section> </template> -<style> +<style scoped> +section { + margin: 2rem auto; + max-width: 30rem; + border-radius: 12px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26); + padding: 1rem; +} + section h2 { margin: 0.5rem 0; color: #3a3a3a; diff --git a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/BaseBadge.vue b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/BaseBadge.vue index 68753fd..c494bc6 100644 --- a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/BaseBadge.vue +++ b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/BaseBadge.vue @@ -16,7 +16,7 @@ }; </script> -<style> +<style scoped> .badge { display: inline-block; padding: 0.5rem 1rem; diff --git a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/TheHeader.vue b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/TheHeader.vue index c2d001c..aeace6e 100644 --- a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/TheHeader.vue +++ b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/TheHeader.vue @@ -4,7 +4,7 @@ </header> </template> -<style> +<style scoped> header { width: 100%; height: 5rem; diff --git a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue index 7705c95..04dcf0f 100644 --- a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue +++ b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue @@ -1,9 +1,9 @@ <template> <section> - <div> + <header> <h3>{{ fullName }}</h3> <base-badge :type="role" :caption="role.toUpperCase()"></base-badge> - </div> + </header> <p>{{ infoText }}</p> </section> </template> @@ -14,7 +14,7 @@ }; </script> -<style> +<style scoped> section { margin: 2rem auto; max-width: 30rem; @@ -23,7 +23,7 @@ padding: 1rem; } -section div { +section header { display: flex; justify-content: space-between; align-items: center; -- Gitblit v1.8.0