Skip to content
Merged
Show file tree
Hide file tree
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
37 changes: 37 additions & 0 deletions src/core/container.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* @package @comfortcss/flex
* @since 0.1.0
* @license MIT
* @author ComfortCSS
*
* @section container
* @description
* Classes that create flex containers.
* This is the foundation of the flex system.
*
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/display
*/

@layer flex {
/**
* Block-level flex container.
* Creates a flex formatting context.
*
* @example
* <div class="flex">...</div>
*/
:where(.flex) {
display: flex;
}

/**
* Inline-level flex container.
* Behaves like inline element but with flex children.
*
* @example
* <span class="inline-flex">...</span>
*/
:where(.inline-flex) {
display: inline-flex;
}
}
35 changes: 5 additions & 30 deletions src/flex.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,10 @@
/**
* @package @comfortcss/flex
* @since 0.1.0
* @version 0.1.0
* @license MIT
* @author ComfortCSS
*
* @section container
* @description
* Classes that create flex containers.
* This is the foundation of the flex system.
*
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/display
* @dependencies @comfortcss/tokens
*/

@layer flex {
/**
* Block-level flex container.
* Creates a flex formatting context.
*
* @example
* <div class="flex">...</div>
*/
:where(.flex) {
display: flex;
}

/**
* Inline-level flex container.
* Behaves like inline element but with flex children.
*
* @example
* <span class="inline-flex">...</span>
*/
:where(.inline-flex) {
display: inline-flex;
}
}
@import "./core/container.css";
10 changes: 10 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @package @comfortcss/flex
* @version 0.1.0
* @license MIT
* @author ComfortCSS
*
* @dependencies @comfortcss/tokens
*/

@import "./flex.css";