This file contains 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
// px高さと文字サイズから必要な余白を計算し、remで返す | |
@mixin box-spacing( $height: 30, $font-size: 16, $line-height: 1.35, $border-top: 0, $border-bottom: 0, $rem: 16 ) { | |
padding-top: ( ( ( $height - ( $border-top + $border-bottom ) - ( $font-size * $line-height ) ) / 2 ) / $rem ) * 1rem; | |
padding-bottom: ( ( ( $height - ( $border-top + $border-bottom ) - ( $font-size * $line-height ) ) / 2 ) / $rem ) * 1rem; | |
} |
This file contains 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
h1 { | |
/* h1の装飾 */ | |
} | |
h2 { | |
/* h2の装飾 */ | |
} |
This file contains 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
var iso8601Date = function(iso) { | |
var parse = iso.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\+\d{2}:\d{2}/); | |
return new Date( Number(parse[1]), Number(parse[2]), Number(parse[3]), Number(parse[4]), Number(parse[5]), Number(parse[6]) ); | |
}; | |
... | |
var pubdate = iso8601Date( '2016-10-12T17:47:15+09:00' ); | |
console.log(pubdate[1]); //2016 |
This file contains 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
<!-- BEGIN_IF [%{BID}/eq/1] --> | |
<style> | |
/* 管理ページ内でサイトの根幹に関わる設定の削除を禁止する */ | |
.acms-admin-form input[name^="ACMS_"][name*="Blog_Delete:"], | |
.acms-admin-form input[name^="ACMS_"][name*="Category_Delete:"] { | |
position: relative; | |
background: #ccc none; | |
color: #333; | |
border-color: #999; | |
opacity: .5; |
This file contains 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
UPDATE `acms_user` SET `user_login_anywhere`='on' WHERE `user_auth` = 'subscriber' |
This file contains 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
DELETE FROM `acms_user` WHERE `user_auth` = 'subscriber' |
This file contains 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($){ | |
$(function(){ | |
var userAgent = window.navigator.userAgent.toLowerCase(); | |
if (userAgent.indexOf('safari') != -1) { | |
var version = userAgent.match(/^.*\sversion\/(\d+)\.\d.*$/); | |
if ( parseInt( version[1] ) < 9 ){ | |
console.log('no SVG'); | |
} else { | |
console.log('support SVG'); |
This file contains 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
<style> | |
.acms-admin-ex-notice { | |
margin: 5px 0; | |
padding: 5px; | |
background-color: #F9F9F9; | |
color: #339900; | |
font-size: .75rem; | |
line-height: 1.25; | |
} | |
</style> |
This file contains 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
<style> | |
.acms-admin-ex-notice { | |
margin: 5px 0; | |
padding: 5px; | |
background-color: #F9F9F9; | |
color: #339900; | |
font-size: .75rem; | |
line-height: 1.25; | |
} | |
</style> |