mozilla
Your Search Results

    Template:CSS at rules

    <%
    // Lists all the CSS at rules, separated by a comma
     
     
    var rules = ['@charset', '@document', '@font-face', '@import', '@keyframes', '@media', '@page', '@supports'];
    var list = ''; // Result
    var not_first = false;
    var locale = env.locale;
    var path = "/" + locale + "/docs/";  
     
    // Translate !
    var list_title = mdn.localString({
        "en-US": "CSS at-rules: ",
        "ja": "CSS @-規則 : "
    });
    
    if(locale === "ja") {
        path = path + "Web/";
    }
    
     
    rules.forEach(function (at_rule) {
        if (not_first) {
            list += mdn.localString({
                "en-US": ", ",
                "ja": "、 "
            });
        }
        not_first = true;
        list += '<code><a href="' + path + 'CSS/' + at_rule + '">' + at_rule + '</a></code>';
    });
     
     
    %><%- list_title %><%- list %>
    Search for pages that use Template:CSS at rules to see example use cases and how many pages use this macro.

    Document Tags and Contributors

    Tags: 
    Contributors to this page: teoli, ethertank
    Last updated by: ethertank,