Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions _compress_images_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ assets/images/guide/bitcoin-island@2x.jpg: bitcoin-island@2x.jpg
assets/images/guide/contribute/content-guidelines-preview.jpg: content-guidelines-preview.jpg
assets/images/guide/contribute/contribute-preview.jpg: contribute-preview.jpg
assets/images/guide/contribute/formatting-preview.jpg: formatting-preview.jpg
assets/images/guide/contribute/formatting/example-image-mobile-screen.png: example-image-mobile-screen.png
assets/images/guide/contribute/formatting/example-image-mobile-screen@2x.png: example-image-mobile-screen@2x.png
assets/images/guide/contribute/formatting/example-image-square.jpg: example-image-square.jpg
assets/images/guide/contribute/formatting/example-image-square@2x.jpg: example-image-square@2x.jpg
assets/images/guide/contribute/formatting/example-image-wide-desktop.jpg: example-image-wide-desktop.jpg
assets/images/guide/contribute/formatting/example-image-wide-desktop@2x.jpg: example-image-wide-desktop@2x.jpg
assets/images/guide/contribute/formatting/example-image-wide-mobile.jpg: example-image-wide-mobile.jpg
assets/images/guide/contribute/formatting/example-image-wide-mobile@2x.jpg: example-image-wide-mobile@2x.jpg
assets/images/guide/contribute/formatting/prototype-example-mobile.png: prototype-example-mobile.png
assets/images/guide/contribute/formatting/prototype-example-mobile@2x.png: prototype-example-mobile@2x.png
assets/images/guide/contribute/formatting/prototype-example.png: prototype-example.png
Expand Down Expand Up @@ -348,6 +356,13 @@ assets/images/guide/glossary/descriptors-mobile.jpg: descriptors-mobile.jpg
assets/images/guide/glossary/descriptors-mobile@2x.jpg: descriptors-mobile@2x.jpg
assets/images/guide/glossary/descriptors.jpg: descriptors.jpg
assets/images/guide/glossary/descriptors@2x.jpg: descriptors@2x.jpg
assets/images/guide/glossary/glossary-mobile.png: glossary-mobile.png
assets/images/guide/glossary/glossary-mobile@2x.png: glossary-mobile@2x.png
assets/images/guide/glossary/glossary-preview.jpg: glossary-preview.jpg
assets/images/guide/glossary/glossary-preview.png: glossary-preview.png
assets/images/guide/glossary/glossary.png: glossary.png
assets/images/guide/glossary/glossary@1x.png: glossary@1x.png
assets/images/guide/glossary/glossary@2x.png: glossary@2x.png
assets/images/guide/glossary/wallet.jpg: wallet.jpg
assets/images/guide/glossary/wallet@2x.jpg: wallet@2x.jpg
assets/images/guide/onboarding/onboarding-mobile.png: onboarding-mobile.png
Expand Down Expand Up @@ -479,18 +494,5 @@ assets/images/projects/projects-preview.jpg: projects-preview.jpg
assets/images/projects/projects.jpg: projects.jpg
assets/images/projects/projects@2x.jpg: projects@2x.jpg
assets/images/search-preview.jpg: search-preview.jpg
assets/images/style/example-image-square.jpg: example-image-square.jpg
assets/images/style/example-image-square@2x.jpg: example-image-square@2x.jpg
assets/images/style/example-image-wide-desktop.jpg: example-image-wide-desktop.jpg
assets/images/style/example-image-wide-desktop@2x.jpg: example-image-wide-desktop@2x.jpg
assets/images/style/example-image-wide-mobile.jpg: example-image-wide-mobile.jpg
assets/images/style/example-image-wide-mobile@2x.jpg: example-image-wide-mobile@2x.jpg
assets/images/submit-header-design-preview.jpg: submit-header-design-preview.jpg
assets/mstile-150x150.png: mstile-150x150.png
assets/images/guide/glossary/glossary@2x.png: glossary@2x.png
assets/images/guide/glossary/glossary-mobile.png: glossary-mobile.png
assets/images/guide/glossary/glossary@1x.png: glossary@1x.png
assets/images/guide/glossary/glossary-preview.png: glossary-preview.png
assets/images/guide/glossary/glossary-mobile@2x.png: glossary-mobile@2x.png
assets/images/guide/glossary/glossary.png: glossary.png
assets/images/guide/glossary/glossary-preview.jpg: glossary-preview.jpg
1 change: 1 addition & 0 deletions _includes/fact-close.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
</p></div></div>
1 change: 1 addition & 0 deletions _includes/fact-cons.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% include fact-open.html color="red" label="Cons" icon="minus" %}
7 changes: 7 additions & 0 deletions _includes/fact-open.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div class="fact">
<div class="icon -{{ include.color }}">
<svg viewBox="0 0 24 24"><use xlink:href="#svg-{{ include.icon }}"></use></svg>
</div>
<div class="copy">
<h6>{{ include.label }}</h6>
<p markdown="1">
1 change: 1 addition & 0 deletions _includes/fact-products.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% include fact-open.html color="blue" label="Products" icon="rectangle" %}
1 change: 1 addition & 0 deletions _includes/fact-pros.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% include fact-open.html color="green" label="Pros" icon="plus" %}
1 change: 1 addition & 0 deletions _includes/fact-variations.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% include fact-open.html color="blue" label="Variations" icon="triangle" %}
1 change: 1 addition & 0 deletions _includes/fact-when-not-to-use.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% include fact-open.html color="red" label="When not to use" icon="forbid" %}
1 change: 1 addition & 0 deletions _includes/fact-when-to-use.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% include fact-open.html color="green" label="When to use" icon="check" %}
1 change: 1 addition & 0 deletions _includes/rec-close.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
</div>
2 changes: 2 additions & 0 deletions _includes/rec-open.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<div class="recommendation" markdown="1">
<h6><svg viewBox="0 0 24 24"><use xlink:href="#svg-star"></use></svg>Recommendation</h6>
42 changes: 42 additions & 0 deletions _includes/svgs.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,46 @@
<path d="M13.8731 5.28431C13.8731 4.65631 14.3822 4.14722 15.0102 4.14722C15.6382 4.14722 16.1473 4.65631 16.1473 5.28431V8.69559C16.1473 9.32359 15.6382 9.83269 15.0102 9.83269C14.3822 9.83269 13.8731 9.32359 13.8731 8.69559V5.28431Z" fill="white"/>
</svg>
</symbol>
<symbol id="svg-star" viewBox="0 0 24 24">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.5245 5.32925C11.6741 4.86859 12.3259 4.86859 12.4755 5.32925L13.9084 9.73908C13.9753 9.94509 14.1673 10.0846 14.3839 10.0846H19.0207C19.505 10.0846 19.7064 10.7044 19.3146 10.9891L15.5633 13.7145C15.3881 13.8418 15.3148 14.0675 15.3817 14.2735L16.8145 18.6833C16.9642 19.144 16.437 19.5271 16.0451 19.2424L12.2939 16.5169C12.1186 16.3896 11.8814 16.3896 11.7061 16.5169L7.95488 19.2424C7.56303 19.5271 7.03578 19.144 7.18546 18.6834L8.6183 14.2735C8.68524 14.0675 8.61191 13.8418 8.43667 13.7145L4.68544 10.9891C4.29358 10.7044 4.49497 10.0846 4.97933 10.0846H9.6161C9.83272 10.0846 10.0247 9.94509 10.0916 9.73908L11.5245 5.32925Z" fill="currentColor"/>
</svg>
</symbol>
<symbol id="svg-info" viewBox="0 0 24 24">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10.0384 19.6813H13.1641V9.86315H10.0384V19.6813ZM11.6044 7.71897C12.4929 7.71897 13.2088 7.04781 13.2088 6.22323C13.2088 5.39866 12.4929 4.73389 11.6044 4.73389C10.7223 4.73389 10 5.39866 10 6.22323C10 7.04781 10.7223 7.71897 11.6044 7.71897Z" fill="currentColor"/>
</svg>
</symbol>
<symbol id="svg-plus" viewBox="0 0 24 24">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 5C11.4477 5 11 5.44772 11 6V11H6C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V13H18C18.5523 13 19 12.5523 19 12C19 11.4477 18.5523 11 18 11H13V6C13 5.44772 12.5523 5 12 5Z" fill="currentColor"/>
</svg>
</symbol>
<symbol id="svg-minus" viewBox="0 0 24 24">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="5" y="11" width="14" height="2" rx="1" fill="currentColor"/>
</svg>
</symbol>
<symbol id="svg-check" viewBox="0 0 24 24">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6 13.079L10.5351 17L17.0764 7" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</symbol>
<symbol id="svg-forbid" viewBox="0 0 24 24">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12" r="6" stroke="currentColor" stroke-width="2"/>
<line x1="16.7071" y1="7.70711" x2="8.22183" y2="16.1924" stroke="currentColor" stroke-width="2"/>
</svg>
</symbol>
<symbol id="svg-triangle" viewBox="0 0 24 24">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.866 6.5L18.0622 15.5C18.4471 16.1667 17.966 17 17.1962 17H6.80385C6.03405 17 5.55292 16.1667 5.93782 15.5L11.134 6.5C11.5189 5.83333 12.4811 5.83333 12.866 6.5Z" stroke="currentColor" stroke-width="2"/>
</svg>
</symbol>
<symbol id="svg-rectangle" viewBox="0 0 24 24">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="7" y="5" width="10" height="14" rx="1" stroke="currentColor" stroke-width="2"/>
</svg>
</symbol>

</svg>
1 change: 1 addition & 0 deletions _includes/tip-close.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
</div>
2 changes: 2 additions & 0 deletions _includes/tip-open.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<div class="tip" markdown="1">
<h6><svg viewBox="0 0 24 24"><use xlink:href="#svg-info"></use></svg>Tip</h6>
219 changes: 219 additions & 0 deletions _sass/minima/_article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,149 @@ article.guide {
margin-top: 0;
}

a.button {
display: inline-block;
padding: 0 20px;
border-radius: 3px;
color: white;
line-height: 43px;
text-decoration: none;
background-color: $primary-color;
transition: all 150ms $ease;

&:hover {
background-color: darken($primary-color, 5);
}

&.-outline {
background-color: transparent;
color: $primary-color;
border: 1px solid $primary-color;

&:hover {
color: darken($primary-color, 5);
border-color: darken($primary-color, 5);
}
}
}

.tip,
.recommendation {
margin-top: $spacing-unit;
padding: 25px 25px 20px 25px;
box-sizing: border-box;

h6 {
margin: 0;
padding: 0;
font-size: 22px;
font-weight: 500;

&:before {
display: none;
}

svg {
display: inline-block;
margin-right: 10px;
background-color: $blue;
border-radius: 3px;
width: 24px;
height: 24px;
color: white;
vertical-align: middle;
transform: translateY(-2px);
}
}

p {
margin: 10px 0 0 0;
}
}

.tip {
background-color: rgba($blue, 0.1);

h6 {
svg {
background-color: $blue;
}
}
}

.recommendation {
background-color: rgba($bitcoin-yellow, 0.1);

h6 {
svg {
background-color: $bitcoin-yellow;
}
}
}

.fact {
margin-top: $spacing-unit;
display: flex;
border: 1px solid #DEDEDE;
align-items: stretch;

.icon {
padding: 10px 20px;
border-right: 1px solid #DEDEDE;
flex-grow: 0;
display: flex;
align-items: center;

&.-green {
svg {
background-color: $green;
}
}

&.-red {
svg {
background-color: $red;
}
}

svg {
display: inline-block;
background-color: $blue;
border-radius: 3px;
width: 24px;
height: 24px;
color: white;
vertical-align: middle;
transform: translateY(-2px);
}
}

.copy {
padding: 20px;
flex-grow: 1;

h6 {
margin: 0;
padding: 0;
font-size: 18px;
font-weight: 500;

&:before {
display: none;
}
}

p {
margin: 5px 0 0 0;
}
}

& + .fact {
margin-top: 0;
border-top: 0;
}
}

a.video-link,
a.prototype-link {
position: relative;
Expand Down Expand Up @@ -249,6 +392,82 @@ article.guide {
}
}

.image-slide-gallery {
margin-top: 30px;
margin-bottom: 30px;
background-color: #f8f8f8;
justify-content: left;
max-width: none !important;
display: flex;
overflow: hidden;
overflow-x: scroll;
-webkit-overflow-scrolling: touch;
scroll-snap-type: x mandatory;

figure {
flex-shrink: 0;
margin-top: 0;
margin-bottom: 0;

img {
width: 100%;
height: auto;
}

figcaption {
p {
margin-top: 0;
}
}
}

&:before,
&:after {
display: block;
content: '';
position: relative;
height: 20px;
flex-shrink: 0;
flex-grow: 1;
}

@include media-query(small) {
margin-left: -15px;
margin-right: -15px;
padding: 30px 0;

figure {
flex-basis: calc(100vw - 180px);

& + figure {
margin-left: 30px;
}
}

&:before,
&:after {
flex-basis: 30px;
}
}

@include media-query(medium-up) {
margin-left: -30px;
margin-right: -30px;
padding: 30px 0 30px 0;

figure {
& + figure {
margin-left: 30px;
}
}

&:before,
&:after {
flex-basis: 30px;
}
}
}

& > .-float-right,
& > .center .-float-right {
@include media-query(large) {
Expand Down
4 changes: 3 additions & 1 deletion _sass/minima/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ $huge_width: 1440px;


$bitcoin-yellow: #F7931A;

$blue: #6490E3;
$green: #6FCF97;
$red: #DE5E57;
$primary-color: $bitcoin-yellow;


Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading