Skip to content

Commit

Permalink
Drop _stacks- from filenames (#906)
Browse files Browse the repository at this point in the history
* References

* Rename the files
  • Loading branch information
aaronshekey authored Apr 5, 2022
1 parent de75904 commit 919f572
Show file tree
Hide file tree
Showing 55 changed files with 63 additions and 63 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Usage of these options is similar to what's described in _stacks-configuration-dynamic.less, but the options
// Usage of these options is similar to what's described in configuration-dynamic.less, but the options
// in this file also apply to the "static" part of Stacks. In particular this means that these options cannot
// be different per-site in the Q&A project, because the static part is a shared CSS file across all Q&A sites.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions lib/css/base/_stacks-reset.less → lib/css/base/reset.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#stacks-internals() {
#include-css-reset(meyer) {
@import "_stacks-reset-meyer.less";
@import "reset-meyer.less";
}
#include-css-reset(normalize) {
@import "_stacks-reset-normalize.less";
@import "reset-normalize.less";
}
/* stylelint-disable block-no-empty */
#include-css-reset(none) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@
border-left-color: currentColor;
border-radius: var(--br-circle);
animation: s-spinner-rotate 0.9s infinite cubic-bezier(0.5, 0.1, 0.5, 0.9);
// see _stacks-spinner.less for an explanation of the following two
// see spinner.less for an explanation of the following two
filter: invert(0); // (*)
transform-origin: 50% 50% 1px; // (*)
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// This file only sets the colors for the "current color" highlight when the
// widget is used for navigation. This is the only part of the widget that is
// dynamically configurable; the rest can be served in the static part of Stacks
// and is in _stacks-widget-static.less.
// and is in widget-static.less.

.s-sidebarwidget--item {
&,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// This file contains almost all the CSS for the sidebar widget. The only exception
// is the "current color" highlight when the widget is used for navigation. That
// part is configurable and is in the dynamic part of Stacks as
// _stacks-widget-dynamic.less.
// widget-dynamic.less.

// TODO: Figure out a way to use spacing unit CSS variables here
@s-sidebarwidget-content-padding: @su16 - 1px; // subtract 1px for border
Expand Down Expand Up @@ -194,7 +194,7 @@ table.s-sidebarwidget--content.s-sidebarwidget__items {
margin-left: -@s-sidebarwidget-content-padding - 1; // the orange selection indicator overlaps with the widget border
border-left-width: 3px;
border-left-style: solid;
// border-left-color is set in _stacks-widget-dynamic.less
// border-left-color is set in widget-dynamic.less
}

a,
Expand All @@ -220,7 +220,7 @@ table.s-sidebarwidget--content.s-sidebarwidget__items {

&[aria-current="true"],
&[aria-current="page"] {
// this is given a bullet-arrow in the primary color in _stacks-widget-dynamic.less
// this is given a bullet-arrow in the primary color in widget-dynamic.less
color: var(--black);
font-weight: bold;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import (reference) "./_stacks-mixins.less";
@import (reference) "./mixins.less";

//
// STACK OVERFLOW
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Wherein we establish a bunch of values to make our lives a lot easier.
//
// ============================================================================
@import "_stacks-constants-type.less"; // Type styles, sizes, and line-heights
@import "_stacks-constants-helpers.less"; // Border radius, z-index, spacing, transitions, etc
@import "_stacks-constants-colors.less"; // Colors
@import "_stacks-mixins.less";
@import "constants-type.less"; // Type styles, sizes, and line-heights
@import "constants-helpers.less"; // Border radius, z-index, spacing, transitions, etc
@import "constants-colors.less"; // Colors
@import "mixins.less";
File renamed without changes.
24 changes: 12 additions & 12 deletions lib/css/stacks-dynamic.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
// via variables.
// ----------------------------------------------------------------------------
// -- SET BASIC STYLES FOR BODY
@import "base/_stacks-body.less";
@import "base/body.less";

// -- COMPONENTS
@import "components/_stacks-banners.less";
@import "components/_stacks-buttons.less";
@import "components/_stacks-links.less";
@import "components/_stacks-link-previews.less";
@import "components/_stacks-notices.less";
@import "components/_stacks-tags.less";
@import "components/_stacks-pagination.less";
@import "components/_stacks-widget-dynamic.less";
@import "components/banners.less";
@import "components/buttons.less";
@import "components/links.less";
@import "components/link-previews.less";
@import "components/notices.less";
@import "components/tags.less";
@import "components/pagination.less";
@import "components/widget-dynamic.less";

// -- LESS CONSTANTS AND MIXINS
@import "exports/_stacks-exports.less";
@import "exports/exports.less";

// -- CONFIG
@import "base/_stacks-configuration-static.less";
@import "base/_stacks-internals.less";
@import "base/configuration-static.less";
@import "base/internals.less";
76 changes: 38 additions & 38 deletions lib/css/stacks-static.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,48 +13,48 @@
// The following items are elements which we DO NOT allow communities
// to modify via variables.
// ----------------------------------------------------------------------------
@import "base/_stacks-reset.less";
@import "base/_stacks-icons.less";
@import "base/reset.less";
@import "base/icons.less";

// -- COMPONENTS
@import "components/_stacks-activity-indicator.less";
@import "components/_stacks-avatars.less";
@import "components/_stacks-badges.less";
@import "components/_stacks-blank-states.less";
@import "components/_stacks-breadcrumbs.less";
@import "components/_stacks-button-groups.less";
@import "components/_stacks-cards.less";
@import "components/_stacks-code-blocks.less";
@import "components/_stacks-collapsible.less";
@import "components/_stacks-inputs.less";
@import "components/_stacks-menu.less";
@import "components/_stacks-modals.less";
@import "components/_stacks-navigation.less";
@import "components/_stacks-page-titles.less";
@import "components/_stacks-popovers.less";
@import "components/_stacks-post-summary.less";
@import "components/_stacks-progress-bars.less";
@import "components/_stacks-prose.less";
@import "components/_stacks-spinner.less";
@import "components/_stacks-tables.less";
@import "components/_stacks-toggle-switches.less";
@import "components/_stacks-topbar.less";
@import "components/_stacks-uploader.less";
@import "components/_stacks-user-cards.less";
@import "components/_stacks-widget-static.less";
@import "components/activity-indicator.less";
@import "components/avatars.less";
@import "components/badges.less";
@import "components/blank-states.less";
@import "components/breadcrumbs.less";
@import "components/button-groups.less";
@import "components/cards.less";
@import "components/code-blocks.less";
@import "components/collapsible.less";
@import "components/inputs.less";
@import "components/menu.less";
@import "components/modals.less";
@import "components/navigation.less";
@import "components/page-titles.less";
@import "components/popovers.less";
@import "components/post-summary.less";
@import "components/progress-bars.less";
@import "components/prose.less";
@import "components/spinner.less";
@import "components/tables.less";
@import "components/toggle-switches.less";
@import "components/topbar.less";
@import "components/uploader.less";
@import "components/user-cards.less";
@import "components/widget-static.less";

// -- LESS CONSTANTS AND MIXINS
@import "exports/_stacks-exports.less";
@import "exports/exports.less";

// -- ATOMIC CLASSES
@import "atomic/_stacks-borders.less";
@import "atomic/_stacks-colors.less";
@import "atomic/_stacks-flex.less";
@import "atomic/_stacks-grid.less";
@import "atomic/_stacks-spacing.less";
@import "atomic/_stacks-typography.less";
@import "atomic/_stacks-misc.less";
@import "atomic/_stacks-width-height.less";
@import "atomic/borders.less";
@import "atomic/colors.less";
@import "atomic/flex.less";
@import "atomic/grid.less";
@import "atomic/spacing.less";
@import "atomic/typography.less";
@import "atomic/misc.less";
@import "atomic/width-height.less";

/* stylelint-disable */
#stacks-internals #screen-lg({
Expand Down Expand Up @@ -82,5 +82,5 @@
/* stylelint-enable */

// -- CONFIG
@import "base/_stacks-configuration-static.less";
@import "base/_stacks-internals.less";
@import "base/configuration-static.less";
@import "base/internals.less";

0 comments on commit 919f572

Please sign in to comment.