revises SCSS styles

This commit is contained in:
Huy Tran 2018-07-28 09:06:50 +10:00
parent f6b486f24d
commit 3c75e4dc94
5 changed files with 47 additions and 29 deletions

View file

@ -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,
h2,
h3,

View file

@ -1,9 +1,14 @@
// mobile ~320..480px
// 320px ~ 16rem/16px ~ 18.8235/17px ~ 17.7778/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 {
padding-top: .5rem;
li {
padding: .1rem 0;
}
}
.hidden-tablet {
display: none;
}
}
@ -12,9 +17,10 @@
@media (min-width: 768px) {
html,
body {
-webkit-text-size-adjust: 100%; // iOS
font-size: 16px;
box-direction: normal;
font-size: $small-device-font-size;
}
.hidden-tablet {
display: none;
}
.sidebar {
bottom: 0;
@ -51,9 +57,6 @@
.project__title {
margin-top: 0.2rem;
}
.hidden-tablet {
display: none;
}
.post--navigation {
display: flex;
justify-content: space-between;
@ -71,10 +74,7 @@
@media (min-width: 992px) {
html,
body {
text-size-adjust: none;
font-size: 17px;
font-weight: 400;
line-height: 1.611em; // golden ratio
font-size: $large-device-font-size;
}
.content {
margin-left: 20rem;

View file

@ -20,6 +20,8 @@ $brown: #8f5536;
//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";
// poole compability
$root-font-size: 17px;
$root-line-height: 1.5;
@ -30,6 +32,11 @@ $border-color: #e5e5e5;
$large-breakpoint: 38em;
$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
$code-font-family: "SF-Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Roboto Mono", "Ubuntu Mono", "Courier New", Courier, monospace;

View file

@ -106,6 +106,13 @@ footer {
.related-posts li a:hover small {
color: inherit; }
html,
body {
-webkit-text-size-adjust: 100%;
box-direction: normal;
font-weight: 400;
line-height: 1.611em; }
h1,
h2,
h3,
@ -131,7 +138,9 @@ h5 {
font-size: 1rem; }
figure {
width: 100%; }
width: 100%;
margin: 0;
padding: 0; }
blockquote, .important, .warning {
padding: .8889rem;
@ -565,16 +574,18 @@ body .gist td {
max-width: 100%;
height: auto; }
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
.sidebar {
padding-top: .5rem; } }
@media (min-width: 320px) and (max-width: 767px) {
.sidebar li {
padding: .1rem 0; }
.hidden-tablet {
display: none; } }
@media (min-width: 768px) {
html,
body {
-webkit-text-size-adjust: 100%;
font-size: 16px;
box-direction: normal; }
font-size: 16px; }
.hidden-tablet {
display: none; }
.sidebar {
bottom: 0;
left: 0;
@ -601,8 +612,6 @@ body .gist td {
width: 66.66666667%; }
.project__title {
margin-top: 0.2rem; }
.hidden-tablet {
display: none; }
.post--navigation {
display: flex;
justify-content: space-between; }
@ -614,13 +623,7 @@ body .gist td {
@media (min-width: 992px) {
html,
body {
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
text-size-adjust: none;
font-size: 17px;
font-weight: 400;
line-height: 1.611em; }
font-size: 18px; }
.content {
margin-left: 20rem;
margin-right: 2rem;

File diff suppressed because one or more lines are too long