This file contains 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 = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
//clean | |
clean: { | |
styleguide: ['styleguide'], | |
css: ['css'] | |
}, | |
//copy |
This file contains 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
$variables['attributes']['class'] = 'test-attribute-merge-1'; | |
$variables['content_attributes']['class'] ='test-content_attributes-merge-2'; | |
$variables['attributes']['role'] = 'attributes-role'; | |
$variables['content_attributes']['role'] = 'content_attributes-role'; | |
$variables['title_attributes']['role'] = 'title-attributes-role'; | |
$variables['item_attributes']['0']['role'] = 'item-attributes-role'; | |
//wtf why u not merge |
This file contains 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
$path = \Drupal::request()->getPathInfo(); | |
if($path){ | |
$foo = explode("/", $path); | |
$body_classes[] = 'path-' . $foo[1]; | |
} |
This file contains 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 = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
//clean folders | |
clean: { | |
styleguide: ['styleguide'], | |
css: ['css'], | |
// images:['images'] | |
}, |
This file contains 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
function testMessages() { | |
// Enable the Classy theme. | |
\Drupal::service('theme_handler')->install(['classy']); | |
$this->config('system.theme')->set('default', 'classy')->save(); | |
.... |
This file contains 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
.book-navigation .menu { | |
border-top: 1px solid #D6D6D6; | |
padding: 1em 0 0 3em; /* LTR */ | |
} | |
.book-navigation .page-links { | |
border-bottom: 1px solid #D6D6D6; | |
border-top: 1px solid #D6D6D6; | |
letter-spacing: -3px; /* removes the inline-block letter-spacing on the .page-links list elements */ | |
margin: 0; | |
padding: 0.5em 0; |
This file contains 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
/** | |
* checkbox checked | |
*/ | |
div{display:inline-block;padding-top:100px} | |
label{ padding:15px; margin:50px; border-radius:10px; font-size:50px} | |
input[type=radio]{ position: absolute; top: -9999px; left: -9999px; } | |
input[type=radio] ~ label { background:red;} | |
input[type=radio]:checked ~ label { background:green;} | |
This file contains 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
input[type=checkbox]{ | |
position: absolute; | |
top: -9999px; | |
left: -9999px; | |
} | |
input[type=checkbox] ~ label { background:red;} |
This file contains 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
<article class="node"> | |
<h1>node bla bla bla</h1> | |
<footer>author</footer> | |
<p> | |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud </p> | |
<!-- id for a anchor--> | |
<section id="comments"><!--aside ?--> | |
<article> | |
<h3>first post</h3> |
OlderNewer