Browse Source

fix #40: use scoped CSS

Davide Alberani 6 years ago
parent
commit
773b92896c
10 changed files with 55 additions and 36 deletions
  1. 11 9
      src/App.vue
  2. 13 10
      src/Attendee.vue
  3. 1 1
      src/GlobalSettings.vue
  4. 10 6
      src/Group.vue
  5. 1 1
      src/IbtDialog.vue
  6. 11 4
      src/IbtFooter.vue
  7. 1 1
      src/IbtSnackbar.vue
  8. 2 2
      src/Toolbar.vue
  9. 1 1
      src/User.vue
  10. 4 1
      src/Users.vue

+ 11 - 9
src/App.vue

@@ -228,7 +228,7 @@ export default {
 }
 
 </script>
-<style>
+<style scoped>
 
 #main-attendees {
     font-family: 'Avenir', Helvetica, Arial, sans-serif;
@@ -270,14 +270,6 @@ export default {
     background-color: #f8bbd0;
 }
 
-.vdp-datepicker__calendar > header > span {
-    background-color: #f8bbd0;
-}
-
-.vdp-datepicker__calendar > header > span:hover {
-    background-color: #f06292 !important;
-}
-
 #day-notes {
     color: rgba(0, 0, 0, 0.54);
 }
@@ -286,5 +278,15 @@ export default {
     vertical-align: text-top;
 }
 
+</style>
+<style>
+
+.vdp-datepicker__calendar > header > span {
+    background-color: #f8bbd0;
+}
+
+.vdp-datepicker__calendar > header > span:hover {
+    background-color: #f06292 !important;
+}
 
 </style>

+ 13 - 10
src/Attendee.vue

@@ -115,21 +115,12 @@ export default {
 };
 
 </script>
-<style>
-
-.md-list-item .md-list-item-holder>.md-icon:first-child {
-    margin-right: 16px;
-}
+<style scoped>
 
 .attendee-list-item {
     min-width: 250px;
 }
 
-.attendee-list-item .md-list-item-container {
-    padding-left: 0px;
-    padding-right: 0px;
-}
-
 .attendee-notes {
     font-style: italic !important;
 }
@@ -165,3 +156,15 @@ export default {
 }
 
 </style>
+<style>
+
+.md-list-item .md-list-item-holder>.md-icon:first-child {
+    margin-right: 16px;
+}
+
+.attendee-list-item .md-list-item-container {
+    padding-left: 0px;
+    padding-right: 0px;
+}
+
+</style>

+ 1 - 1
src/GlobalSettings.vue

@@ -106,7 +106,7 @@ export default {
 }
 
 </script>
-<style>
+<style scoped>
 
 #settings {
     padding: 10px;

+ 10 - 6
src/Group.vue

@@ -273,7 +273,7 @@ export default {
 };
 
 </script>
-<style>
+<style scoped>
 
 .group-layout {
     padding: 10px;
@@ -281,8 +281,8 @@ export default {
 
 .new-group-header {
     background-color: lightsteelblue;
-    padding-top: 0px !important;
-    padding-bottom: 0px !important;
+    padding-top: 0px;
+    padding-bottom: 0px;
 }
 
 .group-title {
@@ -345,19 +345,23 @@ export default {
 }
 
 .group-card {
-    padding-right: 8px !important;
+    padding-right: 8px;
 }
 
 .new-group-label {
-    left: 30px !important;
+    left: 30px;
 }
 
 .group-add-name {
     margin-left: 0px !important;
 }
 
+</style>
+<style>
+
 .attendee-add .md-list-item-container {
-    padding-left: 0px;
+    padding-left: 0px !important;
+    margin-left: 0px;
     max-width: 300px;
 }
 

+ 1 - 1
src/IbtDialog.vue

@@ -19,5 +19,5 @@ export default {
 }
 
 </script>
-<style>
+<style scoped>
 </style>

+ 11 - 4
src/IbtFooter.vue

@@ -8,8 +8,7 @@
 export default {}
 
 </script>
-
-<style>
+<style scoped>
 
 #footer {
     text-align: center;
@@ -24,8 +23,16 @@ export default {}
     background-color: #b3e5fc;
 }
 
-#footer a {
-    color: white;
+#footer, #footer a {
+    color: rgba(0, 0, 0, .40);
+}
+
+#footer:hover, #footer:hover a {
+    color: rgba(0, 0, 0, .87);
+}
+
+#footer:hover a {
+    text-decoration: underline;
 }
 
 </style>

+ 1 - 1
src/IbtSnackbar.vue

@@ -20,7 +20,7 @@ export default {
 }
 
 </script>
-<style>
+<style scoped>
 
 .snackbar-close {
     font-weight: bold;

+ 2 - 2
src/Toolbar.vue

@@ -193,7 +193,7 @@ export default {
 }
 
 </script>
-<style>
+<style scoped>
 
 #toolbar-title {
     flex: 1;
@@ -235,7 +235,7 @@ export default {
 #logged-in-icon {
     margin-right: 0px;
     padding-right: 0px;
-    color: #f6f72f !important;
+    color: #f6f72f;
 }
 
 #logged-in {

+ 1 - 1
src/User.vue

@@ -86,7 +86,7 @@ export default {
 }
 </script>
 
-<style>
+<style scoped>
 
 #user {
     padding: 10px;

+ 4 - 1
src/Users.vue

@@ -95,12 +95,15 @@ export default {
 }
 
 </script>
-<style>
+<style scoped>
 
 #users {
     padding: 10px;
 }
 
+</style>
+<style>
+
 .center-content > .md-table-head-container {
     text-align: center;
 }