turned off date picker, cleaned up page edit UI

pull/20/head
Ro 4 years ago
parent c2517997c7
commit bd15252475

@ -18,34 +18,33 @@ block main-content
use(xlink:href='/assets/images/global/sprite.svg#entypo-image-inverted') use(xlink:href='/assets/images/global/sprite.svg#entypo-image-inverted')
#featured-image-drop #featured-image-drop
img#featured-image(src=page.feature) img#featured-image(src=page.feature)
#post-header.columns #post-header
#post-header-wrapper.columns
#post-title.column #post-title.column
label TITLE
textarea(id="post_title" type='text', name='post_title' class='post-edit', placeholder='title', required, autofocus) textarea(id="post_title" type='text', name='post_title' class='post-edit', placeholder='title', required, autofocus)
=page.title =page.title
#calendar-icon
label CREATED
br
span= date
//#calendar-icon
svg(viewBox="0 0 20 20" class="icons") svg(viewBox="0 0 20 20" class="icons")
use(xlink:href='/assets/images/global/sprite.svg#entypo-calendar') use(xlink:href='/assets/images/global/sprite.svg#entypo-calendar')
input(id="post-date" type="text" value=date data-raw=rawDate) //input(id="post-date" type="text" value=date data-raw=rawDate)
#post-options
button#option-menu-pin.option-inactive.post-option-btn(data-active= status[0])
svg#option-page-icon(viewBox="0 0 20 20" class="icons")
use#option-page-icon(xlink:href='/assets/images/global/sprite.svg#entypo-pin')
button#option-feature.option-inactive.post-option-btn(data-active= status[1])
svg#option-feature-icon(viewBox="0 0 20 20" class="icons")
use#option-feature-icon(xlink:href='/assets/images/global/sprite.svg#entypo-star')
button#option-published.option-inactive.post-option-btn(data-active= status[2])
svg#option-published-icon(viewBox="0 0 20 20" class="icons")
use#option-published-icon(xlink:href='/assets/images/global/sprite.svg#entypo-globe')
button#option-preview.option-inactive(data-active="false")
svg#option-preview-icon(viewBox="0 0 20 20" class="icons")
use#option-preview-icon(xlink:href='/assets/images/global/sprite.svg#entypo-eye')
#post-meta.column #post-meta.column
label TAGS
textarea(id='post_tags' type='text', name='post_tags' class='form-control', placeholder='tags [comma seperated]', autofocus) textarea(id='post_tags' type='text', name='post_tags' class='form-control', placeholder='tags [comma seperated]', autofocus)
=page.tags =page.tags
include partials/editor // file inputs for image uploads
label OPTIONS
br
include partials/options
input(id="featured-image-upload" type="file" name="featured-image-upload") input(id="featured-image-upload" type="file" name="featured-image-upload")
input(id="post-image-upload" type="file" name="post-image-upload") input(id="post-image-upload" type="file" name="post-image-upload")
#edit-post #edit-post
include partials/editor
#edit-post-wrapper #edit-post-wrapper
pre pre
code#edit-post-text(contenteditable="true") !{content} code#edit-post-text(contenteditable="true") !{content}

@ -0,0 +1,13 @@
#post-options
button#option-menu-pin.option-inactive.post-option-btn(data-active= status[0])
svg#option-page-icon(viewBox="0 0 20 20" class="icons")
use#option-page-icon(xlink:href='/assets/images/global/sprite.svg#entypo-pin')
button#option-feature.option-inactive.post-option-btn(data-active= status[1])
svg#option-feature-icon(viewBox="0 0 20 20" class="icons")
use#option-feature-icon(xlink:href='/assets/images/global/sprite.svg#entypo-star')
button#option-published.option-inactive.post-option-btn(data-active= status[2])
svg#option-published-icon(viewBox="0 0 20 20" class="icons")
use#option-published-icon(xlink:href='/assets/images/global/sprite.svg#entypo-globe')
button#option-preview.option-inactive(data-active="false")
svg#option-preview-icon(viewBox="0 0 20 20" class="icons")
use#option-preview-icon(xlink:href='/assets/images/global/sprite.svg#entypo-eye')

@ -61,12 +61,14 @@ export default class PostEditor {
}, },
false false
); );
/*
TinyDatePicker(document.getElementById('post-date'), { TinyDatePicker(document.getElementById('post-date'), {
mode: 'dp-below', mode: 'dp-below',
format() { format() {
//return self.dateUtils.getDate('origin', date); //return self.dateUtils.getDate('origin', date);
} }
}); });
*/
this.start(); this.start();
} }

@ -4,7 +4,8 @@
border-radius 3px border-radius 3px
// background-opacity($primary - 10%, 0.50) // background-opacity($primary - 10%, 0.50)
width 100% width 100%
max-width 425px max-width 880px
margin-top 30px
z-index 2000 z-index 2000
button:nth-child(1) button:nth-child(1)

@ -76,18 +76,29 @@
#post-header #post-header
// width 100% // width 100%
background $highlight
#post-header-wrapper
max-width 900px max-width 900px
margin 0 auto margin 0 auto
padding 0.75rem padding 0.75rem
label
color: $white
font-size: 0.8em
font-family $monoType
font-weight 600
span
color color $primary - 60%
font-size 1.5em
#post-title #post-title
#post_title #post_title
background $primary - 4% background $highlight + 10%
font-family $baseType font-family $baseType
width 97.6% width 97.6%
height 80px height 80px
font-size 1.5em font-size 2em
color $white color $primary - 60%
padding 5px padding 5px
margin 0 0 5px 0 margin 0 0 5px 0
@ -108,11 +119,21 @@
padding 5.2px padding 5.2px
color $secondary color $secondary
#post-meta
#post_tags
background $highlight + 10%
font-family $baseType
width 97.6%
height 80px
color $primary - 60%
padding 5px
margin 0 0 5px 0
#post-options #post-options
display inline-block display inline-block
vertical-align top vertical-align top
width 49% width 100%
padding 0 0 0 3px padding 0
button:nth-child(1) button:nth-child(1)
border-radius 3px 0 0 3px border-radius 3px 0 0 3px
@ -131,26 +152,16 @@
text-align center text-align center
button[data-active='false'] button[data-active='false']
background $secondary background $primary - 60%
svg svg
fill $primary fill $white
button[data-active='true'] button[data-active='true']
background $tertiary background $tertiary + 50%
svg svg
fill $tertiary - 70% fill $primary - 60%
#post-meta
#post_tags
background $primary - 4%
font-family $baseType
width 97.6%
height 80px
color $secondary
padding 5px
margin 0 0 5px 0
#featured-image-upload, #post-image-upload #featured-image-upload, #post-image-upload
display none display none
@ -197,8 +208,8 @@
//width 98.7% //width 98.7%
max-width 900px max-width 900px
border-radius 5px border-radius 5px
background $primary - 10% //background $primary - 10%
margin-bottom: 40px margin: 40px 0 40px 0
overflow hidden overflow hidden
pre pre

Loading…
Cancel
Save