Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/pixelgrade/silk-lite
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Olaru committed May 1, 2020
2 parents 8ebbbca + 8f9edda commit 141c614
Show file tree
Hide file tree
Showing 7 changed files with 729 additions and 9 deletions.
110 changes: 110 additions & 0 deletions assets/scss/base/_gutenberg.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
.wp-block-separator.is-style-dots:before {
color: inherit;
}

.wp-block-separator {
border-bottom-color: currentColor;
margin: 1.5em auto;

&:not([class*="is-style"]) {
max-width: 100px;
}
}

.wp-block-audio[class] {
margin-left: 0;
margin-right: 0;

audio {
width: 100%;
}
}

.wp-block-cover[class][class] {
display: flex;
margin-top: 1.125em;
margin-bottom: 1.125em;

p {
position: relative;
transform: none;
margin-bottom: 0;
}
}

p.wp-block-subhead {
color: inherit;
}

.wp-block-code,
.wp-block-preformatted pre,
.wp-block-verse pre,
pre.wp-block-verse {
color: inherit;
}

.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit {
margin-right: 0;
margin-bottom: 0;
}

.wp-block-image .alignleft,
.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit > * {
margin-top: 3em;
margin-bottom: 3em;

@media only screen and (min-width: 899px) {
margin-right: 3em;
width: auto;
}
}

.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit {
margin-left: 0;
margin-bottom: 0;
}

.wp-block-image .alignright,
.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit > * {
margin-top: 3em;
margin-bottom: 3em;

@media only screen and (min-width: 899px) {
margin-left: 3em;
width: auto;
}
}

.wp-block-image .aligncenter > figcaption {
display: block;
}

figure.wp-block-pullquote {
border: 0;
padding: 0;
}

.wp-block-pullquote[class] p {
font: inherit;
}

.wp-block-quote__citation,
.wp-block-quote cite,
.wp-block-quote footer {
color: inherit;
}

.wp-block-image .aligncenter > figcaption,
.wp-block-image .alignleft > figcaption,
.wp-block-image .alignright > figcaption,
.wp-block-image.is-resized > figcaption {
display: block;
}

.wp-block-gallery[class] {
margin-left: 0;
}

a.wp-block-button__link[class] {
text-decoration: none;
}
93 changes: 93 additions & 0 deletions assets/scss/editor.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
@import "settings";

$editor-style: true;

@import "tools/functions";
@import "tools/mixins";
@import "tools/queries";
@import "tools/baseline";
@import "tools/aliases";

@import "trumps/bass";

.edit-post-visual-editor {
@import "base/type";
@import "base/images";
@import "trumps/specific";
@import "trumps/wp-align";

@import "base/gutenberg";

&.editor-styles-wrapper {
font-family: 'Merriweather', serif;
font-weight: 300;
font-size: 14px;
}

.block-editor-block-list__layout .wp-block,
.editor-post-title__block {
max-width: 850px;
}

.editor-post-title__input {
font-family: "Playfair Display", serif;
font-weight: normal;
font-style: italic;
@include query-above($lap) {
font-size: rem(60px);
}

@include query-below($small) {
font-size: rem(32px);
}

@include query-below($lap) {
margin-bottom: rem(12px);
}
}


.wp-block-html .editor-plain-text {
color: inherit;
}

.wp-block-quote,
.wp-block-pullquote {
color: inherit;
}

.wp-block-quote p {
font-size: 1em;
}

.wp-block-quote:not(.is-large):not(.is-style-large) {
padding-left: 0;
border-left: 0;
}

.wp-block-pullquote,
.wp-block-quote {

&.aligncenter,
&.alignnone,
&:not([class*="align"]) {

blockquote {
margin-left: 0;
margin-right: 0;
}
}

&.alignright blockquote {
padding-left: 0;
padding-right: 0;
margin-right: 0;
}

&.alignleft blockquote {
padding-left: 0;
padding-right: 0;
margin-left: 0;
}
}
}
8 changes: 5 additions & 3 deletions assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ Theme URI: https://github.com/pixelgrade/silk-lite
Author: Pixelgrade
Author URI: https://pixelgrade.com/
Description: An enchanting magazine style theme for fashion bloggers, prized for its smart layout and smooth animations. Whether you're looking to share your own thoughts, write about your latest findings or just have a scrapbook of photos, SILK is designed to fulfill these and a lot more.
Version: 1.4.0
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 4.9.9
Tested up to: 5.4.0
Text Domain: silk-lite
Domain Path: /languages/
Tags: translation-ready, theme-options, footer-widgets, featured-images, custom-menu, custom-colors, custom-background, custom-logo, grid-layout, two-columns, three-columns, four-columns, blog, entertainment, photography, rtl-language-support, post-formats, threaded-comments
Tags: translation-ready, theme-options, footer-widgets, featured-images, custom-menu, custom-colors, custom-background, custom-logo, grid-layout, two-columns, three-columns, four-columns, blog, entertainment, photography, rtl-language-support, post-formats, threaded-comments, block-styles
Silk Lite WordPress Theme, Copyright (C) 2017-2019, Pixelgrade.
Silk Lite WordPress Theme, Copyright (C) 2017-2020, Pixelgrade.
Silk Lite is distributed under the terms of the GNU GPL v2 or later.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Expand Down
Loading

0 comments on commit 141c614

Please sign in to comment.