From 4387591661c8511f607e0eb6a4abaf4d7563be1f Mon Sep 17 00:00:00 2001 From: Ro Date: Wed, 24 Jun 2020 22:30:46 -0700 Subject: [PATCH] dash index item style and layout tweaks --- brain/views/partials/front.pug | 5 ++++- src/styles/main/_index.styl | 36 ++++++++++++++++++++++------------ 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/brain/views/partials/front.pug b/brain/views/partials/front.pug index e5b8ce7..1cb6df1 100644 --- a/brain/views/partials/front.pug +++ b/brain/views/partials/front.pug @@ -15,7 +15,7 @@ - for ( index; index < pages.length; index++) a.post-link(href="/@/dashboard/page/edit/"+pages[index].page.metadata.uuid id=pages[index].page.metadata.uuid style="background:url("+pages[index].page.metadata.feature+") no-repeat center center / cover") div - span= pages[index].date + label= pages[index].page.metadata.title #options - var menu = String(pages[index].page.metadata.menu) @@ -24,4 +24,7 @@ span.item-options(data-active=menu) MENU ITEM span.item-options(data-active=published) PUBLISHED span.item-options(data-active=featured) FEATURED + span= pages[index].date + + diff --git a/src/styles/main/_index.styl b/src/styles/main/_index.styl index f4172b9..152b060 100644 --- a/src/styles/main/_index.styl +++ b/src/styles/main/_index.styl @@ -122,50 +122,62 @@ position relative label - font-size 1.2em + font-size 1.4em font-weight 700 - color $primary - 60% + color $white padding 5px vertical-align top display inline-block word-wrap break-word width 100% text-align center + text-drop-shadow($black, 1, 2px, 2px, 0) span vertical-align top - width 100% - display inline-block + margin 0 auto + width 300px + display block font-family $monoType font-size 0.5em padding 7px - color $primary - 60% + color $white text-align: center + //background $primary - 60% + border-radius 0 0 3px 3px div width 100% - background $white position absolute bottom 0 border-radius 0 0 3px 3px + //background-opacity($black, .35) + /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.65+100 */ + background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%); /* FF3.6-15 */ + background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%); /* Chrome10-25,Safari5.1-6 */ + background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ + #options - display inline-block + display block vertical-align: top - width: 100% + width 300px position relative text-align: center + margin 0 auto + background none + .item-options + border-radius 3px + margin 5px + display inline-block .item-options[data-active='false'] width 65px background $primary - 60% color $white - border-radius 3px - margin 5px + .item-options[data-active='true'] width 70px background $tertiary + 50% color $primary - 60% - border-radius 3px - margin 5px a:nth-child(3) width 100%