Travis build: 138 [cron]
This commit is contained in:
@ -49,9 +49,7 @@
|
||||
.content-box {
|
||||
box-sizing: content-box;
|
||||
}
|
||||
</code></pre> <h4>Demo</h4> <div class="snippet-demo" data-scope="box-sizing-reset.md"> <div class="box">border-box</div> <div class="box content-box">content-box</div> </div> <h4>Explanation</h4> <ol> <li><code>box-sizing: border-box</code> makes the addition of <code>padding</code> or <code>border</code>s not affect an element's <code>width</code> or <code>height</code>.</li> <li><code>box-sizing: inherit</code> makes an element respect its parent's <code>box-sizing</code> rule.</li> </ol> <h4>Browser support</h4> <div> <div class="snippet__browser-support"> 95.9% </div> </div> <p><span class="snippet__support-note">✅ No caveats.</span></p> <ul> <li><a href="https://caniuse.com/#feat=css3-boxsizing" target="_blank">https://caniuse.com/#feat=css3-boxsizing</a></li> </ul> </div> <div class="snippet"> <h3 id="button-border-animation"><span>Button border animation</span><span class="tags__tag snippet__tag" data-type="animation"><i data-feather="loader"></i>animation</span></h3> <p>Creates a border animation on hover.</p> <h4 data-type="HTML">HTML</h4><pre><code class="lang-html"><div class="button-border">
|
||||
<button class="button">Submit</button>
|
||||
</div>
|
||||
</code></pre> <h4>Demo</h4> <div class="snippet-demo" data-scope="box-sizing-reset.md"> <div class="box">border-box</div> <div class="box content-box">content-box</div> </div> <h4>Explanation</h4> <ol> <li><code>box-sizing: border-box</code> makes the addition of <code>padding</code> or <code>border</code>s not affect an element's <code>width</code> or <code>height</code>.</li> <li><code>box-sizing: inherit</code> makes an element respect its parent's <code>box-sizing</code> rule.</li> </ol> <h4>Browser support</h4> <div> <div class="snippet__browser-support"> 95.9% </div> </div> <p><span class="snippet__support-note">✅ No caveats.</span></p> <ul> <li><a href="https://caniuse.com/#feat=css3-boxsizing" target="_blank">https://caniuse.com/#feat=css3-boxsizing</a></li> </ul> </div> <div class="snippet"> <h3 id="button-border-animation"><span>Button border animation</span><span class="tags__tag snippet__tag" data-type="animation"><i data-feather="loader"></i>animation</span></h3> <p>Creates a border animation on hover.</p> <h4 data-type="HTML">HTML</h4><pre><code class="lang-html"><div class="button-border"><button class="button">Submit</button></div>
|
||||
</code></pre> <h4 data-type="CSS">CSS</h4><pre><code class="lang-css">.button {
|
||||
background-color: #c47135;
|
||||
border: none;
|
||||
@ -87,7 +85,7 @@
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
</code></pre> <h4>Demo</h4> <div class="snippet-demo" data-scope="button-border.md"> <div class="button-border"> <button class="button">Submit</button> </div> </div> <h4>Explanation</h4> <p>Use the <code>:before</code> and <code>:after</code> pseduo-elements as borders that animate on hover.</p> <h4>Browser support</h4> <div> <div class="snippet__browser-support"> 99+% </div> </div> <p><span class="snippet__support-note">✅ No caveats.</span></p> </div> <div class="snippet"> <h3 id="calc"><span>Calc()</span><span class="tags__tag snippet__tag" data-type="other"><i data-feather="tag"></i>other</span></h3> <p>The function calc() allows to define CSS values with the use of mathematical expressions, the value adopted for the property is the result of a mathematical expression.</p> <h4 data-type="HTML">HTML</h4><pre><code class="lang-html"><div class="box-example"></div>
|
||||
</code></pre> <h4>Demo</h4> <div class="snippet-demo" data-scope="button-border.md"> <div class="button-border"><button class="button">Submit</button></div> </div> <h4>Explanation</h4> <p>Use the <code>:before</code> and <code>:after</code> pseduo-elements as borders that animate on hover.</p> <h4>Browser support</h4> <div> <div class="snippet__browser-support"> 99+% </div> </div> <p><span class="snippet__support-note">✅ No caveats.</span></p> </div> <div class="snippet"> <h3 id="calc"><span>Calc()</span><span class="tags__tag snippet__tag" data-type="other"><i data-feather="tag"></i>other</span></h3> <p>The function calc() allows to define CSS values with the use of mathematical expressions, the value adopted for the property is the result of a mathematical expression.</p> <h4 data-type="HTML">HTML</h4><pre><code class="lang-html"><div class="box-example"></div>
|
||||
</code></pre> <h4 data-type="CSS">CSS</h4><pre><code class="lang-css">.box-example {
|
||||
height: 280px;
|
||||
background: #222 url('https://image.ibb.co/fUL9nS/wolf.png') no-repeat;
|
||||
|
||||
@ -242,9 +242,7 @@
|
||||
<div class="snippet">
|
||||
<h3 id="button-border-animation"><span>Button border animation</span><span class="tags__tag snippet__tag" data-type="animation"><i data-feather="loader"></i>animation</span></h3>
|
||||
<p>Creates a border animation on hover.</p>
|
||||
<h4 data-type="HTML">HTML</h4><pre><code class="lang-html"><div class="button-border">
|
||||
<button class="button">Submit</button>
|
||||
</div>
|
||||
<h4 data-type="HTML">HTML</h4><pre><code class="lang-html"><div class="button-border"><button class="button">Submit</button></div>
|
||||
</code></pre>
|
||||
<h4 data-type="CSS">CSS</h4><pre><code class="lang-css">.button {
|
||||
background-color: #c47135;
|
||||
@ -284,9 +282,7 @@
|
||||
</code></pre>
|
||||
<h4>Demo</h4>
|
||||
<div class="snippet-demo" data-scope="button-border.md">
|
||||
<div class="button-border">
|
||||
<button class="button">Submit</button>
|
||||
</div>
|
||||
<div class="button-border"><button class="button">Submit</button></div>
|
||||
</div>
|
||||
<style>[data-scope="button-border.md"] .button {
|
||||
background-color: #c47135;
|
||||
|
||||
Reference in New Issue
Block a user