Merge pull request #5 from pdevq/master

Styling Tags - Search Bar Icon Fix - Dark Theme Link Hover Text
This commit is contained in:
Bastien Wirtz 2019-11-12 08:23:44 -08:00 committed by GitHub
commit 05bdc26801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 51 additions and 11 deletions

View File

@ -42,7 +42,7 @@ links:
# Services
# First level array represent a group.
# Leave only a "items" key if not using group (group name & icon are optional, section separation will not be displayed).
# Leave only a "items" key if not using group (group name, icon & tagstyle are optional, section separation will not be displayed).
services:
- name: "DevOps"
icon: "fa-code-fork"
@ -58,6 +58,8 @@ services:
logo: "/assets/tools/rabbitmq.png"
subtitle: "Manage & monitor RabbitMQ server"
tag: "haproxy"
# Optional tagstyle
tagstyle: "is-success"
url: "#"
- name: "Monitoring"
icon: "fa-heartbeat"

18
app.css
View File

@ -9,6 +9,8 @@ body {
transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
background-color: #f5f5f5;
color: #363636; }
body #app a:hover {
color: #363636; }
body #app .title {
color: #303030; }
body #app .subtitle {
@ -25,6 +27,8 @@ body {
body #app {
background-color: #f5f5f5;
color: #363636; }
body #app a:hover {
color: #363636; }
body #app .title {
color: #303030; }
body #app .subtitle {
@ -41,6 +45,8 @@ body {
body #app {
background-color: #131313;
color: #eaeaea; }
body #app a:hover {
color: #ffdd57; }
body #app .title {
color: #fafafa; }
body #app .subtitle {
@ -56,6 +62,8 @@ body {
body #app.is-light {
background-color: #f5f5f5;
color: #363636; }
body #app.is-light a:hover {
color: #363636; }
body #app.is-light .title {
color: #303030; }
body #app.is-light .subtitle {
@ -71,6 +79,8 @@ body {
body #app.is-dark {
background-color: #131313;
color: #eaeaea; }
body #app.is-dark a:hover {
color: #ffdd57; }
body #app.is-dark .title {
color: #fafafa; }
body #app.is-dark .subtitle {
@ -130,6 +140,7 @@ body {
body #bighead .navbar a {
color: #ffffff; }
body #bighead .navbar a:hover {
color: #ffffff;
background-color: #5a95f5; }
body #main-section {
margin-bottom: 2rem;
@ -165,6 +176,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 +191,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; }
@ -215,11 +230,12 @@ body {
width: 250px;
background-color: #ffffff; }
body .search-bar .search-label::before {
font-family: 'FontAwesome';
font-family: 'Font Awesome 5 Free';
position: absolute;
top: 12px;
left: 8px;
content: "\f002";
font-weight: 900;
width: 20px;
height: 20px; }
body .search-bar:focus-within .search-label::before {

View File

@ -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,MAAM;MACtB,gBAAgB,EA9CN,OAAO;MAgDjB,4BAAG;QACD,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,IAAI;MAGjB,mCAAU;QACR,UAAU,EAAE,GAAG;QACf,SAAS,EAAE,MAAM;MAGnB,oCAAW;QACT,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,MAAM;MAGjB,6BAAI;QACF,KA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"sources": ["app.scss"],
"names": [],
"file": "app.css"
}
}

4
app.js
View File

@ -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>`

View File

@ -9,7 +9,8 @@ $theme-light: (
text: #363636,
text-title: #303030,
text-subtitle: #424242,
card-shadow: rgba(0, 0, 0, 0.1)
card-shadow: rgba(0, 0, 0, 0.1),
a-hover: #363636
);
$theme-dark: (
background: #131313,
@ -17,7 +18,8 @@ $theme-dark: (
text: #eaeaea,
text-title: #fafafa,
text-subtitle: #f5f5f5,
card-shadow: rgba(0, 0, 0, 0.4)
card-shadow: rgba(0, 0, 0, 0.4),
a-hover: #ffdd57
);
@ -25,7 +27,12 @@ $theme-dark: (
@mixin theme($theme) {
background-color: map-get($theme, "background");
color: map-get($theme, "text");
a {
&:hover {
color: map-get($theme, "a-hover");
}
}
.title {
color: map-get($theme, "text-title");
}
@ -154,6 +161,7 @@ body {
a {
color: #ffffff;
&:hover {
color: #ffffff;
background-color: lighten( $secondary-color, 5% );
}
}
@ -212,6 +220,10 @@ body {
overflow: hidden;
transition: all 0.2s ease-out;
padding: 0;
.tag-text {
display: none;
}
}
.card {
@ -232,6 +244,10 @@ body {
width: auto;
color: #ffffff;
padding: 0 0.75em;
.tag-text {
display: block;
}
}
}
@ -289,11 +305,12 @@ body {
}
.search-label::before {
font-family: 'FontAwesome';
font-family: 'Font Awesome 5 Free';
position: absolute;
top: 12px;
left: 8px;
content: "\f002";
font-weight: 900;
width: 20px;
height: 20px;
}

View File

@ -1,6 +1,6 @@
---
# Homepage configuration
# See https://fontawesome.com/v4.7.0/icons/ for icons options
# See https://fontawesome.com/icons for icons options
title: "Simple homepage"
subtitle: "Homer"
@ -25,7 +25,7 @@ links:
# Services
# First level array represent a group.
# Leave only a "items" key if not using group (group name & icon are optional, section separation will not be displayed).
# Leave only a "items" key if not using group (group name, icon & tagstyle are optional, section separation will not be displayed).
services:
- name: "DevOps"
icon: "fas fa-code-branch"
@ -39,6 +39,9 @@ services:
logo: "/assets/tools/rabbitmq.png"
subtitle: "Manage & monitor RabbitMQ server"
tag: "haproxy"
# Optional tagstyle
# Same styling options as the optional message.
tagstyle: "is-success"
url: "#"
- name: "Monitoring"
icon: "fas fa-heartbeat"