�� Refactor CSS to use constants for media queries

This commit is contained in:
Alicia Sykes
2021-04-20 15:12:58 +01:00
parent 33127ab414
commit 7c016ac2e8
8 changed files with 27 additions and 17 deletions

View File

@@ -65,6 +65,8 @@ export default {
<style scoped lang="scss">
@import '@/styles/media-queries.scss';
.kb-sc-info {
position: fixed;
width: 30em;
@@ -82,7 +84,7 @@ export default {
background: var(--background-darker);
cursor: default;
opacity: 0.94;
@media screen and (max-width: 600px) {
@include phone {
display: none;
}
h5 { /* The dialog title */

View File

@@ -50,8 +50,11 @@ export default {
getInitialTheme() {
return this.appConfig.theme || '';
},
/* Gets user themes if available */
getUserThemes() {
return this.appConfig.cssThemes || [];
const userThemes = this.appConfig.cssThemes || [];
if (typeof userThemes === 'string') return [userThemes];
return userThemes;
},
},
data() {

View File

@@ -30,7 +30,7 @@ export default {
selectedTheme: this.getInitialTheme(),
themeHelper: new ThemeHelper(),
loading: true,
builtInThemes: Defaults.builtInThemes.concat(this.userThemes),
builtInThemes: this.userThemes.concat(Defaults.builtInThemes),
};
},
computed: {