By editor, 1 June, 2016 CSS Filters - Edit Image/Div using filter Property Tags Theming CSS Filters list (Syntaw) filter: none | blur() | brightness() | contrast() | drop-shadow() | grayscale() | hue-rotate() | invert() | opacity() | saturate() | sepia() | url(); Examples: Convert block/image ... to black and white (Gray out):
By editor, 11 May, 2016 Add twig template to a custom Module, Block or Page Tags Drupal 8 Code Theming Twig Step 1. Create your module and Block (/tutoriels/107/create-a-simple-block-programmatically)
By editor, 27 April, 2016 Theming : enable Twig templates Debug Tags Drupal 8 Theming Twig Enable debugging You enable Twig Debugging in sites/default/services.yml. (If services.yml does not yet exist; copy default.services.yml and rename it to services.yml.) parameters: twig.config: debug: true
By editor, 13 April, 2016 SASS LESS Configuration file. config.rb Tags Theming CSS Example 1. SASS (SCSS) http_path = "/" css_dir = "css" sass_dir = "sass" images_dir = "images" Example 2. SASS (SCSS)
By editor, 20 March, 2016 Drupal 8 Theming with Twig Tags Drupal 8 Twig Theming Print : {{ variable_to_print }} Code : {% codes %} Comment : {# Comments #}
By editor, 4 March, 2016 Theming tips for Bootstrap framework Tags Theming JavaScript CSS Modal dialogue box ( bootstrap / jquery) 1. Remobe the gray background of modal dialog box (modal-backdrop) .modal-backdrop { background-color: transparent; }
By editor, 9 February, 2016 Add a solid color zone at the top (or anyware) of the page Tags Theming CSS .main-container { &:before { content: ''; position: absolute; height: 500px; background: red; width: 100%; left: 0; } } ALSO: Add z-index: -1; if this hide some thing .main-container is a div just after the body
By editor, 9 February, 2016 Horizontal Align Tags Theming CSS 1. Text-Align: Center; div{ text-align: center; } 2. Margin: 0 auto;
By editor, 9 February, 2016 Vertical Align - Center Up and Down Tags Theming CSS Tables vertical-align: middle; is working in a TABLE, but not inside if a DIV Move up/down To move a background image (50px s=X 50px) to center of the previus line(50px to top).
By editor, 26 January, 2016 Add custom class to the elements of a View Tags Drupal 8 Code Drupal 7 Views Theming Example: