Skip to content

Commit 0ca7362

Browse files
committed
added more content to the Flex documentation
1 parent 5ba711c commit 0ca7362

File tree

5 files changed

+375
-4
lines changed

5 files changed

+375
-4
lines changed

website/app/styles/app.scss

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
@use "pages/components/table" as components-table;
5252
@use "pages/components/tabs" as components-tabs;
5353
@use "pages/layouts/app-frame" as layouts-app-frame;
54+
@use "pages/layouts/flex" as layouts-flex;
5455
@use "pages/whats-new/changelog" as whats-new-changelog;
5556
@use "pages/patterns/table-multi-select" as patterns-table-multi-select;
5657
@use "pages/patterns/filter-patterns" as patterns-filter-patterns;

website/app/styles/pages/layouts/app-frame.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: MPL-2.0
44
*/
55

6-
// COMPONENTS > APP-FRAME
6+
// LAYOUTS > APP-FRAME
77

88
#show-content-layouts-app-frame {
99
.doc-app-frame-mock-viewport {
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
6+
// LAYOUTS > FLEX
7+
8+
#show-content-layouts-flex {
9+
.doc-flex-media-avatar {
10+
width: 50px;
11+
height: 50px;
12+
border-radius: 8px;
13+
}
14+
15+
.doc-flex-cards-item {
16+
width: 100%;
17+
height: 100%;
18+
padding: 18px 12px;
19+
text-align: center;
20+
}
21+
22+
.doc-flex-fixed-height-container {
23+
height: 400px;
24+
}
25+
26+
.doc-flex-outlined-container {
27+
outline: 1px dotted var(--doc-color-gray-400);
28+
}
29+
30+
.doc-flex-margin-left-auto {
31+
margin-left: auto;
32+
}
33+
}

website/docs/layouts/flex/partials/code/component-api.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ The `Layout::Flex::Item` component, yielded as contextual component, to be used
4949
<C.Property @name="basis" @type="string|0">
5050
The value (size) of the CSS `flex-basis` property, which sets the initial main size the flex item (for a technical explanation: [see MDN reference](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis)).
5151
<br/><br/>
52-
<em>Notice: when the value is set to `0` a CSS class is used to apply the `flex-basis` property; in all the other cases an inline `style` declaration is used, to accomodate for all the possible values that this CSS property allows.</em>
52+
<em>Notice: when the value is set to `0` a CSS class is used to apply the `flex-basis` property; in all the other cases an inline `style` declaration is used, to accomodate for all the possible values that this CSS property can have.</em>
5353
</C.Property>
5454
<C.Property @name="grow" @type="boolean|number|string">
5555
The value (size or keyword) of the CSS `flex-grow` property, which sets the flex grow factor of the flex item (for a technical explanation: [see MDN reference](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow)).
5656
<br/><br/>
57-
<em>Notice: when the value is set to `true/false` or `0/1` a CSS class is used to apply the `flex-grow` property; in all the other cases an inline `style` declaration is used, to accomodate for all the possible values that this CSS property allows.</em>
57+
<em>Notice: when the value is set to `true/false` or `0/1` a CSS class is used to apply the `flex-grow` property; in all the other cases an inline `style` declaration is used, to accomodate for all the possible values that this CSS property can have.</em>
5858
</C.Property>
5959
<C.Property @name="shrink" @type="boolean|number|string">
6060
The value (size or keyword) of the CSS `flex-shrink` property, which sets sets the flex shrink factor of the flex item (for a technical explanation: [see MDN reference](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink)).
6161
<br/><br/>
62-
<em>Notice: when the value is set to `true/false` or `0/1` a CSS class is used to apply the `flex-shrink` property; in all the other cases an inline `style` declaration is used, to accomodate for all the possible values that this CSS property allows.</em>
62+
<em>Notice: when the value is set to `true/false` or `0/1` a CSS class is used to apply the `flex-shrink` property; in all the other cases an inline `style` declaration is used, to accomodate for all the possible values that this CSS property can have.</em>
6363
</C.Property>
6464
<C.Property @name="enableCollapseBelowContentSize" @type="boolean">
6565
When this special argument is set to `true` it applies a `min-width: 0` to the element, allowing the flex item to shrink below its content's intrinsic minimum width (e.g. used with elliptized text)

0 commit comments

Comments
 (0)