mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-28 12:24:23 +00:00
Add new breakpoint, Explain card
This commit is contained in:
parent
400dc82c40
commit
38d29ca5b0
@ -5,6 +5,7 @@
|
|||||||
* **Default font-size is 16px**
|
* **Default font-size is 16px**
|
||||||
* **New `.field` element ; `.control` repurposed**
|
* **New `.field` element ; `.control` repurposed**
|
||||||
* **New `.pagination` sizes**
|
* **New `.pagination` sizes**
|
||||||
|
* **New `$fullhd` breakpoint (1344px)**
|
||||||
|
|
||||||
* Remove monospace named fonts
|
* Remove monospace named fonts
|
||||||
* Remove icon spacing logic
|
* Remove icon spacing logic
|
||||||
|
@ -2632,6 +2632,12 @@ input[type="submit"].button {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1384px) {
|
||||||
|
.container {
|
||||||
|
max-width: 1344px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.delete {
|
.delete {
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
@ -2787,10 +2793,6 @@ input[type="submit"].button {
|
|||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-content .title + .subtitle {
|
|
||||||
margin-top: -1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-footer {
|
.card-footer {
|
||||||
border-top: 1px solid #dbdbdb;
|
border-top: 1px solid #dbdbdb;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
|
@ -13,6 +13,44 @@ doc-subtab: card
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
<p>The <strong>card</strong> component comprises several elements that you can mix and match:</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<code>card</code>: the main container
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<code>card-header</code>: a horizontal bar with a shadow
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<code>card-header-title</code>: a left-aligned bold text
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>card-header-icon</code>: a placeholder for an icon
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>card-image</code>: a fullwidth container for a reponsive image
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>card-content</code>: a multi-purpose container for <em>any</em> other element
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>card-footer</code>: a horizontal list of controls
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<code>card-footer-item</code>: a repeatable list item
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
{% capture card_example %}
|
{% capture card_example %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-image">
|
<div class="card-image">
|
||||||
@ -90,6 +128,36 @@ doc-subtab: card
|
|||||||
<div class="column">
|
<div class="column">
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
{{card_header_example}}
|
{{card_header_example}}
|
||||||
|
{% endhighlight %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
{% capture card_title_example %}
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-content">
|
||||||
|
<p class="title">
|
||||||
|
If Tetris has taught me anything it's that errors pile up and accomplishments disappear.
|
||||||
|
</p>
|
||||||
|
<p class="subtitle">
|
||||||
|
Mark Twain
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<footer class="card-footer">
|
||||||
|
<p class="card-footer-item">
|
||||||
|
<span>More quotes by <a href="#">Mark Twain</a></span>
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
{% endcapture %}
|
||||||
|
<div class="columns">
|
||||||
|
<div class="column is-one-third">
|
||||||
|
{{card_title_example}}
|
||||||
|
</div>
|
||||||
|
<div class="column">
|
||||||
|
{% highlight html %}
|
||||||
|
{{card_title_example}}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -38,42 +38,42 @@ doc-subtab: tag
|
|||||||
Like with buttons, there are <strong>9 different colors</strong> available.
|
Like with buttons, there are <strong>9 different colors</strong> available.
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-2">
|
<div class="column is-2">
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<span class="tag is-black">
|
<span class="tag is-black">
|
||||||
Black
|
Black
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<span class="tag is-dark">
|
<span class="tag is-dark">
|
||||||
Dark
|
Dark
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<span class="tag is-light">
|
<span class="tag is-light">
|
||||||
Light
|
Light
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<span class="tag is-white">
|
<span class="tag is-white">
|
||||||
White
|
White
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<span class="tag is-primary">
|
<span class="tag is-primary">
|
||||||
Primary
|
Primary
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<span class="tag is-info">
|
<span class="tag is-info">
|
||||||
Info
|
Info
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<span class="tag is-success">
|
<span class="tag is-success">
|
||||||
Success
|
Success
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<span class="tag is-warning">
|
<span class="tag is-warning">
|
||||||
Warning
|
Warning
|
||||||
</span>
|
</span>
|
||||||
@ -102,12 +102,12 @@ doc-subtab: tag
|
|||||||
And <strong>2 additional</strong> sizes.
|
And <strong>2 additional</strong> sizes.
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-2">
|
<div class="column is-2">
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<span class="tag is-primary is-medium">
|
<span class="tag is-primary is-medium">
|
||||||
Medium
|
Medium
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<span class="tag is-info is-large">
|
<span class="tag is-info is-large">
|
||||||
Large
|
Large
|
||||||
</span>
|
</span>
|
||||||
@ -126,19 +126,19 @@ doc-subtab: tag
|
|||||||
You can also append a <strong>delete button</strong>.
|
You can also append a <strong>delete button</strong>.
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-2">
|
<div class="column is-2">
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<span class="tag is-success">
|
<span class="tag is-success">
|
||||||
Bar
|
Bar
|
||||||
<button class="delete is-small"></button>
|
<button class="delete is-small"></button>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<span class="tag is-warning is-medium">
|
<span class="tag is-warning is-medium">
|
||||||
Hello
|
Hello
|
||||||
<button class="delete is-small"></button>
|
<button class="delete is-small"></button>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<span class="tag is-danger is-large">
|
<span class="tag is-danger is-large">
|
||||||
World
|
World
|
||||||
<button class="delete"></button>
|
<button class="delete"></button>
|
||||||
|
@ -29,7 +29,7 @@ doc-subtab: responsive-helpers
|
|||||||
<p>For example, here's what the <code>is-flex</code> helper works:</p>
|
<p>For example, here's what the <code>is-flex</code> helper works:</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="table">
|
<table class="table is-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
@ -188,7 +188,7 @@ doc-subtab: responsive-helpers
|
|||||||
|
|
||||||
<h3 class="title">Hide</h3>
|
<h3 class="title">Hide</h3>
|
||||||
|
|
||||||
<table class="table">
|
<table class="table is-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
|
@ -67,19 +67,19 @@ doc-subtab: syntax
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<a class="button is-primary">Button</a>
|
<a class="button is-primary">Button</a>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<a class="button is-info">Button</a>
|
<a class="button is-info">Button</a>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<a class="button is-success">Button</a>
|
<a class="button is-success">Button</a>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<a class="button is-warning">Button</a>
|
<a class="button is-warning">Button</a>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<a class="button is-danger">Button</a>
|
<a class="button is-danger">Button</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -115,16 +115,16 @@ doc-subtab: syntax
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<a class="button is-small">Button</a>
|
<a class="button is-small">Button</a>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<a class="button">Button</a>
|
<a class="button">Button</a>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<a class="button is-medium">Button</a>
|
<a class="button is-medium">Button</a>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<a class="button is-large">Button</a>
|
<a class="button is-large">Button</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -157,13 +157,13 @@ doc-subtab: syntax
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<a class="button is-primary is-outlined">Button</a>
|
<a class="button is-primary is-outlined">Button</a>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<a class="button is-primary is-loading">Button</a>
|
<a class="button is-primary is-loading">Button</a>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="field">
|
||||||
<a class="button is-primary is-disabled">Button</a>
|
<a class="button is-primary is-disabled">Button</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -24,8 +24,6 @@
|
|||||||
|
|
||||||
.card-content
|
.card-content
|
||||||
padding: 1.5rem
|
padding: 1.5rem
|
||||||
.title + .subtitle
|
|
||||||
margin-top: -1.5rem
|
|
||||||
|
|
||||||
.card-footer
|
.card-footer
|
||||||
border-top: 1px solid $border
|
border-top: 1px solid $border
|
||||||
|
@ -5,13 +5,15 @@
|
|||||||
position: relative
|
position: relative
|
||||||
+desktop
|
+desktop
|
||||||
margin: 0 auto
|
margin: 0 auto
|
||||||
max-width: $desktop - 40px // 960px
|
max-width: $desktop - 40px
|
||||||
// Modifiers
|
// Modifiers
|
||||||
&.is-fluid
|
&.is-fluid
|
||||||
margin: 0 20px
|
margin: 0 20px
|
||||||
max-width: none
|
max-width: none
|
||||||
+widescreen
|
+widescreen
|
||||||
max-width: $widescreen - 40px // 1152px
|
max-width: $widescreen - 40px
|
||||||
|
+fullhd
|
||||||
|
max-width: $fullhd - 40px
|
||||||
|
|
||||||
.delete
|
.delete
|
||||||
+delete
|
+delete
|
||||||
|
@ -166,17 +166,6 @@
|
|||||||
|
|
||||||
// Responsiveness
|
// Responsiveness
|
||||||
|
|
||||||
$tablet: 769px !default
|
|
||||||
|
|
||||||
// 960px container + 40px
|
|
||||||
$desktop: 1000px !default
|
|
||||||
|
|
||||||
// 1152px container + 40
|
|
||||||
$widescreen: 1192px !default
|
|
||||||
|
|
||||||
// 960 and 1152 have been chosen because
|
|
||||||
// they are divisible by both 12 and 16
|
|
||||||
|
|
||||||
=from($device)
|
=from($device)
|
||||||
@media screen and (min-width: $device)
|
@media screen and (min-width: $device)
|
||||||
@content
|
@content
|
||||||
@ -212,3 +201,11 @@ $widescreen: 1192px !default
|
|||||||
=widescreen
|
=widescreen
|
||||||
@media screen and (min-width: $widescreen)
|
@media screen and (min-width: $widescreen)
|
||||||
@content
|
@content
|
||||||
|
|
||||||
|
=widescreen-only
|
||||||
|
@media screen and (min-width: $widescreen) and (max-width: $fullhd - 1px)
|
||||||
|
@content
|
||||||
|
|
||||||
|
=fullhd
|
||||||
|
@media screen and (min-width: $fullhd)
|
||||||
|
@content
|
||||||
|
@ -46,6 +46,17 @@ $weight-bold: 700 !default
|
|||||||
$body-background: $white !default
|
$body-background: $white !default
|
||||||
$body-size: 16px !default
|
$body-size: 16px !default
|
||||||
|
|
||||||
|
// Responsiveness
|
||||||
|
// 960, 1152, and 1344 have been chosen because
|
||||||
|
// they are divisible by both 12 and 16
|
||||||
|
$tablet: 769px !default
|
||||||
|
// 960px container + 40px
|
||||||
|
$desktop: 1000px !default
|
||||||
|
// 1152px container + 40
|
||||||
|
$widescreen: 1192px !default
|
||||||
|
// 1344px container + 40
|
||||||
|
$fullhd: 1384px !default
|
||||||
|
|
||||||
// Miscellaneous
|
// Miscellaneous
|
||||||
$easing: ease-out !default
|
$easing: ease-out !default
|
||||||
$radius-small: 2px !default
|
$radius-small: 2px !default
|
||||||
|
Loading…
Reference in New Issue
Block a user