Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove lib-url-check() function from lib docs LESS #19412

Merged
merged 1 commit into from
Dec 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 0 additions & 63 deletions lib/web/css/docs/source/_utilities.less
Original file line number Diff line number Diff line change
Expand Up @@ -367,66 +367,3 @@
// </tr>
// </table>
// </pre>

// # .lib-url-check()
//
// The <code>.lib-url-check()</code> mixin wraps passed value with 'url( ... )' and returns <code>@lib-url-check-output</code> variable. Can be used with <code>.lib-css()</code> mixin.
//

.example-url-check {
// Set image path variable
@_icon-image: '/images/test.png';

// "Call" the mixin
.lib-url-check(@_icon-image);

// Will return url('/images/test.png')
.lib-css(background, #eee @lib-url-check-output no-repeat 0 0);
}

//
// If the variable is set to <code>false</code>, the <code>.lib-url-check()</code> will return false.
//
// ```
// <div class="example-url-check">
// Block with background.
// </div>
// ```
//

.example-url-check-false {
// Set usage image path to false
@_icon-image: false;

// "Call" the mixin
.lib-url-check(@_icon-image);

// Will return 'false' and outputs nothing
.lib-css(background, #eee @lib-url-check-output no-repeat 0 0);
}

// ```
// <div class="example-url-check-false">
// Block with no background.
// </div>
// ```
//

// # .lib-url-check() variables
//
// <pre>
// <table>
// <tr>
// <th class="vars_head">Mixin variable</th>
// <th class="vars_head">Allowed values</th>
// <th class="vars_head">Output variable</th>
// <th class="vars_head">Comment</th>
// </tr>
// <tr>
// <th>@_path</th>
// <td class="vars_value">'' | false | value</td>
// <td class="vars_value">@lib-url-check-output</td>
// <td>Passed url to wrap in 'url( ... )'. If the 'false' value passed mixin will return 'false'</td>
// </tr>
// </table>
// </pre>