1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +01:00

more content fixes

This commit is contained in:
Matthias Kretschmann 2018-09-29 03:47:00 +02:00
parent ea29e38f51
commit 590279d62e
Signed by: m
GPG Key ID: 606EEEF3C479A91F
9 changed files with 52 additions and 21 deletions

View File

@ -27,7 +27,7 @@ It [has been revealed](http://www.theverge.com/2012/8/3/3218846/schiller-forstal
The full size I designed the wallpaper in is 3200x2048px. I don't know why Apple uses 3200px as width for the default wallpapers in Mountain Lion but it seems a good width for now. And a height of 2048px makes this big size perfectly usable for the iPad 3 too. The full size I designed the wallpaper in is 3200x2048px. I don't know why Apple uses 3200px as width for the default wallpapers in Mountain Lion but it seems a good width for now. And a height of 2048px makes this big size perfectly usable for the iPad 3 too.
![](../media/Project-Purple-Dribbble.png) ![Project-Purple-Dribbble](../media/Project-Purple-Dribbble.png)
## Download ## Download

View File

@ -40,7 +40,7 @@
@media (min-width: $screen-sm) and (min-height: 500px) { @media (min-width: $screen-sm) and (min-height: 500px) {
margin-top: $spacer * 2.65; margin-top: $spacer * 2.65;
margin-bottom: $spacer * 20; // height of footer margin-bottom: $spacer * 19; // height of footer
position: relative; position: relative;
z-index: 2; z-index: 2;
min-height: 500px; min-height: 500px;

View File

@ -55,6 +55,7 @@
vertical-align: middle; vertical-align: middle;
display: inline-block; display: inline-block;
margin: 0; margin: 0;
margin-right: -($spacer / 2);
&:hover, &:hover,
&:focus { &:focus {

View File

@ -7,6 +7,8 @@
font-family: $font-family-headings; font-family: $font-family-headings;
line-height: $line-height-headings; line-height: $line-height-headings;
font-weight: $font-weight-headings; font-weight: $font-weight-headings;
font-style: normal;
text-align: left;
letter-spacing: -.02em; letter-spacing: -.02em;
margin: 0; margin: 0;
position: absolute; position: absolute;

View File

@ -16,7 +16,7 @@ const query = graphql`
title title
image { image {
childImageSharp { childImageSharp {
fluid(maxWidth: 260, maxHeight: 100, cropFocus: CENTER) { fluid(maxWidth: 300, maxHeight: 130, cropFocus: CENTER) {
...GatsbyImageSharpFluid_withWebp_noBase64 ...GatsbyImageSharpFluid_withWebp_noBase64
} }
} }

View File

@ -6,21 +6,28 @@
@include divider; @include divider;
display: flex; display: flex;
margin-top: $spacer * $line-height; justify-content: space-between;
padding-left: $spacer / 2; flex-wrap: wrap;
padding-right: $spacer / 2; padding-left: $spacer;
padding-right: $spacer;
margin-bottom: -($spacer); margin-bottom: -($spacer);
padding-bottom: $spacer * $line-height;
@media (min-width: $screen-xs) {
padding-bottom: $spacer * 3; padding-bottom: $spacer * 3;
margin-top: $spacer * $line-height;
}
@media (min-width: $screen-md) { @media (min-width: $screen-md) {
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
justify-content: initial;
} }
} }
.featuredTitle { .featuredTitle {
transition: .1s ease-out; transition: .1s ease-out;
font-size: $font-size-mini; font-size: $font-size-base;
margin: 0; margin: 0;
position: absolute; position: absolute;
top: 25%; top: 25%;
@ -33,20 +40,32 @@
left: 0; left: 0;
opacity: 0; opacity: 0;
transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0);
@media (min-width: $screen-sm) {
font-size: $font-size-base;
}
} }
.featuredItem { .featuredItem {
flex: 1;
position: relative; position: relative;
max-width: 12rem;
flex: 0 0 48%;
margin-bottom: $spacer / 2;
&:last-child {
margin-bottom: 0;
display: none;
}
@media (min-width: $screen-xs) {
flex: 1;
max-width: none;
margin-left: $spacer / 2; margin-left: $spacer / 2;
&:last-child {
display: block;
}
&:first-child { &:first-child {
margin-left: 0; margin-left: 0;
} }
}
a { a {
> div { > div {

View File

@ -4,7 +4,7 @@
.btn, .btn,
a.btn { a.btn {
text-align: center; text-align: center;
display: inline-block; display: block;
margin-bottom: 0; margin-bottom: 0;
vertical-align: middle; vertical-align: middle;
touch-action: manipulation; touch-action: manipulation;
@ -162,8 +162,13 @@ a.btn-primary {
a { a {
@extend .btn; @extend .btn;
margin-bottom: $spacer / 2;
@media (min-width: $screen-xs) {
flex: 1; flex: 1;
margin-left: $spacer / 2; margin-left: $spacer / 2;
margin-bottom: 0;
}
&:first-child { &:first-child {
margin-left: 0; margin-left: 0;

View File

@ -79,8 +79,8 @@ $color-headings--dark: $brand-main-light;
///////////////////////////////////// /////////////////////////////////////
$spacer: ($font-size-base * $line-height); $spacer: ($font-size-base * $line-height);
$padding-base-vertical: 8px; $padding-base-vertical: .75rem;
$padding-base-horizontal: 12px; $padding-base-horizontal: 1.25rem;
$border-radius: 3px; $border-radius: 3px;

View File

@ -5,4 +5,8 @@
width: 100%; width: 100%;
padding-top: $spacer; padding-top: $spacer;
padding-bottom: $spacer * 3; padding-bottom: $spacer * 3;
&:only-child {
padding-bottom: $spacer;
}
} }