Skip to content

Commit

Permalink
Cards with images
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioars committed Jan 6, 2017
1 parent 2a24d2b commit 990dff4
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 5 deletions.
16 changes: 15 additions & 1 deletion css/sculptor.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion css/sculptor.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 31 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<h1>Sculptor</h1>
<p>The future web experience</p>
<a href="#getting-started" class="button blur">Getting Started</a><br>
<small>v0.1.2</small><br>
<small>v0.1.3</small><br>

</div>
</header>
Expand Down Expand Up @@ -462,6 +462,36 @@ <h2>With Nice Background on header</h2>
&lt;/div&gt;
&lt;/div&gt;</code></pre>


<h2>With image on header</h2>
<div class="flexRow">
<div class="column">
&nbsp;
</div>
<div class="column">
<div class="card">
<header class="header image textWhite">
<img src="http://kingofwallpapers.com/sundown/sundown-008.jpg">
<span>Card Title</span>
</header>
<div class="content">
<p class="indent textJustify">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque rutrum convallis bibendum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque rutrum convallis bibendum.</p>
</div>
</div>
</div>
<div class="column">
&nbsp;
</div>
</div>
<pre><code data-language="html">&lt;div class="card"&gt;
&lt;div class="header image textWhite"&gt;
&lt;img src="http://kingofwallpapers.com/sundown/sundown-008.jpg"&gt;
&lt;span&gt;Card Title&lt;/span&gt;
&lt;/div&gt;
&lt;div class="content"&gt;
&lt;p&gt;Lorem ipsum dolor sit amet...&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;</code></pre>
<h2>With nice background and action</h2>
<div class="flexRow">
<div class="column">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sculptorcss",
"version": "0.1.2",
"version": "0.1.3",
"description": "The future web experience in CSS",
"main": "index.js",
"scripts": {
Expand Down
19 changes: 19 additions & 0 deletions sass/components/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,25 @@
padding: $buttonPadding $buttonPadding*2;
font-size: $h2Size;
font-weight: $fontLight;
&.image{
display: flex;
align-items: flex-end;
padding: 0;
overflow: hidden;
border-top-left-radius: $radiusLight;
border-top-right-radius: $radiusLight;

& span{
position: absolute;
padding: $buttonPadding;
}

& img{
display: block;
max-width: 100%;
height: auto;
}
}
}
// ==============================================
// Card Content
Expand Down
2 changes: 1 addition & 1 deletion sass/sculptor.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Sculptor v0.1.2
* Sculptor v0.1.3
* https://github.com/1fabiosoares/sculptor
*
* Copyright (c) 2016 Fabio Soares
Expand Down

0 comments on commit 990dff4

Please sign in to comment.