Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Adds new material theme

Alicia Sykes453b162cac8a
diff --git a/src/components/LinkItems/Collapsable.vue b/src/components/LinkItems/Collapsable.vue
index e482c2ec..8878cbf0 100644
--- a/src/components/LinkItems/Collapsable.vue
+++ b/src/components/LinkItems/Collapsable.vue
@@ -185,7 +185,7 @@ export default {
}
.toggle:checked + .lbl-toggle + .collapsible-content {
- max-height: 1000px;
+ max-height: 3000px;
}
.toggle:checked + .lbl-toggle {
diff --git a/src/components/LinkItems/Item.vue b/src/components/LinkItems/Item.vue
index 22288e09..109587c7 100644
--- a/src/components/LinkItems/Item.vue
+++ b/src/components/LinkItems/Item.vue
@@ -4,9 +4,9 @@
:target="target === 'newtab' ? '_blank' : ''"
:class="`item ${!icon? 'short': ''} size-${itemSize}`"
v-tooltip="getTooltipOptions()"
- v-bind:style="customStyles"
rel="noopener noreferrer" tabindex="0"
:id="`link-${id}`"
+ :style="`--open-icon: ${getUnicodeOpeningIcon()}; ${customStyles}`"
>
<!-- Item Text -->
<div class="tile-title" :id="`tile-${id}`" >
@@ -15,7 +15,8 @@
<p class="description">{{ description }}</p>
</div>
<!-- Item Icon -->
- <Icon :icon="icon" :url="url" :size="itemSize" :color="color" v-bind:style="customStyles" />
+ <Icon :icon="icon" :url="url" :size="itemSize" :color="color"
+ v-bind:style="customStyles" class="icon-container" />
<!-- Small icon, showing opening method on hover -->
<ItemOpenMethodIcon class="opening-method-icon" :isSmall="!icon" :openingMethod="target"
:position="itemSize === 'medium'? 'bottom right' : 'top right'"/>
@@ -90,6 +91,14 @@ export default {
delay: { show: 600, hide: 200 },
};
},
+ getUnicodeOpeningIcon() {
+ switch (this.target) {
+ case 'newtab': return '"\\f360"';
+ case 'sametab': return '"\\f24d"';
+ case 'iframe': return '"\\f2d0"';
+ default: return '"\\f054"';
+ }
+ },
},
mounted() {
this.manageTitleEllipse();
@@ -233,6 +242,11 @@ export default {
p.description {
display: none;
}
+ &:before {
+ display: none;
+ font-family: FontAwesome;
+ content: var(--open-icon, "\f054") !important;
+ }
}
</style>
diff --git a/src/components/PageStrcture/Footer.vue b/src/components/PageStrcture/Footer.vue
index bcaacaff..5a636520 100644
--- a/src/components/PageStrcture/Footer.vue
+++ b/src/components/PageStrcture/Footer.vue
@@ -29,12 +29,12 @@ export default {
<style scoped lang="scss">
footer {
- padding: 0.5rem;
+ padding: 0.25rem;
text-align: center;
color: var(--medium-grey);
opacity: var(--dimming-factor);
background: var(--background-darker);
- margin-top: 1rem;
+ margin-top: 7px;
border-top: 1px solid var(--outline-color);
}
diff --git a/src/styles/color-themes.scss b/src/styles/color-themes.scss
index 330e7057..f8e94c72 100644
--- a/src/styles/color-themes.scss
+++ b/src/styles/color-themes.scss
@@ -144,7 +144,7 @@ html[data-theme='nord-frost'] {
.collapsable:nth-child(4n) { background: #5E81AC; }
}
-html[data-theme='material'] {
+html[data-theme='material-original'] {
--primary: #29B6F6;
--settings-text-color: #01579b;
--background: #e2e1e0;
@@ -210,12 +210,76 @@ html[data-theme='material-dark'] {
}
}
-html[data-theme='material-2'] {
- --font-body: 'Roboto', serif;
- --font-headings: 'Francois One', serif;
+html[data-theme='colorful'] {
+ --font-headings: 'Podkova', monospace;
+ --primary: #e8eae1;
+ --background: #0b1021;
+ --item-background: #05070e;
+ --item-background-hover: #0b1021;
+ --item-group-background: transparent;
+ --item-group-outer-background: #05070e;
+ --item-group-heading-text-color: #e8eae1;
+ --item-group-heading-text-color-hover: #fff;
+ .item:nth-child(1n) { color: #eb5cad; border: 1px solid #eb5cad; }
+ .item:nth-child(2n) { color: #985ceb; border: 1px solid #985ceb; }
+ .item:nth-child(3n) { color: #5c90eb; border: 1px solid #5c90eb; }
+ .item:nth-child(4n) { color: #5cdfeb; border: 1px solid #5cdfeb; }
+ .item:nth-child(5n) { color: #5ceb8d; border: 1px solid #5ceb8d; }
+ .item:nth-child(6n) { color: #afeb5c; border: 1px solid #afeb5c; }
+ .item:nth-child(7n) { color: #ebb75c; border: 1px solid #ebb75c; }
+ .item:nth-child(8n) { color: #eb615c; border: 1px solid #eb615c; }
+ .tile-title span.text { transition: none; }
+ .item:hover, .item:focus {
+ opacity: 0.85;
+ outline: none;
+ background: currentColor;
+ span { color: #05070e; }
+ svg path { fill: #05070e; }
+ i.fas, i.fab, i.far, i.fal, i.fad { color: #05070e; }
+ }
+ h1, h2, h3, h4 {
+ font-weight: normal;
+ }
+}
+html[data-theme='minimal-light'], html[data-theme='minimal-dark'] {
+ --font-body: 'PTMono-Regular', 'Courier New', monospace;
+ --font-headings: 'PTMono-Regular', 'Courier New', monospace;
+ label.lbl-toggle h3 {
+ font-size: 1.8rem;
+ }
+ .tile-title span.text {
+ font-size: 1.1rem;
+ font-weight: bold;
+ }
+
+ header {
+ padding: 0.1rem 0.5rem;
+ .page-titles{
+ h1 {
+ font-size: 1.25rem;
+ }
+ span.subtitle {
+ font-size: 0.8rem;
+
+ }
+ }
+ .nav .nav-item {
+ padding: 0.2rem 0.4rem;
+ box-shadow: none;
+ }
+ }
+ .item-group-container.orientation-horizontal .collapsable {
+ border-bottom: 1px dashed #ffffff38;
+ border-radius: 0;
+ }
+}
+
+html[data-theme='material'] {
+ --font-body: 'Raleway', serif;
+ --font-headings: 'Francois One', serif;
--primary: #363636;
- --background: #e2e1e0;
+ --background: #f5f5f5;
--background-darker: #4285f4;
--item-group-outer-background: none;
--item-group-shadow: none;
@@ -227,15 +291,19 @@ html[data-theme='material-2'] {
--item-text-color: #363636;
--item-group-heading-text-color-hover: #363636;
--item-icon-transform-hover: none;
- --nav-link-border-color-hover: #1341a6;
+ --nav-link-background-color: #0c4eba;
+ --nav-link-text-color: #fff;
+ --nav-link-border-color: #0c4eba;
--settings-text-color: #363636;
--config-code-color: #363636;
+ --config-settings-background: #fff;
+ --config-settings-color: #363636;
--heading-text-color: #fff;
--curve-factor: 4px;
--curve-factor-navbar: 8px;
- --search-container-background: linear-gradient(to bottom, #3367d6 0%,#4285f4 5%);
+ --search-container-background: #4285f4;
header {
- background: #3367d6;
+ background: #4285f4;
color: #fff;
.page-titles span.subtitle {
text-shadow: none;
@@ -246,19 +314,28 @@ html[data-theme='material-2'] {
color: #fff;
}
section.filter-container form label {
- color: var(--primary);
+ color: #fff;
+ }
+ .prism-editor-wrapper {
+ background: #f5f5f5;
}
+ .collapsable {
+ margin: 0;
+ padding: 0;
+ }
+ /* Custom layout for medium and large icons */
.item:not(.size-small) {
display: flex;
flex-direction: row-reverse;
justify-content: flex-end;
text-align: left;
overflow: hidden;
- align-items: end;
+ align-items: center;
width: 15rem;
min-width: 15rem;
- max-height: 4rem;
+ max-height: 6rem;
margin: 0.2rem;
+ padding: 0.5rem;
.overflow-dots {
display: none;
}
@@ -278,16 +355,18 @@ html[data-theme='material-2'] {
display: block;
margin: 0;
white-space: pre-wrap;
+ font-size: .9em;
+ text-overflow: ellipsis;
}
}
- }
- .item.size-large {
- width: 18rem;
- min-width: 18rem;
- max-height: 5rem;
- margin: 0.4rem;
- img {
- padding: 0.2rem 0.5rem;
+ &.size-large {
+ width: 18rem;
+ min-width: 18rem;
+ max-height: 5rem;
+ margin: 0.4rem;
+ img {
+ padding: 0.2rem 0.5rem;
+ }
}
}
.tooltip {
@@ -307,71 +386,63 @@ html[data-theme='material-2'] {
@include big-screen-up { grid-template-columns: repeat(6, 1fr); }
}
}
-
-}
-
-html[data-theme='colorful'] {
- --font-headings: 'Podkova', monospace;
- --primary: #e8eae1;
- --background: #0b1021;
- --item-background: #05070e;
- --item-background-hover: #0b1021;
- --item-group-background: transparent;
- --item-group-outer-background: #05070e;
- --item-group-heading-text-color: #e8eae1;
- --item-group-heading-text-color-hover: #fff;
- .item:nth-child(1n) { color: #eb5cad; border: 1px solid #eb5cad; }
- .item:nth-child(2n) { color: #985ceb; border: 1px solid #985ceb; }
- .item:nth-child(3n) { color: #5c90eb; border: 1px solid #5c90eb; }
- .item:nth-child(4n) { color: #5cdfeb; border: 1px solid #5cdfeb; }
- .item:nth-child(5n) { color: #5ceb8d; border: 1px solid #5ceb8d; }
- .item:nth-child(6n) { color: #afeb5c; border: 1px solid #afeb5c; }
- .item:nth-child(7n) { color: #ebb75c; border: 1px solid #ebb75c; }
- .item:nth-child(8n) { color: #eb615c; border: 1px solid #eb615c; }
- .tile-title span.text { transition: none; }
- .item:hover, .item:focus {
- opacity: 0.85;
- outline: none;
- background: currentColor;
- span { color: #05070e; }
- svg path { fill: #05070e; }
- i.fas, i.fab, i.far, i.fal, i.fad { color: #05070e; }
- }
- h1, h2, h3, h4 {
- font-weight: normal;
- }
-}
-
-html[data-theme='minimal-light'], html[data-theme='minimal-dark'] {
- --font-body: 'PTMono-Regular', 'Courier New', monospace;
- --font-headings: 'PTMono-Regular', 'Courier New', monospace;
- label.lbl-toggle h3 {
- font-size: 1.8rem;
- }
- .tile-title span.text {
- font-size: 1.1rem;
- font-weight: bold;
- }
-
- header {
- padding: 0.1rem 0.5rem;
- .page-titles{
- h1 {
- font-size: 1.25rem;
+ a.item {
+ position: relative;
+ overflow: hidden;
+ transition: all 0.2s linear 0s;
+ div {
+ transition: all 0.2s linear 0s;
+ }
+ &:before {
+ content: "\f054";
+ font-family: FontAwesome;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ position: absolute;
+ top: 0;
+ left: 0px;
+ height: 100%;
+ width: 1rem;
+ background-color: #ccd3dd80;
+ border-radius: 0 60% 60% 0;
+ transform: scale(0,1);
+ transform-origin: left center;
+ transition: all 0.2s linear 0s;
+ padding: 0 0.2rem;
+ }
+ &:hover {
+ div.icon-container {
+ text-indent: 1rem;
}
- span.subtitle {
- font-size: 0.8rem;
-
+ &:before {
+ transform: scale(1,1);
+ text-indent: 0;
+ }
+ .opening-method-icon {
+ display: none;
}
}
- .nav .nav-item {
- padding: 0.2rem 0.4rem;
- box-shadow: none;
+ &:active {
+ background: #c7c7c754;
+ }
+ span.text {
+ transition: none;
+ }
+ &.size-small {
+ padding-left: 0.5rem;
+ min-width: 11rem;
+ }
+ &.size-large {
+ &:before {
+ width: 1.5rem;
+ }
+ &:hover {
+ div:nth-child(2) {
+ text-indent: 1.5rem;
+ }
+ }
}
- }
- .item-group-container.orientation-horizontal .collapsable {
- border-bottom: 1px dashed #ffffff38;
- border-radius: 0;
}
}
diff --git a/src/utils/defaults.js b/src/utils/defaults.js
index 017b786e..1162fd36 100644
--- a/src/utils/defaults.js
+++ b/src/utils/defaults.js
@@ -20,17 +20,17 @@ module.exports = {
'thebe',
'dracula',
'material',
- 'material-dark',
'minimal-dark',
'minimal-light',
- 'material-2',
'colorful',
'matrix',
'matrix-red',
'hacker-girl',
- 'bee',
'raspberry-jam',
+ 'bee',
'tiger',
+ 'material-original',
+ 'material-dark',
'high-contrast-dark',
'high-contrast-light',
],
diff --git a/src/views/Home.vue b/src/views/Home.vue
index e9a326fb..be17bc8a 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -204,6 +204,7 @@ export default {
<style lang="scss" scoped>
@import '@/styles/media-queries.scss';
+@import '@/styles/style-helpers.scss';
.home {
padding-bottom: 1px;
@@ -216,7 +217,9 @@ export default {
display: grid;
gap: 0.5rem;
margin: 0 auto;
- max-width: 1200px;
+ max-width: 90%;
+ overflow: auto;
+ @extend .scroll-bar;
@include monitor-up {
max-width: 1400px;
}