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(){ | |
var bd = $(document.body); | |
window.addEventListener('onorientationchange' in window ? 'orientationchange' : 'resize', _orientationchange, false); | |
function _orientationchange() { | |
scrollTo(0, 1); | |
switch(window.orientation){ | |
case 0: //横屏 |
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
@mixin centerer { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
} |
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
@mixin font($size){ | |
font-size: #{$size}px; | |
line-height: #{$size}px; | |
height: #{$size}px; | |
} |
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
%scroll_touch{ -webkit-overflow-scrolling: touch; -webkit-user-select: none; -ms-user-select: none; user-select: none; } |
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
%slash_fix{ backface-visibility:hidden; -webkit-backface-visibility:hidden;-ms-backface-visibility:hidden; -webkit-transform-style: preserve-3d; } |
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
%two_line{ overflow : hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;} |
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
%box{ | |
display: box; | |
display: -ms-box; | |
display: -webkit-box; | |
display: flex; | |
display: -ms-flexbox; | |
display: -webkit-flex; | |
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
%border_box{ -webkit-box-sizing: border-box; box-sizing: border-box; } |
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
@mixin elli{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } |
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
.WX_tab, .WX_nav, .WX_me_item, .QQ_tab, .hd_me_item { | |
display: box; | |
display: -ms-box; | |
display: -webkit-box; | |
display: flex; | |
display: -ms-flexbox; | |
display: -webkit-flex; | |
} | |
.WX_tab a, .WX_nav a, .WX_me_item a, .QQ_tab a, .hd_me_item a { |
NewerOlder