This repository has been archived by the owner on Nov 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new design for the new gallery function, new design for code bl…
…ocks
- Loading branch information
Gustav Lindqvist
committed
Dec 18, 2018
1 parent
14f63f5
commit 4f010c2
Showing
19 changed files
with
312 additions
and
197 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.kg-card.kg-width-full { | ||
img { | ||
width: 100vw; | ||
position: relative; | ||
left: 50%; | ||
right: 50%; | ||
margin-left: -50vw; | ||
margin-right: -50vw; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.kg-card.kg-gallery-card { | ||
margin: 0 0 1.5em; | ||
.kg-gallery-container { | ||
display: flex; | ||
flex-direction: column; | ||
margin: 1.5em auto; | ||
|
||
.kg-gallery-row { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
|
||
&:not(:first-of-type) { | ||
margin: 10px 0 0 0; | ||
} | ||
.kg-gallery-image { | ||
&:not(:first-of-type) { | ||
margin: 0 0 0 10px; | ||
} | ||
img { | ||
display: block; | ||
margin: 0; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.kg-card.kg-image-card { | ||
margin-top: 20px; | ||
margin-bottom: 20px; | ||
|
||
@include respond-to(small) { | ||
margin-top: 40px; | ||
margin-bottom: 40px; | ||
} | ||
|
||
figcaption { | ||
text-align: center; | ||
font-size: 14px; | ||
line-height: 50px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.kg-card.kg-width-wide { | ||
width: 100vw; | ||
max-width: 100%; | ||
|
||
@include respond-to(medium) { | ||
max-width: $wrapper-width+200px; | ||
} | ||
@include respond-to(large) { | ||
max-width: $wrapper-width+400px; | ||
} | ||
@include respond-to(huge) { | ||
max-width: $wrapper-width+600px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
pre { | ||
width: 100vw; | ||
max-width: 100%; | ||
padding: 15px; | ||
background: darken($white, 3%); | ||
overflow-x: scroll; | ||
margin: { | ||
top: 0; | ||
right: 0; | ||
bottom: 10px; | ||
left: 0; | ||
} | ||
word-wrap: break-word; | ||
code { | ||
padding: 0; | ||
background: none; | ||
font-size: 12px; | ||
font-size: 1.2rem; | ||
font-family: $font-monospace; | ||
|
||
|
||
@include respond-to(medium) { | ||
font-size: 15px; | ||
font-size: 1.5rem; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,6 @@ | ||
.content { | ||
img { | ||
display: block; | ||
margin-left: auto; | ||
margin-left: calc(0% - 20px); | ||
width: 100%; | ||
width: calc(100% + 40px); | ||
height: auto; | ||
} | ||
|
||
figure.kg-image-card { | ||
position: relative; | ||
right: 50%; | ||
left: 50%; | ||
margin-top: 20px; | ||
margin-right: -50vw; | ||
margin-bottom: 20px; | ||
margin-left: -50vw; | ||
width: 100vw; | ||
|
||
@include respond-to(small) { | ||
margin-top: 40px; | ||
margin-bottom: 40px; | ||
} | ||
img.kg-image { | ||
margin: 0 auto; | ||
max-width: calc(100vw - 40px); | ||
width: initial; | ||
|
||
@include respond-to(small) { | ||
max-width: $wrapper-width+80px; | ||
} | ||
&.kg-image-wide { | ||
max-width: 100vw; | ||
|
||
@include respond-to(medium) { | ||
max-width: $wrapper-width+200px; | ||
} | ||
@include respond-to(large) { | ||
max-width: $wrapper-width+400px; | ||
} | ||
@include respond-to(huge) { | ||
max-width: $wrapper-width+600px; | ||
} | ||
} | ||
&.kg-image-full { | ||
max-width: 100vw; | ||
width: 100vw; | ||
} | ||
} | ||
figcaption { | ||
text-align: center; | ||
font-size: 14px; | ||
line-height: 50px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.home-template { | ||
background: darken(white, 5%); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
.page-template .main { | ||
padding: 10px 20px; | ||
background: #FFFFFF; | ||
margin: 0 auto; | ||
width: 100%; | ||
|
||
@include respond-to(medium) { | ||
padding: 30px 20px; | ||
} | ||
@include respond-to(large) { | ||
padding: 40px 20px; | ||
} | ||
.page { | ||
margin: 0 auto; | ||
.content { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
max-width: $wrapper-width; | ||
padding: 10px 20px; | ||
margin: auto; | ||
@include respond-to(medium) { | ||
padding: 30px 20px; | ||
} | ||
@include respond-to(large) { | ||
padding: 40px 20px; | ||
} | ||
> * { | ||
min-width: 100%; | ||
} | ||
|
||
@include respond-to(small) { | ||
> *:first-child { | ||
margin-top: 0; | ||
} | ||
.content { | ||
> *:first-child { | ||
margin-top: 0; | ||
} | ||
> *:last-child { | ||
margin-bottom: 0; | ||
} | ||
> *:last-child { | ||
margin-bottom: 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
.post-template .main { | ||
padding: 10px 20px; | ||
background: #FFFFFF; | ||
margin: 0 auto; | ||
width: 100%; | ||
|
||
@include respond-to(medium) { | ||
padding: 30px 20px; | ||
} | ||
@include respond-to(large) { | ||
padding: 40px 20px; | ||
} | ||
.post { | ||
margin: 0 auto; | ||
.content { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
max-width: $wrapper-width; | ||
padding: 20px; | ||
margin: auto; | ||
|
||
@include respond-to(medium) { | ||
padding: 30px 20px; | ||
} | ||
@include respond-to(large) { | ||
padding: 40px 20px; | ||
} | ||
> * { | ||
min-width: 100%; | ||
} | ||
|
||
@include respond-to(small) { | ||
> *:first-child { | ||
margin-top: 0; | ||
} | ||
.content { | ||
> *:first-child { | ||
margin-top: 0; | ||
} | ||
> *:last-child { | ||
margin-bottom: 0; | ||
} | ||
> *:last-child { | ||
margin-bottom: 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,10 @@ | |
margin-left: -50%; | ||
} | ||
} | ||
} | ||
|
||
/* Fix for 100vw and horizontal scrollbar */ | ||
|
||
body { | ||
overflow-x: hidden; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters