Skip to content

Commit

Permalink
Updated spacer colors 🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
actuallyakash committed Jun 27, 2021
1 parent 27c5edb commit b43a8c7
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 17 deletions.
74 changes: 59 additions & 15 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,49 +81,52 @@ <h2 class="text-center text-md-left">
<a class="nav-link" href="#element">element</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#padding">padding</a>
<a class="nav-link" href="#padding">padding</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#margin">margin</a>
<a class="nav-link" href="#margin">margin</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#defaultSpacing">defaultSpacing</a>
<a class="nav-link" href="#padding-margin">padding / Margin</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#defaultPadding">defaultPadding</a>
<a class="nav-link" href="#defaultSpacing">defaultSpacing</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#defaultMargin">defaultMargin</a>
<a class="nav-link" href="#defaultPadding">defaultPadding</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#spacingUnit">spacingUnit</a>
<a class="nav-link" href="#defaultMargin">defaultMargin</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#showOnHover">showOnHover</a>
<a class="nav-link" href="#spacingUnit">spacingUnit</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#appendHtml">appendHtml</a>
<a class="nav-link" href="#showOnHover">showOnHover</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#hideSpacingValue">hideSpacingValue</a>
<a class="nav-link" href="#appendHtml">appendHtml</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#showLabel">showLabel</a>
<a class="nav-link" href="#hideSpacingValue">hideSpacingValue</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#enableLock">enableLock</a>
<a class="nav-link" href="#showLabel">showLabel</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#lockIcon">lockIcon / unlockIcon</a>
<a class="nav-link" href="#enableLock">enableLock</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#containedArea">containedArea</a>
<a class="nav-link" href="#lockIcon">lockIcon / unlockIcon</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#spacerClass">spacerClass</a>
<a class="nav-link" href="#containedArea">containedArea</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#onDragEnd">onDragEnd</a>
<a class="nav-link" href="#spacerClass">spacerClass</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#onDragEnd">onDragEnd</a>
</li>
</ul>
<li class="nav-item">
Expand Down Expand Up @@ -266,6 +269,47 @@ <h2 class="docs-title">margin</h2>
</pre>
<p>Enables margin</p>
</div>

<div class="docs-section" id="padding-margin">
<h2 class="docs-title">padding / margin</h2>

<div class="row mb-3">
<div class="element col-6 col-md-4">
<div class="element-block padding-margin-prop">
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Eius, eveniet laudantium, sit soluta ipsum
reprehenderit libero eaque ex, unde nesciunt blanditiis itaque nemo exercitationem voluptates modi
et cumque quas. Aliquid.
</div>
</div>

<div class="element col-6 col-md-4">
<div class="element-block margin-prop">
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Eius, eveniet laudantium, sit soluta ipsum
reprehenderit libero eaque ex, unde nesciunt blanditiis itaque nemo exercitationem voluptates modi
et cumque quas. Aliquid.
</div>
</div>

<div class="element col-6 col-md-4">
<div class="element-block margin-prop">
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Eius, eveniet laudantium, sit soluta ipsum
reprehenderit libero eaque ex, unde nesciunt blanditiis itaque nemo exercitationem voluptates modi
et cumque quas. Aliquid.
</div>
</div>
</div>

<pre>
<code class="language-js">
spacers({
element: '.padding-margin-prop',
padding: true,
margin: true
});
</code>
</pre>
<p>Enables both padding & margin simultaneously.</p>
</div>

<div class="docs-section" id="defaultSpacing">
<h2 class="docs-title">defaultSpacing</h2>
Expand Down
6 changes: 6 additions & 0 deletions docs/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ spacers({
margin: true
});

spacers({
element: '.padding-margin-prop',
padding: true,
margin: true
});

spacers({
element: '.defaultSpacing-prop',
defaultSpacing: '10'
Expand Down
4 changes: 2 additions & 2 deletions spacers/spacers.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:root {
--spacer-size: 8px;
--padding-bg: plum;
--margin-bg: #463626;
--padding-bg: #c8ccd1d9;
--margin-bg: #1da1f22b;
}

/* Spacers Styling */
Expand Down

0 comments on commit b43a8c7

Please sign in to comment.