This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .rating { | |
| unicode-bidi: bidi-override; | |
| direction: rtl; | |
| text-align: center; | |
| } | |
| .rating label { | |
| display: inline-block; | |
| width: 24px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function deferred() { | |
| var callbacks = { | |
| done: [], | |
| fail: [] | |
| }; | |
| var promise = { | |
| done: function(callback) { | |
| callbacks.done.push(callback); | |
| return promise; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let g:user_zen_settings = { | |
| \ 'lang': 'zh-CN', | |
| \ 'html': { | |
| \ 'snippets': { | |
| \ 'html:mobile': "<!DOCTYPE html>\n" | |
| \ ."<html lang=\"${lang}\">\n" | |
| \ ."<head>\n" | |
| \ ."\t<meta charset=\"${charset}\">\n" | |
| \ ."\t<meta name=\"viewport\" content=\"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no\">\n" | |
| \ ."\t<meta name=\"format-detection\" content=\"telephone=no\"/>\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| width: 600px; | |
| font:normal 14px/1.62 arial, sans-serif; | |
| } | |
| .mod { | |
| margin-bottom:100px; | |
| background-color:#efc; | |
| } | |
| .pic { | |
| margin-right: 20px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ul, li, p { | |
| margin:0; | |
| padding:0; | |
| list-style: none; | |
| } | |
| html { | |
| height:100%; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| p:nth-child(1) { | |
| font-size: 12px; | |
| margin: 20px; | |
| width: 200px; | |
| height: 150px; | |
| -webkit-hyphens: auto; | |
| -webkit-shape-inside: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); | |
| overflow: hidden; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| html,body { height:100%; } | |
| .list { padding:10px; border:3px solid #ccc; } | |
| /* | |
| 方法1: | |
| html,body { height:100%; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| margin: 0; | |
| padding: 0 24px; | |
| font-family: arial, sans-serif; | |
| background-color: #0ff; | |
| background-image: linear-gradient(90deg, transparent 1px, rgba(255,255,255,.9) 1px); | |
| background-size: 5px 5px; | |
| } | |
| hr { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| padding: 5em 10em; | |
| } | |
| .wating:after { | |
| content: ''; | |
| display: inline-block; | |
| width: .5em; | |
| height: 2em; | |
| overflow: hidden; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .progress { | |
| position: relative; | |
| height: 20px; | |
| border:1px solid #333; | |
| } | |
| .progress i { | |
| position: absolute; | |
| width: 50%; | |
| height: 20px; |