Commit c273b133 authored by John Albin Wilkins's avatar John Albin Wilkins
Browse files

Issue #2712673 by JohnAlbin: Replace .component--modifier__element selectors...

Issue #2712673 by JohnAlbin: Replace .component--modifier__element selectors with .component--modifier .component__element
parent d18bcc05
Loading
Loading
Loading
Loading
+20 −4
Changes for STARTERKIT/README.txt: 20 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -206,7 +206,23 @@ Set up your front-end development build tools:

Optional steps:

 7. Choose your preferred page layout method or grid system.
 7. Modify the box component styling.

    The sass/components/box/_box.scss file describes the styles of the "box"
    component. The code comments in that file reiterate the naming conventions
    use in our CSS and also describe how the nested Sass selectors compile into
    CSS.

    Try running "gulp watch", modifying the Sass, and then looking at how the
    style guide page at styleguide/section-components.html is automatically
    updated with the new CSS.

    Now try uncommenting the example ruleset under the "Drupal selectors"
    heading, recompiling the Sass, and then looking at your Drupal site (not the
    style guide) to see how the box component is applying to your sidebar
    blocks.

 8. Choose your preferred page layout method or grid system.

    By default your new sub-theme is using a responsive layout using Zen Grids.

@@ -214,7 +230,7 @@ Optional steps:
    Foundation, etc., you can replace the "layouts/layout-" lines in your
    styles.scss file with a line pointing at your choice of layout CSS file.

 8. Modify the markup in Zen core's template files.
 9. Modify the markup in Zen core's template files.

    If you decide you want to modify any of the .tpl.php template files in the
    zen folder, copy them to your sub-theme's folder before making any changes.
@@ -222,7 +238,7 @@ Optional steps:

    For example, copy zen/templates/page.tpl.php to foo/templates/page.tpl.php.

 9. Modify the markup in Drupal's search form.
 10. Modify the markup in Drupal's search form.

    Copy the search-block-form.tpl.php template file from the modules/search/
    folder and place it in your sub-theme's template folder. And then rebuild
@@ -236,7 +252,7 @@ Optional steps:
      your sub-theme's template directory and then rebuild the theme registry.
      See the Drupal 7 Theme Guide for more info: https://drupal.org/node/173880

 10. Further extend your sub-theme.
 11. Further extend your sub-theme.

    Discover further ways to extend your sub-theme by reading Zen's
    documentation online at:
+3 −2
Changes for STARTERKIT/sass/components/autocomplete/_autocomplete.scss: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -41,12 +41,13 @@
    color: color(autocomplete);
    cursor: default;
    white-space: pre;
  }

  &__list-item--is-selected {
    &.is-selected,
    &--is-selected {
      background: color(autocomplete-select-bg);
      color: color(autocomplete-select);
    }
  }

  &.is-throbbing,
  &--is-throbbing {
+2 −2
Changes for STARTERKIT/sass/components/box/_box.scss: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -42,8 +42,8 @@
  // deal with it because we often want a placeholder selector like
  // %box--is-focus in case we need to use @extends later.
  //
  // The ".is-" is part of the additional class name is a Drupal 8 BEM naming
  // convention that indicates the "focus" is a _state_ of the "box" component.
  // The ".is-" part of the class name is a Drupal 8 BEM naming convention that
  // indicates the "focus" is a _state_ of the "box" component.
  &:focus,
  &:hover,
  &.is-focus,
+4
Changes for STARTERKIT/sass/components/button/_button.scss: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -36,6 +36,10 @@
    color: color(button);
  }

  // Add button variations here.

  // The disabled variation should always go last, so that it overrides any
  // other variations.
  &[disabled] {
    // Re-set default cursor for disabled elements.
    cursor: default;
+5 −3
Changes for STARTERKIT/sass/components/collapsible-fieldset/_collapsible-fieldset.scss: 5 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -38,12 +38,15 @@
    border-left-width: 0;
    border-right-width: 0;
    height: 1em;
  }

    &__wrapper {
  &.is-collapsed &__wrapper,
  &--is-collapsed__wrapper {
    display: none;
  }

    &__legend {
  &.is-collapsed &__legend,
  &--is-collapsed__legend {
    background-image: image-url('collapsible-fieldset/collapsed.svg');
    background-position: 4px 50%;

@@ -53,7 +56,6 @@
    }
  }
}
}

//
// Drupal selectors.
Loading