This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Traits; | |
trait ToggleTrait | |
{ | |
public function toggle($values, $bool = null) | |
{ | |
if(is_string($values)) | |
{ | |
$values = [$values]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove antpaths from focused elements | |
a:focus, | |
select:focus, | |
input:focus | |
outline: medium none !important | |
button:focus | |
outline: 0 | |
button::-moz-focus-inner, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$clinics = new Clinic; | |
if($request->modules) | |
{ | |
foreach($request->modules as $module) | |
{ | |
$clinics = $clinics->whereHas('modules', function ($query) use ($module) { | |
$query->where('modules.id',$module); | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=vendor($attribute, $value) | |
-webkit-#{$attribute}: #{$value} | |
-moz-#{$attribute}: #{$value} | |
-ms-#{$attribute}: #{$value} | |
-o-#{$attribute}: #{$value} | |
#{$attribute}: #{$value} | |
=rotate($deg) | |
display: inline-block | |
+vendor(transform, rotate(#{$deg}deg)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$block: diode | |
$diameter: 0.5rem | |
+component | |
width: $diameter | |
height: $diameter | |
background: $idle | |
display: inline-block | |
border: 2px solid white | |
margin-right: $margin_xs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
chainWebpack: config => { | |
config | |
.plugin('copy') | |
.use(require('copy-webpack-plugin'), [[{ | |
from: 'public', | |
ignore: ['./index.html', '.DS_Store'] | |
}]]) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
... | |
</template> | |
<script> | |
export default { | |
data() { | |
return { | |
product: Object | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const verifyUser = function(username, password, callback){ | |
dataBase.verifyUser(username, password, (error, userInfo) => { | |
if (error) { | |
callback(error) | |
}else{ | |
dataBase.getRoles(username, (error, roles) => { | |
if (error){ | |
callback(error) | |
}else { | |
dataBase.logAccess(username, (error) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#" onclick="document.getElementById("block-order-detail").scrollIntoView();">This is my link text</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example #1 | |
.tree__branch--green { | |
.twig__leaf { | |
color: green; | |
} | |
} | |
// Example #2 | |
.tree__branch--green__twig__leaf { | |
color: green; |
OlderNewer