mirror of https://github.com/bastienwirtz/homer
feat(ui): Rework theming system, add new theme.
parent
2b83a38fc3
commit
359f1ffb53
|
@ -121,6 +121,7 @@ services:
|
|||
icon: "fas fa-code-branch"
|
||||
# A path to an image can also be provided. Note that icon take precedence if both icon and logo are set.
|
||||
# logo: "path/to/logo"
|
||||
# class: "highlight-purple" # Optional css class to add on the service group.
|
||||
items:
|
||||
- name: "Awesome app"
|
||||
logo: "assets/tools/sample.png"
|
||||
|
|
|
@ -1,51 +1,76 @@
|
|||
# Theming
|
||||
|
||||
## Customization from yaml configuration file
|
||||
## Change theme
|
||||
|
||||
Some aspect of the theme can be customized using the yaml configuration file.
|
||||
the default theme can be changed using the yaml configuration file
|
||||
|
||||
```yaml
|
||||
theme: default # 'default', 'walkxcode', or 'neon' see files in 'src/assets/themes'.
|
||||
```
|
||||
|
||||
## Colors and background customization
|
||||
|
||||
Default colors and background can be customized for each theme variant (light and dark), using either the yaml config file, or the css variables (cf "Additional stylesheets" below).
|
||||
|
||||
### Available options
|
||||
|
||||
| yaml | css | description |
|
||||
| --------------------- | ----------------------- | --- |
|
||||
| `highlight-primary` | `--highlight-primary` | header background, group title icons |
|
||||
| `highlight-secondary` | `--highlight-secondary` | navbar background, default tag color |
|
||||
| `highlight-hover` | `--highlight-hover` | navbar links hover, search input background |
|
||||
| `background` | `--background` | page background color |
|
||||
| `card-background` | `--card-background` | service card background color |
|
||||
| `text` | `--text` | main text color |
|
||||
| `text-header` | `--text-header` | header text color |
|
||||
| `text-title` | `--text-title` | service card title color |
|
||||
| `text-subtitle` | `--text-subtitle` | service card subtitle color |
|
||||
| `card-shadow` | `--card-shadow` | Service card `box-shadow` |
|
||||
| `link` | `--link` | Links color (footer & message), service card icon color |
|
||||
| `link-hover` | `--link-hover` | Links hover color (footer & message), service card icon hover color |
|
||||
| `background-image` | `--background-image` | page background image url (when used in css, set `url(<image-url>)` insted of just the url. see exemple below)|
|
||||
|
||||
|
||||
yaml exemple
|
||||
|
||||
```yml
|
||||
colors:
|
||||
light:
|
||||
highlight-primary: "#3367d6"
|
||||
highlight-secondary: "#4285f4"
|
||||
highlight-hover: "#5a95f5"
|
||||
background: "#f5f5f5"
|
||||
card-background: "#ffffff"
|
||||
text: "#363636"
|
||||
text-header: "#424242"
|
||||
text-title: "#303030"
|
||||
text-subtitle: "#424242"
|
||||
card-shadow: rgba(0, 0, 0, 0.1)
|
||||
link: "#3273dc"
|
||||
link-hover: "#363636"
|
||||
background-image: "assets/your/light/bg.png"
|
||||
background-image: "assets/your/light/bg.webp"
|
||||
...
|
||||
dark:
|
||||
highlight-primary: "#3367d6"
|
||||
highlight-secondary: "#4285f4"
|
||||
highlight-hover: "#5a95f5"
|
||||
background: "#131313"
|
||||
card-background: "#2b2b2b"
|
||||
text: "#eaeaea"
|
||||
text-header: "#ffffff"
|
||||
text-title: "#fafafa"
|
||||
text-subtitle: "#f5f5f5"
|
||||
card-shadow: rgba(0, 0, 0, 0.4)
|
||||
link: "#3273dc"
|
||||
link-hover: "#ffdd57"
|
||||
background-image: "assets/your/dark/bg.png"
|
||||
background-image: "assets/your/dark/bg.webp"
|
||||
...
|
||||
```
|
||||
|
||||
CSS exemple
|
||||
|
||||
```css
|
||||
.light {
|
||||
--highlight-primary: #3367d6;
|
||||
--background-image: url("assets/your/light/bg.webp");
|
||||
...
|
||||
}
|
||||
|
||||
.dark {
|
||||
--highlight-primary: #3367d6;
|
||||
--background-image: url("assets/your/dark/bg.webp");
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
## Additional stylesheets
|
||||
|
||||
One or more additional stylesheets can be loaded to add or override style from the current theme. Use the 'stylesheet' option in the yaml configuration file to add CSS file to be used.
|
||||
One or more additional stylesheets can be loaded to add or override style from the current theme. Use the 'stylesheet' option in the yaml configuration file to load your own CSS file.
|
||||
|
||||
```yml
|
||||
stylesheet:
|
||||
- "assets/custom.css"
|
||||
```
|
||||
|
||||
### customization exemple
|
||||
### Customization exemple
|
||||
|
||||
#### Max width modification
|
||||
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "^6.5.2",
|
||||
"bulma": "^0.9.4",
|
||||
"bulma": "^1.0.1",
|
||||
"lodash.merge": "^4.6.2",
|
||||
"vue": "^3.4.26",
|
||||
"yaml": "^2.4.2"
|
||||
"yaml": "^2.4.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rushstack/eslint-patch": "^1.8.0",
|
||||
|
@ -29,5 +29,5 @@
|
|||
"vite-plugin-pwa": "^0.20.0"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"packageManager": "pnpm@9.1.4+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0"
|
||||
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
|
||||
}
|
||||
|
|
|
@ -12,8 +12,8 @@ importers:
|
|||
specifier: ^6.5.2
|
||||
version: 6.5.2
|
||||
bulma:
|
||||
specifier: ^0.9.4
|
||||
version: 0.9.4
|
||||
specifier: ^1.0.1
|
||||
version: 1.0.1
|
||||
lodash.merge:
|
||||
specifier: ^4.6.2
|
||||
version: 4.6.2
|
||||
|
@ -21,8 +21,8 @@ importers:
|
|||
specifier: ^3.4.26
|
||||
version: 3.4.26
|
||||
yaml:
|
||||
specifier: ^2.4.2
|
||||
version: 2.4.2
|
||||
specifier: ^2.4.5
|
||||
version: 2.4.5
|
||||
devDependencies:
|
||||
'@rushstack/eslint-patch':
|
||||
specifier: ^1.8.0
|
||||
|
@ -1151,8 +1151,8 @@ packages:
|
|||
resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
bulma@0.9.4:
|
||||
resolution: {integrity: sha512-86FlT5+1GrsgKbPLRRY7cGDg8fsJiP/jzTqXXVqiUZZ2aZT8uemEOHlU1CDU+TxklPEZ11HZNNWclRBBecP4CQ==}
|
||||
bulma@1.0.1:
|
||||
resolution: {integrity: sha512-+xv/BIAEQakHkR0QVz+s+RjNqfC53Mx9ZYexyaFNFo9wx5i76HXArNdwW7bccyJxa5mgV/T5DcVGqsAB19nBJQ==}
|
||||
|
||||
call-bind@1.0.7:
|
||||
resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==}
|
||||
|
@ -2385,8 +2385,8 @@ packages:
|
|||
yallist@4.0.0:
|
||||
resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
|
||||
|
||||
yaml@2.4.2:
|
||||
resolution: {integrity: sha512-B3VqDZ+JAg1nZpaEmWtTXUlBneoGx6CPM9b0TENK6aoSu5t73dItudwdgmi6tHlIZZId4dZ9skcAQ2UbcyAeVA==}
|
||||
yaml@2.4.5:
|
||||
resolution: {integrity: sha512-aBx2bnqDzVOyNKfsysjA2ms5ZlnjSAW2eG3/L5G/CSujfjLJTJsEw1bGw8kCf04KodQWk1pxlGnZ56CRxiawmg==}
|
||||
engines: {node: '>= 14'}
|
||||
hasBin: true
|
||||
|
||||
|
@ -3563,7 +3563,7 @@ snapshots:
|
|||
|
||||
builtin-modules@3.3.0: {}
|
||||
|
||||
bulma@0.9.4: {}
|
||||
bulma@1.0.1: {}
|
||||
|
||||
call-bind@1.0.7:
|
||||
dependencies:
|
||||
|
@ -4949,6 +4949,6 @@ snapshots:
|
|||
|
||||
yallist@4.0.0: {}
|
||||
|
||||
yaml@2.4.2: {}
|
||||
yaml@2.4.5: {}
|
||||
|
||||
yocto-queue@0.1.0: {}
|
||||
|
|
|
@ -24,7 +24,7 @@ links:
|
|||
url: "https://www.wikipedia.org/"
|
||||
|
||||
services:
|
||||
- name: "More applications on another page!"
|
||||
- name: "More apps on another page!"
|
||||
icon: "fas fa-cloud"
|
||||
items:
|
||||
- name: "Awesome app on a second page!"
|
||||
|
|
|
@ -12,33 +12,6 @@ footer: '<p>Created with <span class="has-text-danger">❤️</span> with <a hre
|
|||
|
||||
# Optional theme customization
|
||||
theme: default
|
||||
colors:
|
||||
light:
|
||||
highlight-primary: "#3367d6"
|
||||
highlight-secondary: "#4285f4"
|
||||
highlight-hover: "#5a95f5"
|
||||
background: "#f5f5f5"
|
||||
card-background: "#ffffff"
|
||||
text: "#363636"
|
||||
text-header: "#ffffff"
|
||||
text-title: "#303030"
|
||||
text-subtitle: "#424242"
|
||||
card-shadow: rgba(0, 0, 0, 0.1)
|
||||
link: "#3273dc"
|
||||
link-hover: "#363636"
|
||||
dark:
|
||||
highlight-primary: "#3367d6"
|
||||
highlight-secondary: "#4285f4"
|
||||
highlight-hover: "#5a95f5"
|
||||
background: "#131313"
|
||||
card-background: "#2b2b2b"
|
||||
text: "#eaeaea"
|
||||
text-header: "#ffffff"
|
||||
text-title: "#fafafa"
|
||||
text-subtitle: "#f5f5f5"
|
||||
card-shadow: rgba(0, 0, 0, 0.4)
|
||||
link: "#3273dc"
|
||||
link-hover: "#ffdd57"
|
||||
|
||||
columns: "3"
|
||||
|
||||
|
@ -97,7 +70,7 @@ services:
|
|||
- name: "Buy me a coffee!"
|
||||
subtitle: "Sponsor this project"
|
||||
icon: "fa-solid fa-mug-hot"
|
||||
url: "https://www.buymeacoffee.com/bastien"
|
||||
url: "https://www.buymeacoffee.com/bastien"
|
||||
- name: "Smart cards showcase"
|
||||
icon: "fa-solid fa-brain"
|
||||
items:
|
||||
|
@ -127,6 +100,8 @@ services:
|
|||
units: "metric"
|
||||
endpoint: "/dummy-data/openweather/weather"
|
||||
type: "OpenWeather"
|
||||
- name: "Change Theme"
|
||||
type: "ThemeChooser"
|
||||
- name: "Ressources"
|
||||
icon: "fa-regular fa-bookmark"
|
||||
items:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
# Homepage configuration
|
||||
# See https://fontawesome.com/v5/search for icons options
|
||||
# See https://fontawesome.com/v6/search for icons options
|
||||
|
||||
title: "Demo dashboard"
|
||||
subtitle: "Homer"
|
||||
|
@ -12,6 +12,9 @@ footer: '<p>Created with <span class="has-text-danger">❤️</span> with <a hre
|
|||
|
||||
# Optional theme customization
|
||||
theme: default
|
||||
|
||||
# Optional theme customization (color overrrides)
|
||||
# overrrides can also be done using CSS vars
|
||||
colors:
|
||||
light:
|
||||
highlight-primary: "#3367d6"
|
||||
|
|
|
@ -1,64 +0,0 @@
|
|||
---
|
||||
# Homepage configuration
|
||||
# See https://fontawesome.com/v5/search for icons options
|
||||
|
||||
title: "Hello beautiful!"
|
||||
subtitle: "App dashboard"
|
||||
logo: false
|
||||
# icon: "fas fa-skull-crossbones" Optional icon
|
||||
|
||||
header: true
|
||||
|
||||
# Optional theme customization
|
||||
theme: sui
|
||||
colors:
|
||||
light:
|
||||
highlight-primary: transparent
|
||||
highlight-secondary: transparent
|
||||
highlight-hover: "#4a4a4a"
|
||||
text-subtitle: "#424242"
|
||||
dark:
|
||||
background: "#2B2C56"
|
||||
highlight-primary: transparent
|
||||
highlight-secondary: transparent
|
||||
highlight-hover: "#200b35"
|
||||
text-subtitle: "#6375e8"
|
||||
|
||||
# Optional navbar
|
||||
# links: [] # Allows for navbar (dark mode, layout, and search) without any links
|
||||
links: []
|
||||
|
||||
# Services
|
||||
# First level array represent a group.
|
||||
# Leave only a "items" key if not using group (group name, icon & tagstyle are optional, section separation will not be displayed).
|
||||
services:
|
||||
- name: "APPLICATIONS"
|
||||
items:
|
||||
- name: "Jenkins"
|
||||
logo: "assets/tools/jenkins.png"
|
||||
subtitle: "Continuous integration server"
|
||||
url: "https://jenkins.io/"
|
||||
- name: "RabbitMQ Management"
|
||||
logo: "assets/tools/rabbitmq.png"
|
||||
subtitle: "Manage & monitor RabbitMQ server"
|
||||
# Optional tagstyle
|
||||
# Same styling options as the optional message.
|
||||
tagstyle: "is-success"
|
||||
url: "https://www.rabbitmq.com/"
|
||||
- name: "M/Monit"
|
||||
logo: "assets/tools/monit.png"
|
||||
subtitle: "Monitor & manage all monit enabled hosts"
|
||||
url: "https://mmonit.com/monit/"
|
||||
- name: "Grafana"
|
||||
logo: "assets/tools/grafana.png"
|
||||
subtitle: "Metric analytics & dashboards"
|
||||
url: "https://grafana.com/"
|
||||
- name: "Kibana"
|
||||
logo: "assets/tools/elastic.png"
|
||||
subtitle: "Explore & visualize logs"
|
||||
url: "https://www.elastic.co/products/kibana"
|
||||
- name: "Website monitoring"
|
||||
logo: "assets/tools/pingdom.png"
|
||||
subtitle: "Pingdom public reports overview"
|
||||
tag: "CI"
|
||||
url: "https://www.pingdom.com/"
|
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
19
src/App.vue
19
src/App.vue
|
@ -5,11 +5,11 @@
|
|||
:class="[
|
||||
`theme-${config.theme}`,
|
||||
`page-${currentPage}`,
|
||||
isDark ? 'is-dark' : 'is-light',
|
||||
isDark ? 'dark' : 'light',
|
||||
!config.footer ? 'no-footer' : '',
|
||||
]"
|
||||
>
|
||||
<DynamicTheme :themes="config.colors" />
|
||||
<DynamicTheme v-if="config.colors" :themes="config.colors" />
|
||||
<div id="bighead">
|
||||
<section v-if="config.header" class="first-line">
|
||||
<div v-cloak class="container">
|
||||
|
@ -19,10 +19,7 @@
|
|||
</a>
|
||||
<i v-if="config.icon" :class="config.icon"></i>
|
||||
</div>
|
||||
<div
|
||||
class="dashboard-title"
|
||||
:class="{ 'no-logo': !config.icon || !config.logo }"
|
||||
>
|
||||
<div class="dashboard-title">
|
||||
<span class="headline">{{ config.subtitle }}</span>
|
||||
<h1>{{ config.title }}</h1>
|
||||
</div>
|
||||
|
@ -77,6 +74,7 @@
|
|||
<h2
|
||||
v-if="group.name"
|
||||
class="column is-full group-title"
|
||||
:class="group.class"
|
||||
:key="`header-${groupIndex}`"
|
||||
>
|
||||
<i v-if="group.icon" :class="['fa-fw', group.icon]"></i>
|
||||
|
@ -92,7 +90,11 @@
|
|||
:key="`service-${groupIndex}-${index}`"
|
||||
:item="item"
|
||||
:proxy="config.proxy"
|
||||
:class="['column', `is-${12 / config.columns}`]"
|
||||
:class="[
|
||||
'column',
|
||||
`is-${12 / config.columns}`,
|
||||
`${item.class || group.class || ''}`,
|
||||
]"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
|
@ -107,7 +109,7 @@
|
|||
v-for="(group, groupIndex) in services"
|
||||
:key="groupIndex"
|
||||
>
|
||||
<h2 v-if="group.name" class="group-title">
|
||||
<h2 v-if="group.name" class="group-title" :class="group.class">
|
||||
<i v-if="group.icon" :class="['fa-fw', group.icon]"></i>
|
||||
<div v-else-if="group.logo" class="group-logo media-left">
|
||||
<figure class="image is-48x48">
|
||||
|
@ -121,6 +123,7 @@
|
|||
:key="index"
|
||||
:item="item"
|
||||
:proxy="config.proxy"
|
||||
:class="item.class || group.class"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,358 +1,12 @@
|
|||
@charset "utf-8";
|
||||
|
||||
@import "./webfonts/webfonts.scss";
|
||||
@import "../../node_modules/bulma/bulma";
|
||||
@import "./components/status.scss";
|
||||
// foncdation
|
||||
@import url("@/assets/components/layers.scss");
|
||||
@import url("~/bulma/css/bulma.css") layer(framework);
|
||||
@import url("@/assets/components/base.scss") layer(base);
|
||||
@import url("@/assets/components/highlights.scss") layer(base);
|
||||
|
||||
// Themes import
|
||||
@import "./themes/sui.scss";
|
||||
|
||||
@mixin ellipsis() {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
html, body, body #app-mount, body #app {
|
||||
height: 100%;
|
||||
background-color: var(--background);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Raleway", sans-serif;
|
||||
|
||||
#app {
|
||||
height: auto;
|
||||
min-height: 100%;
|
||||
background-image: var(--background-image);
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
color: var(--text);
|
||||
transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
|
||||
|
||||
a {
|
||||
color: var(--link);
|
||||
&:hover {
|
||||
color: var(--link-hover);
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
color: var(--text-title);
|
||||
}
|
||||
.subtitle {
|
||||
color: var(--text-subtitle);
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: var(--card-background);
|
||||
box-shadow: 0 2px 15px 0 var(--card-shadow);
|
||||
&:hover {
|
||||
background-color: var(--card-background);
|
||||
}
|
||||
}
|
||||
|
||||
.message {
|
||||
background-color: var(--card-background);
|
||||
.message-body {
|
||||
color: var(--text);
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
background-color: var(--card-background);
|
||||
box-shadow: 0 2px 15px 0 var(--card-shadow);
|
||||
}
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: "Lato", sans-serif;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.7rem;
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
.fas,
|
||||
.fab,
|
||||
.far {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
span {
|
||||
font-weight: bold;
|
||||
color: var(--highlight-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
[v-cloak] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#bighead {
|
||||
color: var(--text-header);
|
||||
|
||||
.dashboard-title {
|
||||
padding: 6px 0 0 80px;
|
||||
|
||||
&.no-logo {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.first-line {
|
||||
min-height: 100px;
|
||||
vertical-align: center;
|
||||
background-color: var(--highlight-primary);
|
||||
|
||||
h1 {
|
||||
margin-top: -12px;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.headline {
|
||||
margin-top: 5px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.container {
|
||||
min-height: 80px;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.logo {
|
||||
float: left;
|
||||
i {
|
||||
vertical-align: top;
|
||||
padding: 8px 15px;
|
||||
font-size: 50px;
|
||||
}
|
||||
|
||||
img {
|
||||
padding: 10px;
|
||||
max-height: 70px;
|
||||
max-width: 70px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.navbar {
|
||||
background-color: var(--highlight-secondary);
|
||||
|
||||
a {
|
||||
color: var(--text-header);
|
||||
padding: 8px 12px;
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: var(--text-header);
|
||||
background-color: var(--highlight-hover);
|
||||
}
|
||||
}
|
||||
.navbar-menu {
|
||||
background-color: inherit;
|
||||
}
|
||||
}
|
||||
.navbar-end {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
#main-section {
|
||||
padding: 0 0 2.5rem 0;
|
||||
|
||||
h2 {
|
||||
padding-bottom: 0px;
|
||||
@include ellipsis();
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 1.1em;
|
||||
line-height: 1.2em;
|
||||
@include ellipsis();
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 0.9em;
|
||||
@include ellipsis();
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 1.2rem 0.75rem;
|
||||
}
|
||||
|
||||
.message {
|
||||
margin-top: 45px;
|
||||
box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
|
||||
|
||||
.message-header {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.message-body {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.media.no-subtitle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.media-content {
|
||||
overflow: hidden;
|
||||
text-overflow: inherit;
|
||||
}
|
||||
|
||||
.tag {
|
||||
color: var(--highlight-secondary);
|
||||
background-color: var(--highlight-secondary);
|
||||
position: absolute;
|
||||
bottom: 1rem;
|
||||
right: -0.2rem;
|
||||
width: 3px;
|
||||
overflow: hidden;
|
||||
transition: all 0.2s ease-out;
|
||||
padding: 0;
|
||||
|
||||
.tag-text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
border: none;
|
||||
box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
|
||||
transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
|
||||
overflow: visible;
|
||||
|
||||
a {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translate(0, -3px);
|
||||
|
||||
.tag {
|
||||
width: auto;
|
||||
color: #ffffff;
|
||||
padding: 0 0.75em;
|
||||
|
||||
.tag-text {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card-content {
|
||||
height: 85px;
|
||||
padding: 1.3rem;
|
||||
}
|
||||
|
||||
.layout-vertical {
|
||||
.card {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.column div:first-of-type .card {
|
||||
border-top-left-radius: 0.25rem;
|
||||
border-top-right-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.column div:last-child .card {
|
||||
border-bottom-left-radius: 0.25rem;
|
||||
border-bottom-right-radius: 0.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 0.5rem;
|
||||
text-align: left;
|
||||
color: #676767;
|
||||
font-size: 0.85rem;
|
||||
transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
|
||||
}
|
||||
|
||||
.no-footer {
|
||||
#main-section {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.footer {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.search-bar {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
input {
|
||||
border: none;
|
||||
background-color: var(--highlight-hover);
|
||||
border-radius: 5px;
|
||||
margin-top: 2px;
|
||||
padding: 2px 12px 2px 30px;
|
||||
transition: all 100ms linear;
|
||||
color: #ffffff;
|
||||
height: 30px;
|
||||
width: 100px;
|
||||
|
||||
&:focus {
|
||||
color: #000000;
|
||||
width: 250px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
.search-label::before {
|
||||
font-family: "Font Awesome 5 Free";
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
left: 16px;
|
||||
content: "\f002";
|
||||
font-weight: 900;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
&:focus-within .search-label::before {
|
||||
color: #6e6e6e;
|
||||
}
|
||||
}
|
||||
|
||||
.offline-message {
|
||||
text-align: center;
|
||||
margin: 35px 0;
|
||||
|
||||
i {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
i.fa-redo-alt {
|
||||
font-size: 1.3rem;
|
||||
line-height: 1rem;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
color: #3273dc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.group-logo {
|
||||
float: left;
|
||||
}
|
||||
// themes
|
||||
@import url("@/assets/themes/classic.scss") layer(theme);
|
||||
@import url("@/assets/themes/walkxcode.scss") layer(theme);
|
||||
@import url("@/assets/themes/neon.scss") layer(theme);
|
||||
|
|
|
@ -0,0 +1,446 @@
|
|||
@import url("~/@fortawesome/fontawesome-free/css/all.css") layer(base);
|
||||
@import url("@/assets/components/status.scss") layer(base);
|
||||
@import url("@/assets/webfonts/webfonts.scss") layer(base);
|
||||
|
||||
|
||||
@mixin ellipsis() {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
html, body, body #app-mount, body #app {
|
||||
height: 100%;
|
||||
background-color: var(--background);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Noto Sans", sans-serif;
|
||||
font-optical-sizing: auto;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-variation-settings: "wdth" 100;
|
||||
|
||||
#app {
|
||||
height: auto;
|
||||
min-height: 100%;
|
||||
background-image: var(--background-image);
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
color: var(--text);
|
||||
transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
|
||||
|
||||
a {
|
||||
color: var(--link);
|
||||
&:hover {
|
||||
color: var(--link-hover);
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-weight: 500;
|
||||
color: var(--text-title);
|
||||
}
|
||||
.subtitle {
|
||||
color: var(--text-subtitle);
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: var(--card-background);
|
||||
box-shadow: 0 2px 15px 0 var(--card-shadow);
|
||||
&:hover {
|
||||
background-color: var(--card-background);
|
||||
}
|
||||
}
|
||||
|
||||
.message {
|
||||
.message-body {
|
||||
color: var(--text);
|
||||
background-color: var(--card-background);
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
background-color: var(--card-background);
|
||||
box-shadow: 0 2px 15px 0 var(--card-shadow);
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.3rem;
|
||||
margin-top: 1.2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
|
||||
.fas,
|
||||
.fab,
|
||||
.far {
|
||||
font-size: 1.4rem;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
span {
|
||||
font-weight: bold;
|
||||
color: var(--highlight-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
[v-cloak] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#bighead {
|
||||
color: var(--text-header);
|
||||
|
||||
.dashboard-title {
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
.first-line {
|
||||
min-height: 100px;
|
||||
vertical-align: center;
|
||||
background-color: var(--highlight-primary);
|
||||
|
||||
h1 {
|
||||
margin-top: -12px;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.headline {
|
||||
margin-top: 5px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.container {
|
||||
min-height: 80px;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.logo {
|
||||
float: left;
|
||||
i {
|
||||
vertical-align: top;
|
||||
padding: 8px 15px;
|
||||
font-size: 50px;
|
||||
}
|
||||
|
||||
img {
|
||||
padding: 10px;
|
||||
max-height: 70px;
|
||||
max-width: 70px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.navbar {
|
||||
background-color: var(--highlight-secondary);
|
||||
|
||||
a {
|
||||
color: var(--text-header);
|
||||
padding: 8px 12px;
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: var(--text-header);
|
||||
background-color: var(--highlight-hover);
|
||||
}
|
||||
}
|
||||
.navbar-menu {
|
||||
background-color: inherit;
|
||||
}
|
||||
}
|
||||
.navbar-end {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
#main-section {
|
||||
padding: 0 0 2.5rem 0;
|
||||
|
||||
h2 {
|
||||
padding-bottom: 0px;
|
||||
@include ellipsis();
|
||||
i {
|
||||
color: var(--highlight-primary);
|
||||
}
|
||||
}
|
||||
.media.no-subtitle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.media-left {
|
||||
margin-inline-end: 0.5rem;
|
||||
}
|
||||
|
||||
.media-content {
|
||||
overflow: hidden;
|
||||
text-overflow: inherit;
|
||||
}
|
||||
|
||||
.tag {
|
||||
color: var(--highlight-secondary);
|
||||
background-color: var(--highlight-secondary);
|
||||
position: absolute;
|
||||
bottom: 1rem;
|
||||
right: -0.2rem;
|
||||
width: 3px;
|
||||
overflow: hidden;
|
||||
transition: all 0.2s ease-out;
|
||||
padding: 0;
|
||||
|
||||
.tag-text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
border: 1px solid transparent;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
|
||||
transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
|
||||
overflow: visible;
|
||||
|
||||
a {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translate(0, -3px);
|
||||
|
||||
.tag {
|
||||
width: auto;
|
||||
color: #ffffff;
|
||||
padding: 0 0.75em;
|
||||
|
||||
.tag-text {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card-content {
|
||||
height: 84px;
|
||||
padding: 1.1rem;
|
||||
}
|
||||
|
||||
.layout-vertical {
|
||||
h2.group-title {
|
||||
padding-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.column div:first-of-type .card {
|
||||
border-top-left-radius: 0.75rem;
|
||||
border-top-right-radius: 0.75rem;
|
||||
}
|
||||
|
||||
.column div:last-child .card {
|
||||
border-bottom-left-radius: 0.75rem;
|
||||
border-bottom-right-radius: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 1.1em;
|
||||
line-height: 1.2em;
|
||||
font-weight: 500;
|
||||
margin-bottom: 4px;
|
||||
@include ellipsis();
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 0.9em;
|
||||
font-weight: 300;
|
||||
@include ellipsis();
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 1.2rem 0.75rem;
|
||||
}
|
||||
|
||||
.message {
|
||||
margin-top: 45px;
|
||||
box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
|
||||
|
||||
.message-header {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.message-body {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
.media.no-subtitle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.media-content {
|
||||
overflow: hidden;
|
||||
text-overflow: inherit;
|
||||
}
|
||||
|
||||
.tag {
|
||||
color: var(--highlight-secondary);
|
||||
background-color: var(--highlight-secondary);
|
||||
position: absolute;
|
||||
bottom: 1rem;
|
||||
right: -0.2rem;
|
||||
width: 3px;
|
||||
overflow: hidden;
|
||||
transition: all 0.2s ease-out;
|
||||
padding: 0;
|
||||
|
||||
.tag-text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
border: none;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
|
||||
transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
|
||||
overflow: visible;
|
||||
|
||||
a {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translate(0, -3px);
|
||||
|
||||
.tag {
|
||||
width: auto;
|
||||
color: #ffffff;
|
||||
padding: 0 0.75em;
|
||||
|
||||
.tag-text {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card-content {
|
||||
height: 85px;
|
||||
padding: 1.3rem;
|
||||
}
|
||||
|
||||
.layout-vertical {
|
||||
h2.group-title {
|
||||
padding-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.column div:first-of-type .card {
|
||||
border-top-left-radius: 0.75rem;
|
||||
border-top-right-radius: 0.75rem;
|
||||
}
|
||||
|
||||
.column div:last-child .card {
|
||||
border-bottom-left-radius: 0.75rem;
|
||||
border-bottom-right-radius: 0.75rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.footer {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 0.5rem;
|
||||
text-align: left;
|
||||
color: #676767;
|
||||
font-size: 0.85rem;
|
||||
transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
|
||||
}
|
||||
|
||||
.no-footer {
|
||||
#main-section {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.footer {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.search-bar {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
input {
|
||||
border: none;
|
||||
background-color: var(--highlight-hover);
|
||||
border-radius: 5px;
|
||||
margin-top: 2px;
|
||||
padding: 2px 12px 2px 30px;
|
||||
transition: all 100ms linear;
|
||||
color: #ffffff;
|
||||
height: 30px;
|
||||
width: 100px;
|
||||
|
||||
&:focus {
|
||||
color: #000000;
|
||||
width: 250px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
.search-label::before {
|
||||
font-family: "Font Awesome 6 Free";
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
left: 16px;
|
||||
content: "\f002";
|
||||
font-weight: 900;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
&:focus-within .search-label::before {
|
||||
color: #6e6e6e;
|
||||
}
|
||||
}
|
||||
|
||||
.offline-message {
|
||||
text-align: center;
|
||||
margin: 35px 0;
|
||||
|
||||
i {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
i.fa-redo-alt {
|
||||
font-size: 1.3rem;
|
||||
line-height: 1rem;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
color: #3273dc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.group-subtitle {
|
||||
|
||||
}
|
||||
|
||||
.group-logo {
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
.highlight-primary {
|
||||
--highlight-color: var(--highlight-primary);
|
||||
}
|
||||
|
||||
.highlight-green {
|
||||
--highlight-color: var(--highlight-green);
|
||||
}
|
||||
|
||||
.highlight-orange {
|
||||
--highlight-color: var(--highlight-orange);
|
||||
}
|
||||
|
||||
.highlight-pink {
|
||||
--highlight-color: var(--highlight-pink);
|
||||
}
|
||||
|
||||
.highlight-purple {
|
||||
--highlight-color: var(--highlight-purple);
|
||||
}
|
||||
|
||||
.highlight-red {
|
||||
--highlight-color: var(--highlight-red);
|
||||
}
|
||||
|
||||
.highlight-blue {
|
||||
--highlight-color: var(--highlight-blue);
|
||||
}
|
||||
|
||||
.highlight-inverted {
|
||||
--highlight-color: var(--highlight-variant-inverted);
|
||||
}
|
||||
|
||||
*[class^="highlight-"], *[class*=" highlight-"] {
|
||||
i {
|
||||
color: var(--highlight-color);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
@layer framework, base, theme;
|
|
@ -17,35 +17,7 @@ defaults:
|
|||
colorTheme: auto
|
||||
|
||||
theme: default
|
||||
colors:
|
||||
light:
|
||||
highlight-primary: "#3367d6"
|
||||
highlight-secondary: "#4285f4"
|
||||
highlight-hover: "#5a95f5"
|
||||
background: "#f5f5f5"
|
||||
card-background: "#ffffff"
|
||||
text: "#363636"
|
||||
text-header: "#ffffff"
|
||||
text-title: "#303030"
|
||||
text-subtitle: "#424242"
|
||||
card-shadow: rgba(0, 0, 0, 0.1)
|
||||
link: "#3273dc"
|
||||
link-hover: "#363636"
|
||||
background-image: ""
|
||||
dark:
|
||||
highlight-primary: "#3367d6"
|
||||
highlight-secondary: "#4285f4"
|
||||
highlight-hover: "#5a95f5"
|
||||
background: "#131313"
|
||||
card-background: "#2b2b2b"
|
||||
text: "#eaeaea"
|
||||
text-header: "#ffffff"
|
||||
text-title: "#fafafa"
|
||||
text-subtitle: "#f5f5f5"
|
||||
card-shadow: rgba(0, 0, 0, 0.4)
|
||||
link: "#3273dc"
|
||||
link-hover: "#ffdd57"
|
||||
background-image: ""
|
||||
colors: ~
|
||||
|
||||
message: ~
|
||||
links: []
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
|
||||
// Theme colors
|
||||
.light {
|
||||
--highlight-primary: #3367d6;
|
||||
--highlight-secondary: #4285f4;
|
||||
--highlight-hover: #5a95f5;
|
||||
--background: #f5f5f5;
|
||||
--card-background: #ffffff;
|
||||
--text: #363636;
|
||||
--text-header: #ffffff;
|
||||
--text-title: #303030;
|
||||
--text-subtitle: #424242;
|
||||
--card-shadow: rgba(0, 0, 0, 0.1);
|
||||
--link: #3273dc;
|
||||
--link-hover: #363636;
|
||||
--background-image: none;
|
||||
|
||||
--highlight-variant-inverted: #363636;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--highlight-primary: #3367d6;
|
||||
--highlight-secondary: #4285f4;
|
||||
--highlight-hover: #5a95f5;
|
||||
--background: #131313;
|
||||
--card-background: #282828;
|
||||
--text: #eaeaea;
|
||||
--text-header: #ffffff;
|
||||
--text-title: #fafafa;
|
||||
--text-subtitle: #b6b6b6;
|
||||
--card-shadow: rgba(0, 0, 0, 0.4);
|
||||
--link: #3273dc;
|
||||
--link-hover: #144aa2;
|
||||
--background-image: none;
|
||||
|
||||
--highlight-variant-inverted: #f5f5f5;
|
||||
}
|
||||
|
||||
#app {
|
||||
--highlight-blue: #444B6E;
|
||||
--highlight-red: #C83E4D;
|
||||
--highlight-pink: #FF6392;
|
||||
--highlight-orange: #FF8A08;
|
||||
--highlight-green: #22A699;
|
||||
--highlight-purple: #711DB0;
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
|
||||
// Theme colors
|
||||
.theme-neon.light {
|
||||
--highlight-primary: #B5FF57;
|
||||
--highlight-secondary: #B5FF57;
|
||||
--highlight-hover: #e7e4e4;
|
||||
--background: #ffffff;
|
||||
--card-background: #ffffff;
|
||||
--text: #363636;
|
||||
--text-header: #1F2229;
|
||||
--text-title: #303030;
|
||||
--text-subtitle: #424242;
|
||||
--card-shadow: rgba(46, 39, 39, 0.1);
|
||||
--link: #B5FF57;
|
||||
--link-hover: #8cce36;
|
||||
--background-image: none;
|
||||
}
|
||||
|
||||
.theme-neon.dark {
|
||||
--highlight-primary: #B5FF57;
|
||||
--highlight-secondary: #B5FF57;
|
||||
--highlight-hover: #1F2229;
|
||||
--background: #14161A;
|
||||
--card-background: #14161A;
|
||||
--text: #eaeaea;
|
||||
--text-header: #ffffff;
|
||||
--text-title: #fafafa;
|
||||
--text-subtitle: #768198;
|
||||
--card-shadow: rgba(46, 39, 39, 0.1);
|
||||
--link: #B5FF57;
|
||||
--link-hover: #aeff45;
|
||||
--background-image: none;
|
||||
}
|
||||
|
||||
// theme
|
||||
.theme-neon {
|
||||
--subtitle-color: #768198;
|
||||
--border-radius: 0.75em;
|
||||
|
||||
.first-line {
|
||||
padding-top: 25px;
|
||||
margin-bottom: 5px;
|
||||
background-color: transparent;
|
||||
|
||||
.headline {
|
||||
color: var(--subtitle-color);
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.5em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.dashboard-title::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: -4px;
|
||||
width: 4em;
|
||||
height: .25rem;
|
||||
background-color: var(--highlight-primary);
|
||||
border-radius: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#bighead {
|
||||
.logo {
|
||||
display: none;
|
||||
}
|
||||
.navbar a {
|
||||
color: var(--text);
|
||||
|
||||
&:hover {
|
||||
color: var(--text-header);
|
||||
border-radius: var(--border-radius);
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*[class^="highlight-"], *[class*=" highlight-"] {
|
||||
.card:hover {
|
||||
border: 1px solid var(--highlight-color);
|
||||
}
|
||||
}
|
||||
|
||||
.tag {
|
||||
color: var(--highlight-variant-inverted);
|
||||
}
|
||||
|
||||
.card {
|
||||
box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
|
||||
border: 1px solid hsl(221,14%,24%);
|
||||
border-radius: var(--border-radius);
|
||||
|
||||
.message {
|
||||
border: 1px solid hsl(221,14%,24%);
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
}
|
||||
|
||||
.layout-vertical .card {
|
||||
margin-bottom: 0.75em;
|
||||
}
|
||||
|
||||
.message-body {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
/*
|
||||
* SUI theme
|
||||
* Inspired by the great https://github.com/jeroenpardon/sui start page
|
||||
* Author: @bastienwirtz
|
||||
*/
|
||||
body #app.theme-sui {
|
||||
#bighead .dashboard-title {
|
||||
padding: 65px 0 0 12px;
|
||||
|
||||
h1 {
|
||||
margin-top: 0;
|
||||
font-weight: bold;
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar .navbar-item:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.card,
|
||||
.card:hover {
|
||||
background-color: transparent;
|
||||
box-shadow: none;
|
||||
|
||||
.title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.card-content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,84 @@
|
|||
|
||||
// Theme colors
|
||||
.theme-walkxcode.light {
|
||||
--highlight-primary: #111111;
|
||||
--highlight-secondary: #fff5f2;
|
||||
--highlight-hover: #bebebe;
|
||||
--background: #fff5f2;
|
||||
--card-background: rgba(255, 245, 242, 0.8);
|
||||
--text: #000000;
|
||||
--text-header: #000000;
|
||||
--text-title: #000000;
|
||||
--text-subtitle: #111111;
|
||||
--card-shadow: rgba(0, 0, 0, 0.5)
|
||||
--link: #3273dc;
|
||||
--link-hover: #2e4053;
|
||||
--background-image: url("assets/themes/walkxcode/wallpaper-light.webp");
|
||||
}
|
||||
|
||||
.theme-walkxcode.dark {
|
||||
--highlight-primary: #3367d6;
|
||||
--highlight-secondary: #4285f4;
|
||||
--highlight-hover: #1F2347;
|
||||
--background: #12152B;
|
||||
--card-background: rgba(24, 28, 58, 0.8);
|
||||
--text: #eaeaea;
|
||||
--text-header: #fafafa;
|
||||
--text-title: #fafafa;
|
||||
--text-subtitle: #8B8D9C;
|
||||
--card-shadow: rgba(0, 0, 0, 0.5);
|
||||
--link: #ffffff;
|
||||
--link-hover: #fafafa;
|
||||
--background-image: url("assets/themes/walkxcode/wallpaper.webp");
|
||||
}
|
||||
|
||||
// theme
|
||||
.theme-walkxcode {
|
||||
--border-radius: 1rem;
|
||||
|
||||
#bighead {
|
||||
.first-line, .navbar, .navbar a:focus, .navbar a:hover {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
.search-bar input {
|
||||
opacity: 20%;
|
||||
}
|
||||
}
|
||||
|
||||
.group-title {
|
||||
font-family: Lato;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.titles {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.card {
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.layout-vertical {
|
||||
.card {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.column div:first-of-type .card {
|
||||
border-top-left-radius: var(--border-radius);
|
||||
border-top-right-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.column div:last-child .card {
|
||||
border-bottom-left-radius: var(--border-radius);
|
||||
border-bottom-right-radius: var(--border-radius);
|
||||
}
|
||||
}
|
||||
|
||||
.tag {
|
||||
color: var(--highlight-variant-inverted);
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
|
@ -1,8 +1,8 @@
|
|||
Copyright (c) 2010-2014 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato"
|
||||
Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
https://openfontlicense.org
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
|
@ -0,0 +1,136 @@
|
|||
Noto Sans Variable Font
|
||||
=======================
|
||||
|
||||
This download contains Noto Sans as both variable fonts and static fonts.
|
||||
|
||||
Noto Sans is a variable font with these axes:
|
||||
wdth
|
||||
wght
|
||||
|
||||
This means all the styles are contained in these files:
|
||||
NotoSans-VariableFont_wdth,wght.ttf
|
||||
NotoSans-Italic-VariableFont_wdth,wght.ttf
|
||||
|
||||
If your app fully supports variable fonts, you can now pick intermediate styles
|
||||
that aren’t available as static fonts. Not all apps support variable fonts, and
|
||||
in those cases you can use the static font files for Noto Sans:
|
||||
static/NotoSans_ExtraCondensed-Thin.ttf
|
||||
static/NotoSans_ExtraCondensed-ExtraLight.ttf
|
||||
static/NotoSans_ExtraCondensed-Light.ttf
|
||||
static/NotoSans_ExtraCondensed-Regular.ttf
|
||||
static/NotoSans_ExtraCondensed-Medium.ttf
|
||||
static/NotoSans_ExtraCondensed-SemiBold.ttf
|
||||
static/NotoSans_ExtraCondensed-Bold.ttf
|
||||
static/NotoSans_ExtraCondensed-ExtraBold.ttf
|
||||
static/NotoSans_ExtraCondensed-Black.ttf
|
||||
static/NotoSans_Condensed-Thin.ttf
|
||||
static/NotoSans_Condensed-ExtraLight.ttf
|
||||
static/NotoSans_Condensed-Light.ttf
|
||||
static/NotoSans_Condensed-Regular.ttf
|
||||
static/NotoSans_Condensed-Medium.ttf
|
||||
static/NotoSans_Condensed-SemiBold.ttf
|
||||
static/NotoSans_Condensed-Bold.ttf
|
||||
static/NotoSans_Condensed-ExtraBold.ttf
|
||||
static/NotoSans_Condensed-Black.ttf
|
||||
static/NotoSans_SemiCondensed-Thin.ttf
|
||||
static/NotoSans_SemiCondensed-ExtraLight.ttf
|
||||
static/NotoSans_SemiCondensed-Light.ttf
|
||||
static/NotoSans_SemiCondensed-Regular.ttf
|
||||
static/NotoSans_SemiCondensed-Medium.ttf
|
||||
static/NotoSans_SemiCondensed-SemiBold.ttf
|
||||
static/NotoSans_SemiCondensed-Bold.ttf
|
||||
static/NotoSans_SemiCondensed-ExtraBold.ttf
|
||||
static/NotoSans_SemiCondensed-Black.ttf
|
||||
static/NotoSans-Thin.ttf
|
||||
static/NotoSans-ExtraLight.ttf
|
||||
static/NotoSans-Light.ttf
|
||||
static/NotoSans-Regular.ttf
|
||||
static/NotoSans-Medium.ttf
|
||||
static/NotoSans-SemiBold.ttf
|
||||
static/NotoSans-Bold.ttf
|
||||
static/NotoSans-ExtraBold.ttf
|
||||
static/NotoSans-Black.ttf
|
||||
static/NotoSans_ExtraCondensed-ThinItalic.ttf
|
||||
static/NotoSans_ExtraCondensed-ExtraLightItalic.ttf
|
||||
static/NotoSans_ExtraCondensed-LightItalic.ttf
|
||||
static/NotoSans_ExtraCondensed-Italic.ttf
|
||||
static/NotoSans_ExtraCondensed-MediumItalic.ttf
|
||||
static/NotoSans_ExtraCondensed-SemiBoldItalic.ttf
|
||||
static/NotoSans_ExtraCondensed-BoldItalic.ttf
|
||||
static/NotoSans_ExtraCondensed-ExtraBoldItalic.ttf
|
||||
static/NotoSans_ExtraCondensed-BlackItalic.ttf
|
||||
static/NotoSans_Condensed-ThinItalic.ttf
|
||||
static/NotoSans_Condensed-ExtraLightItalic.ttf
|
||||
static/NotoSans_Condensed-LightItalic.ttf
|
||||
static/NotoSans_Condensed-Italic.ttf
|
||||
static/NotoSans_Condensed-MediumItalic.ttf
|
||||
static/NotoSans_Condensed-SemiBoldItalic.ttf
|
||||
static/NotoSans_Condensed-BoldItalic.ttf
|
||||
static/NotoSans_Condensed-ExtraBoldItalic.ttf
|
||||
static/NotoSans_Condensed-BlackItalic.ttf
|
||||
static/NotoSans_SemiCondensed-ThinItalic.ttf
|
||||
static/NotoSans_SemiCondensed-ExtraLightItalic.ttf
|
||||
static/NotoSans_SemiCondensed-LightItalic.ttf
|
||||
static/NotoSans_SemiCondensed-Italic.ttf
|
||||
static/NotoSans_SemiCondensed-MediumItalic.ttf
|
||||
static/NotoSans_SemiCondensed-SemiBoldItalic.ttf
|
||||
static/NotoSans_SemiCondensed-BoldItalic.ttf
|
||||
static/NotoSans_SemiCondensed-ExtraBoldItalic.ttf
|
||||
static/NotoSans_SemiCondensed-BlackItalic.ttf
|
||||
static/NotoSans-ThinItalic.ttf
|
||||
static/NotoSans-ExtraLightItalic.ttf
|
||||
static/NotoSans-LightItalic.ttf
|
||||
static/NotoSans-Italic.ttf
|
||||
static/NotoSans-MediumItalic.ttf
|
||||
static/NotoSans-SemiBoldItalic.ttf
|
||||
static/NotoSans-BoldItalic.ttf
|
||||
static/NotoSans-ExtraBoldItalic.ttf
|
||||
static/NotoSans-BlackItalic.ttf
|
||||
|
||||
Get started
|
||||
-----------
|
||||
|
||||
1. Install the font files you want to use
|
||||
|
||||
2. Use your app's font picker to view the font family and all the
|
||||
available styles
|
||||
|
||||
Learn more about variable fonts
|
||||
-------------------------------
|
||||
|
||||
https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
|
||||
https://variablefonts.typenetwork.com
|
||||
https://medium.com/variable-fonts
|
||||
|
||||
In desktop apps
|
||||
|
||||
https://theblog.adobe.com/can-variable-fonts-illustrator-cc
|
||||
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
|
||||
|
||||
Online
|
||||
|
||||
https://developers.google.com/fonts/docs/getting_started
|
||||
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
|
||||
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
|
||||
|
||||
Installing fonts
|
||||
|
||||
MacOS: https://support.apple.com/en-us/HT201749
|
||||
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
|
||||
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
|
||||
|
||||
Android Apps
|
||||
|
||||
https://developers.google.com/fonts/docs/android
|
||||
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
|
||||
|
||||
License
|
||||
-------
|
||||
Please read the full license text (OFL.txt) to understand the permissions,
|
||||
restrictions and requirements for usage, redistribution, and modification.
|
||||
|
||||
You can use them in your products & projects – print or digital,
|
||||
commercial or otherwise.
|
||||
|
||||
This isn't legal advice, please consider consulting a lawyer and see the full
|
||||
license for all details.
|
Binary file not shown.
|
@ -1,95 +0,0 @@
|
|||
Copyright (c) 2010, Matt McInerney (matt@pixelspread.com),
|
||||
Copyright (c) 2011, Pablo Impallari (www.impallari.com|impallari@gmail.com),
|
||||
Copyright (c) 2011, Rodrigo Fuenzalida (www.rfuenzalida.com|hello@rfuenzalida.com), with Reserved Font Name Raleway
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
Binary file not shown.
Binary file not shown.
|
@ -1,23 +1,11 @@
|
|||
/* raleway-regular - latin */
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: "Raleway";
|
||||
font-family: 'Noto Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-weight: 100 900;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: local("Raleway"), local("Raleway-Regular"),
|
||||
url("./webfonts/raleway/raleway-v14-latin-regular.woff2") format("woff2"),
|
||||
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||
url("./webfonts/raleway/raleway-v14-latin-regular.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||
src: url("./noto/noto-latin-normal.woff2") format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
/* lato-regular - latin */
|
||||
@font-face {
|
||||
font-family: "Lato";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local("Lato Regular"), local("Lato-Regular"),
|
||||
url("./webfonts/lato/lato-v16-latin-regular.woff2") format("woff2"),
|
||||
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||
url("./webfonts/lato/lato-v16-latin-regular.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<template>
|
||||
<DynamicStyle>
|
||||
:root, body #app.is-light {
|
||||
:root, body #app.light {
|
||||
{{ getVars(themes.light) }}
|
||||
} @media (prefers-color-scheme: light), (prefers-color-scheme:
|
||||
no-preference) { :root, body #app {
|
||||
{{ getVars(themes.light) }}
|
||||
} } body #app.is-dark {
|
||||
} } body #app.dark {
|
||||
{{ getVars(themes.dark) }}
|
||||
} @media (prefers-color-scheme: dark) { :root, body #app {
|
||||
{{ getVars(themes.dark) }}
|
||||
|
@ -23,7 +23,7 @@ export default {
|
|||
getVars: function (theme) {
|
||||
let vars = [];
|
||||
for (const themeVars in theme) {
|
||||
let value = `${theme[themeVars]}`;
|
||||
let value = theme[themeVars];
|
||||
if (!value) {
|
||||
value = "initial";
|
||||
} else if (themeVars == "background-image") {
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
<template>
|
||||
<div class="search-bar">
|
||||
<label for="search" class="search-label"></label>
|
||||
<input
|
||||
type="text"
|
||||
ref="search"
|
||||
:value="value"
|
||||
@input.stop="search($event.target.value)"
|
||||
@keyup.enter.exact="open()"
|
||||
@keyup.alt.enter="open('_blank')"
|
||||
/>
|
||||
</div>
|
||||
<search class="search-bar">
|
||||
<form role="search">
|
||||
<label for="search" class="search-label"></label>
|
||||
<input
|
||||
type="search"
|
||||
ref="search"
|
||||
:value="value"
|
||||
@input.stop="search($event.target.value)"
|
||||
@keyup.enter.exact="open()"
|
||||
@keyup.alt.enter="open('_blank')"
|
||||
/>
|
||||
</form>
|
||||
</search>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
|
@ -43,10 +43,10 @@ export default {
|
|||
-webkit-animation: scale-up 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
|
||||
animation: scale-up 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
|
||||
}
|
||||
.is-light i {
|
||||
.light i {
|
||||
color: black;
|
||||
}
|
||||
.is-dark i {
|
||||
.dark i {
|
||||
color: white;
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<div
|
||||
class="card"
|
||||
:style="`background-color:${item.background};`"
|
||||
:class="item.class"
|
||||
>
|
||||
<div class="card" :style="`background-color:${item.background};`">
|
||||
<a :href="item.url" :target="item.target" rel="noreferrer">
|
||||
<div class="card-content">
|
||||
<div :class="mediaClass">
|
||||
|
@ -16,14 +12,14 @@
|
|||
</div>
|
||||
<div v-if="item.icon" class="media-left">
|
||||
<figure class="image is-48x48">
|
||||
<i style="font-size: 35px" :class="['fa-fw', item.icon]"></i>
|
||||
<i style="font-size: 32px" :class="['fa-fw', item.icon]"></i>
|
||||
</figure>
|
||||
</div>
|
||||
</slot>
|
||||
<div class="media-content">
|
||||
<slot name="content">
|
||||
<p class="title is-4">{{ item.name }}</p>
|
||||
<p class="subtitle is-6" v-if="item.subtitle">
|
||||
<p class="title">{{ item.name }}</p>
|
||||
<p class="subtitle" v-if="item.subtitle">
|
||||
{{ item.subtitle }}
|
||||
</p>
|
||||
</slot>
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
<template>
|
||||
<Generic :item="item">
|
||||
<template #content>
|
||||
<p class="title is-4">{{ item.name }}</p>
|
||||
<div class="subtitle is-6">
|
||||
<template v-if="item.subtitle">
|
||||
{{ item.subtitle }}
|
||||
</template>
|
||||
<div class="select is-small">
|
||||
<select v-model="theme" @change="switchTheme">
|
||||
<option value="" disabled selected>Available themes</option>
|
||||
<option value="theme-classic">classic</option>
|
||||
<option value="theme-neon">neon</option>
|
||||
<option value="theme-walkxcode">walkxcode</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</Generic>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Generic from "./Generic.vue";
|
||||
|
||||
let currentTheme;
|
||||
const app = document.getElementById("app");
|
||||
|
||||
export default {
|
||||
name: "ThemeChooser",
|
||||
props: {
|
||||
item: Object,
|
||||
},
|
||||
components: {
|
||||
Generic,
|
||||
},
|
||||
data: () => {
|
||||
return {
|
||||
theme: null,
|
||||
};
|
||||
},
|
||||
created: function () {
|
||||
currentTheme = Array.from(app.classList).filter((word) =>
|
||||
word.startsWith("theme-"),
|
||||
)[0];
|
||||
this.theme = currentTheme;
|
||||
},
|
||||
methods: {
|
||||
switchTheme: function () {
|
||||
app.classList.replace(currentTheme, this.theme);
|
||||
currentTheme = this.theme;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.select,
|
||||
select {
|
||||
width: 100%;
|
||||
background-color: var(--card-background);
|
||||
}
|
||||
</style>
|
|
@ -1,9 +1,7 @@
|
|||
import "./assets/app.scss";
|
||||
import { createApp, h } from "vue";
|
||||
import App from "./App.vue";
|
||||
|
||||
import "@fortawesome/fontawesome-free/css/all.css";
|
||||
import "./assets/app.scss";
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
app.component("DynamicStyle", (_props, context) => {
|
||||
|
|
|
@ -7,7 +7,7 @@ export default {
|
|||
// but sometimes the base url is different. An optional alternative URL can be provided with the "endpoint" key.
|
||||
this.endpoint = this.item.endpoint || this.item.url;
|
||||
|
||||
if (this.endpoint.endsWith("/")) {
|
||||
if (this.endpoint && this.endpoint.endsWith("/")) {
|
||||
this.endpoint = this.endpoint.slice(0, -1);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -43,6 +43,7 @@ export default defineConfig({
|
|||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
"~": fileURLToPath(new URL("./node_modules", import.meta.url)),
|
||||
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue