How to use the polythene-core-css.sel function in polythene-core-css

To help you get started, we’ve selected a few polythene-core-css examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ArthurClemens / polythene / packages / polythene-css-dialog / src / layout.js View on Github external
const backdrop = (selector, vars) => // eslint-disable-line no-unused-vars
  sel(selector, {
    ".pe-dialog--visible .pe-dialog__backdrop": {
      display: "block",
      opacity: 1,
    }
  });
github ArthurClemens / polythene / packages / polythene-css-dialog / src / layout.js View on Github external
border_radius: (selector, vars) => [
    !vars.full_screen && sel(selector, {
      " .pe-dialog__content": {
        borderTopLeftRadius: vars.border_radius + "px",
        borderTopRightRadius: vars.border_radius + "px",
        borderBottomLeftRadius: vars.border_radius + "px",
        borderBottomRightRadius: vars.border_radius + "px",
      },
    }),
  ],
  // Theme vars
github ArthurClemens / polythene / packages / polythene-css-button-group / src / layout.js View on Github external
general_styles: selector => [
    sel(selector, {
      display: "flex",
    })
  ],
};
github ArthurClemens / polythene / packages / polythene-css-toolbar / src / color.js View on Github external
["color_" + tint + "_text"]: (selector, vars) => [
    sel(selector, {
      " .pe-toolbar__title": {
        "&, a:link, a:visited": {
          color: vars["color_" + tint + "_text"],
        }
      }
    })
  ],
  ["color_" + tint + "_background"]: (selector, vars) => [
github ArthurClemens / polythene / packages / polythene-css-notification / src / layout.js View on Github external
const title_single_padding_v_title_padding_h = (selector, vars) =>
  sel(selector, {
    " .pe-notification__title": {
      padding: vars.title_single_padding_v + "px " + vars.title_padding_h + "px",
    },
  });
github ArthurClemens / polythene / packages / polythene-css-card / src / color-overlay.js View on Github external
["color_" + tint + "_overlay_background"]: (selector, vars) => [
    sel(selector, {
      " .pe-card__overlay__content": {
        backgroundColor: vars["color_" + tint + "_overlay_background"]
      }
    })
  ],
});
github ArthurClemens / polythene / packages / polythene-css-list-tile / src / layout.js View on Github external
const insetH = (selector, vars) => {
  const margin = vars.inset_h_size;

  return sel(selector, {
    marginLeft: margin + "px",
    marginRight: margin + "px",

    " .pe-list-tile__content": {
      marginLeft: -margin + "px",
      marginRight: -margin + "px",
    }
  });
};
github ArthurClemens / polythene / packages / polythene-css-menu / src / layout.js View on Github external
height: (selector, vars) => [
    vars.height !== undefined && sel(selector, {
      " .pe-menu__panel": {
        height: vars.height
      }
    })
  ],
  widths: (selector, vars) => [

polythene-core-css

Polythene utility package.

MIT
Latest version published 4 years ago

Package Health Score

40 / 100
Full package analysis

Popular polythene-core-css functions

Similar packages