�� Refactor CSS to use constants for media queries
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user