.block {
&__element-1 {}
&__element-2 {}
&--modifier-1 &__element-1 {}
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
| import map from 'lodash/map'; | |
| import { MEASUREMENTS_SYMBOLS } from '@/helpers/nutrientSymbols'; | |
| import { | |
| MASS_UNIT_KILOGRAM, | |
| MASS_UNIT_POUND, | |
| PERCENTAGE, | |
| LENGTH_UNIT_CENTIMETER, | |
| LENGTH_UNIT_INCH, | |
| QUANTITY_UNIT_MG_DL, |
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
| /** | |
| * Disables singular post view for custom post types. Throws 404 error instead. | |
| * @param $query | |
| */ | |
| function my_prefix_disable_singulars() | |
| { | |
| global $wp_query; | |
| $disabled_singulars = array('post-type-1', 'post-type-2', 'post-type-3'); |
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
| breakpoints = { | |
| sizes: { | |
| 'xs': 480, | |
| 'sm': 768, | |
| 'md': 992, | |
| 'lg': 1200 | |
| }, | |
| upTo: function( to ) { | |
| var _to = this.sizes[to]; | |
| return 'only screen and (max-width:' + _to + 'px)'; |
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
| // Mixins | |
| .h1() { | |
| font-size: @h1-font-size; | |
| line-height: @h1-line-height; | |
| margin-top: @h1-margin-top; | |
| margin-bottom: @h1-margin-bottom; | |
| } | |
| .h2() { | |
| font-size: @h2-font-size; |
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
| function mytheme_remove_dashboard_widgets() | |
| { | |
| $widgets = array( | |
| 'dashboard_incoming_links' => 'normal', | |
| 'dashboard_right_now' => 'normal', | |
| 'dashboard_plugins' => 'normal', | |
| 'dashboard_recent_comments' => 'normal', | |
| 'dashboard_activity' => 'normal', | |
| 'dashboard_quick_press' => 'side', | |
| 'dashboard_primary' => 'side', |