New material theme, additional fonts, more complete theme coverage, and bug fixes
This commit is contained in:
@@ -192,9 +192,9 @@ a.config-button, button.config-button {
|
||||
|
||||
div.code-container {
|
||||
background: var(--config-code-background);
|
||||
#conf-yaml {
|
||||
font-family: 'Inconsolata', sans-serif;
|
||||
.hljs-attr {
|
||||
#conf-yaml span {
|
||||
font-family: var(--font-monospace), monospace !important;
|
||||
&.hljs-attr {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
}
|
||||
@@ -252,7 +252,7 @@ a.hyperlink-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-top: 2rem;
|
||||
background: var(--background-darker);
|
||||
background: var(--config-settings-background);
|
||||
height: calc(100% - 2rem);
|
||||
h2 {
|
||||
margin: 1rem auto;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<prism-editor class="my-editor" v-model="customCss" :highlight="highlighter" line-numbers />
|
||||
<button class="save-button" @click="save()">Save Changes</button>
|
||||
<p>Note, you will need to refresh the page for your changes to take effect</p>
|
||||
<p>To remove all custom styles, delete the contents and hit Save Changes</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -30,7 +31,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
validate(css) {
|
||||
return css.match(/((?:^\s*)([\w#.@*,:\-.:>,*\s]+)\s*{(?:[\s]*)((?:[A-Za-z\- \s]+[:]\s*['"0-9\w .,/()\-!%]+;?)*)*\s*}(?:\s*))/gmi);
|
||||
return css === '' || css.match(/((?:^\s*)([\w#.@*,:\-.:>,*\s]+)\s*{(?:[\s]*)((?:[A-Za-z\- \s]+[:]\s*['"0-9\w .,/()\-!%]+;?)*)*\s*}(?:\s*))/gmi);
|
||||
},
|
||||
save() {
|
||||
let msg = '';
|
||||
@@ -40,6 +41,7 @@ export default {
|
||||
localStorage.setItem(localStorageKeys.APP_CONFIG, JSON.stringify(appConfig));
|
||||
msg = 'Changes saved succesfully';
|
||||
this.inject(this.customCss);
|
||||
if (this.customCss === '') setTimeout(() => { location.reload(); }, 1500); // eslint-disable-line no-restricted-globals
|
||||
} else {
|
||||
msg = 'Error - Invalid CSS';
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ export default {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 1rem 0;
|
||||
background: var(--background-darker);
|
||||
background: var(--config-settings-background);
|
||||
height: calc(100% - 1rem);
|
||||
h2 {
|
||||
margin: 1rem auto;
|
||||
@@ -117,6 +117,7 @@ div.form {
|
||||
min-width: 24rem;
|
||||
span {
|
||||
font-size: 1.2rem;
|
||||
color: var(--config-settings-color);
|
||||
}
|
||||
input {
|
||||
color: var(--config-settings-color);
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<div class="tile-title" :id="`tile-${id}`" >
|
||||
<span class="text">{{ title }}</span>
|
||||
<div class="overflow-dots">...</div>
|
||||
<p class="description">{{ description }}</p>
|
||||
</div>
|
||||
<!-- Item Icon -->
|
||||
<Icon :icon="icon" :url="url" :size="itemSize" :color="color" v-bind:style="customStyles" />
|
||||
@@ -205,7 +206,7 @@ export default {
|
||||
}
|
||||
.tile-title {
|
||||
height: fit-content;
|
||||
min-height: 1rem;
|
||||
min-height: 1.2rem;
|
||||
span.text {
|
||||
text-align: left;
|
||||
padding-left: 10%;
|
||||
@@ -228,6 +229,10 @@ export default {
|
||||
&.size-large {
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
p.description {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@@ -126,5 +126,19 @@ export default {
|
||||
@include big-screen-up { grid-template-columns: repeat(5, 1fr); }
|
||||
}
|
||||
}
|
||||
.orientation-horizontal {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.there-are-items {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
@include phone { grid-template-columns: repeat(2, 1fr); }
|
||||
@include tablet { grid-template-columns: repeat(4, 1fr); }
|
||||
@include laptop { grid-template-columns: repeat(6, 1fr); }
|
||||
@include monitor { grid-template-columns: repeat(8, 1fr); }
|
||||
@include big-screen { grid-template-columns: repeat(10, 1fr); }
|
||||
@include big-screen-up { grid-template-columns: repeat(12, 1fr); }
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<span class="options-label">Icon Size</span>
|
||||
<div class="display-options">
|
||||
<IconSmall @click="updateIconSize('small')" v-tooltip="tooltip('Small')"
|
||||
:class="`layout-icon ${iconSize === 'small' ? 'selected' : ''}`" tabindex="2" />
|
||||
:class="`layout-icon ${iconSize === 'small' ? 'selected' : ''}`" tabindex="-2" />
|
||||
<IconMedium @click="updateIconSize('medium')" v-tooltip="tooltip('Medium')"
|
||||
:class="`layout-icon ${iconSize === 'medium' ? 'selected' : ''}`" tabindex="2" />
|
||||
:class="`layout-icon ${iconSize === 'medium' ? 'selected' : ''}`" tabindex="-2" />
|
||||
<IconLarge @click="updateIconSize('large')" v-tooltip="tooltip('Large')"
|
||||
:class="`layout-icon ${iconSize === 'large' ? 'selected' : ''}`" tabindex="2" />
|
||||
:class="`layout-icon ${iconSize === 'large' ? 'selected' : ''}`" tabindex="-2" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<span class="options-label">Layout</span>
|
||||
<div class="display-options">
|
||||
<IconDeafault @click="updateDisplayLayout('auto')" v-tooltip="tooltip('Auto')"
|
||||
:class="`layout-icon ${displayLayout === 'auto' ? 'selected' : ''}`" tabindex="2" />
|
||||
:class="`layout-icon ${displayLayout === 'auto' ? 'selected' : ''}`" tabindex="-2" />
|
||||
<IconHorizontal @click="updateDisplayLayout('horizontal')" v-tooltip="tooltip('Horizontal')"
|
||||
:class="`layout-icon ${displayLayout === 'horizontal' ? 'selected' : ''}`" tabindex="2" />
|
||||
:class="`layout-icon ${displayLayout === 'horizontal' ? 'selected' : ''}`" tabindex="-2" />
|
||||
<IconVertical @click="updateDisplayLayout('vertical')" v-tooltip="tooltip('Vertical')"
|
||||
:class="`layout-icon ${displayLayout === 'vertical' ? 'selected' : ''}`" tabindex="2" />
|
||||
:class="`layout-icon ${displayLayout === 'vertical' ? 'selected' : ''}`" tabindex="-2" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
id="filter-tiles"
|
||||
v-model="input"
|
||||
ref="filter"
|
||||
placeholder="Start typing to filter tiles..."
|
||||
placeholder="Start typing to filter..."
|
||||
v-on:input="userIsTypingSomething"
|
||||
@keydown.esc="clearFilterInput" />
|
||||
<i v-if="input.length > 0"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<div class="theme-selector-section" v-if="themes" >
|
||||
<span class="theme-label">Themes</span>
|
||||
<span class="theme-label">Theme</span>
|
||||
<v-select
|
||||
:options="themeNames"
|
||||
v-model="selectedTheme"
|
||||
class="theme-dropdown"
|
||||
:tabindex="2"
|
||||
:tabindex="-2"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user