Skip to content

Commit

Permalink
Half ifnished single and blog page
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsetyono committed Mar 21, 2020
1 parent 93abea0 commit fe0594b
Show file tree
Hide file tree
Showing 31 changed files with 1,782 additions and 862 deletions.
5 changes: 1 addition & 4 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
// If post category
if( is_category() ) {
$context['term'] = $query;
$context['blog_nav'] = new TimberMenu( 'blog-nav' );
}
// If custom taxonomy page
elseif( is_tax() ) {
Expand All @@ -29,9 +28,7 @@
}
// If author page
elseif( is_author() ) {
$avatar_url = get_avatar_url( $query->ID );
$context['title'] = "<img src='{$avatar_url}'> <small>Posts by</small> {$query->display_name}";
$context['description'] = "{$context['description']} \n \n {$query->user_url}";
$context['author'] = new Timber\User( $query->ID );
}


Expand Down
2 changes: 1 addition & 1 deletion assets/css/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/framework.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/header.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/my-admin.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
EDJE Functional Sass v3.1.0
Documentation: https://github.com/hrsetyono/edje/wiki
*/.ct-layer-content{padding-bottom:0}.ct-layer-content .ct-control{margin-top:0;padding:12px !important}.ct-layer-content [data-design="inline"] .ct-option-input{max-width:150px}
*/.ct-layer-content{padding-bottom:0}.ct-layer-content .ct-control{margin-top:0;padding:12px !important}.ct-layer-content [data-design="inline"] .ct-option-input{max-width:150px}.ct-control[data-design="block"] .ct-option-number{margin-left:auto}
1 change: 0 additions & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ var myHeader = {
},

closeOffCanvas( e ) {
e.preventDefault();
$('body.has-active-offcanvas').removeClass( 'has-active-offcanvas' );
},

Expand Down
1 change: 0 additions & 1 deletion assets/sass/app.sass
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@
@import "app/blocks-widget-embed"
@import "app/blocks-custom"
@import "app/features"

2 changes: 1 addition & 1 deletion assets/sass/app/_blocks.sass
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ article
.wp-block-column
> *
margin: 0 auto
max-width: var(--siteWidth)
max-width: var(--blogWidth)

> * + *
margin-top: 1.5rem
Expand Down
34 changes: 30 additions & 4 deletions assets/sass/framework.sass
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
@import "_edje-v4/output-grid"
@import "_edje-v4/output-typography"

@import "framework/blog"
@import "framework/post"
@import "framework/post-single"
@import "framework/post-archive"
@import "framework/jetpack"
@import "framework/cf7"

Expand Down Expand Up @@ -84,7 +86,7 @@
--buttonColor: var(--textInvert)
--buttonColorHover: var(--buttonColor)
--buttonBorder: 1px solid rgba(0,0,0,.2)
--buttonFontSize: 18px
--buttonFontSize: 16px

// INPUT
--inputBg: var(--textInvert)
Expand All @@ -98,6 +100,7 @@
// OTHER
--adminBarSize: 32px
// --postsPerRow: 3

// RESPONSIVE
Expand All @@ -123,6 +126,12 @@
// --h5Size : 18px
// --h6Size : var(--fontSize)
// --postsPerRow: 2
@media ($below-xs)
\:root
// --postsPerRow: 1


///// BUTTON /////
Expand All @@ -142,6 +151,9 @@
border-radius: var(--gRadius)

text-decoration: none
text-transform: uppercase
letter-spacing: 0.025em
font-weight: var(--hFontWeight)
font-size: var(--buttonFontSize)
color: var(--buttonColor)
vertical-align: top
Expand Down Expand Up @@ -200,24 +212,38 @@
.button--outline,
.is-style-outline a
--buttonBg: transparent
--buttonBorder: 1px solid
--buttonBgHover: transparent
--buttonBorder: 2px solid
--buttonColor: var(--main)
--buttonColorHover: var(--main)

.button--transparent,
.is-style-transparent a
--buttonBg: transparent
--buttonBgHover: var(--main)
--buttonBorder: none
--buttonColor: var(--main)
--buttonColorHover: var(--textInvert)

margin-left: -0.5rem
padding-right: 0.5rem
padding-left: 0.5rem


// loading button
.button--passive,
.button--loading
--buttonBg: var(--textDim)
--buttonBorder: 1px solid
--buttonColor: var(--textDim)
--buttonColor: var(--textInvert)


.button--loading
cursor: not-allowed
background-position: center center
background-repeat: no-repeat
background-image: image-url("spinner.gif")

color: transparent !important


Expand Down
Loading

0 comments on commit fe0594b

Please sign in to comment.