Skip to content

Commit

Permalink
Update demo to show image clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen von Takach committed Apr 7, 2015
1 parent 7c329ff commit f095a25
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _orbicular.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
}

&> div {
position: relative;
display: table;
width: 100%;
height: 100%;
Expand All @@ -142,6 +141,7 @@
height: 100%;

&> div {
position: relative;
display: table-cell;

font-size: $actualFontSize;
Expand Down
Binary file added demo/colorful-triangles-background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@
</orbicular>
</div>

<br />
<br />

<div class="container">
<orbicular>
<img src="./colorful-triangles-background.jpg">
</orbicular>
</div>

<script src="../bower_components/angular/angular.js"></script>
<script src="../orbicular.js"></script>
</body>
Expand Down
18 changes: 14 additions & 4 deletions demo/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ orbicular > div.co-shadow, [orbicular] > div.co-shadow {
orbicular > div.co-content, [orbicular] > div.co-content {
position: absolute;
overflow: hidden;
-webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
height: 0.84em;
width: 0.84em;
margin-left: 0.08em;
Expand All @@ -72,21 +73,21 @@ orbicular > div.co-content, [orbicular] > div.co-content {
-moz-border-radius: 0.42em;
box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.2);
}
/* line 130, ../_orbicular.scss */
/* line 133, ../_orbicular.scss */
orbicular > div.co-content > div, [orbicular] > div.co-content > div {
position: relative;
display: table;
width: 100%;
height: 100%;
}
/* line 136, ../_orbicular.scss */
/* line 138, ../_orbicular.scss */
orbicular > div.co-content > div > div, [orbicular] > div.co-content > div > div {
display: table-row;
width: 100%;
height: 100%;
}
/* line 141, ../_orbicular.scss */
/* line 143, ../_orbicular.scss */
orbicular > div.co-content > div > div > div, [orbicular] > div.co-content > div > div > div {
position: relative;
display: table-cell;
font-size: 0.08em;
color: #FFF;
Expand All @@ -101,3 +102,12 @@ div.container {
width: 15em;
height: 15em;
}

/* line 13, style.scss */
img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
8 changes: 8 additions & 0 deletions demo/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ div.container {
height: 15em;
}


img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

0 comments on commit f095a25

Please sign in to comment.