<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jokova on Medium]]></title>
        <description><![CDATA[Stories by Jokova on Medium]]></description>
        <link>https://medium.com/@vasdekijoanna?source=rss-298ac05863ac------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*WT6j4zy6l1v_McpDT1dRPQ.jpeg</url>
            <title>Stories by Jokova on Medium</title>
            <link>https://medium.com/@vasdekijoanna?source=rss-298ac05863ac------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 19:00:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vasdekijoanna/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Laravel: Cron Job Task Scheduling in order to Store Data from API Call in Database]]></title>
            <link>https://medium.com/@vasdekijoanna/laravel-cron-job-task-scheduling-in-order-to-store-data-from-api-call-in-database-13e96e764475?source=rss-298ac05863ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/13e96e764475</guid>
            <dc:creator><![CDATA[Jokova]]></dc:creator>
            <pubDate>Sun, 22 Mar 2020 15:18:55 GMT</pubDate>
            <atom:updated>2020-03-22T15:26:40.559Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Developers! Hope this article finds you well these Corona Virus days we are getting through. Here in Greece, we are in quarantine for 10 days(~1 week) and we are keep going!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ALI7uSKo3ZoQQMtMekGexw.png" /><figcaption>Laravel Cron jobs, DB, Api</figcaption></figure><p>Today I decided to talk you about <strong>cron jobs</strong>, simple data retrieving with<strong> api call</strong> and <strong>databases</strong>/<strong>migration</strong>/<strong>new table</strong> and <strong>data storage. </strong>All of these with my beloved <strong>Laravel Framework.</strong></p><h3>How to Create a Cron Job?</h3><ol><li><strong>Create New Command</strong></li></ol><p>First of all we will create a new command for our cron job, go to your project and run the command below:</p><pre><strong>php artisan make:command CakeCron — command=cake:cron</strong></pre><p>Now go to the command’s file → <em>app/Console/Commands/CakeCron.php</em> you will find code in it but we will write some extra code. :)</p><p>Notice that all the good ‘things’ will take place in the handle() function.</p><pre>&lt;?php<br><strong>namespace</strong> App\Console\Commands;<br><strong>use</strong> Illuminate\Console\Command;</pre><pre><strong>class</strong> CakeCron <strong>extends</strong> Command<br>{</pre><pre>   /**<br>   * The name and signature of the console command.<br>   *<br>   * @var string<br>   */</pre><pre><strong>   protected</strong> $signature = &#39;cake:cron&#39;;</pre><pre>   /**<br>   * The console command description.<br>   *<br>   * @var string<br>   */</pre><pre><strong>   protected</strong> $description = &#39;Cake Command Executed Successfully!&#39;;<br>   //Description will be shown when the <strong>php artisan list</strong> command is executed.</pre><pre>  /**<br>  * Create a new command instance.<br>  *<br>  * @return void<br>  */</pre><pre><strong>  public</strong> <strong>function</strong> __construct()<br>  {<br>     parent::__construct();<br>  }</pre><pre>  /**<br>  * Execute the console command.<br>  *<br>  * @return mixed<br>  */</pre><pre><strong>  public</strong> <strong>function</strong> handle()<br>  {</pre><pre>    \Log::info(&quot;Cake Cron execution!&quot;);<br>    $this-&gt;info(&#39;Cake:Cron Command is working fine!&#39;);</pre><pre>  }</pre><pre>}</pre><p>Your task schedule is defined in the <em>app/Console/Kernel.php</em> file&#39;s schedule method. Laravel Task Scheduler allows you to execute periodically a command. Let’s <strong>add some code</strong> in the Kernel.php</p><pre>&lt;?php</pre><pre>namespace App\Console;</pre><pre>use Illuminate\Console\Scheduling\Schedule;<br>use Illuminate\Foundation\Console\Kernel as ConsoleKernel;</pre><pre>class Kernel extends ConsoleKernel<br>{<br>    /**<br>     * The Artisan commands provided by your application.<br>     *<br>     * <a href="http://twitter.com/var">@var</a> array<br>     */</pre><pre>    protected $commands = [<br>       <strong> \App\Console\Commands\CakeCron::class,</strong><br>    ];</pre><pre>   /**<br>     * Define the application&#39;s command schedule.<br>     *<br>     * <a href="http://twitter.com/param">@param</a>  \Illuminate\Console\Scheduling\Schedule  $schedule<br>     * <a href="http://twitter.com/return">@return</a> void<br>     */<br>    protected function schedule(Schedule $schedule)<br>    { <br>        <strong>$schedule-&gt;command(&#39;cake:cron&#39;)<br>            -&gt;hourly();</strong></pre><pre>    }</pre><pre>    /**<br>     * Register the Closure based commands for the application.<br>     *<br>     * <a href="http://twitter.com/return">@return</a> void<br>     */<br>    protected function commands()<br>    {<br>       <strong> $this-&gt;load(__DIR__.&#39;/Commands&#39;);</strong><br>        require base_path(&#39;routes/console.php&#39;);<br>    }<br>}</pre><p>As you can see, we told the kernel to run the command every hour.</p><p><strong>Schedule Frequency Options (Laravel Website: </strong><a href="https://laravel.com/docs/5.8/scheduling"><strong>see here</strong></a><strong>)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*ZnVHOYu60U-3LKBol82-Wg.png" /></figure><p>Now we want to ensure that the above code/stuff works, so we need to run one of the commands below:</p><p>a) For <strong>test purposes, </strong>run one of the commands below:</p><pre><strong>php artisan schedule:run</strong></pre><pre>OR</pre><pre><strong>php artisan cake:cron</strong></pre><p>b) See the list of Laravel commands — Check if your new cron command included in this list.</p><pre><strong>php artisan list</strong></pre><p>To see if it works, navigate to logs: <em>app/storage/logs/laravel-**-**-202*.log</em></p><p>Let’s go one step further.</p><h3>Task Scheduling</h3><p>When using the scheduler, you only need to add the following Cron entry to your server. You can find more about Task Scheduling in <a href="https://laravel.com/docs/scheduling">Laravel Documentation</a>.</p><pre><strong>Starting the Laravel Scheduler</strong></pre><pre>Go to your terminal, cd into your project and run this command: </pre><pre><strong>crontab -e</strong></pre><pre>after that press <strong>i</strong> in your keyboard in order to insert data, then paste the command below:</pre><pre><strong>* * * * * php /path-to-project/artisan schedule:run 1&gt;&gt; /dev/null 2&gt;&amp;1</strong></pre><pre>after that press <strong>ESC</strong> button and write <strong>:wq</strong> (if you want to save the changes)</pre><pre><strong>!!!*TIP*!!!:</strong> To get full path of your project, run <strong>pwd </strong>command.</pre><h3><strong>Create a new Table in our Database</strong></h3><pre><strong>php artisan make:migration create_cake --create=cake</strong></pre><p>With the --create you create a new table in your database (don’t use --table).</p><p>Go to <em>/database/migrations/2020_**_**_***_create_cake.php</em><br>and create the columns/fields of your new table!</p><pre>&lt;?php</pre><pre>use Illuminate\Support\Facades\Schema;<br>use Illuminate\Database\Schema\Blueprint;<br>use Illuminate\Database\Migrations\Migration;</pre><pre>class CreateCake extends Migration<br>{<br>    /**<br>     * Run the migrations.<br>     *<br>     * <a href="http://twitter.com/return">@return</a> void<br>     */<br>    public function up()<br>    {</pre><pre>        Schema::create(&#39;cake&#39;, function (Blueprint $table) {<br>            $table-&gt;bigIncrements(&#39;id&#39;);<br>            $table-&gt;json(&#39;name&#39;)-&gt;nullable();<br>            $table-&gt;dateTime(&#39;created_at&#39;);<br>        });<br>    }</pre><pre>/**<br>     * Reverse the migrations.<br>     *<br>     * <a href="http://twitter.com/return">@return</a> void<br>     */<br>    public function down()<br>    {<br>        Schema::create(&#39;cake&#39;, function (Blueprint $table) {<br>            $table-&gt;dropColumn(&#39;id&#39;);<br>            $table-&gt;dropColumn(&#39;name&#39;);<br>            $table-&gt;dropColumn(&#39;created_at&#39;);<br>        });<br>    }<br>}</pre><p>After that run:</p><pre><strong>php artisan migrate</strong></pre><p>If you get any errors, go to <em>.env file</em> and check if <strong>DB_HOST=locahos</strong>t change it to → <strong>DB_HOST=127.0.0.1</strong></p><h3>API Call &amp; add data to Database</h3><p>Now go to the command’s file → <em>app/Console/Commands/CakeCron.php</em> and add api call code:</p><p><strong>a. Api Call</strong></p><pre>/**<br>* Execute the console command.<br>*<br>* <a href="http://twitter.com/return">@return</a> mixed<br>*/<br>public function handle()<br>{<br>  $client = new \GuzzleHttp\Client();<br>  $request = $client-&gt;get(&#39;https://url-to-api&#39;);</pre><pre>  $response = $request-&gt;getBody()-&gt;getContents();<br>  $cake = json_decode($response, true);<br>}</pre><p><strong>b. Add Data to Database’s new table</strong></p><pre>$published_at = \Carbon\Carbon::now();</pre><pre>\DB::table(‘cake’)-&gt;<strong>insert</strong>([<br>   [“json_data” =&gt; $response, “created_at” =&gt; “$published_at”]<br>]);</pre><p>People, we get to the end of this article. If you have any further questions, please feel free to contact me. Kissez!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13e96e764475" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Customize Your Cursor!]]></title>
            <link>https://medium.com/@vasdekijoanna/how-to-customize-your-cursor-cd5d6e215360?source=rss-298ac05863ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd5d6e215360</guid>
            <dc:creator><![CDATA[Jokova]]></dc:creator>
            <pubDate>Wed, 11 Mar 2020 12:51:13 GMT</pubDate>
            <atom:updated>2020-03-18T17:42:53.351Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello there! Today we will see a simple way to create a fully custom cursor with <strong>Javascript</strong>, <strong>Scss</strong> and <strong>Html</strong>. Of course, there are a lot of ways to do that but I’ll show you my approach. Are you ready?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ipk6Xeowueq40fBcdf72vA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@cgower?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Christopher Gower</a> on <a href="https://unsplash.com/s/photos/coding?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Someone said, If you come away from somewhere <strong>empty</strong>-<strong>handed</strong>, you have failed to get what you wanted. So, for your ‘happiness’ you can get access to my code from <strong>Codepen </strong>below, just click “<strong>Run Pen”</strong> and you will see the results.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fjokova%2Fembed%2Fpreview%2FNWqXoNN%3Fheight%3D600%26slug-hash%3DNWqXoNN%26default-tabs%3Dcss%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fjokova%2Fpen%2FNWqXoNN&amp;image=https%3A%2F%2Fscreenshot.codepen.io%2F3863544.NWqXoNN.small.c86802ef-8456-406d-b33d-b583542b51c8.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/be5822cd7a4f2cc892603d0872a46ca3/href">https://medium.com/media/be5822cd7a4f2cc892603d0872a46ca3/href</a></iframe><p><strong>Step 1) </strong>Create an element for your custom cursor appearance. For example: &lt;div class=&quot;custom-cursor&quot;&gt;&lt;/div&gt;</p><p><strong>Step 2)</strong> Create some style for your cursor element, add transitions in order to make it smoother, also add animations (if you want it). In my case I’ve put an animation in the middle dot of the cursor.</p><pre>.custom-cursor {<br>    width: 40px;<br>    height: 40px;<br>    border: 2px solid white;<br>    opacity: 0.8;<br>    position: absolute;<br>    border-radius: 50%;<br>    top: 0;<br>    left: 0;<br>    <br>    <a href="http://twitter.com/include">@include</a> transform(scale(0));<br>    <a href="http://twitter.com/include">@include</a> transition(all 0.2s ease);<br>    <br>    &amp;:after{<br>      content: &#39;&#39;;<br>      width: 6px;<br>      height: 6px;<br>      background-color: yellow;<br>      display: block;<br>      z-index: 1;<br>      opacity: 1;<br>      border-radius: 50%;<br>      position: relative;<br>      top: calc(50% - 3px);<br>      left: calc(50% - 3px);<br>      animation: bounce 0.4s infinite alternate;<br>      <br>      <a href="http://twitter.com/include">@include</a> keyframes(bounce){<br>        from{<br>          <a href="http://twitter.com/include">@include</a> transform(scale(1));<br>        }<br>        to{<br>          <a href="http://twitter.com/include">@include</a> transform(scale(1.6));<br>        }<br>      }<br>    }<br>    <br>  }</pre><p><strong>Step 3)</strong> Make the new/fake cursor element that ‘follows’ the real cursor (with javascript).</p><pre>const cursor = document.querySelector(&#39;.custom-cursor&#39;);</pre><pre>document.addEventListener(&#39;mousemove&#39;, e =&gt; {<br>    cursor.setAttribute(&quot;style&quot;, &quot;transform: scale(1); top: &quot;+(e.pageY - 20)+&quot;px; left: &quot;+(e.pageX - 20)+&quot;px;&quot;);<br>});</pre><p>Remember that if you want to hide the default cursor, you will need to put some css code --&gt; cursor:none!important! at your html’s tag in css file.</p><p>Also, you can change the appearance of your cursor when an event happens, for example on mouseover in a specific element. To do that you will need to create a new class and add this class to your new cursor (through javascript again).</p><pre>//SCSS</pre><pre>.custom-cursor {<br>    width: 40px;<br>    height: 40px;<br>    border: 2px solid white;<br>    opacity: 0.8;<br>    position: absolute;<br>    border-radius: 50%;<br>    top: 0;<br>    left: 0;<br>    <br>    <a href="http://twitter.com/include">@include</a> transform(scale(0));<br>    <a href="http://twitter.com/include">@include</a> transition(all 0.2s ease);</pre><pre>    //NEW CLASS    </pre><pre>   <strong> &amp;.yellow-attitude{<br>      border: 2px solid yellow;<br>      background-color: rgba(yellow, 0.4);<br>      <br>      </strong><a href="http://twitter.com/include"><strong>@include</strong></a><strong> transform(scale(1.4)!important);<br>      </strong><a href="http://twitter.com/include"><strong>@include</strong></a><strong> transition(all 0.2s ease);<br>    }<br>    </strong><br>    &amp;:after{<br>      content: &#39;&#39;;<br>      width: 6px;<br>      height: 6px;<br>      background-color: yellow;<br>      display: block;<br>      z-index: 1;<br>      opacity: 1;<br>      border-radius: 50%;<br>      position: relative;<br>      top: calc(50% - 3px);<br>      left: calc(50% - 3px);<br>      animation: bounce 0.4s infinite alternate;<br>      <br>      <a href="http://twitter.com/include">@include</a> keyframes(bounce){<br>        from{<br>          <a href="http://twitter.com/include">@include</a> transform(scale(1));<br>        }<br>        to{<br>          <a href="http://twitter.com/include">@include</a> transform(scale(1.6));<br>        }<br>      }<br>    }<br>    <br>  }</pre><pre><br>//JAVASCRIPT</pre><pre>var element = document.getElementById(&#39;myitem&#39;);</pre><pre>element.addEventListener(&quot;mouseover&quot;, e =&gt; {<br>   cursor.classList.add(&quot;yellow-attitude&quot;);<br>});</pre><pre>element.addEventListener(&quot;mouseleave&quot;, e =&gt; {<br>   cursor.classList.remove(&quot;yellow-attitude&quot;);<br>  // alert(&#39;jo&#39;);<br>});<br></pre><pre>//HTML</pre><pre>&lt;h1 id=&quot;myitem&quot;&gt;HOVER ME&lt;/h1&gt;</pre><p>Tadah! hope you liked it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd5d6e215360" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How can you “pretend” nested links?]]></title>
            <link>https://medium.com/@vasdekijoanna/how-can-you-pretend-nested-links-b3935f6ba59c?source=rss-298ac05863ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3935f6ba59c</guid>
            <category><![CDATA[scss]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[nested-a-elements]]></category>
            <category><![CDATA[nested-links]]></category>
            <dc:creator><![CDATA[Jokova]]></dc:creator>
            <pubDate>Thu, 05 Dec 2019 10:50:54 GMT</pubDate>
            <atom:updated>2019-12-09T08:58:58.497Z</atom:updated>
            <content:encoded><![CDATA[<p>It was a difficult working day for me when I realized that I wasn’t able to do a very simple thing -in the right way- after a tone of front-end development. So, after hours of strangling with this little problem, it has started to become huge in my mind. But after all, I made it and I decided to tell you how to do it simple and right, just in case you deal with the same issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jvO44K2BPx4p-fmHgs-OoQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@benkolde?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Ben Kolde</a> on <a href="https://unsplash.com/s/photos/coffee-and-code?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I’ll start by telling you that you can NOT put an &lt;a href=”#”&gt; tag, inside to another &lt;a href=”#”&gt; tag in your HTML code! <strong>Nested </strong><strong>a elements are forbidden.</strong></p><pre><strong><br>NEVER DO THIS:</strong></pre><pre>&lt;div class=&quot;card&quot;&gt;</pre><pre>  &lt;a href=&quot;/parent-link&quot; title=&quot;&quot;&gt;Lorem ipsum dolor sit amet, per cu modo regione pertinacia, ius ei feugait repudiare argumentum. Ceteros lobortis praesent eos ex, congue apeirian tacimates ad nam. <br>   <br>    &lt;a href=&quot;/child-link&quot; title=&quot;&quot;&gt;<br>        Has at ullum harum epicurei.  <br>    &lt;/a&gt;</pre><pre>  &lt;/a&gt;</pre><pre>&lt;/div&gt;</pre><h3>— Solution</h3><pre><strong><br>DO THIS INSTEAD:</strong></pre><pre><em>//Style Scss</em><br><br>  .card{<br>      position: relative;<br>  }<br>  <br>  .parent-link{<br>      &amp;:after{<br>          content: &#39;&#39;;<br>          position: absolute;<br>          left: 0;<br>          right: 0;<br>          top: 0;<br>          bottom: 0;<br>      }<br>  }</pre><pre>  .child-link{<br>     position: relative;<br>     z-index: 1;<br>  }<br></pre><pre><em>//HTML Code</em></pre><pre>&lt;div class=&quot;card&quot;&gt;</pre><pre>   &lt;h1&gt;<br>     &lt;a href=&quot;/parent-link&quot; class=&quot;parent-link&quot; title=&quot;&quot;&gt;Lorem ipsum dolor sit amet, per cu modo regione pertinacia, ius ei feugait repudiare argumentum. Ceteros lobortis praesent eos ex, congue apeirian tacimates ad nam.<br>     &lt;/a&gt;<br>   &lt;/h1&gt;</pre><pre>&lt;p&gt;<br>      &lt;a href=&quot;/child-link&quot; class=&quot;child-link&quot; title=&quot;&quot;&gt;<br>        Has at ullum harum epicurei.  <br>      &lt;/a&gt;<br>    &lt;/p&gt;</pre><pre>&lt;/div&gt;</pre><p>See you soon! Have fun &amp; keep coding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3935f6ba59c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Call-to-action buttons — Gradient Hover Effects & Implementation (Part 1)]]></title>
            <link>https://medium.com/@vasdekijoanna/call-to-action-buttons-gradient-hover-effects-implementation-part-1-fee49591b7d8?source=rss-298ac05863ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/fee49591b7d8</guid>
            <category><![CDATA[sass]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[scss]]></category>
            <category><![CDATA[button]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Jokova]]></dc:creator>
            <pubDate>Wed, 20 Nov 2019 10:56:26 GMT</pubDate>
            <atom:updated>2020-03-13T13:29:45.985Z</atom:updated>
            <content:encoded><![CDATA[<h3>Call-to-action buttons — Gradient Hover Effects &amp; Implementation (Part I)</h3><p>Hello there! Here are some simple and beautiful ideas for button hover effects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aDSI0cZ3KVCzKtoIDAXwaA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@codestorm?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Safar Safarov</a> on <a href="https://unsplash.com/s/photos/code?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>— 1) FROM the <strong>simple background color</strong> TO <strong>gradient background </strong>with shadow <strong>on hover</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9aX91PUenrxSk9MZUY989Q.png" /><figcaption>Image for Example 1</figcaption></figure><pre><strong>Example with Sass Technology </strong></pre><pre><em>//_variables.scss file:<br>   </em>$green-yellow: #dbe127;<br>   $petrol: #6FC6BD;</pre><pre><em>//_global.scss file:</em></pre><pre><strong>.call-to-action-btn</strong>{<br>   background: linear-gradient(90deg, var(--c1, $green-yellow), var(--c2, $petrol) 51%, var(--c1, $green-yellow)) var(--x, 0)/ 200%;<br>   border-radius: 24px;<br>   padding: 15px 40px;<br>   font-size: 13px;<br>   font-weight: 600;<br>   font-style: normal;<br>   font-stretch: normal;<br>   line-height: normal;<br>   letter-spacing: normal;<br>   color: $white;<br>   cursor: pointer;<br>   box-shadow: 0px 0px 0px 0px $light-grey;<br>   <a href="http://twitter.com/include"><strong>@include</strong></a><strong> transform</strong>(translateX(0));<br>   <a href="http://twitter.com/include"><strong>@include</strong></a><strong> transition</strong>(all 0.4s ease);</pre><pre>   <strong>&amp;:hover</strong>{<br>        --x: 100%; <br>        box-shadow: -6px -9px 2px -2px $light-grey;<br>        <a href="http://twitter.com/include"><strong>@include</strong></a><strong> transform</strong>(translateX(10px));<br>        <a href="http://twitter.com/include"><strong>@include</strong></a><strong> transition</strong>(all 0.4s ease);<br>   }</pre><pre><strong>   &amp;.green-yellow</strong>{<br>       --c1: $green-yellow;<br>       --c2: $green-yellow;</pre><pre><strong>       &amp;:hover</strong>{<br>          --c1: $green-yellow;<br>          --c2: $petrol;<br>       }<br>   }<br>}</pre><p>You can read more about <strong>mixins</strong> and how you can create some of them, here: <a href="https://medium.com/@vasdekijoanna/sass-scss-useful-mixins-for-faster-development-b5ac5d4a5de"><em>https://medium.com/@vasdekijoanna/sass-scss-useful-mixins-for-faster-development-b5ac5d4a5de</em></a></p><pre><em>//HTML code</em></pre><pre>&lt;a href=&quot;/link&quot; title=&quot;read more link&quot;&gt;<br>    &lt;div class=&quot;<strong>call-to-action-btn green-yellow</strong>&quot;&gt;READ MORE&lt;/div&gt;<br>&lt;/a&gt;</pre><p>As you can see, I’ve created a .green-yellow class. What happens when I remove the .green-yellow?</p><p>— 2) FROM the <strong>gradient background color</strong> TO <strong>reverse</strong> <strong>gradient background </strong>with shadow <strong>on hover</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2xcgIln4OgeUFj8uL4NVTw.png" /><figcaption>Image for Example 2</figcaption></figure><p>The only thing you have do is to remove .green-yellow class from your HTML.</p><p><em>You will be satisfied with the results. Smoothly and elegant!!! See you soon…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fee49591b7d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sass/SCSS — Useful Mixins for faster development]]></title>
            <link>https://medium.com/@vasdekijoanna/sass-scss-useful-mixins-for-faster-development-b5ac5d4a5de?source=rss-298ac05863ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5ac5d4a5de</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[scss]]></category>
            <category><![CDATA[sass]]></category>
            <dc:creator><![CDATA[Jokova]]></dc:creator>
            <pubDate>Tue, 19 Nov 2019 15:45:51 GMT</pubDate>
            <atom:updated>2019-11-20T09:53:59.087Z</atom:updated>
            <content:encoded><![CDATA[<h3>Sass/SCSS — Useful Mixins for faster development</h3><p>The most important principle/rule for my ‘coding routine’ is <strong>quality</strong>!</p><blockquote><strong>“Keep it clean! Keep it simple! Keep it updated!”</strong></blockquote><p>These are the words I keep telling myself every single day! The second rule is <strong>speed</strong>, speed of coding, <strong>‘reusability’</strong>!</p><p>So! For quality and coding speed what do we need? The answer is mixins! Ok now let’s go a little deeper.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6SI8Cf6FrY-Go0PxjQb9oA.jpeg" /><figcaption>Just an image!</figcaption></figure><p>Here are some definitions (and more):</p><p><strong>— First of all, what is mixin? <br></strong>Some things in CSS are a bit tedious to write, especially with CSS3 and the many vendor prefixes that exist. A mixin lets you make groups of CSS declarations that you want to reuse throughout your site. You can even pass in values to make your mixin more flexible.</p><p><strong>— How we create a mixin?</strong><br>To create a mixin we use the @mixin directive and give it a name. We’re also using the variable $property inside the parentheses so we can pass in a transform of whatever we want. After we create our mixin, we can then use it as a CSS declaration starting with @include followed by the name of the mixin.</p><p>As you already can see at <a href="https://sass-lang.com/guide">https://sass-lang.com/guide</a>!!!</p><pre><strong>@mixin</strong> <strong>transform</strong>($property) {<br>  -webkit-transform: $property;<br>  -ms-transform: $property;<br>  <strong>transform</strong>: $property;<br>}</pre><p>Ok! Enough with the definitions! Now, my favorite part is coming! Codiiiing.</p><p><strong>— 1) Mixin for transition:</strong></p><pre><a href="http://twitter.com/mixin"><strong>@mixin</strong></a><strong> transition</strong>($transition) {<br>   -moz-transition: $transition;<br>   -o-transition: $transition;<br>   -ms-transition: $transition;<br>   -webkit-transition: $transition;<br>   <strong>transition</strong>: $transition;<br>}</pre><pre><a href="http://twitter.com/mixin"><strong>@mixin</strong></a><strong> transition2var</strong>($transition1,$transition2) {<br>   -moz-transition: $transition1, $transition2;<br>   -o-transition: $transition1, $transition2;<br>   -ms-transition: $transition1, $transition2;<br>   -webkit-transition: $transition1, $transition2;<br>   <strong>transition</strong>: $transition1, $transition2;<br>}</pre><p><strong>— 2) Mixin for transform:</strong></p><pre><a href="http://twitter.com/mixin"><strong>@mixin</strong></a><strong> transform</strong>($transforms) {<br>   -moz-transform: $transforms;<br>   -o-transform: $transforms;<br>   -ms-transform: $transforms;<br>   -webkit-transform: $transforms;<br>   <strong>transform</strong>: $transforms;<br>}</pre><p><strong>— 3) Mixin for placeholder:</strong></p><pre><a href="http://twitter.com/mixin"><strong>@mixin</strong></a><strong> placeholder</strong> {<br>    <strong>&amp;.placeholder</strong> { <a href="http://twitter.com/content">@content</a>; }<br>    &amp;:-moz-placeholder { <a href="http://twitter.com/content">@content</a>; }<br>    &amp;::-moz-placeholder { <a href="http://twitter.com/content">@content</a>; }<br>    &amp;:-ms-input-placeholder { <a href="http://twitter.com/content">@content</a>; }<br>    &amp;::-webkit-input-placeholder { <a href="http://twitter.com/content">@content</a>; }<br>}</pre><p><strong>— 4) Mixin for keyframes:</strong></p><pre><a href="http://twitter.com/mixin"><strong>@mixin</strong></a><strong> keyframes</strong>($name) {<br>    @-webkit-keyframes #{$name} {<br>        <a href="http://twitter.com/content">@content</a>; <br>    }<br>    @-moz-keyframes #{$name} {<br>        <a href="http://twitter.com/content">@content</a>;<br>    }<br>    @-ms-keyframes #{$name} {<br>        <a href="http://twitter.com/content">@content</a>;<br>    }<br>   <strong> </strong><a href="http://twitter.com/keyframes"><strong>@keyframes</strong></a> #{$name} {<br>        <a href="http://twitter.com/content">@content</a>;<br>    } <br>}</pre><p><strong>— 5) Mixin for fonts:</strong></p><pre><a href="http://twitter.com/mixin">@mixin</a> fonts($fsize: false, $fcolor: false, $fweight: false,  $flheight: false) {<br>    <a href="http://twitter.com/if">@if</a> $fsize { font-size: $fsize; }<br>    <a href="http://twitter.com/if">@if</a> $fcolor { color: $fcolor; }<br>    <a href="http://twitter.com/if">@if</a> $fweight { font-weight: $fweight; }<br>    <a href="http://twitter.com/if">@if</a> $flheight { line-height: $flheight; }<br>}</pre><p>How we can call a mixin?</p><pre><a href="http://twitter.com/include"><strong>@include</strong></a><strong> transform</strong>(translateX(0));</pre><pre><em>//another one below</em></pre><pre><a href="http://twitter.com/include"><strong>@include</strong></a><strong> transition</strong>(all 0.4s ease);</pre><p>I hope this helps someone’s productivity! Let me know guys if you have any questions! Have fun and keep coding! kissez!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5ac5d4a5de" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>