Update deprecated device-width media queries (#120)

This commit is contained in:
Joseph Ting 2018-11-21 20:37:10 +09:00 committed by Luiz F. A. de Prá
parent d89edf3e1b
commit bab77656bb
8 changed files with 30 additions and 30 deletions

View File

@ -16,7 +16,7 @@ body {
font-size: 1.6em; font-size: 1.6em;
font-weight: 300; font-weight: 300;
line-height: 1.8em; line-height: 1.8em;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
font-size: 1.6em; font-size: 1.6em;
line-height: 1.6em; line-height: 1.6em;
} }
@ -51,7 +51,7 @@ h6 {
h1 { h1 {
font-size: 3.2rem; font-size: 3.2rem;
line-height: 3.6rem; line-height: 3.6rem;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
font-size: 3.0rem; font-size: 3.0rem;
line-height: 3.4rem; line-height: 3.4rem;
} }
@ -59,7 +59,7 @@ h1 {
h2 { h2 {
font-size: 2.8rem; font-size: 2.8rem;
line-height: 3.2rem; line-height: 3.2rem;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
font-size: 2.6rem; font-size: 2.6rem;
line-height: 3.0rem; line-height: 3.0rem;
} }
@ -67,7 +67,7 @@ h2 {
h3 { h3 {
font-size: 2.4rem; font-size: 2.4rem;
line-height: 2.8rem; line-height: 2.8rem;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
font-size: 2.2rem; font-size: 2.2rem;
line-height: 2.6rem; line-height: 2.6rem;
} }
@ -75,7 +75,7 @@ h3 {
h4 { h4 {
font-size: 2.2rem; font-size: 2.2rem;
line-height: 2.6rem; line-height: 2.6rem;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
font-size: 2.0rem; font-size: 2.0rem;
line-height: 2.4rem; line-height: 2.4rem;
} }
@ -83,7 +83,7 @@ h4 {
h5 { h5 {
font-size: 2.0rem; font-size: 2.0rem;
line-height: 2.4rem; line-height: 2.4rem;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
font-size: 1.8rem; font-size: 1.8rem;
line-height: 2.2rem; line-height: 2.2rem;
} }
@ -91,7 +91,7 @@ h5 {
h6 { h6 {
font-size: 1.8rem; font-size: 1.8rem;
line-height: 2.2rem; line-height: 2.2rem;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
font-size: 1.6rem; font-size: 1.6rem;
line-height: 2.0rem; line-height: 2.0rem;
} }

View File

@ -10,7 +10,7 @@
font-size: 4.2rem; font-size: 4.2rem;
line-height: 4.6rem; line-height: 4.6rem;
margin: 0; margin: 0;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
font-size: 4.0rem; font-size: 4.0rem;
line-height: 4.4rem; line-height: 4.4rem;
} }
@ -45,7 +45,7 @@
width: 20rem; width: 20rem;
height: auto; height: auto;
border-radius: 50%; border-radius: 50%;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
width: 10rem; width: 10rem;
} }
} }
@ -57,7 +57,7 @@
padding: 0; padding: 0;
li { li {
font-size: 1.8rem; font-size: 1.8rem;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
margin: 1.6rem 0 1.6rem 0; margin: 1.6rem 0 1.6rem 0;
} }
span { span {
@ -65,7 +65,7 @@
width: 20.0rem; width: 20.0rem;
text-align: right; text-align: right;
margin-right: 3.0rem; margin-right: 3.0rem;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
display: block; display: block;
text-align: left; text-align: left;
} }
@ -99,7 +99,7 @@
margin-top: 1.0rem; margin-top: 1.0rem;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
font-size: 2.4rem; font-size: 2.4rem;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
font-size: 2.0rem; font-size: 2.0rem;
} }
} }
@ -120,7 +120,7 @@
&:focus { &:focus {
color: $link-color; color: $link-color;
} }
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
font-size: 1.4rem; font-size: 1.4rem;
} }
i { i {
@ -137,7 +137,7 @@
margin-top: 2.0rem; margin-top: 2.0rem;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
font-size: 4.6rem; font-size: 4.6rem;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
font-size: 3.2rem; font-size: 3.2rem;
} }
} }
@ -145,7 +145,7 @@
margin-top: 2.0rem; margin-top: 2.0rem;
margin-bottom: 3.2rem; margin-bottom: 3.2rem;
font-size: 3.2rem; font-size: 3.2rem;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
font-size: 2.8rem; font-size: 2.8rem;
} }
} }

View File

@ -24,7 +24,7 @@ body.rtl {
text-align: left; text-align: left;
margin-left: 3.0rem; margin-left: 3.0rem;
margin-right: 0; margin-right: 0;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
text-align: right; text-align: right;
} }
} }

View File

@ -24,7 +24,7 @@
list-style: none; list-style: none;
margin-bottom: 0; margin-bottom: 0;
margin-top: 0; margin-top: 0;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
position: absolute; position: absolute;
top: 6.0rem; top: 6.0rem;
right: 0; right: 0;
@ -43,7 +43,7 @@
float: left; float: left;
margin: 0; margin: 0;
position: relative; position: relative;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
float: none !important; float: none !important;
text-align: center; text-align: center;
a, span { a, span {
@ -56,7 +56,7 @@
} }
} }
.menu-separator { .menu-separator {
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
border-top: 2px solid $fg-color; border-top: 2px solid $fg-color;
margin: 0 8.0rem; margin: 0 8.0rem;
span { span {
@ -67,7 +67,7 @@
} }
#menu-toggle { #menu-toggle {
display: none; display: none;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
&:checked + label { &:checked + label {
color: $alt-bg-color; color: $alt-bg-color;
} }
@ -80,7 +80,7 @@
} }
.menu-button { .menu-button {
display: none; display: none;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
display: block; display: block;
font-size: 2.4rem; font-size: 2.4rem;
font-weight: 400; font-weight: 400;

View File

@ -12,19 +12,19 @@ body.inverted {
} }
} }
.navigation-list { .navigation-list {
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
background-color: $bg-color-inverted; background-color: $bg-color-inverted;
border-top: solid 2px $alt-bg-color-inverted; border-top: solid 2px $alt-bg-color-inverted;
border-bottom: solid 2px $alt-bg-color-inverted; border-bottom: solid 2px $alt-bg-color-inverted;
} }
.menu-separator { .menu-separator {
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
border-top: 2px solid $fg-color-inverted; border-top: 2px solid $fg-color-inverted;
} }
} }
} }
#menu-toggle { #menu-toggle {
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
&:checked + label { &:checked + label {
color: $alt-bg-color-inverted; color: $alt-bg-color-inverted;
} }
@ -32,7 +32,7 @@ body.inverted {
} }
.menu-button { .menu-button {
display: none; display: none;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
color: $fg-color-inverted; color: $fg-color-inverted;
&:hover, &:hover,
&:focus { &:focus {

View File

@ -1,7 +1,7 @@
body.rtl { body.rtl {
.navigation-list { .navigation-list {
float: left; float: left;
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
left: 0; left: 0;
right: auto; right: auto;
} }
@ -11,7 +11,7 @@ body.rtl {
} }
.menu-button { .menu-button {
@media only screen and (max-device-width : 768px) { @media only screen and (max-width : 768px) {
float: left; float: left;
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"Target":"css/coder.min.134a7c5ac2b84e004ec89170bdb9a8df52e4496cd130d887bf8b8cdbf5a53d06.css","MediaType":"text/css","Data":{"Integrity":"sha256-E0p8WsK4TgBOyJFwvbmo31LkSWzRMNiHv4uM2/WlPQY="}} {"Target":"css/coder.min.48a91b6544fdc006092d34b2150b4e0379d72cefe62ae914c2b38d742820ad3d.css","MediaType":"text/css","Data":{"Integrity":"sha256-SKkbZUT9wAYJLTSyFQtOA3nXLO/mKukUwrONdCggrT0="}}