mirror of
https://github.com/cjcenizal/flexbox-patterns.git
synced 2025-09-03 04:32:39 +02:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
32b10cdc27 | ||
|
ec3a380dba | ||
|
9b9336056f | ||
|
0c8747d500 | ||
|
18db3b20df | ||
|
45193b80d2 |
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -122,6 +122,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- This section gets pushed to the bottom-->
|
<!-- This section gets pushed to the bottom-->
|
||||||
<div class="sideBar__section">
|
<div class="sideBar__section">
|
||||||
|
<div class="sideBar__item">Change theme</div>
|
||||||
<div class="sideBar__item">Legal</div>
|
<div class="sideBar__item">Legal</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -141,6 +142,7 @@
|
|||||||
<!-- This section gets pushed to the right side-->
|
<!-- This section gets pushed to the right side-->
|
||||||
<div class="siteHeader__section">
|
<div class="siteHeader__section">
|
||||||
<div class="siteHeader__item siteHeaderButton">Settings</div>
|
<div class="siteHeader__item siteHeaderButton">Settings</div>
|
||||||
|
<div class="siteHeader__item siteHeaderButton">Log out</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
26
dist/styles.css
vendored
26
dist/styles.css
vendored
@@ -512,7 +512,7 @@
|
|||||||
-ms-flex-pack: center;
|
-ms-flex-pack: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
padding: 15px;
|
padding: 15px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card__descriptionIcon {
|
.card__descriptionIcon {
|
||||||
@@ -524,6 +524,7 @@
|
|||||||
color: #57727C;
|
color: #57727C;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
max-width: calc(100% - 30px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card__price {
|
.card__price {
|
||||||
@@ -539,6 +540,7 @@
|
|||||||
.card--fixedWidth {
|
.card--fixedWidth {
|
||||||
max-width: 120px;
|
max-width: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*=====================================================
|
/*=====================================================
|
||||||
contents of: index.css
|
contents of: index.css
|
||||||
=====================================================*/
|
=====================================================*/
|
||||||
@@ -566,13 +568,13 @@
|
|||||||
* properties. These properties control how the
|
* properties. These properties control how the
|
||||||
* element resizes to fill its container.
|
* element resizes to fill its container.
|
||||||
*
|
*
|
||||||
* We'll also set flex-grow to 1 so that it
|
* We'll set flex-grow to 1 so that it will
|
||||||
* will expand to fill its container. (The
|
* expand to fill its container. (The default
|
||||||
* default value is 0.)
|
* default value is 0.)
|
||||||
*
|
*
|
||||||
* We'll set flex-shrink to 1 so that the element
|
* We'll also set flex-shrink to 1 so that the
|
||||||
* will shrink as its container gets smaller.
|
* element will shrink as its container gets
|
||||||
* (The default value is 1.)
|
* smaller. (The default value is 1.)
|
||||||
*
|
*
|
||||||
* Last, we set flex-basis to 0 so that its
|
* Last, we set flex-basis to 0 so that its
|
||||||
* size is solely determined by the size of
|
* size is solely determined by the size of
|
||||||
@@ -585,10 +587,16 @@
|
|||||||
* shrink with its container and siblings, but
|
* shrink with its container and siblings, but
|
||||||
* they will all have the same size, even if they
|
* they will all have the same size, even if they
|
||||||
* have different amounts of content.
|
* have different amounts of content.
|
||||||
|
*
|
||||||
|
* NOTE: IE11 ignores flex short-hand declarations
|
||||||
|
* with unitless flex-basis values. So we have to
|
||||||
|
* use 0% instead of 0 as a workaround. You can
|
||||||
|
* find more info at:
|
||||||
|
* github.com/philipwalton/flexbugs.
|
||||||
*/
|
*/
|
||||||
-webkit-flex: 1 1 0;
|
-webkit-flex: 1 1 0%;
|
||||||
-ms-flex: 1 1 0;
|
-ms-flex: 1 1 0%;
|
||||||
flex: 1 1 0;
|
flex: 1 1 0%;
|
||||||
|
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "flexbox-patterns",
|
"name": "flexbox-patterns",
|
||||||
"version": "0.1.1",
|
"version": "0.1.3",
|
||||||
"description": "Patterns for using flexbox CSS to build awesome UI components",
|
"description": "Patterns for using flexbox CSS to build awesome UI components",
|
||||||
"repository": "cjcenizal/flexbox-patterns",
|
"repository": "cjcenizal/flexbox-patterns",
|
||||||
"author": {
|
"author": {
|
||||||
|
@@ -7,6 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- This section gets pushed to the bottom-->
|
<!-- This section gets pushed to the bottom-->
|
||||||
<div class="sideBar__section">
|
<div class="sideBar__section">
|
||||||
|
<div class="sideBar__item">Change theme</div>
|
||||||
<div class="sideBar__item">Legal</div>
|
<div class="sideBar__item">Legal</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -11,5 +11,6 @@
|
|||||||
<!-- This section gets pushed to the right side-->
|
<!-- This section gets pushed to the right side-->
|
||||||
<div class="siteHeader__section">
|
<div class="siteHeader__section">
|
||||||
<div class="siteHeader__item siteHeaderButton">Settings</div>
|
<div class="siteHeader__item siteHeaderButton">Settings</div>
|
||||||
|
<div class="siteHeader__item siteHeaderButton">Log out</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -17,13 +17,13 @@
|
|||||||
* properties. These properties control how the
|
* properties. These properties control how the
|
||||||
* element resizes to fill its container.
|
* element resizes to fill its container.
|
||||||
*
|
*
|
||||||
* We'll also set flex-grow to 1 so that it
|
* We'll set flex-grow to 1 so that it will
|
||||||
* will expand to fill its container. (The
|
* expand to fill its container. (The default
|
||||||
* default value is 0.)
|
* default value is 0.)
|
||||||
*
|
*
|
||||||
* We'll set flex-shrink to 1 so that the element
|
* We'll also set flex-shrink to 1 so that the
|
||||||
* will shrink as its container gets smaller.
|
* element will shrink as its container gets
|
||||||
* (The default value is 1.)
|
* smaller. (The default value is 1.)
|
||||||
*
|
*
|
||||||
* Last, we set flex-basis to 0 so that its
|
* Last, we set flex-basis to 0 so that its
|
||||||
* size is solely determined by the size of
|
* size is solely determined by the size of
|
||||||
@@ -36,8 +36,14 @@
|
|||||||
* shrink with its container and siblings, but
|
* shrink with its container and siblings, but
|
||||||
* they will all have the same size, even if they
|
* they will all have the same size, even if they
|
||||||
* have different amounts of content.
|
* have different amounts of content.
|
||||||
|
*
|
||||||
|
* NOTE: IE11 ignores flex short-hand declarations
|
||||||
|
* with unitless flex-basis values. So we have to
|
||||||
|
* use 0% instead of 0 as a workaround. You can
|
||||||
|
* find more info at:
|
||||||
|
* github.com/philipwalton/flexbugs.
|
||||||
*/
|
*/
|
||||||
flex: 1 1 0;
|
flex: 1 1 0%;
|
||||||
|
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
@@ -45,7 +45,7 @@
|
|||||||
*/
|
*/
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
padding: 15px;
|
padding: 15px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card__descriptionIcon {
|
.card__descriptionIcon {
|
||||||
@@ -57,6 +57,7 @@
|
|||||||
color: #57727C;
|
color: #57727C;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
max-width: calc(100% - 30px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card__price {
|
.card__price {
|
||||||
|
Reference in New Issue
Block a user