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,
|
||||
h2,
|
||||
h3,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue