revises SCSS styles
This commit is contained in:
parent
f6b486f24d
commit
3c75e4dc94
5 changed files with 47 additions and 29 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
-webkit-text-size-adjust: 100%; // for iOS
|
||||||
|
box-direction: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 1.611em; // golden ratio
|
||||||
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
h3,
|
h3,
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
// mobile ~320..480px
|
// mobile ~320..480px
|
||||||
// 320px ~ 16rem/16px ~ 18.8235/17px ~ 17.7778/18px
|
// 320px ~ 16rem/16px ~ 18.8235/17px ~ 17.7778/18px
|
||||||
// 480px ~ 30rem/16px ~ 28.2353rem/17px ~ 26.6667rem/18px
|
// 480px ~ 30rem/16px ~ 28.2353rem/17px ~ 26.6667rem/18px
|
||||||
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
|
@media (min-width: 320px) and (max-width: 767px) {
|
||||||
.sidebar {
|
.sidebar {
|
||||||
padding-top: .5rem;
|
li {
|
||||||
|
padding: .1rem 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.hidden-tablet {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,9 +17,10 @@
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
-webkit-text-size-adjust: 100%; // iOS
|
font-size: $small-device-font-size;
|
||||||
font-size: 16px;
|
}
|
||||||
box-direction: normal;
|
.hidden-tablet {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
.sidebar {
|
.sidebar {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
@ -51,9 +57,6 @@
|
||||||
.project__title {
|
.project__title {
|
||||||
margin-top: 0.2rem;
|
margin-top: 0.2rem;
|
||||||
}
|
}
|
||||||
.hidden-tablet {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.post--navigation {
|
.post--navigation {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
@ -71,10 +74,7 @@
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
text-size-adjust: none;
|
font-size: $large-device-font-size;
|
||||||
font-size: 17px;
|
|
||||||
font-weight: 400;
|
|
||||||
line-height: 1.611em; // golden ratio
|
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
margin-left: 20rem;
|
margin-left: 20rem;
|
||||||
|
|
|
@ -20,6 +20,8 @@ $brown: #8f5536;
|
||||||
|
|
||||||
//https://www.client9.com/css-system-font-stack-sans-serif-v3
|
//https://www.client9.com/css-system-font-stack-sans-serif-v3
|
||||||
$root-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Droid Sans", "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
|
$root-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Droid Sans", "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
|
||||||
|
|
||||||
|
// poole compability
|
||||||
$root-font-size: 17px;
|
$root-font-size: 17px;
|
||||||
$root-line-height: 1.5;
|
$root-line-height: 1.5;
|
||||||
|
|
||||||
|
@ -30,6 +32,11 @@ $border-color: #e5e5e5;
|
||||||
|
|
||||||
$large-breakpoint: 38em;
|
$large-breakpoint: 38em;
|
||||||
$large-font-size: 20px;
|
$large-font-size: 20px;
|
||||||
|
// end poole compability
|
||||||
|
|
||||||
|
// hyde-hyde
|
||||||
|
$small-device-font-size: 16px;
|
||||||
|
$large-device-font-size: 18px;
|
||||||
|
|
||||||
// https://www.client9.com/css-system-font-stack-monospace-v2
|
// https://www.client9.com/css-system-font-stack-monospace-v2
|
||||||
$code-font-family: "SF-Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Roboto Mono", "Ubuntu Mono", "Courier New", Courier, monospace;
|
$code-font-family: "SF-Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Roboto Mono", "Ubuntu Mono", "Courier New", Courier, monospace;
|
||||||
|
|
|
@ -106,6 +106,13 @@ footer {
|
||||||
.related-posts li a:hover small {
|
.related-posts li a:hover small {
|
||||||
color: inherit; }
|
color: inherit; }
|
||||||
|
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
|
box-direction: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 1.611em; }
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
h3,
|
h3,
|
||||||
|
@ -131,7 +138,9 @@ h5 {
|
||||||
font-size: 1rem; }
|
font-size: 1rem; }
|
||||||
|
|
||||||
figure {
|
figure {
|
||||||
width: 100%; }
|
width: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0; }
|
||||||
|
|
||||||
blockquote, .important, .warning {
|
blockquote, .important, .warning {
|
||||||
padding: .8889rem;
|
padding: .8889rem;
|
||||||
|
@ -565,16 +574,18 @@ body .gist td {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto; }
|
height: auto; }
|
||||||
|
|
||||||
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
|
@media (min-width: 320px) and (max-width: 767px) {
|
||||||
.sidebar {
|
.sidebar li {
|
||||||
padding-top: .5rem; } }
|
padding: .1rem 0; }
|
||||||
|
.hidden-tablet {
|
||||||
|
display: none; } }
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
-webkit-text-size-adjust: 100%;
|
font-size: 16px; }
|
||||||
font-size: 16px;
|
.hidden-tablet {
|
||||||
box-direction: normal; }
|
display: none; }
|
||||||
.sidebar {
|
.sidebar {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -601,8 +612,6 @@ body .gist td {
|
||||||
width: 66.66666667%; }
|
width: 66.66666667%; }
|
||||||
.project__title {
|
.project__title {
|
||||||
margin-top: 0.2rem; }
|
margin-top: 0.2rem; }
|
||||||
.hidden-tablet {
|
|
||||||
display: none; }
|
|
||||||
.post--navigation {
|
.post--navigation {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between; }
|
justify-content: space-between; }
|
||||||
|
@ -614,13 +623,7 @@ body .gist td {
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
-webkit-text-size-adjust: none;
|
font-size: 18px; }
|
||||||
-moz-text-size-adjust: none;
|
|
||||||
-ms-text-size-adjust: none;
|
|
||||||
text-size-adjust: none;
|
|
||||||
font-size: 17px;
|
|
||||||
font-weight: 400;
|
|
||||||
line-height: 1.611em; }
|
|
||||||
.content {
|
.content {
|
||||||
margin-left: 20rem;
|
margin-left: 20rem;
|
||||||
margin-right: 2rem;
|
margin-right: 2rem;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue