introducing mobile layout
This commit is contained in:
parent
caed66db79
commit
5633364009
24 changed files with 85 additions and 50 deletions
1
.gitattributes
vendored
1
.gitattributes
vendored
|
@ -4,3 +4,4 @@
|
||||||
**.ttf filter=lfs diff=lfs merge=lfs -text
|
**.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
**.woff filter=lfs diff=lfs merge=lfs -text
|
**.woff filter=lfs diff=lfs merge=lfs -text
|
||||||
**.ico filter=lfs diff=lfs merge=lfs -text
|
**.ico filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**.woff2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
BIN
assets/fonts/lato-v20-latin-700.ttf
(Stored with Git LFS)
Normal file
BIN
assets/fonts/lato-v20-latin-700.ttf
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/fonts/lato-v20-latin-700.woff
(Stored with Git LFS)
Normal file
BIN
assets/fonts/lato-v20-latin-700.woff
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/fonts/lato-v20-latin-700.woff2
(Stored with Git LFS)
Normal file
BIN
assets/fonts/lato-v20-latin-700.woff2
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/fonts/lato-v20-latin-900.ttf
(Stored with Git LFS)
Normal file
BIN
assets/fonts/lato-v20-latin-900.ttf
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/fonts/lato-v20-latin-900.woff
(Stored with Git LFS)
Normal file
BIN
assets/fonts/lato-v20-latin-900.woff
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/fonts/lato-v20-latin-900.woff2
(Stored with Git LFS)
Normal file
BIN
assets/fonts/lato-v20-latin-900.woff2
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/fonts/lato-v20-latin-regular.ttf
(Stored with Git LFS)
Normal file
BIN
assets/fonts/lato-v20-latin-regular.ttf
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/fonts/lato-v20-latin-regular.woff
(Stored with Git LFS)
Normal file
BIN
assets/fonts/lato-v20-latin-regular.woff
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/fonts/lato-v20-latin-regular.woff2
(Stored with Git LFS)
Normal file
BIN
assets/fonts/lato-v20-latin-regular.woff2
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/fonts/lato_italic_400.ttf
(Stored with Git LFS)
BIN
assets/fonts/lato_italic_400.ttf
(Stored with Git LFS)
Binary file not shown.
BIN
assets/fonts/lato_italic_700.ttf
(Stored with Git LFS)
BIN
assets/fonts/lato_italic_700.ttf
(Stored with Git LFS)
Binary file not shown.
BIN
assets/fonts/lato_italic_900.ttf
(Stored with Git LFS)
BIN
assets/fonts/lato_italic_900.ttf
(Stored with Git LFS)
Binary file not shown.
BIN
assets/fonts/lato_normal_400.ttf
(Stored with Git LFS)
BIN
assets/fonts/lato_normal_400.ttf
(Stored with Git LFS)
Binary file not shown.
BIN
assets/fonts/lato_normal_700.ttf
(Stored with Git LFS)
BIN
assets/fonts/lato_normal_700.ttf
(Stored with Git LFS)
Binary file not shown.
BIN
assets/fonts/lato_normal_900.ttf
(Stored with Git LFS)
BIN
assets/fonts/lato_normal_900.ttf
(Stored with Git LFS)
Binary file not shown.
BIN
assets/fonts/mochiy-pop-one-v5-latin-regular.ttf
(Stored with Git LFS)
Normal file
BIN
assets/fonts/mochiy-pop-one-v5-latin-regular.ttf
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/fonts/mochiy-pop-one-v5-latin-regular.woff
(Stored with Git LFS)
Normal file
BIN
assets/fonts/mochiy-pop-one-v5-latin-regular.woff
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/fonts/mochiy-pop-one-v5-latin-regular.woff2
(Stored with Git LFS)
Normal file
BIN
assets/fonts/mochiy-pop-one-v5-latin-regular.woff2
(Stored with Git LFS)
Normal file
Binary file not shown.
|
@ -1,53 +1,46 @@
|
||||||
|
|
||||||
// 'Mochiy Pop P One' font
|
/* mochiy-pop-one-regular - latin */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Mochiy Pop P One';
|
font-family: $headline_font;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url(/fonts/mochiypoppone.ttf) format('truetype');
|
src: local(''),
|
||||||
|
url('../fonts/mochiy-pop-one-v5-latin-regular.woff2') format('woff2'),
|
||||||
|
url('../fonts/mochiy-pop-one-v5-latin-regular.woff') format('woff'),
|
||||||
|
url('../fonts/mochiy-pop-one-v5-latin-regular.ttf') format('truetype'),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lato font
|
// Lato font
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Lato';
|
font-family: $main_font;
|
||||||
font-style: italic;
|
|
||||||
font-weight: 400;
|
|
||||||
font-display: swap;
|
|
||||||
src: url(/fonts/lato_italic_400.ttf) format('truetype');
|
|
||||||
}
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Lato';
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: 700;
|
|
||||||
font-display: swap;
|
|
||||||
src: url(/fonts/lato_italic_700.ttf) format('truetype');
|
|
||||||
}
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Lato';
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: 900;
|
|
||||||
font-display: swap;
|
|
||||||
src: url(/fonts/lato_italic_900.ttf) format('truetype');
|
|
||||||
}
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Lato';
|
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url(/fonts/lato_normal_400.ttf) format('truetype');
|
src: local(''),
|
||||||
|
url('/fonts/lato-v20-latin-regular.woff2') format('woff2'),
|
||||||
|
url('/fonts/lato-v20-latin-regular.woff') format('woff'),
|
||||||
|
url('/fonts/lato-v20-latin-regular.ttf') format('truetype');
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Lato';
|
font-family: $main_font;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url(/fonts/lato_normal_700.ttf) format('truetype');
|
src: local(''),
|
||||||
|
url('/fonts/lato-v20-latin-700.woff2') format('woff2'),
|
||||||
|
url('/fonts/lato-v20-latin-700.woff') format('woff'),
|
||||||
|
url('/fonts/lato-v20-latin-700.ttf') format('truetype');
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Lato';
|
font-family: $main_font;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url(/fonts/lato_normal_900.ttf) format('truetype');
|
src: local(''),
|
||||||
|
url('/fonts/lato-v20-latin-900.woff2') format('woff2'),
|
||||||
|
url('/fonts/lato-v20-latin-900.woff') format('woff'),
|
||||||
|
url('/fonts/lato-v20-latin-900.ttf') format('truetype');
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
body {
|
body {
|
||||||
font-family: 'Lato', sans-serif;
|
font-family: $main_font, sans-serif;
|
||||||
margin: 25px 25px 50px 25px;
|
margin: 25px 25px 50px 25px;
|
||||||
background: $background_accent_2;
|
background: $background_accent_2;
|
||||||
a {
|
a {
|
||||||
|
|
|
@ -4,7 +4,7 @@ header {
|
||||||
padding: 20px 30px;
|
padding: 20px 30px;
|
||||||
box-shadow: 5px 5px 5px 10px $background_accent_1;
|
box-shadow: 5px 5px 5px 10px $background_accent_1;
|
||||||
h1 a, h1 a:hover, h1 a:link {
|
h1 a, h1 a:hover, h1 a:link {
|
||||||
font-family: 'Mochiy Pop P One', sans-serif;
|
font-family: $headline_font, sans-serif;
|
||||||
color: $font_accent_1;
|
color: $font_accent_1;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -23,3 +23,10 @@ header {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@media (max-width: $media_horizontal_breakpoint) {
|
||||||
|
header {
|
||||||
|
h1 a, h1 a:hover, h1 a:link {
|
||||||
|
font-size: $font_size_h1_mobile;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -30,3 +30,13 @@ div.start {
|
||||||
text-shadow: 0px 0px 1px black;
|
text-shadow: 0px 0px 1px black;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: $media_horizontal_breakpoint) {
|
||||||
|
div.start {
|
||||||
|
display: initial;
|
||||||
|
.left, .right {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -10,4 +10,10 @@ $font_default: white;
|
||||||
$font_size_default: 1.5em;
|
$font_size_default: 1.5em;
|
||||||
$font_size_code: 1.7em;
|
$font_size_code: 1.7em;
|
||||||
$font_size_h1: 3em;
|
$font_size_h1: 3em;
|
||||||
|
$font_size_h1_mobile: 1.5em;
|
||||||
$font_size_h2: 2.3em;
|
$font_size_h2: 2.3em;
|
||||||
|
|
||||||
|
$headline_font: 'Mochiy Pop One';
|
||||||
|
$main_font: 'Lato';
|
||||||
|
|
||||||
|
$media_horizontal_breakpoint: 900px;
|
||||||
|
|
Loading…
Reference in a new issue