mirror of
https://github.com/bastienwirtz/homer.git
synced 2024-12-27 09:09:08 +01:00
Add the option to style tags
This commit is contained in:
parent
8aa8398fba
commit
a2fdb8a97b
@ -58,6 +58,7 @@ services:
|
||||
logo: "/assets/tools/rabbitmq.png"
|
||||
subtitle: "Manage & monitor RabbitMQ server"
|
||||
tag: "haproxy"
|
||||
tagstyle: "is-success"
|
||||
url: "#"
|
||||
- name: "Monitoring"
|
||||
icon: "fa-heartbeat"
|
||||
|
4
app.css
4
app.css
@ -165,6 +165,8 @@ body {
|
||||
overflow: hidden;
|
||||
transition: all 0.2s ease-out;
|
||||
padding: 0; }
|
||||
body .tag .tag-text {
|
||||
display: none; }
|
||||
body .card {
|
||||
border-radius: 5px;
|
||||
border: none;
|
||||
@ -178,6 +180,8 @@ body {
|
||||
width: auto;
|
||||
color: #ffffff;
|
||||
padding: 0 0.75em; }
|
||||
body .card:hover .tag .tag-text {
|
||||
display: block; }
|
||||
body .card-content {
|
||||
height: 85px;
|
||||
padding: 1.3rem; }
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"mappings": "AAGA,IAAK;EACH,WAAW,EAAE,qBAAqB;EAClC,gBAAgB,EAAE,OAAO;EACzB,MAAM,EAAE,IAAI;EAEZ,oDAAuB;IACrB,WAAW,EAAE,kBAAkB;EAGjC,OAAG;IACD,SAAS,EAAE,IAAI;EAGjB,OAAG;IACD,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE,IAAI;IAChB,aAAa,EAAE,IAAI;IAEnB,WAAI;MACF,YAAY,EAAE,IAAI;MAClB,KAAK,EAtBO,OAAO;IAyBrB,YAAK;MACH,WAAW,EAAE,IAAI;MACjB,KAAK,EA3BO,OAAO;EA+BvB,cAAU;IACR,OAAO,EAAE,IAAI;EAGf,aAAS;IACP,KAAK,EAAE,OAAO;IAEd,8BAAiB;MACf,OAAO,EAAE,YAAY;IAGvB,yBAAY;MACV,MAAM,EAAE,KAAK;MACb,cAAc,EAAE,MAA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
|
||||
"sources": ["app.scss"],
|
||||
"names": [],
|
||||
"file": "app.css"
|
||||
}
|
||||
}
|
||||
|
4
app.js
4
app.js
@ -85,7 +85,9 @@ Vue.component('service', {
|
||||
<p class="subtitle is-6">{{ item.subtitle }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<strong class="tag" v-if="item.tag">#{{ item.tag }}</strong>
|
||||
<div class="tag" :class="item.tagstyle" v-if="item.tag">
|
||||
<strong class="tag-text">#{{ item.tag }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div></div>`
|
||||
|
8
app.scss
8
app.scss
@ -212,6 +212,10 @@ body {
|
||||
overflow: hidden;
|
||||
transition: all 0.2s ease-out;
|
||||
padding: 0;
|
||||
|
||||
.tag-text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
@ -232,6 +236,10 @@ body {
|
||||
width: auto;
|
||||
color: #ffffff;
|
||||
padding: 0 0.75em;
|
||||
|
||||
.tag-text {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,6 +39,7 @@ services:
|
||||
logo: "/assets/tools/rabbitmq.png"
|
||||
subtitle: "Manage & monitor RabbitMQ server"
|
||||
tag: "haproxy"
|
||||
tagstyle: "is-success"
|
||||
url: "#"
|
||||
- name: "Monitoring"
|
||||
icon: "fas fa-heartbeat"
|
||||
|
Loading…
Reference in New Issue
Block a user