Fix media object

This commit is contained in:
Jeremy Thomas 2016-12-22 19:37:38 +00:00
parent bd6fccef04
commit 7dd8463348
7 changed files with 65 additions and 31 deletions

View File

@ -173,7 +173,7 @@ input[type="radio"] {
} }
small { small {
font-size: 0.75rem; font-size: 0.8em;
} }
span { span {
@ -2234,7 +2234,6 @@ a.box:active {
text-align: center; text-align: center;
vertical-align: top; vertical-align: top;
width: 1.5rem; width: 1.5rem;
background: coral;
} }
.icon .fa { .icon .fa {
@ -3243,6 +3242,9 @@ a.box:active {
.level-item { .level-item {
align-items: center; align-items: center;
display: flex; display: flex;
flex-basis: auto;
flex-grow: 0;
flex-shrink: 0;
justify-content: center; justify-content: center;
} }
@ -3257,6 +3259,13 @@ a.box:active {
} }
} }
.level-left,
.level-right {
flex-basis: auto;
flex-grow: 0;
flex-shrink: 0;
}
.level-left .level-item:not(:last-child), .level-left .level-item:not(:last-child),
.level-right .level-item:not(:last-child) { .level-right .level-item:not(:last-child) {
margin-right: 0.75rem; margin-right: 0.75rem;
@ -3336,19 +3345,21 @@ a.box:active {
.media-left, .media-left,
.media-right { .media-right {
flex-basis: auto;
flex-grow: 0; flex-grow: 0;
flex-shrink: 0; flex-shrink: 0;
} }
.media-left { .media-left {
margin-right: 0.75rem; margin-right: 1rem;
} }
.media-right { .media-right {
margin-left: 0.75rem; margin-left: 1rem;
} }
.media-content { .media-content {
flex-basis: auto;
flex-grow: 1; flex-grow: 1;
flex-shrink: 1; flex-shrink: 1;
text-align: left; text-align: left;
@ -3361,7 +3372,7 @@ a.box:active {
} }
.media .content:not(:last-child) { .media .content:not(:last-child) {
margin-bottom: 1rem; margin-bottom: 0.75rem;
} }
.media .media { .media .media {

View File

@ -17,7 +17,7 @@ doc-subtab: card
<div class="card"> <div class="card">
<div class="card-image"> <div class="card-image">
<figure class="image is-4by3"> <figure class="image is-4by3">
<img src="{{site.url}}/images/placeholders/300x225.png" alt=""> <img src="{{site.url}}/images/placeholders/300x225.png" alt="Image">
</figure> </figure>
</div> </div>
<div class="card-content"> <div class="card-content">
@ -35,8 +35,8 @@ doc-subtab: card
<div class="content"> <div class="content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Phasellus nec iaculis mauris. <a href="#">@bulmaio</a>. Phasellus nec iaculis mauris. <a>@bulmaio</a>.
<a href="#">#css</a> <a href="#">#responsive</a> <a>#css</a> <a>#responsive</a>
<br> <br>
<small>11:09 PM - 1 Jan 2016</small> <small>11:09 PM - 1 Jan 2016</small>
</div> </div>
@ -71,7 +71,7 @@ doc-subtab: card
<div class="card-content"> <div class="card-content">
<div class="content"> <div class="content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris.
<a href="#">@bulmaio</a>. <a href="#">#css</a> <a href="#">#responsive</a> <a>@bulmaio</a>. <a>#css</a> <a>#responsive</a>
<br> <br>
<small>11:09 PM - 1 Jan 2016</small> <small>11:09 PM - 1 Jan 2016</small>
</div> </div>

View File

@ -117,20 +117,28 @@ doc-subtab: level
{% capture nav_centered_example %} {% capture nav_centered_example %}
<nav class="level"> <nav class="level">
<div class="level-item has-text-centered"> <div class="level-item has-text-centered">
<p class="heading">Tweets</p> <div>
<p class="title">3,456</p> <p class="heading">Tweets</p>
<p class="title">3,456</p>
</div>
</div> </div>
<div class="level-item has-text-centered"> <div class="level-item has-text-centered">
<p class="heading">Following</p> <div>
<p class="title">123</p> <p class="heading">Following</p>
<p class="title">123</p>
</div>
</div> </div>
<div class="level-item has-text-centered"> <div class="level-item has-text-centered">
<p class="heading">Followers</p> <div>
<p class="title">456K</p> <p class="heading">Followers</p>
<p class="title">456K</p>
</div>
</div> </div>
<div class="level-item has-text-centered"> <div class="level-item has-text-centered">
<p class="heading">Likes</p> <div>
<p class="title">789</p> <p class="heading">Likes</p>
<p class="title">789</p>
</div>
</div> </div>
</nav> </nav>
{% endcapture %} {% endcapture %}
@ -143,7 +151,7 @@ doc-subtab: level
<a class="link is-info">Menu</a> <a class="link is-info">Menu</a>
</p> </p>
<p class="level-item has-text-centered"> <p class="level-item has-text-centered">
<img src="{{ site.url }}/images/bulma-type.png" alt="" style="height: 33px;"> <img src="{{ site.url }}/images/bulma-type.png" alt="" style="height: 30px;">
</p> </p>
<p class="level-item has-text-centered"> <p class="level-item has-text-centered">
<a class="link is-info">Reservations</a> <a class="link is-info">Reservations</a>
@ -175,20 +183,28 @@ doc-subtab: level
{% capture nav_mobile_example %} {% capture nav_mobile_example %}
<nav class="level is-mobile"> <nav class="level is-mobile">
<div class="level-item has-text-centered"> <div class="level-item has-text-centered">
<p class="heading">Tweets</p> <div>
<p class="title">3,456</p> <p class="heading">Tweets</p>
<p class="title">3,456</p>
</div>
</div> </div>
<div class="level-item has-text-centered"> <div class="level-item has-text-centered">
<p class="heading">Following</p> <div>
<p class="title">123</p> <p class="heading">Following</p>
<p class="title">123</p>
</div>
</div> </div>
<div class="level-item has-text-centered"> <div class="level-item has-text-centered">
<p class="heading">Followers</p> <div>
<p class="title">456K</p> <p class="heading">Followers</p>
<p class="title">456K</p>
</div>
</div> </div>
<div class="level-item has-text-centered"> <div class="level-item has-text-centered">
<p class="heading">Likes</p> <div>
<p class="title">789</p> <p class="heading">Likes</p>
<p class="title">789</p>
</div>
</div> </div>
</nav> </nav>
{% endcapture %} {% endcapture %}

View File

@ -71,7 +71,7 @@ input[type="radio"]
vertical-align: baseline vertical-align: baseline
small small
font-size: $size-small font-size: 0.8em
span span
font-style: inherit font-style: inherit

View File

@ -1,6 +1,9 @@
.level-item .level-item
align-items: center align-items: center
display: flex display: flex
flex-basis: auto
flex-grow: 0
flex-shrink: 0
justify-content: center justify-content: center
.title, .title,
.subtitle .subtitle
@ -12,6 +15,9 @@
.level-left, .level-left,
.level-right .level-right
flex-basis: auto
flex-grow: 0
flex-shrink: 0
.level-item .level-item
&:not(:last-child) &:not(:last-child)
margin-right: 0.75rem margin-right: 0.75rem

View File

@ -1,15 +1,17 @@
.media-left, .media-left,
.media-right .media-right
flex-basis: auto
flex-grow: 0 flex-grow: 0
flex-shrink: 0 flex-shrink: 0
.media-left .media-left
margin-right: 0.75rem margin-right: 1rem
.media-right .media-right
margin-left: 0.75rem margin-left: 1rem
.media-content .media-content
flex-basis: auto
flex-grow: 1 flex-grow: 1
flex-shrink: 1 flex-shrink: 1
text-align: left text-align: left
@ -19,7 +21,7 @@
display: flex display: flex
text-align: left text-align: left
.content:not(:last-child) .content:not(:last-child)
margin-bottom: 1rem margin-bottom: 0.75rem
.media .media
border-top: 1px solid rgba($border, 0.5) border-top: 1px solid rgba($border, 0.5)
display: flex display: flex

View File

@ -1,6 +1,5 @@
.icon .icon
+fa(21px, 1.5rem) +fa(21px, 1.5rem)
background: coral
.fa .fa
font-size: inherit font-size: inherit
line-height: inherit line-height: inherit