Skip to content

Commit

Permalink
#29: Move scoped styles to _tools.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
roryschadler committed Mar 24, 2022
1 parent 2af164a commit a7ce1be
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 54 deletions.
50 changes: 50 additions & 0 deletions app/src/assets/css/modules/_tools.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// ChemProps.vue
html {
scroll-behavior: smooth;
}

// CsvPlotter.vue
.upload {
border: 5px dashed #777777;
min-height: 400px;
}

// LineChart.vue
// Line
.nm-line {
stroke: #3cba54;
stroke-width: 2px;
fill: none;
}

.tooltip {
fill: white;
stroke: #444;
}

.overlay {
fill: none;
pointer-events: all;
}

// ReferenceContainer.vue
.reference {
padding-left: 36px;
text-indent: -36px;
}

// PixelUnit.vue
#unit-cell {
background-color: #c0c0c0;
position: relative;
margin-left: 0px;
margin-top: 0px;
min-width: 300px;
min-height: 300px;
max-width: 300px;
max-height: 300px;
}

.adjust-padding {
padding: 3rem !important;
}
3 changes: 2 additions & 1 deletion app/src/assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
@import './modules/_section.scss';
@import './modules/_utility.scss';
@import './modules/_vega.scss';
@import './modules/_visualize.scss';
@import './modules/_visualize.scss';
@import './modules/_tools.scss';
19 changes: 0 additions & 19 deletions app/src/components/nanomine/LineChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,22 +197,3 @@ export default {
}
}
</script>
<style lang="scss" scoped>
// Line
.nm-line {
stroke: #3cba54;
stroke-width: 2px;
fill: none;
}
.tooltip {
fill: white;
stroke: #444;
}
.overlay {
fill: none;
pointer-events: all;
}
</style>
6 changes: 0 additions & 6 deletions app/src/components/nanomine/ReferenceContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,3 @@ export default {
}
}
</script>
<style scoped lang="scss">
.reference {
padding-left: 36px;
text-indent: -36px;
}
</style>
16 changes: 0 additions & 16 deletions app/src/pages/metamine/PixelUnit/PixelUnit.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,2 @@
<template src="./PixelUnit.html"></template>
<script src="./PixelUnit.js"></script>
<style scoped>
#unit-cell {
background-color: #c0c0c0;
position: relative;
margin-left: 0px;
margin-top: 0px;
min-width: 300px;
min-height: 300px;
max-width: 300px;
max-height: 300px;
}
.adjust-padding {
padding: 3rem !important;
}
</style>
6 changes: 0 additions & 6 deletions app/src/pages/nanomine/csvPlotter/CsvPlotter.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
<template src="./csvPlotter.html"></template>
<script src="./csvPlotter.js"></script>
<style scoped>
.upload {
border: 5px dashed #777777;
min-height: 400px;
}
</style>
6 changes: 0 additions & 6 deletions app/src/pages/nanomine/tools/chemProps/ChemProps.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
<template src="./chemProps.html"></template>
<script src="./chemProps.js"></script>

<style scoped>
html {
scroll-behavior: smooth;
}
</style>

0 comments on commit a7ce1be

Please sign in to comment.