...with the width and the div should only have the height of the picture. html: css: .outer { width: 100%; background-image: image-url('background.png'); background-size: cover; } .inner {
...you only depend on the width of the viewport, you can also use vw: html: css: .background-sizer { width: 100%; height: 60vw; background-image: image-url('background.png'); background-size: cover...
...with isolate scopes have three different variable binding strategies, of which one is =. Example: # HTML # Coffeescript @app.directive 'panel', -> scope: evaluated: '=value' bound: '=twoway' link: -> scope.evaluated # = false scope.bound = 'foo' # Updates parent.someProperty...
...HTML attributes bound with = (value, twoway) have their value evaluated as Angular expression in the parent scope's context and have the result assigned to the corresponding scope variable (evaluated...
In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can...
The step definition below allows you to write: Then I should see an HTML redirect to "http://www.makandracards.com" in the page head Capybara Then /^I should see an HTML redirect...
...public contract path in the mailer view: Plain text email URI.join(root_url, @user.contract.url) HTML email link_to('Show contract', URI.join(root_url, @user.contract.url).to_s) Note: You need to...
...Checks if the page or current node has the given text content, ignoring any HTML tags and normalizing whitespace.` (Boolean) has_css?(path, options = {}) Checks if a given CSS selector...
...the page or current node does not have the given text content, ignoring any HTML tags and normalizing whitespace. (Boolean) has_no_css?(path, options = {}) Checks if a given CSS...
db/schema.rb db/structure.sql public/system .project .idea/ public/javascripts/all* public/stylesheets/all* public/stylesheets/*.css config/database.yml *~ *#* .#* .DS_Store webrat-*.html capybara-*.html rerun.txt coverage.data coverage/* dump_for_download.dump .~lock.* .*.swp C:\\nppdf32Log\\debuglog.txt
...option was removed so that in development everything is rendered ugly, too. Problem When HTML is rendered from HAML in production or staging environment, whitespace is removed to reduce the...
...code is is extremely performance-sensitive when you want to operate on an entire HTML document (which is hard to represent as a jQuery collection). To select descendants of a...
...finished re-compiling, you will just reload the same old assets. When you render HTML without a dev server When you don't have a dev server running and call...
...backport the rails 5 new renderer Use case Render pdfs with e.g. pdfkit from html to attach to an email or a model Generate slow reports async
...few) assumptions about your markup and is very customizable. You can basically embed any HTML into the slides, so you can mix images, videos, texts, and other stuff.
...form_for @user, :prefix => 'overlay' do |form| = form.text_field :email and get this as HTML: <input name="user[email]" id="overlay_user_email" (...) /> You can also put a :prefix into...
#{link_to "label", "url"}! Haml is a great engine for writing shorter, readable HTML. However, there is one thing that troubles me regularly. Consider this Haml code: %p
With defaults, RCov doesn't work the way you how you would like it to. To create a nice test...
This is about converting Haml to ERB and not the other way round which you probably want! This process can...
Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...
...be rendered by calling JST['path/to/template'](template: 'variables'): Hello, <%= name %> ! // application.js //= require templates/hello $("#hello").html(JST["templates/hello"]({ name: "Sam" })); Whatever is in the <%...
...%> is evaluated in Javascript. You can also...
...forever, even if the $element variables go out of scope. Note that jQuery's html() method explicitely traverses through all removed elements in order to clean up the jQuery Cache...
...body').html(''); Detached elements cannot be collected if they have data or event handlers Let's say that you create a DOM element through jQuery, set a data attribute on...
...chain function calls to the promise using .then(), without needing to wait for the HTML request to actually return. The promise will collect all functions passed to then() and invoke...
+buttons-sprite("blue-button", false, x-offset, y-offset) Spacing When your HTML element is larger than the image you're using, other images in the same sprite...
...visible or hidden, we always expect the given text to be contained in the HTML. The test is about whether or not it is hidden via CSS.
for(let key of stylesheetsContext.keys()) { stylesheetsContext(key) } // webpack_source_path/application/stylesheets/main.sass @import 'font_faces' html font-family: MyFont, Arial // webpack_source_path/application/stylesheets/_font_faces.sass @font-face font-family: 'MyFont' src: url('../fonts/my_font.ttf...
...Rails project directory call regularly: geordi remove-executable-flags Runs chmod -x on Ruby, HTML, CSS, image, Rake and similar files. This script is part of our geordi gem on...