diff --git a/index.css b/index.css index 4beca78..7824666 100644 --- a/index.css +++ b/index.css @@ -63,6 +63,12 @@ body { display: inline-block; transition: 0.3s; } +@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { + .wrapper .actionBtn { + font-size: 20px; + padding: 10px 20px; + } +} .wrapper .actionBtn:hover { background: #326eeb; color: #f9f9f9; @@ -71,6 +77,11 @@ body { width: 100%; min-width: 890px; } +@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { + .wrapper > div { + min-width: 100%; + } +} .brief { height: 300px; text-align: center; @@ -81,6 +92,7 @@ body { .brief .slogan { font-size: 16px; color: #5a5a5a; + padding: 0 20px; } .feature { background: #dedede; @@ -89,6 +101,11 @@ body { width: 1200px; margin: 0 auto; } +@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { + .feature .featureContent { + width: 100%; + } +} .feature .featureContent .item { padding: 30px 0 20px; width: 280px; @@ -125,6 +142,25 @@ body { font-size: 14px; line-height: 20px; } +@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { + .feature .featureContent .item { + padding: 20px 0; + float: none; + margin: 0 auto; + font-size: 24px; + } + .feature .featureContent .iconWrapper { + font-size: 25px; + line-height: 25px; + } + .feature .featureContent .iconWrapper .bigger { + font-size: 30px; + } + .feature .featureContent h4 { + font-size: 16px; + margin: 4px; + } +} .quickstart { background: #f9f9f9; } @@ -136,6 +172,11 @@ body { right: 0; bottom: 0; } +@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { + .quickstart .screenshot { + display: none; + } +} .quickstart code.simpleBash { font-family: monospace; font-weight: bold; @@ -146,9 +187,19 @@ body { width: 890px; margin: 0 auto; } +@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { + .listSection .listContent { + width: 100%; + } +} .listSection ul { margin: 0 auto; } +@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { + .listSection ul { + padding: 0 20px 0 30px; + } +} .listSection li { color: #5a5a5a; font-size: 16px; @@ -161,6 +212,11 @@ body { width: 890px; margin: 0 auto; } +@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { + .sample .sampleContent { + width: 100%; + } +} .sample .item { margin: 10px; } @@ -169,6 +225,11 @@ body { margin: 0px 10px; color: #5a5a5a; } +@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { + .sample .itemTitle { + margin: 0; + } +} .sample .figure { vertical-align: top; } @@ -177,9 +238,22 @@ body { display: inline-block; vertical-align: top; } +@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { + .sample pre { + width: 100%; + } +} .sample code { width: 495px; } +@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { + .sample code { + width: 100%; + margin: 0 auto; + word-wrap: break-word; + padding: 0; + } +} .sample hr { border: none; border-top: 1px solid #777777; @@ -201,6 +275,11 @@ body { position: relative; padding: 120px 0; } +@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { + .learnMore { + padding: 70px 0; + } +} .learnMore h4.subtitle { padding: 0; margin-bottom: 30px; diff --git a/index.html b/index.html index 38371c2..aadffe5 100644 --- a/index.html +++ b/index.html @@ -1,86 +1,88 @@
-++ ++-在HTML响应末尾加上"hello world"
+- -//append "hello world" to all web pages //file : rule_replace_response_data.js @@ -96,15 +98,15 @@ module.exports = { } };
-- -
--+去除请求头的if-modified-since字段
-++ ++ +
+++去除请求头的if-modified-since字段
+- -//remove cache related header //file : rule_remove_cache_header.js @@ -118,16 +120,16 @@ module.exports = { } };
-- -
-
++ +++为某个请求指定目标IP地址
+- -//assign a specific IP adress for some request //file : rule_reverse_proxy.js @@ -144,16 +146,16 @@ module.exports = { } };
-- -
-
++ +++把所有图片响应替换成本地图片
+- -//replace all the images with local one //file : rule_use_local_data.js @@ -178,54 +180,54 @@ module.exports = { } };
-- -