Skip to content

Commit

Permalink
Merge pull request #74 from WPMedia/TMEDIA-270-remove-css-correspondi…
Browse files Browse the repository at this point in the history
…ng-docs-override

Tmedia 270 remove css corresponding docs override
  • Loading branch information
Jack Howard authored Jul 19, 2021
2 parents 5b6f9b6 + ed59f19 commit 69deb2e
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 3 deletions.
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Include as an dependency in a custom block:

- Fusion will then inject these overrides and framework. Set the following in the feature pack's blocks.json:

NOTE: sassVariableOverrides is deprecated in favor of using site-specific js values using styled-components

`feature-pack/blocks.json`
```json
{
Expand Down
2 changes: 2 additions & 0 deletions scss/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

// Base Colors for the theme.
//
// NOTE: This is being deprecated. We are in the process of improving enhanced styles and using styled-components to achieve this composition.
//
// $primary-color - #1B6FA6; Primary color
// $secondary-color - #1B6FA6; Placeholder for the future
// $success-color - #00A321; Success color
Expand Down
2 changes: 2 additions & 0 deletions scss/homepage.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ purpose:

Here is an example of what a the CSS setup in the `block.json` might look like.

NOTE: sassVariableOverrides is deprecated in favor of using site-specific js values using styled-components

```
{
"cssFramework": "@wpmedia/news-theme-css",
Expand Down
2 changes: 1 addition & 1 deletion scss/typography/_index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Typography
//
// The primary and secondary font families can be overridden per website using the [Theme Settings](https://redirector.arcpublishing.com/alc/arc-products/themes/user-docs/theme-settings/) `primary-font-family` and `secondary-font-family`, respectively.
// This is now deprecated. Instead, we recommend using site-specific values and a default font value. We use styled-components to ensure this is dynamic. The primary and secondary font families can be overridden per website using the [Theme Settings](https://redirector.arcpublishing.com/alc/arc-products/themes/user-docs/theme-settings/) `primary-font-family` and `secondary-font-family`, respectively.
//
// Styleguide 5.0.0

Expand Down
1 change: 1 addition & 0 deletions styleguide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ <h3>Getting Started:</h3>
</table>
<h4>Example</h4>
<p>Here is an example of what a the CSS setup in the <code>block.json</code> might look like.</p>
<p>NOTE: sassVariableOverrides is deprecated in favor of using site-specific js values using styled-components</p>
<pre class="hljs"><code class="language-">{
&quot;cssFramework&quot;: &quot;@wpmedia/news-theme-css&quot;,
&quot;cssImport&quot;: &quot;~@wpmedia/news-theme-css/scss/index&quot;,
Expand Down
4 changes: 4 additions & 0 deletions styleguide/item-3-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ <h2 class="kss-section__item kss-section__item--depth-2">
</h2>
</a>

<div
class="kss-section__description">
<p>NOTE: This is being deprecated. We are in the process of improving enhanced styles and using styled-components to achieve this composition.</p>
</div>

<ul class="kss-parameters">
<li class="kss-parameters__item">
Expand Down
2 changes: 1 addition & 1 deletion styleguide/item-5.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ <h1 class="kss-section__item kss-section__item--depth-1">

<div
class="kss-section__description">
<p>The primary and secondary font families can be overridden per website using the <a href="https://redirector.arcpublishing.com/alc/arc-products/themes/user-docs/theme-settings/">Theme Settings</a> <code>primary-font-family</code> and <code>secondary-font-family</code>, respectively.</p>
<p>This is now deprecated. Instead, we recommend using site-specific values and a default font value. We use styled-components to ensure this is dynamic. The primary and secondary font families can be overridden per website using the <a href="https://redirector.arcpublishing.com/alc/arc-products/themes/user-docs/theme-settings/">Theme Settings</a> <code>primary-font-family</code> and <code>secondary-font-family</code>, respectively.</p>
</div>

</article>
Expand Down
4 changes: 4 additions & 0 deletions styleguide/section-3.html
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ <h2 class="kss-section__item kss-section__item--depth-2">
</h2>
</a>

<div
class="kss-section__description">
<p>NOTE: This is being deprecated. We are in the process of improving enhanced styles and using styled-components to achieve this composition.</p>
</div>

<ul class="kss-parameters">
<li class="kss-parameters__item">
Expand Down
2 changes: 1 addition & 1 deletion styleguide/section-5.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ <h1 class="kss-section__item kss-section__item--depth-1">

<div
class="kss-section__description">
<p>The primary and secondary font families can be overridden per website using the <a href="https://redirector.arcpublishing.com/alc/arc-products/themes/user-docs/theme-settings/">Theme Settings</a> <code>primary-font-family</code> and <code>secondary-font-family</code>, respectively.</p>
<p>This is now deprecated. Instead, we recommend using site-specific values and a default font value. We use styled-components to ensure this is dynamic. The primary and secondary font families can be overridden per website using the <a href="https://redirector.arcpublishing.com/alc/arc-products/themes/user-docs/theme-settings/">Theme Settings</a> <code>primary-font-family</code> and <code>secondary-font-family</code>, respectively.</p>
</div>

</article>
Expand Down

0 comments on commit 69deb2e

Please sign in to comment.