-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dennis Heibült
committed
Oct 20, 2016
1 parent
76b4ba4
commit 18e3c32
Showing
2 changed files
with
178 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
--- | ||
layout: demo | ||
permalink: /demo/flag/ | ||
--- | ||
|
||
<h3 class="u-margin-bottom-small" class="u-margin-bottom-small">.o-flag</h3> | ||
<div class="o-flag"> | ||
<div class="o-flag__img"> | ||
<img src="http://placehold.it/200x250" alt="flag image"> | ||
</div> | ||
<div class="o-flag__body"> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi, nihil corrupti error, eius est architecto voluptatibus totam necessitatibus explicabo consequatur impedit natus maiores adipisci quidem autem nostrum quam eaque quisquam fugit deleniti ullam, laboriosam, ipsa. | ||
</div> | ||
</div> | ||
|
||
|
||
<br> | ||
|
||
|
||
<h3 class="u-margin-bottom-small">.o-flag--tiny</h3> | ||
<div class="o-flag o-flag--tiny"> | ||
<div class="o-flag__img"> | ||
<img src="http://placehold.it/200x250" alt="flag image"> | ||
</div> | ||
<div class="o-flag__body"> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi, nihil corrupti error, eius est architecto voluptatibus totam necessitatibus explicabo consequatur impedit natus maiores adipisci quidem autem nostrum quam eaque quisquam fugit deleniti ullam, laboriosam, ipsa. | ||
</div> | ||
</div> | ||
|
||
|
||
<br> | ||
|
||
|
||
<h3 class="u-margin-bottom-small">.o-flag--small</h3> | ||
<div class="o-flag o-flag--small"> | ||
<div class="o-flag__img"> | ||
<img src="http://placehold.it/200x250" alt="flag image"> | ||
</div> | ||
<div class="o-flag__body"> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi, nihil corrupti error, eius est architecto voluptatibus totam necessitatibus explicabo consequatur impedit natus maiores adipisci quidem autem nostrum quam eaque quisquam fugit deleniti ullam, laboriosam, ipsa. | ||
</div> | ||
</div> | ||
|
||
|
||
<br> | ||
|
||
|
||
<h3 class="u-margin-bottom-small">.o-flag--large</h3> | ||
<div class="o-flag o-flag--large"> | ||
<div class="o-flag__img"> | ||
<img src="http://placehold.it/200x250" alt="flag image"> | ||
</div> | ||
<div class="o-flag__body"> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi, nihil corrupti error, eius est architecto voluptatibus totam necessitatibus explicabo consequatur impedit natus maiores adipisci quidem autem nostrum quam eaque quisquam fugit deleniti ullam, laboriosam, ipsa. | ||
</div> | ||
</div> | ||
|
||
|
||
<br> | ||
|
||
|
||
<h3 class="u-margin-bottom-small">.o-flag--huge</h3> | ||
<div class="o-flag o-flag--huge"> | ||
<div class="o-flag__img"> | ||
<img src="http://placehold.it/200x250" alt="flag image"> | ||
</div> | ||
<div class="o-flag__body"> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi, nihil corrupti error, eius est architecto voluptatibus totam necessitatibus explicabo consequatur impedit natus maiores adipisci quidem autem nostrum quam eaque quisquam fugit deleniti ullam, laboriosam, ipsa. | ||
</div> | ||
</div> | ||
|
||
|
||
<br> | ||
|
||
|
||
<h3 class="u-margin-bottom-small">.o-flag--flush</h3> | ||
<div class="o-flag o-flag--flush"> | ||
<div class="o-flag__img"> | ||
<img src="http://placehold.it/200x250" alt="flag image"> | ||
</div> | ||
<div class="o-flag__body"> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi, nihil corrupti error, eius est architecto voluptatibus totam necessitatibus explicabo consequatur impedit natus maiores adipisci quidem autem nostrum quam eaque quisquam fugit deleniti ullam, laboriosam, ipsa. | ||
</div> | ||
</div> | ||
|
||
|
||
<br> | ||
|
||
|
||
<h3 class="u-margin-bottom-small">.o-flag--reverse</h3> | ||
<div class="o-flag o-flag--reverse"> | ||
<div class="o-flag__body"> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi, nihil corrupti error, eius est architecto voluptatibus totam necessitatibus explicabo consequatur impedit natus maiores adipisci quidem autem nostrum quam eaque quisquam fugit deleniti ullam, laboriosam, ipsa. | ||
</div> | ||
<div class="o-flag__img"> | ||
<img src="http://placehold.it/200x250" alt="flag image"> | ||
</div> | ||
</div> | ||
|
||
|
||
<br> | ||
|
||
|
||
<h3 class="u-margin-bottom-small">.o-flag--top</h3> | ||
<div class="o-flag o-flag--top"> | ||
<div class="o-flag__img"> | ||
<img src="http://placehold.it/200x250" alt="flag image"> | ||
</div> | ||
<div class="o-flag__body"> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi, nihil corrupti error, eius est architecto voluptatibus totam necessitatibus explicabo consequatur impedit natus maiores adipisci quidem autem nostrum quam eaque quisquam fugit deleniti ullam, laboriosam, ipsa. | ||
</div> | ||
</div> | ||
|
||
|
||
<br> | ||
|
||
|
||
<h3 class="u-margin-bottom-small">.o-flag--bottom</h3> | ||
<div class="o-flag o-flag--bottom"> | ||
<div class="o-flag__img"> | ||
<img src="http://placehold.it/200x250" alt="flag image"> | ||
</div> | ||
<div class="o-flag__body"> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi, nihil corrupti error, eius est architecto voluptatibus totam necessitatibus explicabo consequatur impedit natus maiores adipisci quidem autem nostrum quam eaque quisquam fugit deleniti ullam, laboriosam, ipsa. | ||
</div> | ||
</div> | ||
|
||
|
||
<br> | ||
<br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
layout: page | ||
title: "Flag object" | ||
group: objects | ||
page-class: c-page--docs | ||
has-sub-content: true | ||
sub-content: docs | ||
filename: "_objects.flag.scss" | ||
demo: "flag" | ||
classes: [ | ||
"o-flag", | ||
"o-flag--tiny", | ||
"o-flag--small", | ||
"o-flag--large", | ||
"o-flag--huge", | ||
"o-flag--flush", | ||
"o-flag--reverse", | ||
"o-flag--top", | ||
"o-flag--bottom" | ||
] | ||
--- | ||
|
||
{% include file-info.html %} | ||
|
||
{% include class-list.html %} | ||
|
||
The `flag` object module is an object similar in appearance to [the media | ||
object](https://github.com/inuitcss/objects.media), but which provides slightly | ||
more advanced functionality. | ||
|
||
|
||
## Usage | ||
|
||
Basic usage of the Flag object uses the required classes: | ||
|
||
<div class="o-flag"> | ||
<div class="o-flag__img"> | ||
<img src="/path/to/image.png" alt="" /> | ||
</div> | ||
<div class="o-flag__body"> | ||
<p>Text-like content goes here.</p> | ||
</div> | ||
</div> | ||
|
||
The only valid children of the `.o-flag` node are `.o-flag__img` and | ||
`.o-flag__body`. | ||
|
||
{% include demo-iframe.html %} |