Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
1e47d5d
Add - Block Style CSS
Sakxi Jun 23, 2020
7dfe56e
Update - Block Style CSS
Sakxi Jun 23, 2020
71dff91
Update - Enqueue google fonts and editor styles
Sakxi Jun 23, 2020
d2ff582
Update - Responsive CSS for large screen
Sakxi Jun 24, 2020
7e420db
Update - Responsive CSS for small screen
Sakxi Jun 24, 2020
cc8eb36
Update - Gutenberg alignwide CSS
Sakxi Jun 24, 2020
1addce8
Update - Compile Sass into CSS
Sakxi Jun 24, 2020
536eaed
Update - Comment browerSyncReload
Sakxi Jun 24, 2020
f464ba4
Update - Changes in table header
Sakxi Jul 2, 2020
361ed2b
Update - Gutenberg block layout design and social links
Sakxi Jul 2, 2020
6172990
Add - Social link color
Sakxi Jul 2, 2020
23f1744
Add - Alignfull and alignwide CSS for max width
Sakxi Jul 2, 2020
6ec5027
Add - CSS for box layout
Sakxi Jul 2, 2020
3040cdd
Fix - CSS for alignwide and alignfull
Sakxi Jul 2, 2020
66ec586
Add - CSS for gutenberg compatibility
Sakxi Jul 2, 2020
9514254
Update - Compiled SCSS file
Sakxi Jul 2, 2020
d37071a
Add - Gutenberg blocks layout
Sakxi Jul 2, 2020
fdd6e6d
Fix - Fixing of codes in table
Sakxi Jul 3, 2020
aaba92d
Remove - Repeat code removed
Sakxi Jul 3, 2020
d62ad8c
Add - Alginwide and alignfull css
Sakxi Jul 3, 2020
acb4f7d
Tweak - Changes in blockquote
Sakxi Jul 3, 2020
d14e141
Update - Blockquote changes in CSS
Sakxi Jul 3, 2020
ebb0441
Update - Remaing gutenberg block CSS added
Sakxi Jul 3, 2020
d29cf2f
Update - Compiled Sass into CSS
Sakxi Jul 3, 2020
01e63f8
Remove - line space and arranged indentation
Sakxi Jul 6, 2020
9cdb816
Update - Alignwide CSS
Sakxi Jul 6, 2020
78acbbc
Update - Gutenberg alignwide scss modified
Sakxi Jul 6, 2020
1896d2a
Update - New line space managed
Sakxi Jul 6, 2020
0b3c6e9
Update - Compiled Scss into CSS
Sakxi Jul 6, 2020
0a6c09d
Update - Compile Sass into CSS
Sakxi Jul 7, 2020
709d4a6
Update - Changed pixel for alignfull
Sakxi Jul 7, 2020
1ae52e0
Update - Arranged gutenberg selector indentation
Sakxi Jul 7, 2020
b9eab31
Remove - Unnecessary code removed
Sakxi Jul 7, 2020
0f0d37b
Update - Minimum width size added
Sakxi Jul 7, 2020
eaaf828
Update - Remove unnecessary code
Sakxi Jul 7, 2020
9d5bf85
Update - Code indentaion managed and alignfull pixel update
Sakxi Jul 7, 2020
19f96aa
Update - Compiled CSS
Sakxi Jul 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions assets/sass/elements/_tables.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
table,
th,
td {
td,
.wp-block-table th,
.wp-block-table td {
border: 1px solid #D1D1D1;
}

Expand All @@ -16,21 +18,27 @@ table {

caption,
th,
td {
td,
.wp-block-table th,
.wp-block-table td {
font-weight: normal;
text-align: left;
}

th {
th,
.wp-block-table th {
border-width: 0 1px 1px 0;
font-weight: 700;
}

td {
td,
.wp-block-table td {
border-width: 0 1px 1px 0;
}

th,
td {
td,
.wp-block-table th,
.wp-block-table td {
padding: 0.4375em;
}
18 changes: 18 additions & 0 deletions assets/sass/media/_galleries.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,21 @@
.gallery-caption {
display: block;
}

ul.wp-block-gallery {
padding: 0;
}

.wp-block-gallery ul.blocks-gallery-grid img,
ul.wp-block-gallery img {
margin-bottom: 0;
}

/* Gutenberg Blocks Layout.
--------------------------------------------------------------*/
.wp-block-gallery.alignleft, .wp-block-gallery.alignright, .wp-block-gallery.aligncenter,
.wp-block-social-links.alignleft,
.wp-block-social-links.alignright,
.wp-block-social-links.aligncenter {
display: flex;
}
4 changes: 4 additions & 0 deletions assets/sass/navigations/_menus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1073,3 +1073,7 @@
.clients-all-content .bx-next {
right: 0;
}

.wp-social-link svg {
color: #ffffff;
}
22 changes: 15 additions & 7 deletions assets/sass/responsive/_large.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
@media screen and ( max-width: 1200px ) {
.full-width {
.alignwide {
.full-width #primary .entry-content > .alignwide
{
margin-left: -10px;
margin-right: -10px;
}
}
}


@media screen and (max-width: 1400px) and (min-width: 1200px) {
.full-width #primary .entry-content > .alignwide {
margin-left: -30px;
margin-right: -30px;
}

.full-width #primary .entry-content > .alignfull {
margin-left: -50px;
margin-right: -50px;
}
}
@media screen and ( min-width: 992px ) {
/* Make sticky header on desktop */
.header-sticky-desktop {
Expand All @@ -22,8 +32,6 @@
}
}



@media ( min-width: 768px ) {

/* Only make slider full viewport height on larger devices */
Expand All @@ -34,4 +42,4 @@
}
}
}
}
}
30 changes: 22 additions & 8 deletions assets/sass/responsive/_small.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,19 +143,32 @@

@media screen and ( max-width: 600px ) {
.full-width {
.alignwide {
margin-left: 0;
margin-right: 0;
}
#primary {
.entry-content {

> .alignwide {
margin-left: 0;
margin-right: 0;
}
}
}
&.boxed {
.alignwide {
margin-left: 0;
margin-right: 0;

.site-content {
overflow: hidden;
}

#primary {

.entry-content {

> .alignwide {
margin-left: 0;
margin-right: 0;
}
}
}
}
}
}

@media screen and ( max-width: 480px ) {
Expand Down Expand Up @@ -250,3 +263,4 @@
}
}
}
}
50 changes: 36 additions & 14 deletions assets/sass/site/primary/_posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -420,33 +420,55 @@
= Gutenberg AlignWide =
====================================*/
.full-width {
.alignfull {
margin-left: calc(50% - 49.5vw);
margin-right: calc(50% - 49.5vw);
max-width: unset;
#primary {
.entry-content {

img {
max-width: unset;
}
}
> .alignfull {
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
max-width: unset;

.alignwide {
&.wp-block-cover,
&.wp-block-cover-image {
width: unset;
}
}

> .alignwide {
margin-left: -60px;
margin-right: -60px;
max-width: unset;
}

}
}
&.boxed {
#content {
overflow: hidden;
}

.alignwide {
margin-left: -60px;
margin-right: -60px;
#primary {

.entry-content {

> .alignfull {
margin-left: -15px;
margin-right: -15px;

&.wp-block-cover,
&.wp-block-cover-image {
width: unset;
}
}

> .alignwide {
margin-left: -15px;
margin-right: -15px;
max-width: unset;
}
}
}

}
}

/*===== End of Gutenberg AlignWide ======*/
/*===== End of Gutenberg AlignWide ======*/
5 changes: 4 additions & 1 deletion assets/sass/typography/_copy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ p {
}


blockquote {
blockquote,
.wp-block-quote,
.wp-block-quote.is-style-large,
.wp-block-quote.has-text-align-right {
font-family: georgia, "Times New Roman", cursive;
font-size: 16px;
border-left: 3px solid $color-gray-lighten;
Expand Down
23 changes: 22 additions & 1 deletion editor-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ p {
line-height: 24px;
}

blockquote {
blockquote,
.wp-block-quote,
.wp-block-quote.is-style-large,
.wp-block-quote.has-text-align-right {
font-family: georgia, "Times New Roman", cursive;
font-size: 16px;
border-left: 3px solid #E5E4E6;
Expand Down Expand Up @@ -421,6 +424,24 @@ h6 {
display: block;
}

ul.wp-block-gallery {
padding: 0;
}

.wp-block-gallery ul.blocks-gallery-grid img,
ul.wp-block-gallery img {
margin-bottom: 0;
}

/* Gutenberg Blocks Layout.
--------------------------------------------------------------*/
.wp-block-gallery.alignleft, .wp-block-gallery.alignright, .wp-block-gallery.aligncenter,
.wp-block-social-links.alignleft,
.wp-block-social-links.alignright,
.wp-block-social-links.aligncenter {
display: flex;
}

/*---------- Media Elements ----------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
Expand Down
20 changes: 19 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,14 @@ function suffice_setup() {
*/
add_editor_style( array( 'editor-style.css', suffice_fonts_url() ) );

// Gutenberg layout support.
// Gutenberg wide layout support.
add_theme_support( 'align-wide' );

// Gutenberg block styles support.
add_theme_support( 'wp-block-styles' );

// Gutenberg responsive embeds support.
add_theme_support( 'responsive-embeds' );
}
endif;
add_action( 'after_setup_theme', 'suffice_setup' );
Expand Down Expand Up @@ -256,6 +261,7 @@ function suffice_scripts() {
wp_enqueue_style( 'perfect-scrollbar', get_template_directory_uri() . '/assets/css/perfect-scrollbar' . $suffix . '.css', array(), '0.6.16' );
wp_enqueue_style( 'suffice-style', get_stylesheet_uri() );


/* Scripts */
wp_enqueue_script( 'suffice-skip-link-focus-fix', get_template_directory_uri() . '/assets/js/skip-link-focus-fix.js', array(), '20151215', true );
wp_enqueue_script( 'swiper', get_template_directory_uri() . '/assets/js/swiper.jquery' . $suffix . '.js', array( 'jquery' ), '3.4.0', true );
Expand Down Expand Up @@ -289,6 +295,18 @@ function suffice_scripts() {

add_action( 'wp_enqueue_scripts', 'suffice_scripts' );

/**
* Enqueue Google fonts and editor styles.
*/

function suffice_block_editor_styles() {
wp_enqueue_style( 'suffice-editor-googlefonts', '//fonts.googleapis.com/css2?family=Open+Sans' );
wp_enqueue_style( 'suffice-block-editor-styles', get_template_directory_uri() . '/style-editor-block.css' );
}

add_action( 'enqueue_block_editor_assets', 'suffice_block_editor_styles', 1, 1 );


/**
* Adds css style for customizer ui
*/
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function makepotfile() {
function watch() {
gulp.watch( paths.styles.src, sassCompile );
gulp.watch( paths.adminscss.src, compileAdminSass );
gulp.watch( [paths.js.src, paths.php.src], browserSyncReload );
//gulp.watch( [paths.js.src, paths.php.src], browserSyncReload );
}

function deleteCSS() {
Expand Down
Loading